
:root{
  --bg:#f5f3ee;
  --surface:rgba(255,255,255,.93);
  --surface-solid:#fff;
  --ink:#171a1c;
  --muted:#677077;
  --line:rgba(23,26,28,.10);
  --line-strong:rgba(23,26,28,.18);
  --green:#2f6e55;
  --green-soft:#e7efe9;
  --good:#7ea43c;
  --warn:#c98735;
  --open:#8d9499;
  --risk-low:#d9b38c;
  --risk-med:#a96f3c;
  --risk-high:#6b3f22;
  --shadow:0 18px 55px rgba(27,35,31,.15);
  --radius:22px;
  --topbar:118px;
  --font:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"Helvetica Neue",sans-serif;
}
*{box-sizing:border-box}
html,body,#app{height:100%;margin:0}
body{font-family:var(--font);font-size:16px;color:var(--ink);background:var(--bg);overflow:hidden;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button{color:inherit}
.topbar{
  min-height:122px;display:flex;align-items:center;justify-content:space-between;
  gap:26px;padding:10px 30px;background:rgba(250,249,246,.94);backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);position:relative;z-index:1000
}
.brand{display:flex;align-items:center;gap:18px;min-width:310px}
.brand-logo-header{width:auto;height:100px;object-fit:contain;display:block;flex:0 0 auto}
.brand-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}
.brand-name{font-size:18px;font-weight:500;letter-spacing:.02em;line-height:1.1}
.brand-sub{font-size:12px;line-height:1.3;color:var(--muted);margin-top:2px}
.ai-inline-note{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin-top:2px;padding:0;border:0;background:transparent;cursor:pointer;text-align:left;color:var(--muted)}
.ai-inline-note span{font-size:12px;line-height:1.3;font-weight:400}
.desktop-nav{display:flex;gap:4px;padding:4px;background:rgba(255,255,255,.55);border:1px solid var(--line);border-radius:999px}
.nav-link,.lang{border:0;background:transparent;cursor:pointer}
.nav-link{padding:8px 14px;border-radius:999px;font-size:13px;color:var(--muted)}
.nav-link.active{background:#fff;color:var(--ink);box-shadow:0 2px 12px rgba(0,0,0,.06)}
.language-switch{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.lang{padding:5px 3px;color:var(--muted)}
.lang.active{font-weight:800;color:var(--ink)}

.header-actions{display:flex;align-items:center;gap:12px}
.legal-menu-wrap{position:relative}
.legal-menu-btn{
  width:34px;height:34px;border:1px solid var(--line);background:rgba(255,255,255,.72);
  border-radius:50%;cursor:pointer;font-size:14px;font-weight:800;letter-spacing:1px;
  display:grid;place-items:center
}
.legal-menu{
  position:absolute;right:0;top:42px;min-width:180px;background:#fff;border:1px solid var(--line);
  border-radius:14px;box-shadow:var(--shadow);padding:6px;z-index:1400
}
.legal-menu[hidden]{display:none}
.legal-menu button{
  width:100%;border:0;background:#fff;text-align:left;padding:10px 11px;border-radius:10px;
  cursor:pointer;font-size:12px
}
.legal-menu button:hover{background:#f4f5f2}
.workspace{position:relative;height:calc(100% - var(--topbar));overflow:hidden}
.map-shell,#map{height:100%;width:100%}
#map{background:#dfe6df}
.leaflet-control-zoom{border:0!important;box-shadow:0 7px 24px rgba(0,0,0,.12)!important;border-radius:14px!important;overflow:hidden}
.leaflet-control-zoom a{border:0!important;color:#26302b!important}
.leaflet-control-attribution{font-size:10px!important;background:rgba(255,255,255,.75)!important}
.map-controls{
  position:absolute;top:22px;left:22px;z-index:800;width:min(370px,calc(100vw - 44px));
  display:grid;gap:10px
}
.search-wrap,.criterion-wrap{
  position:relative;background:var(--surface);backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.70);box-shadow:0 10px 35px rgba(27,35,31,.11)
}
.search-wrap{height:52px;border-radius:16px;display:flex;align-items:center;padding:0 15px}
.search-wrap svg{width:19px;height:19px;fill:none;stroke:#5e6864;stroke-width:1.8;margin-right:10px}
.search-wrap input{width:100%;border:0;outline:0;background:transparent;font-size:14px;color:var(--ink)}
.search-results{
  position:absolute;left:0;right:0;top:58px;background:#fff;border-radius:16px;
  border:1px solid var(--line);box-shadow:var(--shadow);max-height:330px;overflow:auto;padding:6px
}
.search-item{width:100%;border:0;background:#fff;text-align:left;padding:10px 11px;border-radius:11px;cursor:pointer}
.search-item:hover{background:#f4f5f2}
.search-item b{display:block;font-size:13px}
.search-item small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.criterion-wrap{border-radius:16px;padding:10px 13px}
.criterion-wrap label{display:block;font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.075em;color:var(--muted);margin-bottom:5px}
.criterion-wrap select{width:100%;border:0;outline:0;background:transparent;font-size:14px;font-weight:650;color:var(--ink)}
.map-legend{
  position:absolute;left:22px;bottom:24px;z-index:750;background:rgba(255,255,255,.90);
  border:1px solid rgba(255,255,255,.7);backdrop-filter:blur(14px);
  border-radius:14px;padding:9px 11px;display:flex;gap:11px;align-items:center;
  font-size:10px;color:var(--muted);box-shadow:0 8px 24px rgba(0,0,0,.08)
}
.legend-item{display:flex;align-items:center;gap:5px;white-space:nowrap}
.legend-dot{width:8px;height:8px;border-radius:50%}
.profile-panel{
  position:absolute;top:18px;right:18px;bottom:18px;z-index:850;width:410px;
  background:rgba(253,253,251,.95);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.75);
  border-radius:26px;box-shadow:var(--shadow);overflow:auto;padding:28px 24px 30px;
  transition:transform .3s ease,opacity .3s ease
}
.profile-panel.hidden{transform:translateX(calc(100% + 36px));opacity:0;pointer-events:none}
.panel-close,.modal-close{position:absolute;right:16px;top:14px;width:32px;height:32px;border:0;border-radius:50%;background:#f0f1ee;cursor:pointer;font-size:22px;line-height:1}
.eyebrow{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.11em;color:var(--green);margin-bottom:8px}
.place-title{font-size:27px;line-height:1.06;margin:0 42px 6px 0;letter-spacing:-.025em}
.place-country{font-size:12px;color:var(--muted);margin-bottom:15px}
.status-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.status-pill{display:inline-flex;align-items:center;border-radius:999px;background:var(--green-soft);color:#274d3d;padding:7px 10px;font-size:11px;font-weight:800}
.prototype-pill{display:inline-flex;border-radius:999px;border:1px solid var(--line);padding:6px 9px;font-size:10px;color:var(--muted)}
.hero-score-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:0 0 20px}
.hero-score{border:1px solid var(--line);background:rgba(255,255,255,.72);border-radius:13px;padding:9px 8px}
.hero-score .label{font-size:9px;line-height:1.18;color:var(--muted);min-height:22px}
.hero-score .value{font-size:15px;font-weight:850;margin-top:4px}
.profile-intro{font-size:13px;line-height:1.58;color:#353b38;border-top:1px solid var(--line);padding-top:17px}
.profile-intro b{font-weight:760}
.fallback-note{font-size:10px;color:#795a28;background:#fbf5e7;border-radius:10px;padding:8px 10px;margin:10px 0}
.profile-section{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}
.profile-section h3{font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 8px;color:#4a5550}
.metric-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid rgba(23,26,28,.055)}
.metric-label{font-size:11px;line-height:1.25;color:#343a37}
.score-badge{
  min-width:40px;text-align:center;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:850;color:#fff
}
.score-3{background:var(--green)}.score-2{background:var(--good);color:#13220b}.score-1{background:var(--warn)}
.score-0{background:var(--open)}.score--2{background:#d7d9d7;color:#555}
.risk-3{background:var(--risk-high)}.risk-2{background:var(--risk-med)}.risk-1{background:var(--risk-low);color:#3e2a1b}.risk-0{background:var(--open)}
.details-block{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}
.details-block details{border-bottom:1px solid var(--line);padding:10px 0}
.details-block summary{cursor:pointer;font-size:12px;font-weight:750;list-style:none;display:flex;justify-content:space-between}
.details-block summary::after{content:"+";font-size:17px;font-weight:400;color:var(--muted)}
.details-block details[open] summary::after{content:"–"}
.details-block p{font-size:11px;line-height:1.5;color:var(--muted)}
.privacy-copy{font-size:11px;line-height:1.5;color:var(--muted);margin-top:14px}
.place-marker{width:18px;height:18px;border-radius:50%;border:3px solid rgba(255,255,255,.95);box-shadow:0 0 0 1px rgba(0,0,0,.18),0 3px 10px rgba(0,0,0,.18)}
.unrated-marker{background:rgba(255,255,255,.9);border:2px solid #111;box-shadow:0 0 0 1px rgba(255,255,255,.7),0 3px 10px rgba(0,0,0,.18)}
.mobile-sheet{display:none}
.modal-backdrop{position:fixed;inset:0;z-index:1500;background:rgba(20,24,22,.32);backdrop-filter:blur(6px);display:grid;place-items:center;padding:18px}
.modal-backdrop[hidden]{display:none}
.modal{position:relative;width:min(560px,100%);max-height:78vh;overflow:auto;background:#fff;border-radius:24px;padding:28px;box-shadow:var(--shadow)}
.modal h2{margin-top:0;font-size:24px}
.modal p,.modal li{font-size:12px;line-height:1.6;color:#4f5753}

@media(max-width:900px){
  :root{--topbar:106px}
  .topbar{padding:0 14px}
  .brand{min-width:0;gap:9px}
  .brand-logo{width:72px;height:72px}
  .brand-name{font-size:16px}
  .brand-sub{display:none}
  .desktop-nav{display:none}
  .profile-panel{display:none}
  .map-controls{top:12px;left:12px;width:calc(100vw - 24px);gap:8px}
  .search-wrap{height:46px;border-radius:14px}
  .criterion-wrap{padding:8px 11px;border-radius:14px}
  .criterion-wrap label{font-size:10.5px}
  .map-legend{left:12px;bottom:158px;max-width:calc(100vw - 130px);overflow-x:auto;scrollbar-width:none}
  .mobile-sheet{
    display:block;position:absolute;left:8px;right:8px;bottom:8px;z-index:900;
    height:138px;background:rgba(253,253,251,.97);backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.8);border-radius:24px 24px 18px 18px;
    box-shadow:0 -10px 40px rgba(27,35,31,.15);overflow:hidden;padding:20px 18px 18px;
    transition:height .32s ease
  }
  .mobile-sheet.expanded{height:min(76vh,690px);overflow:auto}
  .sheet-handle{
    position:absolute;top:7px;left:50%;transform:translateX(-50%);
    width:44px;height:5px;border:0;border-radius:99px;background:#c8ccc9;padding:0
  }
  .mobile-close{
    position:absolute;
    top:10px;
    left:11px;
    z-index:3;
    width:30px;
    height:30px;
    border:0;
    border-radius:50%;
    background:#eef0ed;
    color:#28312d;
    font-size:21px;
    line-height:1;
    cursor:pointer;
    display:grid;
    place-items:center
  }
  .mobile-sheet.is-closed{display:none}
  .mobile-sheet .place-title{font-size:21px;margin-right:0}
  .mobile-sheet .place-country{margin-bottom:9px}
  .mobile-sheet .hero-score-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-bottom:12px;
    width:100%;
    overflow:hidden
  }
  .mobile-sheet .hero-score{
    min-width:0;
    text-align:center;
    padding:8px 5px
  }
  .mobile-sheet .hero-score .label{
    min-height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow-wrap:anywhere
  }
  .mobile-sheet .hero-score .value{text-align:center}
  .mobile-sheet:not(.expanded) .profile-intro,
  .mobile-sheet:not(.expanded) .profile-section,
  .mobile-sheet:not(.expanded) .details-block,
  .mobile-sheet:not(.expanded) .fallback-note{display:none}
  .mobile-sheet:not(.expanded) .status-row{margin-bottom:10px}
  .mobile-sheet:not(.expanded) .hero-score:nth-child(n+4){display:none}
  .mobile-sheet.expanded{padding-top:28px}
  .mobile-sheet #mobileContent{padding-top:7px}
}
@media(max-width:520px){
  .header-actions{margin-left:auto;align-self:flex-start}
  .legal-menu-btn{width:32px;height:32px}
  .legal-menu{right:0;top:39px;min-width:170px}
  .brand-logo-header{height:46px;max-width:104px}
  .brand-name{font-size:15px}
  .brand-sub,.ai-inline-note span{font-size:10.5px}
  .map-legend{display:none}
  .hero-score-grid{gap:5px}
  .hero-score{padding:8px 6px}
  .hero-score .label{font-size:8.5px}
}

.legal-placeholder{color:#9a6422;background:#fff6e8;padding:2px 5px;border-radius:5px}
.legal-note{padding-top:10px;border-top:1px solid var(--line);font-size:11px!important}

.legal-logo{
  display:block;
  width:300px;
  height:300px;
  max-width:100%;
  object-fit:contain;
  margin:8px auto 18px;
}
.place-country-groups{display:grid;gap:8px;margin-top:8px}
.place-country-row{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:10px 0;
  border-bottom:1px solid var(--line)
}
.place-country-name{
  font-size:11px;
  font-weight:800;
  color:#39433f;
  letter-spacing:.02em;
  padding-top:7px
}
.place-chip-wrap{display:flex;flex-wrap:wrap;gap:6px}
.place-chip{
  border:1px solid var(--line);
  background:#f7f8f5;
  border-radius:999px;
  padding:7px 10px;
  font-size:11px;
  cursor:pointer;
  line-height:1.15
}
.place-chip:hover{background:#eef2ed}
@media(max-width:520px){
  .place-country-row{grid-template-columns:1fr;gap:5px}
  .place-country-name{padding-top:0}
  .legal-logo{width:300px;height:300px}
}

.logo-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.ai-header-note{
  width:116px;
  margin-top:1px;
  padding:0;
  border:0;
  background:transparent;
  color:#56605b;
  cursor:pointer;
  font-size:8.5px;
  line-height:1.15;
  text-align:center;
}
.ai-header-note span{display:block;font-weight:760}
.ai-header-note small{
  display:block;
  margin-top:2px;
  font-size:7.8px;
  line-height:1.15;
  color:#7b817e;
}
.ai-header-note:hover{color:var(--green)}
.layers-info-btn{
  justify-self:start;
  border:1px solid rgba(255,255,255,.78);
  background:rgba(255,255,255,.90);
  backdrop-filter:blur(14px);
  border-radius:999px;
  padding:7px 11px;
  font-size:10px;
  font-weight:760;
  color:#48534e;
  box-shadow:0 7px 20px rgba(27,35,31,.08);
  cursor:pointer;
}
.method-block{margin:18px 0 0;padding-top:15px;border-top:1px solid var(--line)}
.method-block h3{font-size:13px;margin:0 0 8px}
.method-block p{font-size:11.5px;line-height:1.62;margin:7px 0;color:#4d5551}
.legend-explain{display:grid;gap:10px;margin-top:9px}
.legend-explain-item{display:grid;grid-template-columns:22px 1fr;gap:9px;align-items:start}
.legend-symbol{width:18px;height:18px;border-radius:50%;margin-top:1px}
.legend-longevity{background:rgba(20,72,145,.12);border:2px dashed #144891}
.legend-health{background:rgba(0,175,190,.16);border:2px solid #0091a0}
.legend-volcano{background:rgba(214,72,199,.10);border:2px solid #d648c7}
.legend-coast{background:rgba(17,109,119,.16);border:2px solid #116d77}
.legend-coast-future{background:rgba(17,109,119,.08);border:2px dotted #116d77}
.life-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.life-card{border:1px solid var(--line);border-radius:15px;padding:13px;background:#fafbf8}
.life-card h3{margin:0 0 5px;font-size:12px}
.life-card p{margin:0;font-size:10.5px;line-height:1.45;color:var(--muted)}
.prep-pill{display:inline-block;margin-top:8px;padding:4px 7px;border-radius:999px;background:#eef1ed;font-size:9px;color:#68716d}
@media(max-width:900px){
  .ai-header-note{width:92px;font-size:7.8px}
  .ai-header-note small{font-size:7px}
}
@media(max-width:520px){
  .brand-name{font-size:14px}
  .ai-header-note{width:78px}
  .life-grid{grid-template-columns:1fr}
}


/* ===== Version 5: Bewertung, Quellen, Länderübersicht ===== */
.legal-menu .menu-separator{margin-top:5px;border-top:1px solid var(--line);border-radius:0;padding-top:12px}
.why-box{margin:18px 0 20px;padding:15px;border:1px solid var(--line);border-radius:16px;background:rgba(247,248,245,.82)}
.why-box h2{font-size:14px;margin:0 0 12px;letter-spacing:-.01em}
.reason-block{margin-top:10px}
.reason-block>b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:6px}
.reason-chips{display:flex;flex-wrap:wrap;gap:5px}
.reason-chip{font-size:9.5px;line-height:1.25;padding:5px 7px;border-radius:8px;border:1px solid var(--line);background:#fff}
.reason-chip.strong{background:#e8f0eb;color:#295540}
.reason-chip.solid{background:#f0f4e8;color:#52672f}
.reason-chip.open{background:#f1f2f1;color:#697077}
.reason-chip.risk{background:#f4e9e0;color:#744a2d}
.reason-empty{font-size:11px;color:var(--muted)}
.rating-rule{font-size:10.5px!important;line-height:1.48!important;color:var(--muted)!important;margin:12px 0 0!important;padding-top:10px;border-top:1px solid var(--line)}
.source-list{display:grid;gap:7px}
.source-row{display:grid;gap:2px;text-decoration:none;color:inherit;border:1px solid var(--line);border-radius:11px;padding:9px 10px;background:#fff;transition:.15s ease}
.source-row:hover{border-color:var(--line-strong);transform:translateY(-1px)}
.source-row b{font-size:10.5px}
.source-row span{font-size:10px;color:#3f4843}
.source-row small{font-size:9px;color:var(--muted)}
.source-pending{font-size:10.5px!important;line-height:1.5!important;color:var(--muted)!important;background:#f4f5f2;border-radius:10px;padding:9px 10px}
.reviewed{font-size:9px;color:var(--muted);margin-top:10px}
.criteria-cloud{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.criteria-cloud span{font-size:10px;padding:6px 8px;border-radius:9px;background:#f3f4f1;border:1px solid var(--line)}
.quality-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}
.quality-grid>div{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fafaf8}
.quality-grid b{display:block;font-size:12px;margin-bottom:4px}
.quality-grid span{display:block;font-size:10.5px;line-height:1.45;color:var(--muted)}
.country-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px;padding:10px 12px;background:#f5f6f3;border:1px solid var(--line);border-radius:12px}
.country-summary b{font-size:11px}
.country-summary span{font-size:10px;color:var(--muted)}
.place-country-name{display:flex;align-items:center;justify-content:space-between;gap:10px}
.place-country-name small{font-size:9px;color:var(--muted);font-weight:600}
.documented-places{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 16px}
.documented-places span{font-size:10px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:#fafaf8}
.modal-sources{margin:10px 0 18px}
.modal h3{font-size:12px;margin:20px 0 8px}
@media(max-width:900px){
  .mobile-sheet .why-box{margin:12px 0 16px;padding:12px}
  .mobile-sheet:not(.expanded) .why-box{display:none}
  .quality-grid{grid-template-columns:1fr}
  .country-summary{align-items:flex-start;flex-direction:column;gap:3px}
}

.logo-stack,.ai-header-note{display:none !important}


/* ===== Version 7: Mobile header + compact legal popups ===== */
.ai-mobile{display:none}
.legal-logo{
  display:block;
  width:150px;
  height:auto;
  max-height:72px;
  object-fit:contain;
  object-position:left center;
  margin:0 0 12px 0;
}
.modal h2 + .legal-logo{margin-top:-2px}

@media(max-width:900px){
  :root{--topbar:88px}
  .topbar{
    height:88px;
    min-height:88px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    column-gap:8px;
    padding:8px 10px;
  }
  .brand{
    min-width:0;
    width:100%;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:9px;
  }
  .brand-logo-header{
    width:auto;
    height:52px;
    max-width:114px;
    object-fit:contain;
  }
  .brand-copy{
    min-width:0;
    overflow:hidden;
    gap:1px;
  }
  .brand-name{
    font-size:15px;
    font-weight:500;
    line-height:1.15;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:clip;
    letter-spacing:.01em;
  }
  .brand-sub{
    display:block;
    font-size:10.5px;
    line-height:1.18;
    margin-top:1px;
    max-width:100%;
  }
  .ai-inline-note{
    margin-top:1px;
    max-width:100%;
    min-width:0;
  }
  .ai-inline-note .ai-desktop{display:none}
  .ai-inline-note .ai-mobile{
    display:block;
    font-size:10.5px;
    line-height:1.18;
    white-space:nowrap;
  }
  .header-actions{
    position:static;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
    min-width:max-content;
    margin-left:0;
    align-self:center;
  }
  .language-switch{
    flex:0 0 auto;
    font-size:10.5px;
    gap:3px;
    white-space:nowrap;
  }
  .lang{padding:3px 1px}
  .legal-menu-btn{width:30px;height:30px;font-size:12px}
  .legal-menu{right:0;top:35px;min-width:168px}
  .modal{padding:22px 18px 20px}
  .legal-logo{width:128px;max-height:58px;margin:0 0 9px 0}
}

@media(max-width:390px){
  :root{--topbar:84px}
  .topbar{height:84px;min-height:84px;padding:7px 8px;column-gap:6px}
  .brand{gap:7px}
  .brand-logo-header{height:46px;max-width:102px}
  .brand-name{font-size:14px}
  .brand-sub{font-size:9.7px;line-height:1.15}
  .ai-inline-note .ai-mobile{font-size:9.7px;line-height:1.15}
  .language-switch{font-size:10px}
  .legal-menu-btn{width:28px;height:28px}
}

/* Version 8 – Flaggen ausschließlich in der Länderübersicht unter „Orte“ */
.country-label{display:inline-flex;align-items:center;gap:8px;min-width:0}
.country-flag{font-size:17px;line-height:1;display:inline-block;flex:0 0 auto}


/* =========================================================
   VERSION 9 – ruhiger Header, Karte oben/unten eingefasst
   ========================================================= */
:root{--wla-footerbar:18px}

/* Desktop: nur Logo | Navigation | Sprache/Menü */
.topbar{
  height:116px !important;
  min-height:116px !important;
  display:grid !important;
  grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr) !important;
  align-items:center !important;
  gap:24px !important;
  padding:8px 30px !important;
}
.brand{
  min-width:0 !important;
  justify-self:start !important;
  display:flex !important;
  align-items:center !important;
}
.brand-logo-header{
  width:auto !important;
  height:100px !important;
  max-width:219px !important;
  display:block !important;
  object-fit:contain !important;
}
.brand-copy,
.ai-inline-note,
.ai-desktop,
.ai-mobile{
  display:none !important;
}
.desktop-nav{
  justify-self:center !important;
  align-self:center !important;
}
.header-actions{
  justify-self:end !important;
  align-self:center !important;
  margin-left:0 !important;
}

/* Schmale Abschlusszeile unter der Karte */
.workspace{
  height:calc(100% - 116px - var(--wla-footerbar)) !important;
}
.map-footer{
  height:var(--wla-footerbar);
  background:rgba(250,249,246,.97);
  border-top:1px solid var(--line);
  box-shadow:0 -1px 0 rgba(48,53,59,.035);
  position:relative;
  z-index:1000;
}

/* Mobile / Firefox Hochkant: Logo links, Sprache + Menü rechts */
@media(max-width:900px){
  :root{--wla-footerbar:14px}
  .topbar{
    height:76px !important;
    min-height:76px !important;
    grid-template-columns:minmax(110px,1fr) auto !important;
    gap:10px !important;
    padding:7px 12px !important;
    align-items:center !important;
  }
  .brand{
    justify-self:start !important;
    overflow:hidden !important;
  }
  .brand-logo-header{
    height:62px !important;
    max-width:138px !important;
  }
  .desktop-nav{display:none !important}
  .header-actions{
    justify-self:end !important;
    align-self:center !important;
    white-space:nowrap !important;
  }
  .workspace{
    height:calc(100% - 76px - var(--wla-footerbar)) !important;
  }
}

@media(max-width:420px){
  .topbar{
    grid-template-columns:minmax(96px,1fr) auto !important;
    padding-left:9px !important;
    padding-right:9px !important;
  }
  .brand-logo-header{
    height:56px !important;
    max-width:124px !important;
  }
  .language-switch{
    gap:4px !important;
    white-space:nowrap !important;
  }
}

/* Version 10: sparsame Ergänzung innerhalb der vorhandenen Filterkarte */
.legacy-toggle-row{margin-top:9px;padding-top:9px;border-top:1px solid rgba(47,77,134,.15);display:flex;align-items:center;justify-content:space-between;gap:7px}
.criterion-wrap label.legacy-toggle-label{margin:0;display:inline-flex;align-items:center;gap:7px;cursor:pointer;color:#30353b;font-size:11.5px;letter-spacing:0;text-transform:none;font-weight:650;min-width:0}
.legacy-toggle-label input{margin:0;accent-color:#722540;width:14px;height:14px;flex-shrink:0}
.legacy-toggle-dot{display:inline-block;width:9px;height:9px;background:#722540;border-radius:50%;box-shadow:0 0 0 2px #D6A5B6;flex-shrink:0}
.legacy-info-btn{flex-shrink:0;cursor:pointer;width:21px;height:21px;border:1px solid #abb7ce;border-radius:50%;background:#fff;color:#214f91;font-size:12px;font-family:Georgia,serif;font-weight:bold}
.legacy-popup{font-size:12px;line-height:1.43;color:#30353b;max-width:380px}
.legacy-popup h3{font-size:16px;line-height:1.2;color:#30353b;margin:4px 0 3px}
.legacy-popup-category{font-size:10.5px;font-weight:800}
.legacy-popup-country{color:#5d6470;font-size:11px;margin-bottom:8px}
.legacy-popup p{font-size:11.5px;margin:7px 0;line-height:1.45}
.legacy-meta-row{font-size:10.5px;border-top:1px solid #e5e9ee;padding-top:4px;margin-top:4px}
.legacy-popup-sources{margin-top:9px;display:grid;gap:4px;font-size:11px}
.legacy-popup-sources a{color:#214f91;text-decoration:underline;overflow-wrap:anywhere}
.legacy-popup p.legacy-popup-note{font-size:10px;color:#58626c;margin-bottom:0}
.legacy-register{display:grid;gap:9px;margin:10px 0 13px}
.legacy-register-item{border:1px solid #e3e6e8;border-radius:12px;padding:9px 11px}
.legacy-register-item h4{margin:0 0 4px;font-size:12px}
.legacy-register-item p{margin:3px 0!important;font-size:10.5px!important}
.legacy-register-item a{color:#214f91;overflow-wrap:anywhere}
.legend-legacy-current{background:rgba(114,37,64,.12);border:2px solid #722540}
.legend-legacy-historical{background:rgba(166,87,114,.12);border:2px solid #A65772}
.legend-legacy-planned{background:rgba(214,165,182,.3);border:2px solid #D6A5B6}
@media(max-width:520px){.criterion-wrap label.legacy-toggle-label{font-size:11px}.legacy-toggle-row{margin-top:7px;padding-top:7px}}

/* === Version 11: Zentral gesetzte, kontrastreiche Bedienung === */
:root{--ink:#30353b;--muted:#30353b;--wla-blue:#214f91;--wla-primary:#2f4d86;--wla-hover:#abb7ce}
body,button,input,select,.legal-menu button,.profile-intro,.profile-section,.modal p,.modal li{color:var(--ink);font-weight:400}
.topbar{background:#fff}
.legal-menu-btn{width:auto!important;min-height:44px!important;padding:0 15px!important;border-radius:13px!important;background:#fff!important;border:1px solid #d0d5dc!important;color:#30353b!important;font-size:14px!important;letter-spacing:0!important;font-weight:400!important;display:flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap}
.legal-menu-btn:hover,.legal-menu-btn[aria-expanded="true"]{background:#f3f5f8!important;border-color:#abb7ce!important}
.menu-chevron{font-size:13px;color:#30353b;transition:transform .2s}
.legal-menu-btn[aria-expanded="true"] .menu-chevron{transform:rotate(180deg)}
.legal-menu{min-width:215px!important;background:#fff}
.legal-menu button{font-size:14px!important;font-weight:400!important;color:#30353b!important;min-height:43px}
.legal-menu button:hover{background:#edf0f5!important}
.criterion-wrap,.projection-wrap{background:#fff;border:1px solid #dce0e5;border-radius:16px;box-shadow:0 10px 35px rgba(27,35,31,.11);padding:12px 14px}
.criterion-wrap label,.projection-heading{display:block;font-size:13px;font-weight:400;text-transform:none;letter-spacing:0;color:#30353b;margin-bottom:7px}
.criterion-wrap select{font-size:14px;font-weight:400;color:#30353b}
.projection-wrap .legacy-toggle-row{border-top:0;padding-top:0;margin-top:0}
.projection-wrap label.legacy-toggle-label{font-size:13px;font-weight:400;line-height:1.35;color:#30353b;text-transform:none;letter-spacing:0}
.projection-hint{margin:6px 0 0;font-size:12px;line-height:1.4;color:#555d66}
.search-wrap{background:#fff}
.eyebrow{color:#214f91;font-weight:400;font-size:11px}
.place-country,.reviewed,.source-row small,.source-row span{color:#30353b}
.profile-section h3{font-size:13px;font-weight:400;color:#30353b;letter-spacing:0;text-transform:none}
.source-row b{font-size:13px;font-weight:400}
.source-row span,.source-row small{font-size:12px;line-height:1.45}
.modal p,.modal li{font-size:14px;line-height:1.65;color:#30353b}
.modal h2{font-weight:500}
.all-marker{width:22px;height:22px}
.evidence-intro{font-size:13px;line-height:1.5;color:#30353b;margin-bottom:13px}
.evidence-group{margin:0 0 8px;border:1px solid #e0e3e7;border-radius:12px;background:#fff;padding:10px 12px}
.evidence-group summary{font-size:14px;color:#30353b;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;font-weight:400}
.evidence-group summary::-webkit-details-marker{display:none}
.evidence-group summary span{background:#eef1f5;border-radius:999px;padding:1px 8px;font-size:12px}
.evidence-source{margin-top:10px;padding-top:10px;border-top:1px solid #e5e8ed;font-size:13px;line-height:1.5;color:#30353b}
.evidence-source a{color:#214f91;text-decoration:underline;text-underline-offset:2px;font-size:14px;overflow-wrap:anywhere}
.evidence-source p{font-size:13px;margin:4px 0}
.evidence-source small{display:block;margin-top:5px;font-size:12px;color:#30353b}
.evidence-limitation,.evidence-empty,.source-revision{font-size:12px;line-height:1.5;color:#515966;margin-top:7px}
.intro-backdrop{position:fixed;inset:0;z-index:1700;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(36,42,50,.28)}
.intro-backdrop[hidden]{display:none}
.intro-dialog{position:relative;background:#fff;border:1px solid #e4e7eb;border-radius:20px;width:min(570px,100%);max-height:min(88vh,820px);overflow:auto;padding:35px 38px 30px;box-shadow:0 28px 68px rgba(16,24,40,.18);outline:none;color:#30353b}
.intro-dialog h2{font-size:25px;line-height:1.22;font-weight:500;color:#30353b;text-align:center;margin:8px 20px 23px}
.intro-dialog p{font-size:15px;line-height:1.65;margin:0 0 14px;color:#30353b;text-align:center}
.intro-close{position:absolute;top:11px;right:13px;width:40px;height:40px;border:0;border-radius:50%;font-size:26px;font-weight:400;color:#30353b;background:#f4f5f7;cursor:pointer}
.intro-enter{display:block;min-height:45px;border:1px solid #d0d5dc;background:#fff;border-radius:12px;color:#30353b;font-size:15px;font-weight:400;padding:10px 24px;margin:23px auto 0;cursor:pointer}
.intro-enter:hover,.intro-close:hover{background:#eaf0f8;border-color:#abb7ce}
@media(max-width:900px){.legal-menu-btn{min-height:40px!important;padding:0 10px!important;font-size:13px!important}.legal-menu{right:0;top:43px}.map-controls{gap:8px}.projection-hint{display:none}}
@media(max-width:520px){.legal-menu-btn{min-height:39px!important;padding:0 9px!important;font-size:12px!important}.criterion-wrap,.projection-wrap{padding:9px 11px}.intro-dialog{padding:40px 21px 25px}.intro-dialog h2{font-size:21px}.intro-dialog p{font-size:14px}.projection-wrap label.legacy-toggle-label{font-size:12px}}

/* Version 12 – Prüfprofile ohne fiktive Bewertung */
.candidate-notice{background:#f3f5f7;border:1px solid #dce0e5;border-radius:11px;padding:12px 13px;color:#30353b;font-size:14px;line-height:1.4;margin-bottom:15px}

/* Version 13: ruhiger Status in der dafür vorgesehenen Abschlusszeile */
:root{--wla-footerbar:22px}
.map-footer{display:flex;align-items:center;justify-content:center;background:#fff;color:#30353b;font-size:11px;font-weight:400;line-height:1.25;letter-spacing:0;padding:0 8px;text-align:center}
.nordic-winter{background:#fff;border:1px solid #e0e3e7;border-radius:12px;padding:13px 13px 10px}
.nordic-winter h3{margin:0 0 8px;font-weight:400}
.winter-review-row{display:flex;justify-content:space-between;gap:13px;border-bottom:1px solid #eceef1;padding:6px 0;font-size:12px;line-height:1.4;align-items:flex-start}
.winter-review-row span:last-child{text-align:right;max-width:60%}
.nordic-source{display:block;margin:10px 0 6px;color:#214f91;font-size:12px;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.nordic-data-status{font-size:11px;line-height:1.4;margin:0;color:#30353b}
@media(max-width:900px){:root{--wla-footerbar:18px}.map-footer{font-size:10px}}

/* 13.6: deckungsgleiche, eigenständig zuschaltbare Zusatzebenen */
.projection-layer-choices{display:flex;flex-direction:column;gap:1px;max-height:min(41vh,350px);overflow-y:auto;scrollbar-width:thin}
.projection-layer-row{display:flex;align-items:center;gap:9px;min-height:36px;cursor:pointer;font-size:13px;font-weight:400;color:#30353b;line-height:1.35}
.projection-layer-row input{flex-shrink:0;margin:0;accent-color:#214f91;width:16px;height:16px;cursor:pointer}
.projection-layer-row .layer-color,.projection-layer-legacy .layer-color{width:17px;height:17px;min-width:17px;border-radius:50%;display:inline-block;box-sizing:border-box}
.layer-blue{border:2px dashed #144891;background:rgba(20,72,145,.13)}
.layer-sea{border:2px dotted #116d77;background:rgba(17,109,119,.12)}
.layer-volcano{border:2px solid #d648c7;background:rgba(214,72,199,.10)}
.layer-nature{border:2px solid #8a6645;background:rgba(138,102,69,.12)}
.layer-bordeaux{border:2px solid #722540;background:#A65772}
.projection-layer-legacy{display:flex;align-items:center;gap:9px;flex:1;cursor:pointer;font-size:13px;font-weight:400;color:#30353b}
.projection-layer-choices .legacy-toggle-row{display:flex;align-items:center;justify-content:space-between;min-height:36px;gap:7px}
.projection-layer-choices .legacy-toggle-row input{accent-color:#722540}
@media(max-width:900px){.projection-layer-choices{max-height:min(34vh,270px)}.projection-layer-row{min-height:33px;font-size:12px}.projection-layer-legacy{font-size:12px}}

/* Version 14.1 (05.11.2026): Rechtstexte dauerhaft in der Fussleiste erreichbar.
   Bisherige zentrale CSS-Farbwerte und Kartenaufbau bleiben unveraendert. */
:root{--wla-footerbar:50px}
.map-footer{
  height:var(--wla-footerbar);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  background:#fff;
  color:#30353b;
  padding:0 20px;
  font-size:13px;
  font-weight:400;
  line-height:1.4;
}
.map-footer::before{content:"";grid-column:1;grid-row:1}
.footer-status{grid-column:2;grid-row:1;text-align:center;font-size:12px;color:#30353b}
.footer-links{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:16px;white-space:nowrap}
.footer-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  color:#214f91;
  font-size:14px;
  font-weight:400;
  text-decoration:none;
  border-radius:4px;
  padding:0 4px;
}
.footer-links a:hover{text-decoration:underline;text-underline-offset:3px}
.footer-links a:focus-visible{outline:2px solid #214f91;outline-offset:2px;text-decoration:underline}
@media(max-width:900px){
  :root{--wla-footerbar:64px}
  .map-footer{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:0;
    padding:2px 8px;
  }
  .map-footer::before{display:none}
  .footer-status{font-size:11.5px;line-height:1.2}
  .footer-links{justify-content:center;gap:24px}
  .footer-links a{font-size:13.5px;min-height:34px;padding:0 5px}
}
@media(max-width:360px){
  :root{--wla-footerbar:68px}
  .footer-status{font-size:11px}
}

/* Version 15.1 – Smartphone Hochformat: Karte hat Vorrang, Filter auf Abruf. */
.mobile-filter-toggle{display:none}
@media(max-width:900px){
  :root{--wla-footerbar:34px}
  .topbar{height:54px!important;min-height:54px!important;padding:4px 9px!important;gap:5px!important;grid-template-columns:minmax(0,1fr) auto!important}
  .brand-logo-header{height:40px!important;max-width:91px!important}
  .workspace{height:calc(100% - 54px - var(--wla-footerbar))!important;height:calc(100dvh - 54px - var(--wla-footerbar))!important}
  .map-footer{height:var(--wla-footerbar);min-height:0;padding:2px 7px;gap:0;flex-direction:row;justify-content:space-between}
  .footer-status{font-size:9px;line-height:1.1;text-align:left;max-width:62%}
  .footer-links{gap:8px;flex-shrink:0}
  .footer-links a{font-size:11px;min-height:28px;padding:0 2px}
  .legal-menu-wrap{position:static}
  .legal-menu{position:fixed!important;top:52px!important;right:8px!important;left:auto!important;width:min(260px,calc(100vw - 16px));min-width:0!important;max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;z-index:1900}
  .legal-menu button{min-height:40px}
  .mobile-filter-toggle{display:flex;position:absolute;top:9px;left:9px;z-index:860;align-items:center;justify-content:space-between;gap:10px;max-width:calc(100% - 18px);border:1px solid #dce0e5;background:#fff;color:#30353b;border-radius:12px;padding:10px 13px;font-size:12px;box-shadow:0 5px 17px rgba(27,35,31,.12);cursor:pointer}
  .map-controls{display:none;top:54px;left:9px;width:min(340px,calc(100vw - 18px));max-height:calc(100% - 65px);overflow-y:auto;overscroll-behavior:contain;z-index:855;gap:6px}
  body.mobile-filters-open .map-controls{display:grid}
  .search-wrap{height:40px}
  .criterion-wrap,.projection-wrap{padding:8px 10px}
  .projection-layer-choices{max-height:none}
  .mobile-sheet:not(.expanded){height:112px;bottom:7px}
  .mobile-sheet.expanded{max-height:calc(100% - 65px)}
  .map-legend{display:none}
}
@media(max-width:390px){
  .brand-logo-header{height:36px!important;max-width:82px!important}
  .legal-menu-btn{font-size:11px!important;padding:0 7px!important;min-height:35px!important}
  .language-switch{font-size:10px!important}
  .footer-status{font-size:8.5px}
  .footer-links a{font-size:10px}
}

/* Version 15.2 – kompakte Bedienung, zugaengliches Menue, weisser 90%-Hintergrund.
   Logo und Fussleistenhoehe gegenueber 15.1 unveraendert. */
/* Schliessen-Knopf liegt rechts; Ueberschriften haben ihren eigenen Schutzabstand. */
.profile-panel .panel-close{right:16px;left:auto;z-index:4}
.profile-panel .eyebrow{padding-right:44px}
.profile-panel .place-title{margin-right:44px}
@media(max-width:900px){
  .mobile-sheet .mobile-close{left:auto;right:11px;top:10px;z-index:4}
  .mobile-sheet .eyebrow{padding-right:44px}
  .mobile-sheet .place-title{margin-right:44px}
  .mobile-filter-toggle{
    width:42px;height:42px;min-width:42px;max-width:42px;
    padding:0;justify-content:center;align-items:center;border-radius:12px;
    background:rgba(255,255,255,.90);
    backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  }
  .mobile-filter-toggle .hamburger-icon{display:block;width:23px;height:23px;flex:none}
  .mobile-filter-toggle[aria-expanded="true"]{background:rgba(237,240,245,.94);border-color:#abb7ce}
  /* Die Menueebene wird in JS direkt an body gehaengt, um das
     backdrop-filter containing block des Headers in Firefox zu umgehen. */
  body > #legalMenu{
    display:flex;flex-direction:column;
    position:fixed!important;top:54px!important;right:8px!important;left:auto!important;
    width:min(260px,calc(100vw - 16px))!important;min-width:0!important;
    max-height:calc(100vh - 65px)!important;max-height:calc(100dvh - 65px)!important;
    overflow-y:auto!important;overscroll-behavior:contain;
    padding:7px!important;z-index:3000!important;
    background:rgba(255,255,255,.90)!important;
    backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
    border:1px solid rgba(211,218,225,.9);
    box-shadow:0 15px 45px rgba(27,35,31,.20);
  }
  body > #legalMenu[hidden]{display:none!important}
  body > #legalMenu button{flex:none;background:transparent!important}
  body > #legalMenu button:hover,body > #legalMenu button:focus-visible{background:rgba(237,240,245,.92)!important}
  .map-controls .search-wrap,.map-controls .criterion-wrap,.map-controls .projection-wrap{
    background:rgba(255,255,255,.90)!important;
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  }
  .map-controls .search-results{background:#fff}
  .footer-status{font-size:8px;line-height:1.1}
}
/* Fusszeilentext um ca. einen CSS-Pixel reduziert, ohne die Hoehe zu veraendern */
@media(min-width:901px){.footer-status{font-size:11px}}
@media(max-width:390px){.footer-status{font-size:7.5px}}


/* Version 15.2 – Bewertung & Quellen: kompakte Erläuterung.
   12px Schrift = etwa 9pt; 15px Zeilenhoehe = etwa 11.25pt.
   Alle anderen Dialogfenster behalten ihre bisherigen Schriftgroessen. */
.modal-backdrop[data-view="assessment"] .modal h2{
  font-size:13px;
  font-weight:700;
  line-height:1.25;
  margin:0 0 8px;
  color:#30353b;
}
.modal-backdrop[data-view="assessment"] .modal p,
.modal-backdrop[data-view="assessment"] .modal li,
.modal-backdrop[data-view="assessment"] .modal .method-block p{
  font-size:12px;
  line-height:15px;
  margin:5px 0;
  color:#30353b;
}
.modal-backdrop[data-view="assessment"] .modal h3{
  font-size:12px;
  font-weight:700;
  line-height:1.25;
  margin:13px 0 6px;
}
.modal-backdrop[data-view="assessment"] .modal .method-block{
  margin-top:13px;
  padding-top:10px;
}
.modal-backdrop[data-view="assessment"] .modal .legend-explain{gap:6px}
.modal-backdrop[data-view="assessment"] .modal .criteria-cloud{margin-top:7px}


/* Version 15.3: geoeffnete Farbkriterien-Auswahl (natives select).
   Nur das Optionsmenue dunkel, das geschlossene Auswahlfeld bleibt hell.
   Native Popup-Darstellung kann unter macOS/iOS/Android vom System abweichen. */
#criterion option,
#criterion optgroup {
  background-color: #20242a;
  color: #ffffff;
}
#criterion option:checked {
  background-color: #2f4d86;
  color: #ffffff;
}

/* Version 15.4 – einheitliche Informationsfenster, Desktop und Mobil */
.modal-backdrop .modal {max-height:85dvh;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere;}
.modal-backdrop .modal h2 {font-size:19px;font-weight:700;line-height:1.25;margin:0 36px 10px 0;color:#30353b;}
.modal-backdrop .modal h3 {font-size:15px;font-weight:700;line-height:1.3;margin:14px 0 7px;color:#30353b;}
.modal-backdrop .modal p,.modal-backdrop .modal li,.modal-backdrop .modal .method-block p {font-size:14px;line-height:1.35;font-weight:400;margin:7px 0;color:#30353b;}
.modal-backdrop .modal b,.modal-backdrop .modal strong {font-weight:700;}
.modal-backdrop .modal .eyebrow {font-size:12px;font-weight:700;line-height:1.3;}
.modal-backdrop .modal .modal-close {position:sticky;float:right;top:0;z-index:2;}
@media(max-width:520px){.modal-backdrop{padding:10px}.modal-backdrop .modal{max-height:85dvh;padding:19px 16px}.modal-backdrop .modal h2{font-size:18px}.modal-backdrop .modal p,.modal-backdrop .modal li,.modal-backdrop .modal .method-block p{font-size:14px;line-height:1.35}}

/* V15.4: Firefox-friendly native select, no forced dark option palette */
#criterion option,#criterion optgroup,#criterion option:checked{background-color:initial;color:initial}
/* Harmonised desktop and mobile information text */
.modal-backdrop[data-view="assessment"] .modal h2{font-size:19px;font-weight:700;line-height:1.25;margin:0 36px 10px 0}
.modal-backdrop[data-view="assessment"] .modal p,.modal-backdrop[data-view="assessment"] .modal li,.modal-backdrop[data-view="assessment"] .modal .method-block p{font-size:14px;line-height:1.35;margin:7px 0;font-weight:400}
.modal-backdrop[data-view="assessment"] .modal h3{font-size:15px;font-weight:700}
.modal-backdrop .modal strong,.modal-backdrop .modal b{font-weight:700}
@media(max-width:900px){body > #legalMenu button{padding-top:7px!important;padding-bottom:7px!important;line-height:1.2!important}body > #legalMenu{gap:0!important}}
/* Funkloch: informational placeholder, no unverified geographies */
.funkloch-row{opacity:.85}.funkloch-row .funkloch-status{display:block;font-size:11px;color:#505861;line-height:1.3;margin:3px 0 0 25px}.layer-funkloch{background:linear-gradient(90deg,#52545c 50%,#9ba1a8 50%)}

/* V15.4.1 – Funkloch im gleichen Ebenenlayout; gestrichelte Flächenlegende statt Ortspunkt */
.funkloch-row{opacity:1;cursor:default;gap:9px}
.funkloch-row #funklochToggle{cursor:not-allowed;opacity:.55}
.layer-funkloch,.legend-funkloch{background:rgba(82,84,92,.10)!important;border:2px dashed #52545c!important;border-radius:3px!important}
.funkloch-info-link{margin-left:auto;padding:2px 0;background:none;border:0;color:#214f91;text-decoration:underline;text-underline-offset:2px;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}
.funkloch-info-link:hover,.funkloch-info-link:focus-visible{color:#2f4d86;text-decoration-thickness:2px}

/* V15.4-2: einheitliche Info-Köpfe, wie in den Rechtstexten */
.modal-backdrop .info-page-heading{margin:0 0 14px}
.modal-backdrop .info-page-title{color:#2f4d86;font-size:19px;font-weight:700;line-height:1.25;margin:0 36px 9px 0}
.modal-backdrop .info-page-heading .legal-logo{display:block;width:150px;max-width:100%;height:auto;max-height:72px;object-fit:contain;object-position:left center;margin:0 0 12px 0}
.modal-backdrop .info-page-heading h2{color:#30353b;font-size:19px;font-weight:700;line-height:1.3;margin:0 36px 12px 0}
@media(max-width:520px){.modal-backdrop .info-page-title{font-size:18px}.modal-backdrop .info-page-heading h2{font-size:18px}}

.intro-update{font-size:10px!important;color:#677077!important;font-weight:400!important;line-height:1.35!important;margin-top:8px!important}
.funkloch-info-link{font-size:12px!important;font-weight:700!important;text-decoration:none!important;border:1px solid #214f91!important;border-radius:50%!important;width:20px;height:20px;line-height:16px;text-align:center;padding:0!important}

/* Version 15.4-4: understated source references and introductory refinements */
.intro-dialog h2{font-weight:750}
.intro-dialog p{font-size:14px;line-height:1.55}
.intro-dialog .intro-update{font-size:10px!important;line-height:1.35!important}
.intro-enter{border:1.5px solid #214f91;background:#eef3fb;color:#214f91;font-weight:600}
.intro-enter:hover{background:#dfe9f7;border-color:#214f91}
.profile-panel.empty-profile{bottom:auto;height:auto;max-height:245px;min-height:0}
.profile-panel.empty-profile .place-title{font-size:24px;margin-bottom:0}
.mobile-sheet.empty-profile:not(.expanded){height:84px}
.mobile-sheet.empty-profile.expanded{height:auto;max-height:145px}
.place-source-footer{margin-top:14px;padding-top:10px;border-top:1px solid #dce1e5}
.place-data-status{font-size:10px;color:#677077;line-height:1.35;margin-bottom:5px}
.place-source-details{font-size:11px;color:#30353b}
.place-source-details>summary{font-size:11px;cursor:pointer;color:#2f4d86;font-weight:600}
.place-source-count{font-size:10px;font-weight:400;color:#677077;margin-left:5px}
.place-source-details .evidence-intro{font-size:10.5px;line-height:1.4;margin:8px 0}
.place-source-details .evidence-group{margin:4px 0}
.place-source-details .evidence-group>summary{font-size:11px}
.place-source-details .evidence-source{font-size:11px;line-height:1.4}
.place-source-details .evidence-source small{font-size:10px;line-height:1.35}
.place-source-details .evidence-empty,.place-source-details .source-revision{font-size:10px;line-height:1.4}
@media(max-width:520px){.intro-dialog p{font-size:13px;line-height:1.5}.intro-dialog h2{font-weight:750}.mobile-sheet.empty-profile .place-title{font-size:19px}}

/* V15.4-4-1: explanatory text restored in the initial place-selection card. */
.profile-panel.empty-profile{min-height:210px;max-height:310px;padding-bottom:26px}
.profile-panel.empty-profile .place-title{margin-bottom:10px}
.place-empty-description{font-size:13px;line-height:1.5;font-weight:400;color:#30353b;margin:10px 0 5px;overflow-wrap:break-word}
@media(max-width:900px){
  .mobile-sheet.empty-profile:not(.expanded){height:190px;overflow:auto}
  .mobile-sheet.empty-profile.expanded{height:auto;max-height:min(55vh,300px);overflow:auto}
  .mobile-sheet.empty-profile .place-title{margin-bottom:10px}
  .mobile-sheet.empty-profile .place-empty-description{font-size:12.5px;line-height:1.45;margin-top:8px}
}

/* V15.4-4-2: Small always-visible references immediately below data status,
   at the same text size as the quality-grid descriptions. */
.place-source-footer{margin-top:13px;padding-top:10px;border-top:1px solid #dce1e5}
.place-source-footer .place-data-status{display:flex;flex-direction:column;gap:2px;margin-bottom:8px;font-size:10.5px;line-height:1.4;color:#677077;font-weight:400}
.place-source-evidence{margin:0;padding:0;color:#30353b}
.place-source-evidence h3{font-size:10.5px!important;line-height:1.45;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;margin:0 0 5px!important;color:#30353b}
.source-evidence-list{list-style:none;padding:0!important;margin:0!important;display:grid;gap:7px}
.source-evidence-list li{margin:0;padding:0 0 5px;border-bottom:1px solid #eef0f2;font-size:10.5px!important;line-height:1.45!important;overflow-wrap:anywhere;color:#30353b}
.source-evidence-list li:last-child{border-bottom:0}
.source-evidence-list a{font-size:10.5px!important;line-height:1.45!important;color:#214f91;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.source-evidence-topic{font-size:10.5px!important;font-weight:600;color:#30353b}
.source-evidence-finding,.source-evidence-meta,.source-evidence-limitation{display:block;font-size:10.5px!important;line-height:1.4!important;margin:2px 0 0;color:#545d67;font-weight:400}
.source-evidence-meta{font-size:9.5px!important;color:#677077}
.source-evidence-limitation{font-size:9.5px!important;color:#677077;font-style:italic}
.place-source-footer .source-evidence-empty{font-size:10.5px!important;line-height:1.45!important;color:#677077;margin:0!important;padding:0}

/* 15.5-2: Regional source sections in map-control sequence */
.region-source-section{padding-top:2px;border-top:1px solid #e5e8eb;margin-top:18px}
.region-source-section:first-of-type{border-top:0}
.region-source-section .source-list{display:grid;gap:7px}
.region-source-section .source-row small{overflow-wrap:anywhere}

/* V15.5-3: Quellenumfang und Quellenlage für alle Ortsprofile kenntlich machen. */
.source-evidence-note{font-size:10px!important;line-height:1.42!important;color:#545d67;margin:0 0 8px!important}

/* Version 15.5-4 – eindeutige optische Trennung der beiden Kartenbedienfelder. */
.projection-heading{color:#2f4d86;font-weight:600}

/* V15.5-10: kurze Gesundheitsübersicht innerhalb vorhandener Ortsprofilsektion */
.healthcare-overview{padding:9px 0 10px;border-bottom:1px solid rgba(23,26,28,.055)}
.healthcare-overview h4{margin:0 0 5px;font-size:13px;font-weight:700;color:#30353b}
.healthcare-overview p{margin:0;font-size:13px;line-height:1.52;color:#30353b}


/* V15.5-11: Mobile Ortsprofile duerfen die Kartenfilter nicht blockieren.
   Filter bleiben sichtbar und per X schliessbar, auch bei geoeffnetem Profil. */
@media (max-width:900px) {
  body.mobile-filters-open .map-controls { z-index:1100; }
  body.mobile-filters-open .mobile-filter-toggle { z-index:1110; }
  .mobile-filter-toggle .close-icon { display:none; width:23px; height:23px; flex:none; }
  .mobile-filter-toggle[aria-expanded="true"] .hamburger-icon { display:none; }
  .mobile-filter-toggle[aria-expanded="true"] .close-icon { display:block; }

  /* Fliesstexte im Ortsprofil einheitlich kompakt wie die Quellennachweise. */
  .mobile-sheet .why-box h2,
  .mobile-sheet .profile-section h3,
  .mobile-sheet .healthcare-overview h4 {
    font-size:10.5px!important;
    line-height:1.45!important;
    letter-spacing:0;
    text-transform:none;
    font-weight:700;
    color:#30353b;
  }
  .mobile-sheet .profile-intro,
  .mobile-sheet .profile-intro b,
  .mobile-sheet .healthcare-overview p,
  .mobile-sheet .why-box > p,
  .mobile-sheet .candidate-notice {
    font-size:11px!important;
    line-height:1.48!important;
  }
  .mobile-sheet .profile-intro b {font-weight:700;}
  .mobile-sheet .healthcare-overview {padding:7px 0 9px;}
  .mobile-sheet .healthcare-overview h4 {margin:0 0 5px;}
  .mobile-sheet .why-box {margin:11px 0 13px; padding:11px;}
}

/* V15.5-11: Mobiles Kartenmenue explizit schliessbar und kompakt. */
.legal-menu-mobile-header{display:none}
@media (max-width:900px){
  body > #legalMenu{padding:5px 7px 7px!important}
  body > #legalMenu .legal-menu-mobile-header{
    display:flex;align-items:center;justify-content:space-between;
    min-height:34px;padding:1px 1px 4px 10px;
    font-size:12px;font-weight:700;color:#2f4d86;
  }
  body > #legalMenu .legal-menu-close{
    display:grid!important;place-items:center;flex:none;width:32px!important;
    height:32px!important;min-height:32px!important;padding:0!important;
    border:0;border-radius:9px;background:transparent!important;color:#30353b!important;
    font-size:24px!important;line-height:1!important;font-weight:400!important;
    cursor:pointer;
  }
  body > #legalMenu .legal-menu-close:hover,
  body > #legalMenu .legal-menu-close:focus-visible{
    background:#e7ebf3!important;outline:2px solid #abb7ce;outline-offset:0;
  }
  body > #legalMenu button:not(.legal-menu-close){
    min-height:34px!important;padding:5px 10px!important;
    line-height:1.18!important;border-radius:8px;
    font-size:12px!important;
  }
  body > #legalMenu .menu-separator{
    margin-top:3px!important;padding-top:7px!important;
    border-top:1px solid rgba(23,26,28,.10);
  }
}

/* V15.5-11: Ortsbezogene Befunde anstelle vermischter Intro-Notizen. */
.place-fact{margin:9px 0 11px;padding:8px 0 0;border-top:1px solid rgba(23,26,28,.08)}
.place-fact h4{margin:0 0 4px;font-size:13px;line-height:1.42;font-weight:700;color:#30353b}
.place-fact p{margin:0;font-size:13px;line-height:1.5;color:#30353b}
.place-source-footer>.place-fact{margin-bottom:14px}
@media(max-width:900px){
  .mobile-sheet .place-fact h4{font-size:10.5px!important;line-height:1.45!important;font-weight:700}
  .mobile-sheet .place-fact p{font-size:10.5px!important;line-height:1.45!important}
  .mobile-sheet .profile-intro,.mobile-sheet .profile-intro b,
  .mobile-sheet .healthcare-overview p,.mobile-sheet .why-box>p,
  .mobile-sheet .candidate-notice{font-size:10.5px!important;line-height:1.45!important}
}
/* Suchtreffer liegen ueber der Auswahl 'Karte einfaerben nach'. */
.search-wrap{z-index:12}

/* V15.5-17: Compact, responsive missing-information field below data status. */
.place-missing-data{margin:7px 0 9px;color:#30353b}
.place-missing-data h3{font-size:10.5px!important;line-height:1.45!important;font-weight:600!important;margin:0 0 4px!important;color:#30353b}
.place-missing-data ul{margin:0;padding-left:16px;display:grid;gap:3px}
.place-missing-data li{font-size:10.5px!important;line-height:1.45!important;overflow-wrap:anywhere;color:#30353b}

/* V15.5-18: compact intro typography and spacing, desktop + mobile */
.intro-dialog{padding:24px 30px 20px;max-height:calc(100dvh - 24px)}
.intro-dialog h2{font-size:22px;line-height:1.18;margin:5px 20px 13px}
.intro-dialog p{font-size:12.5px;line-height:1.38;margin-bottom:8px}
.intro-enter{min-height:40px;margin:13px auto 0;padding:8px 18px;font-size:13px}
@media(max-width:520px){
.intro-backdrop{padding:8px}
.intro-dialog{padding:30px 17px 14px;max-height:calc(100dvh - 16px)}
.intro-dialog h2{font-size:19px;line-height:1.17;margin:3px 19px 10px}
.intro-dialog p{font-size:12px;line-height:1.32;margin-bottom:7px}
.intro-enter{min-height:38px;margin-top:10px;padding:7px 13px;font-size:12px}
}

/* 15.5-19: Datenstand gut lesbar in Desktop- und Mobil-Ortsprofilen */
.place-data-status, .place-source-footer .place-data-status {color:#111111;}
.place-data-status span:first-child {font-weight:700;}
.place-data-status span:last-child {color:#111111;}

/* V15.5-22: Mobile Kartenmenue – kompaktere Zeilen und sachliche Piktogramme. */
.legal-menu-icon{display:none}
@media (max-width:900px){
  body > #legalMenu button[data-legal]{
    display:flex!important;align-items:center;gap:9px;
    min-height:29px!important;padding:3px 9px!important;line-height:1.12!important;
    transition:background-color .12s ease,color .12s ease;
  }
  body > #legalMenu .legal-menu-icon{display:block;flex:none;width:15px;height:15px;color:#2f4d86}
  body > #legalMenu button[data-legal]:hover,
  body > #legalMenu button[data-legal]:focus-visible{
    background:#e3eaf4!important;color:#214f91!important;
  }
  body > #legalMenu button[data-legal]:focus-visible{outline:2px solid #2f4d86;outline-offset:-2px}
  body > #legalMenu .menu-separator{margin-top:3px!important;padding-top:6px!important}
}


/* V15.5-23: Informationsseiten mobil kompakter, in der vorhandenen Hausschrift.
   Nur Informations-Modals, keine Ortsprofile oder Kartenmenues. */
@media (max-width:900px){
  .modal-backdrop .modal{font-family:var(--font);}
  .modal-backdrop .modal h2,
  .modal-backdrop .modal .info-page-title,
  .modal-backdrop .modal .info-page-heading h2,
  .modal-backdrop[data-view="assessment"] .modal h2{
    font-family:var(--font);font-size:16px;line-height:1.25;
  }
  .modal-backdrop .modal h3,
  .modal-backdrop[data-view="assessment"] .modal h3{
    font-family:var(--font);font-size:13.5px;line-height:1.3;
  }
  .modal-backdrop .modal p,
  .modal-backdrop .modal li,
  .modal-backdrop .modal .method-block p,
  .modal-backdrop[data-view="assessment"] .modal p,
  .modal-backdrop[data-view="assessment"] .modal li,
  .modal-backdrop[data-view="assessment"] .modal .method-block p{
    font-family:var(--font);font-size:12.5px;line-height:1.42;
  }
}

/* V15.5-26: Desktop-Menue bleibt innerhalb .legal-menu-wrap; mobile Menue wird an body verschoben. */
@media (min-width:901px){
  .legal-menu-wrap > #legalMenu button[data-legal]{display:flex;align-items:center;gap:9px;}
  .legal-menu-wrap > #legalMenu .legal-menu-icon{display:block;flex:none;width:15px;height:15px;color:#2f4d86;}
}
