




























.lage-schalter-name {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


.lage-kopf { position: relative; padding-right: 52px; }



.lage-schalter {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 0 14px 0 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  color: var(--marke);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lage-schalter:hover { background: rgba(11, 42, 91, .04); }
.lage-schalter:focus-visible { outline: none; box-shadow: inset var(--fokus); }
.lage-schalter svg {
  flex: none;
  width: 22px; height: 22px;
  padding: 4px;
  box-sizing: content-box;
  border-radius: 999px;
  background: var(--akzent-hell);
  transition: transform .2s ease;
}

.lage-schalter[aria-expanded="true"] svg { transform: rotate(180deg); }


.lage[data-zustand="zu"] .lage-inhalt { display: none; }





@media (max-width: 1279.98px), (max-height: 879.98px), (pointer: coarse) and (max-width: 1366px) {
  .mit-skript .lage:not([data-zustand="offen"]) .lage-inhalt { display: none; }
}

.lage-inhalt {
  max-height: calc(100vh - 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@keyframes lage-auf {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.lage[data-zustand="offen"] .lage-inhalt { animation: lage-auf .22s ease-out both; }


@media (pointer: coarse), (max-width: 1100px) {
  .zeitwahl button { min-height: 48px; transition: background-color .15s, color .15s, box-shadow .15s; }
  .legende label { min-height: 48px; }
  .lage-abo { min-height: 52px; }


  .lage-saison a { padding: 16px 4px; margin: -16px -4px; }
}




@media (max-width: 1100px), (pointer: coarse) and (max-width: 1366px) {


  .willkommen {
    top: 86px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: 760px;
    transform: none;
    padding: 8px 14px 9px 14px;
    min-height: 52px;
    cursor: pointer;
  }


  .willkommen h1 {
    margin: 0 38px 0 0;
    font-size: 1rem;
    line-height: 1.3;
  }
  .willkommen-ziel {
    color: var(--marke-mittel);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .willkommen p.willkommen-text {
    margin: 2px 0 0;
    font-size: 1rem;
    line-height: 1.35;
  }
  .willkommen-lang,
  .willkommen p.willkommen-zahl,
  .willkommen .willkommen-neben,
  .willkommen p.willkommen-traeger { display: none; }
  .willkommen-kern { font-weight: 600; }
  .willkommen .willkommen-knoepfe { margin: 0; }


  .willkommen .willkommen-haupt {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 0;
    padding: 0;
    border-radius: inherit;
    background: transparent;
    color: transparent;
    font-size: 0;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }
  .willkommen .willkommen-haupt:focus-visible { outline: none; box-shadow: var(--fokus); }
  .willkommen .willkommen-zu { z-index: 2; top: 2px; right: 2px; }


  .willkommen h1,
  .willkommen p.willkommen-text { position: relative; z-index: 2; pointer-events: none; }


  .sprung-letzte { top: 134px; left: 10px; right: auto; }


  html:not(.ohne-willkommen) body:has(#willkommen:not([hidden])) .sprung-letzte { display: none; }
  html.willkommen-gemessen:not(.ohne-willkommen) body:has(#willkommen:not([hidden])):not(:has(.zeitleiste:not([hidden]))) .sprung-letzte {
    display: inline-flex;
    top: calc(var(--willkommen-unten, 140px) + 8px);
  }


  .unten {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    pointer-events: none;
  }
  .unten > * { pointer-events: auto; }
  .knopfleiste { pointer-events: none; }
  .knopfleiste > * { pointer-events: auto; }


  body:has(#lage-schalter[aria-expanded="true"]) .unten { z-index: 14; }


  body:has(.zeitleiste:not([hidden])) .unten { bottom: calc(232px + env(safe-area-inset-bottom, 0px)); }

  .unten .lage {
    position: relative;
    left: auto; right: auto; bottom: auto;
    align-self: flex-start;
    width: min(560px, 100%);
  }

  .lage-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 14px;
    min-height: 52px;
    padding: 7px 52px 7px 14px;
  }
  .lage-kopf h2 { font-size: 1.02rem; line-height: 1.2; }
  .lage-titel-lang {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .lage-kopf .lage-zahlen { margin: 0; gap: 2px 14px; flex-wrap: wrap; }
  .lage-kopf .lage-zahlen .lage-zahl {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
  }
  .lage-kopf .lage-zahlen .lage-zahl strong { font-size: 1.2rem; }
  .lage-kopf .lage-zahlen .lage-zahl span { font-size: .92rem; }
  .lage-kopf .lage-zeitraum { display: none; }

  .lage-kopf { touch-action: none; }
  .lage-schalter { border-radius: var(--radius); }
  body:has(#lage-schalter[aria-expanded="true"]) .lage-schalter {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .lage-inhalt {
    max-height: calc(100vh - 250px);
    max-height: calc(100dvh - 250px - env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--glas-rand);
  }


  .knopfleiste {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: stretch;
  }


  .unten .zeit-knopf,
  .unten .naehe-knopf {
    position: static;
    width: auto;
    min-height: 48px;
  }



  .naehe-meldung {
    top: auto;
    left: 10px; right: 10px;
    bottom: calc(var(--unten-oben, 130px) + 36px);
    max-width: 560px;
    z-index: 15;
  }



  .rechtliches { display: none; }



  .maplibregl-ctrl-bottom-right { bottom: calc(var(--unten-oben, 130px) - 6px); }


  @media (min-width: 900.02px) {
    body:has(.werbung-halter:not([hidden])) .willkommen { right: 348px; }
  }
}





@media (max-width: 900px) {
  html:not(.ohne-willkommen) body:has(#willkommen:not([hidden])) .werbung-halter { display: none; }
}











@media (max-width: 900px) {
  html.werbung-gemessen body:has(#werbung:not([hidden])) {
    --karte-oben: calc(var(--werbung-unten) + 6px);
  }
  html.willkommen-gemessen:not(.ohne-willkommen) body:has(#willkommen:not([hidden])) {
    --karte-oben: calc(var(--willkommen-unten) + 6px);
  }
  html div#karte { top: var(--karte-oben, 0px); }
  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--karte-oben, 0px);
    background: var(--papier);
    pointer-events: none;
  }
}



@media (min-width: 720.02px) and (max-width: 900px) {
  .werbung-halter, .werbung-halter[data-stufe="2"] { top: 84px; }
}
@media (min-width: 900.02px) {
  .werbung-halter, .werbung-halter[data-stufe="2"] { top: 86px; }
}


@media (max-width: 720px) {
  .willkommen { top: 78px; }
  .sprung-letzte { top: 128px; }
  .unten .lage { width: 100%; }

  .unten .zeit-knopf  { flex: 42 1 0; min-width: 0; }
  .unten .naehe-knopf { flex: 58 1 0; min-width: 0; }



  .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { display: none; }
}





@media (min-width: 1100.02px) and (pointer: fine), (min-width: 1100.02px) and (pointer: none),
       (min-width: 1366.02px) {
  .unten, .knopfleiste { display: contents; }



  .willkommen {
    transform: none;
    width: min(520px, calc(100vw - 290px - 352px));
    left: clamp(290px, calc(50% - 260px), calc(100vw - 352px - 520px));
  }

  .maplibregl-ctrl-bottom-right { bottom: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .lage[data-zustand="offen"] .lage-inhalt { animation: none; }
  .lage-schalter svg { transition: none; }
}
