/* Städte entdecken: gemeinsame UI-Farbrollen aus theme.css. Die Panorama-Illustration nutzt feste, natürliche Materialfarben. */
.discover-page {
    --d-bg: var(--ui-background, #f7f5f0);
    --d-surface: var(--ui-surface, #fffefa);
    --d-surface-alt: var(--ui-surface-alt, #eee9df);
    --d-ink: var(--ui-ink, #2f332e);
    --d-muted: var(--ui-muted, #65685e);
    --d-line: var(--ui-border, #ded9ce);
    --d-field: var(--ui-field-border, #898b7f);
    --d-primary: var(--ui-primary, #285740);
    --d-primary-hover: var(--ui-primary-hover, #1e4031);
    --d-on-primary: var(--ui-on-primary, #fffefa);
    --d-accent: var(--ui-accent, #285740);
    --d-selected: var(--ui-selected, #e8eee2);
    --d-bronze: var(--ui-bronze, #876632);
    --d-gold: var(--ui-gold, #d9bb78);
    --d-brand: #1b3127;
    --d-shadow: 0 1px 2px #2f332e0d, 0 10px 30px -12px #2f332e24;
    --d-shadow-lift: 0 2px 4px #2f332e10, 0 22px 48px -18px #2f332e40;
    --d-residential: #729454;
    --d-commercial: #668fba;
    --d-industrial: #c79a52;
    --d-sea: #e7ecea;
    --d-land: #f4f0e4;
    --d-land-lo: #e9e2cf;
    background: var(--d-bg);
    color: var(--d-ink);
    flex: 1 0 auto;
    padding: 0 0 104px;
}
:root[data-theme="dark"] .discover-page {
    --d-shadow: 0 1px 2px #0000002e, 0 12px 30px -14px #00000080;
    --d-shadow-lift: 0 2px 4px #00000033, 0 24px 50px -18px #000000a6;
    --d-sea: #252a28;
    --d-land: #34322d;
    --d-land-lo: #2c2b27;
}
.discover-wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.dp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.discover-page :where(a, button, select, input):focus-visible { outline: 2px solid var(--d-accent); outline-offset: 3px; border-radius: 6px; }
.discover-breadcrumb { display: flex; align-items: center; gap: 12px; padding: 32px 0 12px; color: var(--d-muted); font-size: 12px; }
.discover-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.discover-breadcrumb a:hover { color: var(--d-accent); }

.discover-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--d-bronze); font-size: 10.5px; font-weight: 700; letter-spacing: .17em; line-height: 1.5; }
.dp-eyebrow-mark { width: 44px; height: 6px; flex: none; color: var(--d-gold); }
.discover-page h1, .discover-page h2, .discover-page h3 { color: var(--d-ink); }
.discover-page h1 { margin: 0; font: 500 clamp(42px, 5.4vw, 72px)/1.06 'Fraunces', Georgia, serif; letter-spacing: -.045em; }
.discover-page :is(h1, h2) em { color: var(--d-accent); font-style: italic; font-weight: 400; }
.discover-lead { max-width: 560px; margin: 24px 0 30px; color: var(--d-muted); font-size: clamp(16px, 1.45vw, 18px); line-height: 1.75; }
.discover-page h2 { margin: 0; font: 500 clamp(29px, 3vw, 40px)/1.14 'Fraunces', Georgia, serif; letter-spacing: -.025em; }

/* Buttons */
.dp-actions, .dp-next-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.discover-button, .dp-button-secondary, .dp-button-light, .dp-button-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px;
    border: 1px solid transparent; border-radius: 8px; font-size: 13.5px; font-weight: 700; text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.discover-button { background: var(--d-primary); color: var(--d-on-primary); box-shadow: 0 8px 18px -10px #1e403199; }
.discover-button:hover { background: var(--d-primary-hover); color: var(--d-on-primary); transform: translateY(-1px); }
.dp-button-secondary { border-color: var(--d-field); background: var(--d-surface); color: var(--d-accent); }
.dp-button-secondary:hover { border-color: var(--d-accent); background: var(--d-selected); }

/* Hero */
.dp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: 48px 0 56px; }
.dp-panorama { position: relative; margin: 0; }
.dp-panorama-frame {
    position: relative; overflow: hidden; border: 1px solid var(--d-line); border-radius: 18px;
    background: linear-gradient(180deg, #eaf0f0 0%, #f6f3ea 62%, #f3eee2 100%); box-shadow: var(--d-shadow-lift);
}
:root[data-theme="dark"] .dp-panorama-frame { background: linear-gradient(180deg, #e3eaea 0%, #f1ede3 62%, #ece6d8 100%); border-color: #48463f; }
.dp-corner { position: absolute; z-index: 1; width: 26px; height: 26px; border-color: var(--d-gold); border-style: solid; pointer-events: none; }
.dp-corner-tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; border-top-left-radius: 6px; }
.dp-corner-br { right: 12px; bottom: 12px; border-width: 0 1px 1px 0; border-bottom-right-radius: 6px; }
.dp-panorama figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; color: var(--d-muted); font-size: 12.5px; line-height: 1.6; }
.dp-panorama figcaption span { flex: none; color: var(--d-bronze); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.dp-motion {
    position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 11px;
    border: 1px solid #ded9ce; border-radius: 999px; background: #fffefae6; color: #2f332e; font-size: 11.5px; font-weight: 650; cursor: pointer;
    backdrop-filter: blur(6px); transition: background-color .2s;
}
.dp-motion:hover { background: #fffefa; }
.dp-motion:disabled { cursor: default; opacity: .8; }

/* Panorama-Illustration: Materialfarben in beiden Designs identisch (Tageslicht). */
.dp-art { display: block; width: 100%; height: auto; }
.dp-art .grass { fill: #a9c28a; }
.dp-art .earth-l { fill: #a9845c; }
.dp-art .earth-r { fill: #8f6e4d; }
.dp-art .strata { fill: #00000014; }
.dp-art .sand { fill: #e3d3ad; }
.dp-art .water { fill: #8db1c6; }
.dp-art .water-fall { fill: #7aa0b6; }
.dp-art .shimmer { fill: none; stroke: #e6eff3; stroke-width: 1.4; stroke-linecap: round; opacity: .7; animation: dp-shimmer 4.5s ease-in-out infinite var(--d, 0s); }
.dp-art .road { fill: #d4cec1; }
.dp-art .road-line { fill: none; stroke: #f7f3e9; stroke-width: 1; stroke-dasharray: 5 6; }
.dp-art .bridge { fill: #cbbfa8; }
.dp-art .bridge-side { fill: #a89b83; }
.dp-art .plaza { fill: #e6dccb; }
.dp-art .park { fill: #98b679; }
.dp-art .path { fill: none; stroke: #e7dcc4; stroke-width: 2.4; stroke-linecap: round; }
.dp-art .plate-shadow { fill: #2f332e; opacity: .1; }
.dp-art .shadow { fill: #2f332e; opacity: .12; }
.dp-art .trunk { fill: #7a5b3d; }
.dp-art .tr { fill: #6f9152; }
.dp-art .tr-h { fill: #86a767; }
.dp-art .tr2 { fill: #5e8148; }
.dp-art .tr2-h { fill: #789a5c; }
.dp-art .tree .crown { transform-box: fill-box; transform-origin: 50% 100%; animation: dp-sway 6s ease-in-out infinite var(--sway, 0s); }
.dp-art .pl-l { fill: #efe7d8; } .dp-art .pl-r { fill: #d8ccb6; } .dp-art .pl-t { fill: #f7f1e5; }
.dp-art .pl2-l { fill: #ead9c3; } .dp-art .pl2-r { fill: #d2bea3; }
.dp-art .rf-f { fill: #b96a4c; } .dp-art .rf-b { fill: #9e5840; }
.dp-art .rf2-f { fill: #7d6f63; } .dp-art .rf2-b { fill: #665a50; }
.dp-art .door { fill: #7a5b3d; }
.dp-art .gl-l { fill: #b3c4cf; } .dp-art .gl-r { fill: #8ea5b4; } .dp-art .gl-t { fill: #d3dde3; }
.dp-art .gl2-l { fill: #c9c3b6; } .dp-art .gl2-r { fill: #aaa395; } .dp-art .gl2-t { fill: #dfdad0; }
.dp-art .cn-l { fill: #e2ddd2; } .dp-art .cn-r { fill: #c5beb0; } .dp-art .cn-t { fill: #eeeae1; }
.dp-art .br-l { fill: #b46c51; } .dp-art .br-r { fill: #95563f; } .dp-art .br-t { fill: #c8907a; }
.dp-art .st-l { fill: #e2d8c6; } .dp-art .st-r { fill: #c7baa3; } .dp-art .st-t { fill: #ece4d6; }
.dp-art .col { stroke: #f4eee2; stroke-width: 1.6; }
.dp-art .dome-base { fill: #c7baa3; }
.dp-art .dome { fill: #86a593; }
.dp-art .dome-h { fill: none; stroke: #b5cbbd; stroke-width: 1.4; stroke-linecap: round; }
.dp-art .mast { stroke: #6e6a60; stroke-width: 1.2; }
.dp-art .flag { fill: #b4553f; transform-box: fill-box; transform-origin: 0 50%; animation: dp-flag 2.8s ease-in-out infinite; }
.dp-art .pw { fill: #6f8797; opacity: .55; }
.dp-art .pw-r { fill: #5f7686; opacity: .55; }
.dp-art .pw-lit { fill: #f1d79a; opacity: .0; animation: dp-window 7s ease-in-out infinite var(--d, 0s); }
.dp-art .chim { fill: #95563f; }
.dp-art .smoke circle { fill: #ffffff; opacity: .65; transform-box: fill-box; transform-origin: center; animation: dp-smoke 5s ease-out infinite; }
.dp-art .smoke circle:nth-child(2) { animation-delay: 1.6s; }
.dp-art .smoke circle:nth-child(3) { animation-delay: 3.2s; }
.dp-art .car-body { fill: #f4f1ea; stroke: #8b877c; stroke-width: .6; }
.dp-art .car-body2 { fill: #668fba; stroke: #4f7193; stroke-width: .6; }
.dp-art .car-top { fill: #44535d; opacity: .8; }
.dp-art .car { animation: dp-drive 13s linear infinite; }
.dp-art .car-b { animation-duration: 16s; animation-delay: -6s; }
.dp-art .sun-halo { fill: #f6e3b4; opacity: .55; }
.dp-art .sun-core { fill: #f1d48f; }
.dp-art .sun-rays { stroke: #e9c77a; stroke-width: 1.6; stroke-linecap: round; transform-origin: 468px 70px; animation: dp-spin 60s linear infinite; }
.dp-art .cloud path { fill: #ffffff; opacity: .92; }
.dp-art .cloud-a { animation: dp-cloud 38s linear infinite; }
.dp-art .cloud-b { animation: dp-cloud 52s linear infinite -20s; }
.dp-art .birds { fill: none; stroke: #6c7066; stroke-width: 1.2; stroke-linecap: round; animation: dp-birds 22s ease-in-out infinite; }

@keyframes dp-shimmer { 0%, 100% { opacity: 0; transform: translateX(-6px); } 50% { opacity: .8; transform: translateX(4px); } }
@keyframes dp-sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
@keyframes dp-flag { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(.86) skewY(-6deg); } }
@keyframes dp-window { 0%, 30% { opacity: 0; } 45%, 80% { opacity: .9; } 100% { opacity: 0; } }
@keyframes dp-smoke { 0% { opacity: 0; transform: translate(0, 6px) scale(.6); } 25% { opacity: .65; } 100% { opacity: 0; transform: translate(10px, -18px) scale(1.5); } }
@keyframes dp-drive { 0% { transform: translate(0, 0); opacity: 0; } 4% { opacity: 1; } 96% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes dp-spin { to { transform: rotate(360deg); } }
@keyframes dp-cloud { 0% { transform: translateX(-140px); } 100% { transform: translateX(620px); } }
@keyframes dp-birds { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, -10px); } }

/* Kennzahlen */
.dp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--d-line); border-radius: 16px; background: var(--d-surface); box-shadow: var(--d-shadow); }
.dp-kpi { position: relative; display: flex; gap: 16px; align-items: center; min-width: 0; padding: 24px 26px; }
.dp-kpi + .dp-kpi::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--d-line); }
.dp-kpi-icon { width: 44px; height: 44px; flex: none; padding: 9px; border-radius: 12px; background: var(--d-selected); color: var(--d-accent); }
.dp-kpi strong { display: block; color: var(--d-ink); font: 500 30px/1.1 'Fraunces', Georgia, serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dp-kpi strong small { color: var(--d-muted); font: 600 14px/1 'DM Sans', sans-serif; }
.dp-kpi > div > span { display: block; margin-top: 4px; color: var(--d-muted); font-size: 12.5px; }

/* Weltatlas */
.dp-atlas { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 4.5vw, 60px); align-items: center; padding: 96px 0 24px; }
.dp-atlas-intro > p:not(.discover-eyebrow) { margin: 16px 0 26px; color: var(--d-muted); font-size: 15px; line-height: 1.75; }
.dp-biomes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dp-biome { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 13px 16px; border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-surface); }
.dp-biome-icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--d-surface-alt); color: var(--biome); }
.dp-biome-icon svg { width: 22px; height: 22px; }
.dp-biome strong { display: block; font-size: 14px; }
.dp-biome div span { display: block; color: var(--d-muted); font-size: 12.5px; }
.dp-biome em { grid-column: 2; color: var(--d-bronze); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .04em; }
.dp-biome-river, .dp-node-river { --biome: #4f7d99; }
.dp-biome-coast, .dp-node-coast { --biome: #557f8a; }
.dp-biome-forest, .dp-node-forest { --biome: #557a3f; }
.dp-biome-hills, .dp-node-hills { --biome: #93703f; }
.dp-node-other { --biome: #6c7066; }
:root[data-theme="dark"] :is(.dp-biome-river, .dp-node-river) { --biome: #9cc0d6; }
:root[data-theme="dark"] :is(.dp-biome-coast, .dp-node-coast) { --biome: #9ec5cc; }
:root[data-theme="dark"] :is(.dp-biome-forest, .dp-node-forest) { --biome: #a9c98e; }
:root[data-theme="dark"] :is(.dp-biome-hills, .dp-node-hills) { --biome: #d9b880; }
:root[data-theme="dark"] .dp-node-other { --biome: #c3beb1; }

.dp-map { min-width: 0; }
.dp-map-svg { display: block; width: 100%; height: auto; border: 1px solid var(--d-line); border-radius: 18px; background: var(--d-sea); box-shadow: var(--d-shadow); }
.dp-sea { fill: var(--d-sea); }
.dp-sea-wave { fill: none; stroke: var(--d-line); stroke-width: 1; stroke-linecap: round; opacity: .7; }
.dp-land-shadow { fill: #2f332e; opacity: .06; }
.dp-land-hi { stop-color: var(--d-land); }
.dp-land-lo { stop-color: var(--d-land-lo); }
.dp-land-coast { fill: none; stroke: var(--d-gold); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .9; }
.dp-river { fill: none; stroke: #8db1c6; stroke-width: 3; stroke-linecap: round; opacity: .55; }
.dp-contours path { fill: none; stroke: var(--d-muted); stroke-width: .8; opacity: .25; }
.dp-routes path { fill: none; stroke: var(--d-bronze); stroke-width: 1.1; stroke-dasharray: 3 6; opacity: .45; animation: dp-route 9s linear infinite var(--d, 0s); }
@keyframes dp-route { to { stroke-dashoffset: -90; } }
.dp-node { cursor: pointer; outline: none; }
.dp-node-halo { fill: var(--d-surface); opacity: 0; transition: opacity .2s; }
.dp-node-disc { fill: var(--d-surface); stroke: var(--biome); stroke-width: 1.4; transition: fill .2s, stroke-width .2s; }
.dp-node-icon { color: var(--biome); pointer-events: none; }
.dp-node-label { fill: var(--d-ink); font: 600 12.5px 'DM Sans', sans-serif; paint-order: stroke; stroke: var(--d-land); stroke-width: 3.5px; stroke-linejoin: round; }
.dp-node-code { fill: var(--d-muted); font: 700 8.5px 'DM Sans', sans-serif; letter-spacing: .12em; paint-order: stroke; stroke: var(--d-land); stroke-width: 3px; }
.dp-node-badge circle { fill: var(--d-primary); stroke: var(--d-surface); stroke-width: 2; }
.dp-node-badge text { fill: var(--d-on-primary); font: 700 9.5px 'DM Sans', sans-serif; }
.dp-node-pulse { fill: none; stroke: var(--d-primary); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: dp-pulse 3.2s ease-out infinite calc(var(--i) * .3s); }
@keyframes dp-pulse { 0% { opacity: .55; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.7); } }
.dp-node:hover .dp-node-halo, .dp-node:focus-visible .dp-node-halo { opacity: .9; }
.dp-node:hover .dp-node-disc { stroke-width: 2.4; }
.dp-node:focus-visible .dp-node-halo { opacity: 1; stroke: var(--d-accent); stroke-width: 2.5; }
.dp-node.is-active .dp-node-disc { fill: var(--d-selected); stroke: var(--d-accent); stroke-width: 2.8; }
.dp-node.is-active .dp-node-label { fill: var(--d-accent); text-decoration: underline; }
.dp-compass { color: var(--d-bronze); opacity: .75; }
.dp-compass-n { fill: var(--d-bronze); font: 700 10px 'DM Sans', sans-serif; letter-spacing: .1em; }
.dp-map-hint { display: flex; gap: 8px; align-items: center; margin: 12px 4px 0; color: var(--d-muted); font-size: 12.5px; }

/* Verzeichnis */
.discover-directory { padding: 92px 0 20px; scroll-margin-top: 24px; }
.discover-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.discover-section-head .discover-eyebrow { margin-bottom: 12px; }
.discover-section-head > p { max-width: 380px; margin: 0 0 5px; color: var(--d-muted); font-size: 13.5px; line-height: 1.65; }
.dp-result { flex: none; font-variant-numeric: tabular-nums; }

.dp-toolbar { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; margin-bottom: 22px; padding: 18px; border: 1px solid var(--d-line); border-radius: 14px; background: var(--d-surface); box-shadow: var(--d-shadow); }
.dp-field { display: grid; gap: 7px; min-width: 0; }
.dp-field > span:first-child { color: var(--d-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dp-input-wrap, .dp-select-wrap { position: relative; display: flex; align-items: center; }
.dp-input-wrap > svg { position: absolute; left: 13px; color: var(--d-muted); pointer-events: none; }
.dp-select-wrap > svg { position: absolute; right: 13px; color: var(--d-muted); transform: rotate(90deg); pointer-events: none; }
.discover-page .dp-field :is(input, select) {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--d-field); border-radius: 9px; background: var(--d-bg);
    color: var(--d-ink); font: 500 14px/1.3 'DM Sans', sans-serif; appearance: none; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.discover-page .dp-field .dp-input-wrap input { padding-left: 42px; }
.dp-field select { padding-right: 38px; cursor: pointer; }
.dp-field :is(input, select):hover { border-color: var(--d-accent); }
.dp-field :is(input, select):focus-visible { border-color: var(--d-accent); box-shadow: 0 0 0 3px var(--d-selected); outline-offset: 2px; }
.dp-field input::placeholder { color: var(--d-muted); opacity: .85; }
.dp-toolbar-actions { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.dp-apply { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 9px; background: var(--d-primary); color: var(--d-on-primary); font: 700 13.5px 'DM Sans', sans-serif; cursor: pointer; }
.dp-apply:hover { background: var(--d-primary-hover); }
.dp-reset { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; color: var(--d-accent); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dp-reset:hover { text-decoration: underline; text-underline-offset: 4px; }
.dp-toolbar-actions:not(:has(> :not([hidden]))) { display: none; }
.dp-reset[hidden], .dp-apply[hidden], [data-city][hidden], .dp-no-results[hidden] { display: none; }

.discover-city-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.discover-city-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--d-line); border-radius: 16px;
    background: var(--d-surface); box-shadow: var(--d-shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.discover-city-card:hover { transform: translateY(-3px); box-shadow: var(--d-shadow-lift); border-color: color-mix(in srgb, var(--d-gold) 55%, var(--d-line)); }
/* Das Vorschaubild (1200×630) trägt links eine 440 px breite Textspalte; die Karte zeigt nur den Stadtausschnitt rechts davon. */
.dp-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #a9c28a, #98b679); }
.dp-card-media img { position: absolute; top: 50%; right: 0; width: 158.4%; max-width: none; height: auto; transform: translateY(-50%); transform-origin: 70% 50%; transition: transform .6s ease; }
.discover-city-card:hover .dp-card-media img { transform: translateY(-50%) scale(1.04); }
.dp-card-media::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--d-line); }
.dp-card-stage, .dp-card-rank {
    position: absolute; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 999px;
    background: #fffefaeb; color: #2f332e; font-size: 11.5px; font-weight: 700; box-shadow: 0 2px 10px #2f332e1f; backdrop-filter: blur(6px);
}
.dp-card-stage { left: 12px; }
.dp-card-stage svg { width: 18px; height: 18px; color: #285740; }
.dp-card-rank { right: 12px; color: #6d5226; }
.dp-card-rank svg { width: 15px; height: 15px; color: #876632; }
.dp-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 22px; }
.discover-city-card-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: var(--d-bronze); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.discover-city-card-top span:first-child { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.discover-city-card-top svg { width: 16px; height: 16px; flex: none; }
.discover-city-card h3 { overflow-wrap: anywhere; margin: 0 0 4px; font: 500 27px/1.18 'Fraunces', Georgia, serif; letter-spacing: -.01em; }
.discover-city-card h3 a { color: inherit; text-decoration: none; }
.discover-city-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.discover-city-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--d-gold); text-underline-offset: 5px; }
.discover-city-card :is(.dp-mayor, .discover-text-link) { position: relative; z-index: 1; }
.discover-city-region { margin: 0; color: var(--d-muted); font-size: 13px; }
.discover-city-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 16px; padding: 16px 0; border-block: 1px solid var(--d-line); }
.discover-city-facts > div { min-width: 0; }
.discover-city-facts span { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--d-muted); font-size: 11.5px; }
.discover-city-facts strong { display: block; color: var(--d-ink); font: 500 21px/1.1 'Fraunces', Georgia, serif; font-variant-numeric: tabular-nums; }
.dp-meter { display: block; height: 4px; margin-top: 9px; border-radius: 4px; background: var(--d-surface-alt); overflow: hidden; }
.dp-meter b { display: block; width: var(--v); height: 100%; border-radius: inherit; background: var(--d-residential); }
.dp-progress { margin-bottom: 20px; }
.dp-progress-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--d-muted); font-size: 11.5px; }
.dp-progress-label span:last-child { color: var(--d-ink); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dp-progress-track { height: 6px; border-radius: 6px; background: var(--d-surface-alt); overflow: hidden; }
.dp-progress-track b { display: block; width: var(--v); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--d-primary), color-mix(in srgb, var(--d-primary) 70%, var(--d-gold))); transform-origin: left; animation: dp-grow 1.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes dp-grow { from { transform: scaleX(0); } }
.dp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.dp-mayor { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--d-ink); font-size: 13px; font-weight: 650; text-decoration: none; }
.dp-mayor > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.dp-mayor small { display: block; color: var(--d-muted); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.dp-mayor:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.dp-monogram { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--d-gold); border-radius: 50%; background: var(--d-selected); color: var(--d-accent); font: 600 12px 'Fraunces', Georgia, serif; }
.discover-text-link { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--d-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.discover-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.discover-text-link svg { transition: transform .2s; }
.discover-city-card:hover .discover-text-link svg { transform: translateX(3px); }

.discover-empty { padding: 44px 32px; border: 1px dashed var(--d-field); border-radius: 16px; background: var(--d-surface); text-align: center; }
.discover-empty h3 { margin: 0 0 8px; font: 500 24px/1.25 'Fraunces', Georgia, serif; }
.discover-empty p { max-width: 460px; margin: 0 auto; color: var(--d-muted); line-height: 1.7; }
.discover-empty a { color: var(--d-accent); font-weight: 700; text-underline-offset: 3px; }
.dp-empty-icon { width: 44px; height: 44px; margin-bottom: 14px; color: var(--d-bronze); }
.dp-no-results { margin-top: 4px; }

/* Entwicklungsstufen */
.dp-stages { padding: 92px 0 10px; }
.dp-stage-list { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.dp-stage-list::before { content: ''; position: absolute; left: 6%; right: 6%; top: 41px; height: 1px; background: linear-gradient(90deg, var(--d-line), var(--d-gold), var(--d-line)); transform-origin: left; }
.dp-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px 22px; text-align: center; }
.dp-stage-icon { display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 14px; border: 1px solid var(--d-line); border-radius: 50%; background: var(--d-surface); color: var(--d-accent); box-shadow: var(--d-shadow); transition: transform .3s; }
.dp-stage-icon svg { width: 40px; height: 40px; }
.dp-stage:hover .dp-stage-icon { transform: translateY(-3px); }
.dp-stage-5 .dp-stage-icon { border-color: var(--d-gold); }
.dp-stage-step { color: var(--d-bronze); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.dp-stage strong { font: 500 20px/1.2 'Fraunces', Georgia, serif; }
.dp-stage-threshold { color: var(--d-muted); font-size: 12px; }
.dp-stage-count { margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--d-selected); color: var(--d-accent); font-size: 11.5px; font-weight: 700; }

/* Abschluss: grüner Markenbereich */
.dp-next {
    position: relative; display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.3fr) auto; gap: clamp(24px, 4vw, 48px); align-items: center;
    margin-top: 72px; padding: clamp(28px, 4vw, 48px); overflow: hidden; border-radius: 20px;
    background: var(--d-brand) radial-gradient(120% 140% at 0% 0%, #24412f 0%, var(--d-brand) 55%, #142519 100%); color: #fffefa; box-shadow: var(--d-shadow-lift);
}
.dp-next::after { content: ''; position: absolute; inset: 10px; border: 1px solid #d9bb7840; border-radius: 14px; pointer-events: none; }
.dp-next .discover-eyebrow { margin-bottom: 12px; color: #d9bb78; }
.dp-next h2 { margin-bottom: 10px; color: #fffefa; }
.dp-next p:not(.discover-eyebrow) { margin: 0; color: #e4e0d4; font-size: 14.5px; line-height: 1.75; }
.dp-next-ornament { display: block; width: 120px; height: 12px; margin-top: 18px; color: #d9bb78; }
.dp-next-art { width: 100%; max-width: 300px; height: auto; }
.dp-next-orbit circle { fill: none; stroke: #d9bb7859; stroke-width: 1; stroke-dasharray: 2 6; transform-origin: 160px 100px; animation: dp-spin 80s linear infinite; }
.dp-next-orbit circle + circle { animation-direction: reverse; animation-duration: 60s; }
.dp-next-compass { color: #d9bb78; transform-origin: 160px 100px; animation: dp-needle 9s ease-in-out infinite; }
.dp-next-skyline { fill: none; stroke: #b7cfa8; stroke-width: 1.3; stroke-linejoin: round; opacity: .6; }
@keyframes dp-needle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.dp-next-actions { flex-direction: column; align-items: stretch; position: relative; z-index: 1; }
.dp-button-light { background: #fffefa; color: var(--d-brand); }
.dp-button-light:hover { background: #f1ece0; transform: translateY(-1px); }
.dp-button-ghost { border-color: #fffefa66; color: #fffefa; }
.dp-button-ghost:hover { border-color: #d9bb78; background: #fffefa14; }
.dp-next :where(a):focus-visible { outline-color: #d9bb78; }

/* Einblenden beim Scrollen (nur mit JavaScript und ohne reduzierte Bewegung). */
.dp-js :is(.dp-kpis, .dp-atlas, .dp-stages, .dp-next) { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.dp-js :is(.dp-kpis, .dp-atlas, .dp-stages, .dp-next).is-visible { opacity: 1; transform: none; }
.dp-js .dp-stage-list::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1) .2s; }
.dp-js .dp-stages.is-visible .dp-stage-list::before { transform: scaleX(1); }
.dp-js .dp-stage { opacity: 0; transform: translateY(12px); transition: opacity .5s ease calc(.25s + var(--i) * .12s), transform .5s ease calc(.25s + var(--i) * .12s); }
.dp-js .dp-stages.is-visible .dp-stage { opacity: 1; transform: none; }

/* Pausieren: Schalter, reduzierte Bewegung oder außerhalb des Sichtfelds */
.dp-motion-paused :is(.dp-art, .dp-map-svg, .dp-next-art) *, .is-offscreen :is(.dp-art, .dp-map-svg, .dp-next-art) * { animation-play-state: paused !important; }

@media (max-width: 1020px) {
    .dp-hero { grid-template-columns: 1fr; }
    .dp-panorama { max-width: 680px; }
    .dp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-kpi:nth-child(3)::before { display: none; }
    .dp-kpi:nth-child(n + 3) { border-top: 1px solid var(--d-line); }
    .dp-atlas { grid-template-columns: 1fr; }
    .dp-biomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-field-search { grid-column: 1 / -1; }
    .discover-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-stage-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
    .dp-stage-list::before { display: none; }
    .dp-next { grid-template-columns: 1fr; }
    .dp-next-art { max-width: 220px; }
    .dp-next-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .discover-page { padding-bottom: 70px; }
    .discover-wrap { width: calc(100% - 32px); }
    .discover-breadcrumb { padding-top: 22px; }
    .dp-hero { padding: 30px 0 40px; gap: 32px; }
    .discover-page h1 { font-size: clamp(36px, 10.5vw, 50px); }
    .dp-actions > a { flex: 1 1 100%; }
    .dp-kpis { grid-template-columns: 1fr; }
    .dp-kpi { padding: 18px 20px; }
    .dp-kpi + .dp-kpi { border-top: 1px solid var(--d-line); }
    .dp-kpi::before { display: none; }
    .dp-atlas, .discover-directory, .dp-stages { padding-top: 64px; }
    .dp-biomes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dp-biome { grid-template-columns: 1fr; padding: 12px; }
    .dp-biome-icon { grid-row: auto; width: 34px; height: 34px; }
    .dp-biome div span { display: none; }
    .dp-biome em { grid-column: 1; }
    .dp-node-code { display: none; }
    .dp-node-label { font-size: 21px; stroke-width: 5px; }
    .dp-node-badge text { font-size: 11px; }
    .dp-toolbar { grid-template-columns: 1fr; padding: 16px; }
    .discover-city-grid { grid-template-columns: 1fr; }
    .discover-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .dp-stage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-stage-icon { width: 70px; height: 70px; }
    .dp-next-actions > a { flex: 1 1 100%; }
    .dp-panorama figcaption { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .discover-page *, .discover-page *::before { animation: none !important; transition: none !important; }
    .dp-js :is(.dp-kpis, .dp-atlas, .dp-stages, .dp-next, .dp-stage) { opacity: 1; transform: none; }
    .dp-js .dp-stage-list::before { transform: none; }
    .dp-art .pw-lit { opacity: .6; }
}

/* Stadt-Prädikate auf Verzeichniskarten */
.dp-card-badges { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dp-card-badges li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--ui-selected, #e8eee2); color: var(--ui-accent, #285740); border: 1px solid var(--d-line); font-size: 11px; font-weight: 600; line-height: 1.3; }
.dp-card-badges .dp-badge-more { background: var(--ui-surface-alt, #eee9df); color: var(--ui-bronze, #876632); }
