/* Öffentliches Bürgermeisterprofil (/spieler/{id}).
   Gemeinsame UI-Farbrollen aus theme.css: Elfenbein- und Steinflächen, Waldgrün für Aktionen,
   Bronze/Gold nur für feine Details. Tiefgrüne Markenbereiche: Hero, Karte, Abschluss.
   Gebietsfarben (Wohnen, Gewerbe, Industrie) behalten ihre feste Bedeutung.
   Alle Regeln sind auf .profile-page / .profile-shell begrenzt. */
.profile-page {
    --profile-paper: var(--ui-background);
    --profile-surface: var(--ui-surface);
    --profile-surface-soft: var(--ui-surface-alt);
    --profile-ink: var(--ui-ink);
    --profile-muted: var(--ui-muted);
    --profile-line: var(--ui-border);
    --profile-line-strong: var(--ui-field-border);
    --profile-primary: var(--ui-primary);
    --profile-primary-hover: var(--ui-primary-hover);
    --profile-on-primary: var(--ui-on-primary, #fffefa);
    --profile-green: var(--ui-accent);
    --profile-selected: var(--ui-selected);
    --profile-gold: var(--ui-bronze);
    --profile-gold-soft: var(--ui-gold);
    --profile-brand: var(--ui-brand, #1b3127);
    --profile-brand-deep: var(--ui-brand-deep, #14251d);
    --profile-brand-ink: #fffefa;
    --profile-brand-muted: #d3dbcd;
    --profile-brand-soft: #b9c5b3;
    --profile-brand-gold: #d9bb78;
    --profile-brand-line: #d9bb7829;
    --zone-residential: #729454;
    --zone-commercial: #668fba;
    --zone-industrial: #c79a52;
    --profile-radius: 14px;
    --profile-shadow: 0 1px 2px #2f332e0a, 0 22px 44px -30px #2f332e4d;
    --profile-shadow-hover: 0 2px 4px #2f332e0d, 0 30px 56px -30px #2f332e66;
    --profile-ease: cubic-bezier(.2, .7, .2, 1);
    background: var(--profile-paper);
}
:root[data-theme="dark"] .profile-page {
    --profile-shadow: 0 1px 2px #0000002e, 0 22px 44px -28px #000000a6;
    --profile-shadow-hover: 0 2px 4px #00000038, 0 30px 56px -28px #000000c0;
}
.profile-shell { width: 100%; overflow: clip; color: var(--profile-ink); }
.profile-shell :where(a, button):focus-visible { outline: 2px solid var(--profile-green); outline-offset: 4px; border-radius: 6px; }
.profile-shell ::selection { color: #fffefa; background: #285740; }
.profile-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 40px; }
.profile-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.profile-shell .icon.tiny { width: 15px; height: 15px; }

.profile-label { display: inline-flex; align-items: center; gap: 9px; color: var(--profile-gold); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.profile-label > .icon { width: 17px; height: 17px; }
.profile-label-light { color: var(--profile-brand-gold); }

/* ——— Markenbereiche: Hero, Karte und Abschluss teilen das tiefe Waldgrün ——— */
.profile-hero, .profile-map, .profile-cta, .profile-notice-hero {
    --profile-gold: var(--profile-brand-gold);
    --profile-green: #b7cfa8;
}
.profile-hero {
    position: relative; isolation: isolate; color: var(--profile-brand-ink);
    background: radial-gradient(ellipse 55% 70% at 82% 38%, #284a3a, transparent 70%), linear-gradient(160deg, #1f382c, var(--profile-brand) 55%, var(--profile-brand-deep));
}
.profile-hero > .profile-container, .profile-hero-rail { position: relative; z-index: 2; }
.profile-hero-pattern {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
    background-image:
        radial-gradient(circle at 1px 1px, #d9bb7826 1px, transparent 1.4px),
        linear-gradient(115deg, transparent 49.6%, #d9bb780f 50%, transparent 50.4%);
    background-size: 28px 28px, 220px 220px;
    mask-image: linear-gradient(100deg, transparent 8%, #000 55%, #000 80%, transparent);
}

.profile-hud {
    display: flex; align-items: center; gap: 16px; min-height: 56px; padding-block: 10px;
    border-bottom: 1px solid var(--profile-brand-line); color: var(--profile-brand-soft);
    font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
}
.profile-hud-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--profile-brand-gold); }
.profile-hud-code { padding: 5px 12px; border: 1px solid #d9bb784d; border-radius: 999px; color: var(--profile-brand-muted); letter-spacing: 2px; }
.profile-hud-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.profile-tool {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px;
    border: 1px solid #d3dbcd40; border-radius: 999px; color: var(--profile-brand-muted);
    font-size: 12px; font-weight: 650; letter-spacing: .2px; text-transform: none;
    transition: border-color .2s, color .2s, background-color .2s;
}
.profile-tool:hover { border-color: var(--profile-brand-gold); color: var(--profile-brand-ink); background: #fffefa0d; }
.profile-tool:disabled { opacity: .7; cursor: default; }
.profile-tool .icon { color: var(--profile-brand-gold); }
.profile-hero :where(a, button):focus-visible, .profile-map :where(a):focus-visible, .profile-cta :where(a):focus-visible { outline-color: var(--profile-brand-gold); }

.profile-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 56px 40px; }
.profile-kicker { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--profile-brand-gold); }
.profile-kicker-sep { width: 18px; height: 1px; background: #d9bb7880; }
.profile-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--profile-status); box-shadow: 0 0 0 3px #fffefa1a; animation: profile-status-pulse 2.6s ease-out infinite; }
@keyframes profile-status-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--profile-status) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.profile-identity { min-width: 0; }
.profile-identity h1 { margin: 22px 0 14px; font: 420 clamp(44px, 6vw, 82px)/1.03 'Fraunces', Georgia, serif; letter-spacing: -2.6px; color: var(--profile-brand-ink); overflow-wrap: anywhere; }
.profile-handle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--profile-brand-soft); }
.profile-handle-stage { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border: 1px solid #d9bb7859; border-radius: 999px; color: var(--profile-brand-gold); background: #d9bb780f; letter-spacing: 1px; }
.profile-summary { max-width: 580px; margin-top: 22px; color: var(--profile-brand-muted); font-size: 16px; line-height: 1.8; }
.profile-meta { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 0; margin: 32px 0 0; padding: 0; }
.profile-meta > div { min-width: 0; padding: 2px 22px 2px 0; margin-right: 22px; border-right: 1px solid #d3dbcd2e; }
.profile-meta > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.profile-meta dt { display: flex; align-items: center; gap: 7px; color: var(--profile-brand-soft); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; }
.profile-meta dt .icon { color: var(--profile-brand-gold); }
.profile-meta dd { margin: 8px 0 0; font: 650 15px/1.45 'Manrope', sans-serif; color: var(--profile-brand-ink); overflow-wrap: anywhere; }
.profile-meta dd span { color: var(--profile-brand-soft); font-weight: 550; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.profile-privacy { display: flex; align-items: flex-start; gap: 9px; margin-top: 24px; max-width: 580px; color: var(--profile-brand-soft); font-size: 13px; line-height: 1.65; }
.profile-privacy .icon { flex: none; margin-top: 2px; color: var(--profile-brand-gold); }

.profile-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 14px 24px;
    border: 1px solid transparent; border-radius: 8px; color: var(--profile-on-primary); background: var(--profile-primary);
    font-size: 14px; font-weight: 700; line-height: 1.4;
    transition: background-color .2s, transform .2s, box-shadow .2s, border-color .2s, color .2s;
}
.profile-action:hover { background: var(--profile-primary-hover); transform: translateY(-1px); }
.profile-action .icon { transition: transform .2s; }
.profile-action:hover .icon { transform: translateX(3px); }
.profile-action-ivory { color: var(--profile-brand); background: #fffefa; border-color: #d9bb7899; box-shadow: 0 0 0 4px #d9bb7814, 0 16px 34px -14px #000000a0; }
.profile-action-ivory:hover { color: var(--profile-brand); background: #f6f1e4; border-color: var(--profile-brand-gold); box-shadow: 0 0 0 5px #d9bb7826, 0 18px 36px -14px #000000b0; }
.profile-action-ghost { color: var(--profile-brand-ink); border-color: #d3dbcd59; background: transparent; }
.profile-action-ghost:hover { color: var(--profile-brand-ink); border-color: var(--profile-brand-gold); background: #fffefa0f; }

/* ——— Siegel: Guilloche, Lorbeer und Stadtknoten ——— */
.profile-seal { margin: 0; min-width: 0; }
.profile-seal-svg { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; overflow: visible; }
.profile-seal figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.profile-seal-stat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid #d3dbcd33; border-radius: 999px; color: var(--profile-brand-muted); background: #14251d66; font: 650 13px/1 'Manrope', sans-serif; }
.profile-seal-stat .icon { color: var(--profile-brand-gold); }
.seal-face { filter: drop-shadow(0 34px 50px #0a140f80); }
.seal-rim { fill: none; stroke-width: 2.2; }
.seal-rim-inner, .seal-orbit { fill: none; stroke: #d9bb7840; stroke-width: 1; }
.seal-orbit { stroke-dasharray: 1 7; }
.seal-ticks line { stroke: #d3dbcd38; stroke-width: 1; }
.seal-ticks .seal-tick-major { stroke: #d9bb78b3; stroke-width: 1.4; }
.seal-guilloche path { fill: none; stroke: #d9bb78; stroke-width: .7; }
.seal-guilloche-a { opacity: .36; transform-box: view-box; transform-origin: 260px 260px; animation: seal-spin 160s linear infinite; }
.seal-guilloche-b { opacity: .3; transform-box: view-box; transform-origin: 260px 260px; animation: seal-spin 120s linear infinite reverse; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
.seal-arc-text { fill: var(--profile-brand-muted); font: 700 13px 'DM Sans', sans-serif; letter-spacing: 5px; text-transform: uppercase; }
.seal-laurel-stem { fill: none; stroke: #d9bb7899; stroke-width: 1.1; }
.seal-laurel-leaf { fill: #d9bb7833; stroke: #d9bb78cc; stroke-width: .8; animation: seal-leaf .7s var(--profile-ease) both; animation-delay: calc(var(--leaf) * 70ms + .3s); }
@keyframes seal-leaf { from { opacity: 0; } to { opacity: 1; } }
.seal-medallion { fill: #14251db3; stroke: #d9bb7859; stroke-width: 1; }
.seal-medallion-line { fill: none; stroke: #d9bb7899; stroke-width: 1; stroke-dasharray: .006 .01; }
.seal-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: seal-draw 2.4s var(--profile-ease) .15s forwards; }
.seal-medallion-line.seal-draw { stroke-dasharray: 1; animation-delay: .5s; }
@keyframes seal-draw { to { stroke-dashoffset: 0; } }
.seal-crest { color: #d9bb78; opacity: .32; }
.seal-avatar-ring { fill: none; stroke: #d9bb78; stroke-width: 2; }
.seal-monogram { fill: #fffefa; font: 460 78px 'Fraunces', Georgia, serif; letter-spacing: 4px; }
.seal-ribbon { fill: #d9bb78; stroke: #f2e4bf; stroke-width: 1; }
.seal-role { fill: #1b3127; font: 800 12px 'DM Sans', sans-serif; letter-spacing: 3.4px; }
.seal-stars path { fill: #d9bb78; }
.seal-orbit-node circle:not(.seal-orbit-halo) { fill: #f2e4bf; stroke: #1b3127; stroke-width: 2; }
.seal-orbit-halo { fill: #d9bb7814; stroke: #d9bb7880; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: seal-halo 3.6s ease-out infinite; animation-delay: calc(var(--seal-node-delay) * .9s); }
@keyframes seal-halo { 0% { transform: scale(.5); opacity: 1; } 75%, 100% { transform: scale(1.6); opacity: 0; } }

/* ——— Kennzahlenleiste mit echten Mini-Diagrammen ——— */
.profile-hero-rail { border-top: 1px solid var(--profile-brand-line); background: #14251db3; }
.profile-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-kpi { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 12px; align-items: center; padding: 26px 24px 24px; min-width: 0; }
.profile-kpi + .profile-kpi { border-left: 1px solid var(--profile-brand-line); }
.profile-kpi-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #d9bb7866; border-radius: 50%; color: var(--profile-brand-ink); background: radial-gradient(circle at 35% 30%, #d9bb781f, transparent 70%); }
.profile-kpi-icon svg { width: 25px; height: 25px; }
.profile-kpi dl { margin: 0; min-width: 0; }
.profile-kpi dt { color: var(--profile-brand-soft); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.profile-kpi dd { margin: 5px 0 0; font: 480 30px/1.1 'Fraunces', Georgia, serif; color: var(--profile-brand-ink); font-variant-numeric: tabular-nums; }
.profile-kpi dd em { font-style: normal; color: var(--profile-brand-soft); font-size: 17px; }
.profile-kpi-visual { grid-column: 1 / -1; display: flex; gap: 3px; height: 6px; }
.profile-kpi-share i, .profile-kpi-mix i { flex: var(--share) 1 0; min-width: 0; border-radius: 3px; background: var(--tone, #d9bb78); transform: scaleX(0); transform-origin: left; animation: profile-grow 1.2s var(--profile-ease) .4s forwards; }
.profile-kpi-share, .profile-kpi-mix { border-radius: 3px; background: #d3dbcd1a; }
.profile-kpi-mix .zone-residential { background: var(--zone-residential); }
.profile-kpi-mix .zone-commercial { background: var(--zone-commercial); }
.profile-kpi-mix .zone-industrial { background: var(--zone-industrial); }
.profile-kpi-slots i { flex: 1; border-radius: 3px; border: 1px solid #d3dbcd40; }
.profile-kpi-slots i.is-filled { border-color: transparent; background: linear-gradient(90deg, #b7cfa8, #d9bb78); transform: scaleX(0); transform-origin: left; animation: profile-grow .9s var(--profile-ease) forwards; animation-delay: calc(var(--slot) * .18s + .4s); }
@keyframes profile-grow { to { transform: scaleX(1); } }
.profile-kpi-icon-ring { position: relative; border-color: transparent; }
.profile-kpi-icon-ring > .profile-kpi-gauge { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); }
.profile-gauge-track, .profile-gauge-value { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.profile-gauge-track { stroke: #d3dbcd2e; }
.profile-gauge-value { stroke: #d9bb78; stroke-dasharray: 0 100; animation: profile-gauge 1.6s var(--profile-ease) .5s forwards; }
.profile-kpi-ticks { gap: 3px; }
.profile-kpi-ticks i { flex: 1; border-radius: 2px; background: #d3dbcd1f; }
.profile-kpi-ticks i.is-on { background: #b7cfa8; opacity: 0; animation: profile-tick .4s ease forwards; animation-delay: calc(var(--slot) * 45ms + .5s); }
@keyframes profile-tick { to { opacity: 1; } }
@keyframes profile-gauge { to { stroke-dasharray: var(--gauge) 100; } }

/* ——— Bereichsnavigation ——— */
.profile-subnav { position: sticky; top: var(--site-nav-h, 0px); z-index: 20; border-bottom: 1px solid var(--profile-line); background: color-mix(in srgb, var(--profile-surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.profile-subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.profile-subnav-inner::-webkit-scrollbar { display: none; }
.profile-subnav a { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 8px 14px; border-radius: 8px; color: var(--profile-muted); font-size: 14px; font-weight: 650; transition: color .2s, background-color .2s; }
.profile-subnav a .icon { color: var(--profile-gold); }
.profile-subnav a:hover { color: var(--profile-green); background: var(--profile-selected); }
.profile-subnav a[aria-current="true"] { color: var(--profile-green); background: var(--profile-selected); }
.profile-subnav a[aria-current="true"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--profile-green); }

/* ——— Gemeinsame Abschnitte ——— */
.profile-body { position: relative; background: var(--profile-paper); }
.profile-section { padding-block: 88px 0; scroll-margin-top: calc(var(--site-nav-h, 0px) + 64px); }
.profile-section-head { max-width: 660px; margin-bottom: 40px; }
.profile-section-head h2 { margin: 14px 0 0; font: 420 clamp(32px, 3.6vw, 48px)/1.12 'Fraunces', Georgia, serif; letter-spacing: -1.4px; color: var(--profile-ink); }
.profile-section-head h2 em, .profile-panel-head h2 em { font-style: italic; font-weight: 380; color: var(--profile-green); }
.profile-section-head p { margin: 14px 0 0; color: var(--profile-muted); font-size: 16px; line-height: 1.75; max-width: 540px; }
.profile-panel { position: relative; min-width: 0; border: 1px solid var(--profile-line); border-radius: var(--profile-radius); background: var(--profile-surface); padding: 32px; box-shadow: var(--profile-shadow); }
.profile-panel-head h2 { margin: 12px 0 0; font: 420 clamp(26px, 2.6vw, 34px)/1.15 'Fraunces', Georgia, serif; letter-spacing: -1px; color: var(--profile-ink); }
.profile-panel-head h3 { margin: 0; font: 700 19px/1.3 'Manrope', sans-serif; letter-spacing: -.2px; color: var(--profile-ink); }
.profile-panel-head p { margin: 6px 0 0; color: var(--profile-muted); font-size: 14px; line-height: 1.65; }
.profile-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.profile-text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--profile-green); font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--profile-gold-soft) 70%, transparent); text-underline-offset: 5px; }
.profile-text-link:hover { text-decoration-color: var(--profile-green); }
.profile-text-link .icon { transition: transform .2s; }
.profile-text-link:hover .icon { transform: translateX(3px); }

/* ——— Portfolio ——— */
.profile-cities { display: grid; gap: 28px; }
.profile-city-card { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); border: 1px solid var(--profile-line); border-radius: var(--profile-radius); background: var(--profile-surface); overflow: hidden; box-shadow: var(--profile-shadow); transition: border-color .35s, box-shadow .35s, transform .35s var(--profile-ease); }
.profile-city-card:hover { border-color: color-mix(in srgb, var(--profile-gold-soft) 70%, var(--profile-line)); transform: translateY(-2px); box-shadow: var(--profile-shadow-hover); }
.profile-city-visual { position: relative; display: block; min-height: 100%; overflow: hidden; background: var(--profile-surface-soft); }
.profile-city-visual::after { content: ''; position: absolute; inset: 0; box-shadow: inset -1px 0 0 var(--profile-line); pointer-events: none; }
.profile-city-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--profile-ease); }
.profile-city-card:hover .profile-city-visual img { transform: scale(1.035); }
.profile-city-chip { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; color: #fffefa; background: #1b3127d9; border: 1px solid #d9bb7859; font-size: 12px; font-weight: 700; letter-spacing: .3px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.profile-city-chip .icon { color: #d9bb78; }
.profile-city-biome { top: 16px; left: 16px; }
.profile-city-rank { bottom: 16px; left: 16px; }
.profile-city-body { padding: 28px 30px 26px; min-width: 0; }
.profile-city-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-city-index { color: var(--profile-gold); font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.profile-stage { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; color: var(--profile-green); background: var(--profile-selected); font-size: 12px; font-weight: 700; }
.profile-stage .icon { color: var(--profile-gold); }
.profile-city-body h3 { margin: 10px 0 4px; font: 440 clamp(26px, 2.4vw, 32px)/1.15 'Fraunces', Georgia, serif; letter-spacing: -.8px; color: var(--profile-ink); overflow-wrap: anywhere; }
.profile-city-link { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.profile-city-link:hover { text-decoration-color: var(--profile-gold-soft); }
.profile-city-region { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--profile-muted); font-size: 14px; }
.profile-city-region .icon { color: var(--profile-gold); }
.profile-city-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; }
.profile-city-stats > div { border-left: 1px solid var(--profile-line); padding-left: 12px; min-width: 0; }
.profile-city-stats > div:first-child { border-left: 0; padding-left: 0; }
.profile-city-stats dt { color: var(--profile-muted); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.profile-city-stats dd { margin: 5px 0 0; font: 700 18px/1.2 'Manrope', sans-serif; color: var(--profile-ink); font-variant-numeric: tabular-nums; }
.profile-city-stats dd span { color: var(--profile-muted); font-weight: 600; font-size: 14px; }

.profile-city-chart { margin: 22px 0 0; padding: 14px 16px 10px; border: 1px solid var(--profile-line); border-radius: 10px; background: color-mix(in srgb, var(--profile-surface-soft) 45%, var(--profile-surface)); }
.profile-city-chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--profile-muted); font-size: 12px; font-weight: 650; }
.profile-city-chart figcaption span { display: inline-flex; align-items: center; gap: 7px; }
.profile-chart-note { margin-left: auto; letter-spacing: .6px; text-transform: uppercase; font-size: 11px; }
.profile-legend-line, .profile-legend-mood { width: 16px; height: 0; border-top: 2px solid var(--profile-green); }
.profile-legend-mood { border-top: 2px dashed var(--profile-gold); }
.profile-chart { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.profile-chart-grid path { stroke: var(--profile-line); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.profile-chart-stop-top { stop-color: var(--profile-green); stop-opacity: .2; }
.profile-chart-stop-bottom { stop-color: var(--profile-green); stop-opacity: 0; }
.profile-chart-area { opacity: 0; transition: opacity 1s ease .9s; }
.profile-chart-line, .profile-chart-mood { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--profile-ease) .2s; }
.profile-chart-line { stroke: var(--profile-green); stroke-width: 2.2; }
.profile-chart-mood { stroke: var(--profile-gold); stroke-width: 1.4; stroke-dasharray: 1; opacity: .85; transition-delay: .5s; }
.profile-chart-dot { fill: var(--profile-surface); stroke: var(--profile-green); stroke-width: 2; opacity: 0; transition: opacity .4s ease 1.8s; }
.profile-chart-halo { fill: none; stroke: var(--profile-green); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
[data-profile-drawn] .profile-chart-area { opacity: 1; }
[data-profile-drawn] :is(.profile-chart-line, .profile-chart-mood) { stroke-dashoffset: 0; }
[data-profile-drawn] .profile-chart-dot { opacity: 1; }
[data-profile-drawn] .profile-chart-halo { animation: profile-halo 2.8s ease-out 2s infinite; }
@keyframes profile-halo { 0% { transform: scale(.5); opacity: .8; } 80%, 100% { transform: scale(2); opacity: 0; } }
.profile-chart-empty { display: flex; align-items: center; gap: 8px; min-height: 70px; color: var(--profile-muted); font-size: 13px; }
.profile-chart-empty .icon { color: var(--profile-gold); }

.profile-stage-progress { margin-top: 18px; }
.profile-stage-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--profile-muted); font-size: 13px; font-weight: 600; }
.profile-stage-row span { display: inline-flex; align-items: center; gap: 6px; }
.profile-stage-row .icon { width: 13px; height: 13px; color: var(--profile-gold); }
.profile-stage-row b { color: var(--profile-ink); font: 700 13px 'Manrope', sans-serif; font-variant-numeric: tabular-nums; }
.profile-progress { display: block; height: 6px; margin-top: 9px; border-radius: 3px; background: var(--profile-surface-soft); overflow: hidden; }
.profile-progress::after { content: ''; display: block; height: 100%; width: calc(var(--profile-meter) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--profile-primary), color-mix(in srgb, var(--profile-gold-soft) 80%, var(--profile-primary))); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--profile-ease) .4s; }
[data-profile-drawn] .profile-progress::after { transform: scaleX(1); }
.profile-city-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--profile-line); }
.profile-landmarks { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.profile-landmarks li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--profile-line); border-radius: 999px; color: var(--profile-ink); background: var(--profile-surface); font-size: 12px; font-weight: 650; }
.profile-landmarks li .icon { width: 14px; height: 14px; color: var(--profile-gold); }
.profile-landmarks li.is-empty { color: var(--profile-muted); border-style: dashed; }

.profile-empty { padding: 48px 40px; border: 1px dashed var(--profile-line-strong); border-radius: var(--profile-radius); background: var(--profile-surface); text-align: center; }
.profile-empty-blueprint { display: block; width: min(560px, 100%); height: auto; margin-inline: auto; overflow: visible; }
.profile-blueprint-line { fill: none; stroke: var(--profile-green); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: seal-draw 3s var(--profile-ease) .3s forwards; }
.profile-blueprint-detail { fill: none; stroke: var(--profile-gold); stroke-width: 1; stroke-dasharray: 3 5; opacity: .7; }
.profile-blueprint-ground { stroke: var(--profile-line-strong); stroke-width: 1.5; }
.profile-blueprint-compass { stroke: var(--profile-gold); stroke-width: 1; }
.profile-empty-scan { fill: none; stroke: var(--profile-gold); stroke-width: 1; stroke-dasharray: 4 9; transform-box: fill-box; transform-origin: center; animation: seal-spin 26s linear infinite; }
.profile-empty-copy { margin-top: 20px; color: var(--profile-muted); font-size: 15px; line-height: 1.7; }
.profile-empty-copy a { color: var(--profile-green); font-weight: 700; text-decoration: underline; text-decoration-color: var(--profile-gold-soft); text-underline-offset: 4px; }

/* ——— Bilanz: Radar und Stadtstruktur ——— */
.profile-radar { display: block; width: min(100%, 360px); height: auto; margin: 18px auto 4px; overflow: visible; }
.profile-radar-ring { fill: none; stroke: var(--profile-line); stroke-width: 1; }
.profile-radar-ring:nth-child(even) { stroke-dasharray: 3 5; }
.profile-radar-axes line { stroke: var(--profile-line); stroke-width: 1; }
.profile-radar-area { fill: color-mix(in srgb, var(--profile-green) 16%, transparent); stroke: var(--profile-green); stroke-width: 2; stroke-linejoin: round; transform-box: view-box; transform-origin: 170px 160px; transform: scale(.15); opacity: 0; transition: transform 1.6s var(--profile-ease), opacity .8s ease; }
[data-profile-drawn] .profile-radar-area { transform: scale(1); opacity: 1; }
.profile-radar-nodes circle { fill: var(--profile-surface); stroke: var(--profile-gold); stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--profile-ease); transition-delay: calc(var(--node-delay) + .8s); }
[data-profile-drawn] .profile-radar-nodes circle { transform: scale(1); }
.profile-radar-core { fill: var(--profile-gold); }
.profile-radar-label { fill: var(--profile-muted); font: 700 11px 'DM Sans', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.profile-radar-empty { display: grid; place-items: center; gap: 18px; min-height: 240px; margin-top: 20px; color: var(--profile-muted); font-size: 14px; text-align: center; }
.profile-radar-empty-ring { width: 120px; height: 120px; border-radius: 50%; border: 1.5px dashed var(--profile-gold-soft); animation: seal-spin 24s linear infinite; }
.profile-signal-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin: 18px 0 0; padding: 0; }
.profile-signal-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding-top: 12px; border-top: 1px solid var(--profile-line); font-size: 14px; color: var(--profile-muted); }
.profile-signal-list .icon { color: var(--profile-gold); }
.profile-signal-list b { font: 700 14px 'Manrope', sans-serif; color: var(--profile-ink); font-variant-numeric: tabular-nums; }
.profile-signal-list i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--profile-surface-soft); overflow: hidden; }
.profile-signal-list i::after { content: ''; display: block; height: 100%; width: calc(var(--profile-meter) * 100%); border-radius: inherit; background: var(--profile-primary); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--profile-ease) .5s; }
:root[data-theme="dark"] .profile-signal-list i::after { background: var(--profile-green); }
[data-profile-drawn] .profile-signal-list i::after { transform: scaleX(1); }

.profile-donut-wrap { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 22px; }
.profile-donut { display: block; width: 100%; height: auto; overflow: visible; }
.profile-donut-track { fill: none; stroke: var(--profile-surface-soft); stroke-width: 22; }
.profile-donut-ticks { fill: none; stroke: var(--profile-gold-soft); stroke-width: 4; stroke-dasharray: .5 5.2; opacity: .7; }
.profile-donut-part { fill: none; stroke-width: 22; stroke-dasharray: 0 100; stroke-dashoffset: var(--off); transition: stroke-dasharray 1.4s var(--profile-ease) .3s; }
[data-profile-drawn] .profile-donut-part { stroke-dasharray: var(--len) 100; }
.profile-donut-part.zone-residential { stroke: var(--zone-residential); }
.profile-donut-part.zone-commercial { stroke: var(--zone-commercial); }
.profile-donut-part.zone-industrial { stroke: var(--zone-industrial); }
.profile-donut-value { fill: var(--profile-ink); font: 480 32px 'Fraunces', Georgia, serif; }
.profile-donut-caption { fill: var(--profile-muted); font: 700 10px 'DM Sans', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; }
.profile-legend { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.profile-legend li { display: grid; grid-template-columns: 12px 1fr auto 44px; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--profile-line); font-size: 14px; color: var(--profile-ink); }
.profile-legend li:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-legend i { width: 12px; height: 12px; border-radius: 3px; }
.profile-legend i.zone-residential { background: var(--zone-residential); }
.profile-legend i.zone-commercial { background: var(--zone-commercial); }
.profile-legend i.zone-industrial { background: var(--zone-industrial); }
.profile-legend b { font: 700 14px 'Manrope', sans-serif; font-variant-numeric: tabular-nums; }
.profile-legend em { font-style: normal; color: var(--profile-muted); text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 28px 0 0; padding: 0; border: 1px solid var(--profile-line); border-radius: 10px; overflow: hidden; background: var(--profile-line); }
.profile-facts > div { padding: 14px 16px; background: var(--profile-surface); min-width: 0; }
.profile-facts dt { display: flex; align-items: center; gap: 7px; color: var(--profile-muted); font-size: 12px; font-weight: 650; }
.profile-facts dt .icon { flex: none; color: var(--profile-gold); }
.profile-facts dd { margin: 6px 0 0; font: 480 24px/1.1 'Fraunces', Georgia, serif; color: var(--profile-ink); font-variant-numeric: tabular-nums; }
.profile-facts dd span { color: var(--profile-muted); font-size: 15px; }

/* ——— Auszeichnungen ——— */
.profile-honors-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.profile-honors-head .profile-section-head { margin-bottom: 0; }
.profile-honors-total { position: relative; display: grid; place-items: center; width: 132px; height: 132px; flex: none; }
.profile-honors-total svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.profile-total-track { fill: var(--profile-surface); stroke: var(--profile-surface-soft); stroke-width: 7; }
.profile-total-value { fill: none; stroke: var(--profile-gold-soft); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--profile-ease) .3s; }
[data-profile-drawn] .profile-total-value { stroke-dasharray: var(--gauge) 100; }
.profile-honors-total > span { position: relative; display: grid; justify-items: center; color: var(--profile-muted); font-size: 13px; font-weight: 600; line-height: 1.2; }
.profile-honors-total b { color: var(--profile-ink); font: 480 36px/1 'Fraunces', Georgia, serif; }
.profile-honors-total small { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--profile-gold); }
.profile-honor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.profile-honor { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--profile-line); border-radius: var(--profile-radius); background: var(--profile-surface); box-shadow: var(--profile-shadow); transition: transform .3s var(--profile-ease), box-shadow .3s, border-color .3s; }
.profile-honor:hover { transform: translateY(-2px); box-shadow: var(--profile-shadow-hover); }
.profile-honor.is-earned { border-color: color-mix(in srgb, var(--profile-gold-soft) 55%, var(--profile-line)); background: linear-gradient(160deg, color-mix(in srgb, var(--profile-gold-soft) 9%, var(--profile-surface)), var(--profile-surface) 60%); }
.profile-honor.is-open { background: var(--profile-surface); }
.profile-honor-medal { width: 84px; height: 84px; overflow: visible; }
.profile-honor-track { fill: none; stroke: var(--profile-surface-soft); stroke-width: 3; }
.profile-honor-progress { fill: none; stroke: var(--profile-green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--profile-ease) .4s; }
[data-profile-drawn] .profile-honor-progress { stroke-dasharray: var(--gauge) 100; }
.is-earned .profile-honor-track { stroke: color-mix(in srgb, var(--profile-gold-soft) 35%, transparent); }
.is-earned .profile-honor-progress { stroke: var(--profile-gold-soft); }
.profile-honor-rosette { fill: var(--profile-surface-soft); stroke: var(--profile-line-strong); stroke-width: .8; stroke-dasharray: 2 2.4; }
.is-earned .profile-honor-rosette { fill: #f2e4bf; stroke: #b58f4f; stroke-dasharray: none; }
.profile-honor-face { fill: var(--profile-surface); stroke: var(--profile-line); stroke-width: 1; }
.is-earned .profile-honor-face { fill: #285740; stroke: #d9bb78; stroke-width: 1.4; }
.profile-honor-inner { fill: none; stroke: var(--profile-line); stroke-width: .6; stroke-dasharray: .8 2.2; }
.is-earned .profile-honor-inner { stroke: #d9bb7899; }
.profile-honor-icon { color: var(--profile-muted); --profile-gold: var(--profile-muted); }
.is-earned .profile-honor-icon { color: #fffefa; --profile-gold: #d9bb78; }
.profile-honor-check circle { fill: #d9bb78; stroke: var(--profile-surface); stroke-width: 2.5; }
.profile-honor-check path { fill: none; stroke: #1b3127; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-earned .profile-honor-medal { animation: profile-medal-shine 6s ease-in-out infinite; animation-delay: var(--profile-card-delay, 0ms); }
@keyframes profile-medal-shine { 0%, 86%, 100% { filter: none; } 92% { filter: brightness(1.12); } }
.profile-honor-copy { min-width: 0; }
.profile-honor-copy strong { display: block; font: 700 16px/1.3 'Manrope', sans-serif; color: var(--profile-ink); }
.profile-honor-copy > span { display: block; margin-top: 4px; color: var(--profile-muted); font-size: 13px; line-height: 1.5; }
.profile-honor-state { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--profile-muted); font-size: 12px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.is-earned .profile-honor-state { color: var(--profile-gold); letter-spacing: .6px; text-transform: uppercase; }
.profile-honor-state .icon { width: 13px; height: 13px; }

/* ——— Chronik und Kennzeichen ——— */
.profile-timeline { list-style: none; display: grid; margin: 26px 0 0; padding: 0; }
.profile-timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 24px; }
.profile-timeline li::before { content: ''; position: absolute; left: 20px; top: 40px; bottom: 0; width: 1px; background: linear-gradient(var(--profile-gold-soft), var(--profile-line)); }
.profile-timeline li:last-child { padding-bottom: 0; }
.profile-timeline li:last-child::before { display: none; }
.profile-timeline-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--profile-line-strong); background: var(--profile-surface); color: var(--profile-muted); }
.profile-timeline-dot .icon { width: 20px !important; height: 20px !important; }
.profile-timeline li.is-done .profile-timeline-dot { border-color: var(--profile-gold-soft); background: var(--profile-selected); color: var(--profile-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--profile-gold-soft) 18%, transparent); }
.profile-timeline li.is-open .profile-timeline-dot { border-style: dashed; color: var(--profile-gold); }
.profile-timeline strong { display: block; font: 700 15px/1.4 'Manrope', sans-serif; color: var(--profile-ink); }
.profile-timeline li > div > span { display: block; margin-top: 2px; color: var(--profile-gold); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.profile-timeline p { margin: 5px 0 0; color: var(--profile-muted); font-size: 14px; line-height: 1.6; }
.profile-trait-list { list-style: none; display: grid; gap: 14px; margin: 24px 0 0; padding: 0; }
.profile-trait-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--profile-line); }
.profile-trait-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-trait-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--profile-green); background: var(--profile-selected); border: 1px solid color-mix(in srgb, var(--profile-gold-soft) 45%, var(--profile-line)); }
.profile-trait-icon svg { width: 26px; height: 26px; }
.profile-trait-list strong { display: block; font: 700 15px/1.4 'Manrope', sans-serif; color: var(--profile-ink); }
.profile-trait-list li > div > span { display: block; margin-top: 2px; color: var(--profile-muted); font-size: 13px; line-height: 1.55; }
.profile-presence { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; padding: 16px 18px; border-radius: 10px; background: var(--profile-surface-soft); }
.profile-presence-status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--profile-line); background: var(--profile-surface); font-size: 13px; font-weight: 700; color: var(--profile-ink); }
.profile-presence-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--profile-status); animation: profile-status-pulse 2.6s ease-out infinite; }
.profile-presence p { flex: 1 1 220px; color: var(--profile-muted); font-size: 13px; line-height: 1.6; }
.profile-presence p em { color: var(--profile-green); font-style: italic; }

/* ——— Territorium ——— */
.profile-territory-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .7fr); gap: 26px; align-items: stretch; }
.profile-map { position: relative; margin: 0; min-width: 0; border: 1px solid #2f4d3d; border-radius: var(--profile-radius); overflow: hidden; background: radial-gradient(120% 130% at 50% 0%, #22402f, var(--profile-brand) 70%); box-shadow: var(--profile-shadow); }
.profile-map-svg { display: block; width: 100%; height: auto; }
.profile-map-contours ellipse { fill: none; stroke: #d3dbcd; stroke-opacity: .1; stroke-width: 1; }
.profile-map-river { fill: none; stroke: #7d9fb4; stroke-width: 3.2; stroke-opacity: .4; stroke-linecap: round; }
.profile-map-coast path { fill: none; stroke: #d9bb78; stroke-opacity: .32; stroke-width: 1.2; stroke-dasharray: 3 9; animation: coast-flow 40s linear infinite; }
@keyframes coast-flow { to { stroke-dashoffset: -240; } }
.profile-region-ghost circle { fill: #d3dbcd; opacity: .3; }
.profile-map-route { fill: none; stroke: #d9bb78; stroke-width: 1.6; stroke-dasharray: 2 7; stroke-linecap: round; animation: route-flow 5s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -27; } }
.profile-map-pulse { fill: #fffefa; offset-rotate: 0deg; animation: map-travel 10s ease-in-out infinite alternate; }
@keyframes map-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.profile-node-pulse { fill: none; stroke: #d9bb78; stroke-opacity: .55; transform-box: fill-box; transform-origin: center; animation: territory-pulse 3.6s ease-out infinite; animation-delay: calc(var(--node-index) * .8s); }
@keyframes territory-pulse { 0% { transform: scale(.4); opacity: 1; } 75%, 100% { transform: scale(1.5); opacity: 0; } }
.profile-node-ring { fill: #1b3127; stroke: var(--tone); stroke-width: 3; }
.profile-node-core { fill: #fffefa; }
.profile-node-label { fill: #fffefa; font: 700 15px 'Manrope', sans-serif; paint-order: stroke; stroke: #1b3127; stroke-width: 5px; stroke-linejoin: round; }
.profile-node-sub { fill: #d3dbcd; font: 600 12px 'DM Sans', sans-serif; letter-spacing: .6px; paint-order: stroke; stroke: #1b3127; stroke-width: 5px; stroke-linejoin: round; }
.profile-map-compass circle { fill: #14251d99; stroke: #d9bb7866; }
.profile-map-compass path { fill: none; stroke: #d9bb78; stroke-width: 1; }
.profile-map-compass .profile-map-compass-north { fill: #d9bb78; }
.profile-map-compass text { fill: #d9bb78; font: 700 11px 'DM Sans', sans-serif; letter-spacing: 1px; }
.profile-map-empty { fill: #d3dbcd; opacity: .7; font: 700 13px 'DM Sans', sans-serif; letter-spacing: 5px; }
.profile-map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--profile-brand-line); color: var(--profile-brand-muted); font-size: 13px; font-weight: 600; }
.profile-map figcaption span { display: inline-flex; align-items: center; gap: 9px; }
.profile-map figcaption i { width: 7px; height: 7px; border-radius: 50%; background: #d9bb78; }
.profile-map figcaption a { display: inline-flex; align-items: center; gap: 7px; color: var(--profile-brand-ink); font-weight: 700; text-decoration: underline; text-decoration-color: #d9bb7880; text-underline-offset: 4px; }
.profile-map figcaption a:hover { text-decoration-color: #d9bb78; }
.profile-register-list { list-style: none; display: grid; gap: 4px; margin: 20px 0 0; padding: 0; counter-reset: register; }
.profile-register-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--profile-line); }
.profile-register-list li:last-child { border-bottom: 0; }
.profile-register-list i { width: 12px; height: 12px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 22%, transparent); }
.profile-register-list a { display: block; color: var(--profile-ink); font: 700 15px/1.35 'Manrope', sans-serif; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; overflow-wrap: anywhere; }
.profile-register-list a:hover { color: var(--profile-green); text-decoration-color: currentColor; }
.profile-register-list span { display: block; margin-top: 2px; color: var(--profile-muted); font-size: 12px; }
.profile-register-list b { display: grid; justify-items: end; font: 480 20px/1.1 'Fraunces', Georgia, serif; color: var(--profile-ink); font-variant-numeric: tabular-nums; }
.profile-register-list small { font: 700 10px 'DM Sans', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--profile-muted); }
.profile-register-empty { margin-top: 18px; color: var(--profile-muted); font-size: 14px; line-height: 1.7; }

/* ——— Abschluss ——— */
.profile-cta { position: relative; overflow: hidden; isolation: isolate; margin: 96px 40px 88px; border: 1px solid #2f4d3d; border-radius: 18px; color: var(--profile-brand-ink); background: radial-gradient(ellipse at 90% 20%, #2a4a3a, transparent 60%), linear-gradient(130deg, var(--profile-brand-deep), var(--profile-brand) 55%, #1f382c); }
.profile-cta-art { position: absolute; z-index: -1; right: 3%; bottom: 0; width: min(420px, 45%); opacity: .55; pointer-events: none; }
.profile-cta-art svg { display: block; width: 100%; height: auto; }
.profile-cta-line { fill: none; stroke: #d9bb78; stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.profile-cta-detail { fill: none; stroke: #d3dbcd; stroke-opacity: .35; stroke-width: 1; }
.profile-cta-sun { fill: none; stroke: #d9bb78; stroke-opacity: .7; stroke-dasharray: 2 4; transform-box: fill-box; transform-origin: center; animation: seal-spin 40s linear infinite; }
.profile-cta:has([data-profile-drawn]) .profile-cta-line { transition: stroke-dashoffset 3s var(--profile-ease) .3s; stroke-dashoffset: 0; }
.profile-cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; padding-block: 60px; }
.profile-cta h2 { margin: 14px 0 0; font: 420 clamp(30px, 3.2vw, 44px)/1.15 'Fraunces', Georgia, serif; letter-spacing: -1.2px; color: var(--profile-brand-ink); }
.profile-cta p { margin: 12px 0 0; max-width: 480px; color: var(--profile-brand-muted); font-size: 16px; line-height: 1.75; }
.profile-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ——— Hinweis (404 / 503) ——— */
.profile-notice-hero { min-height: 480px; display: flex; align-items: center; }
.profile-notice { padding-block: 90px; max-width: 680px; }
.profile-notice-art { width: 180px; margin-bottom: 28px; }
.profile-notice-svg { width: 100%; height: auto; overflow: visible; }
.profile-notice-pulse { animation: seal-halo 3.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.profile-notice-ring { stroke-dasharray: 220; stroke-dashoffset: 220; animation: profile-notice-draw 2s ease-out forwards; }
@keyframes profile-notice-draw { to { stroke-dashoffset: 0; } }
.profile-notice h1 { font: 420 clamp(34px, 4.4vw, 54px)/1.1 'Fraunces', Georgia, serif; letter-spacing: -1.6px; color: var(--profile-brand-ink); margin: 14px 0 16px; }
.profile-notice p { color: var(--profile-brand-muted); font-size: 16px; line-height: 1.8; max-width: 540px; }

/* ——— Einblenden und Bewegungssteuerung ——— */
[data-profile-reveal] { transition: opacity .8s ease, transform .8s var(--profile-ease); transition-delay: var(--profile-card-delay, 0ms); }
[data-profile-pending] { opacity: 0; transform: translateY(24px); }
.profile-shell[data-motion="paused"], .profile-shell[data-motion="paused"] *, .profile-shell[data-motion="paused"] *::before, .profile-shell[data-motion="paused"] *::after { animation-play-state: paused !important; }

/* ——— Responsiv ——— */
@media (max-width: 1180px) {
    .profile-honor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-meta { grid-template-columns: repeat(2, minmax(0, auto)); row-gap: 18px; }
    .profile-meta > div:nth-child(2) { border-right: 0; }
}
@media (max-width: 1080px) {
    .profile-hero-inner { grid-template-columns: 1fr; gap: 12px; padding-block: 44px 28px; }
    .profile-seal { order: -1; max-width: 360px; margin-inline: auto; width: 100%; }
    .profile-kpis { grid-template-columns: 1fr 1fr; }
    .profile-kpi:nth-child(3) { border-left: 0; }
    .profile-kpi:nth-child(n + 3) { border-top: 1px solid var(--profile-brand-line); }
    .profile-split { grid-template-columns: 1fr; }
    .profile-territory-grid { grid-template-columns: 1fr; }
    .profile-city-card { grid-template-columns: 1fr; }
    .profile-city-visual { aspect-ratio: 1200 / 560; min-height: 0; }
    .profile-city-visual::after { box-shadow: inset 0 -1px 0 var(--profile-line); }
    .profile-honor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .profile-container { padding-inline: 16px; }
    .profile-cta { margin: 72px 16px 64px; }
    .profile-hud { flex-wrap: wrap; gap: 10px; }
    .profile-hud-tools { margin-left: 0; width: 100%; }
    .profile-identity h1 { letter-spacing: -1.6px; }
    .profile-summary { font-size: 15px; }
    .profile-meta { grid-template-columns: 1fr 1fr; }
    .profile-meta > div { margin-right: 14px; padding-right: 14px; }
    .profile-kpis { grid-template-columns: 1fr; }
    .profile-kpi + .profile-kpi { border-left: 0; border-top: 1px solid var(--profile-brand-line); }
    .profile-kpi { padding-inline: 4px; }
    .profile-kpi-gauge { right: 4px; }
    .profile-section { padding-top: 64px; }
    .profile-panel { padding: 24px 20px; }
    .profile-city-body { padding: 22px 18px; }
    .profile-city-stats { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
    .profile-city-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
    .profile-signal-list { grid-template-columns: 1fr; }
    .profile-donut-wrap { grid-template-columns: 1fr; justify-items: center; }
    .profile-donut { max-width: 200px; }
    .profile-legend { width: 100%; }
    .profile-facts { grid-template-columns: 1fr 1fr; }
    .profile-honor-grid { grid-template-columns: 1fr; }
    .profile-honors-head { align-items: center; }
    .profile-actions .profile-action { flex: 1 1 100%; }
    .profile-chart-note { margin-left: 0; }
    .profile-cta-art { width: 70%; opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-shell *, .profile-shell *::before, .profile-shell *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
    [data-profile-reveal] { opacity: 1; transform: none; }
}
