/* --- inline style block 1 --- */
:root{
  --hdr-h:72px;
  --glass-bg:rgba(255,255,255,.82);
  --glass-soft:rgba(255,255,255,.28);
  --link:#004d80;
}
html,body{margin:0;padding:0}
body{
  font-family:"Segoe UI",Arial,sans-serif;
  color:#222;
  background:url("background.jpg") center/cover no-repeat;
  background-attachment: scroll;
}


/* Sektionstitel im Header (Desktop), statt unterhalb */
.section-name-header{
  margin-left: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--link,#004d80);
  white-space: nowrap;
}
.section-name{
  text-align:center;
  margin:8px 0;
  font-weight:700;
  font-size:0.95rem;
}

/* Desktop: Name nur im Header anzeigen */
@media (min-width:1025px){
  .section-name{ display:none; }
  .section-name-header{ display:inline-block; }
}

/* Mobil/Tablet: alte Position unterhalb Header beibehalten */
@media (max-width:1024px){
  .section-name{ display:block; }
  .section-name-header{ display:none; }
}
/* --- Header --- */
header{
  position:sticky;top:0;z-index:1000;height:var(--hdr-h);
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 16px;background:var(--glass-bg);backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(0,0,0,.08);
}
.logo{display:flex;align-items:center;gap:8px;cursor:pointer}
.logo img{height:46px;border-radius:8px}
.logo a.mail-icon{text-decoration:none;font-size:1.3rem;line-height:1;margin-left:4px}
@media (min-width:1025px){.email-text{display:inline}.mail-icon{display:none}}
@media (max-width:1024px){.email-text{display:none}.mail-icon{display:inline}}
#__removed_warnIcon{font-size:1.4rem;margin-left:12px;cursor:pointer;display:none}
.hamb{display:none;flex-direction:column;gap:4px;cursor:pointer;z-index:1001}
.hamb span{width:26px;height:3px;background:#0b4b78;border-radius:2px}
@media (max-width:1024px){.hamb{display:flex}}

/* --- Warnbanner --- */
#__removed_warnBanner{
  display:none;position:sticky;top:var(--hdr-h);
  z-index:999;background:#ff8800;color:#fff;text-align:center;
  font-weight:700;padding:10px;cursor:pointer;
}

/* --- Layout --- */
.container{display:flex;gap:20px;align-items:flex-start}
aside#sidebar{
  position:sticky;top:calc(var(--hdr-h) + 0px);
  width:270px;max-height:calc(100vh - var(--hdr-h) - 10px);
  overflow:auto;background:var(--glass-bg);backdrop-filter:blur(5px);
  border-left:1px solid rgba(0,0,0,.05);
  box-shadow:-2px 0 6px rgba(0,0,0,.06);
  display:none;padding-bottom:20px;
}
#sidebar a{
  display:block;padding:14px 16px;border-bottom:1px solid rgba(0,0,0,.06);
  color:var(--link);text-decoration:none;font-weight:600;
}
#sidebar a.active{background:rgba(0,123,255,.12)}
#sidebar a:hover{background:rgba(0,123,255,.08)}
main{flex:1;min-width:0;padding:18px}

/* --- Karten & Sektionen --- */
.section{display:none}
.section.active{display:block;animation:fadeIn .6s ease-in-out;}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
.card{
  background:var(--glass-bg);backdrop-filter:blur(6px);
  border-radius:12px;padding:16px;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  margin:18px auto;max-width:60%;animation:fadeIn .7s ease;
}
@media (max-width:1024px){.card{max-width:95%}}
h2{margin:6px 0 14px}

/* --- Footer --- */
footer{
  margin-top:24px;text-align:center;background:var(--glass-bg);backdrop-filter:blur(6px);
  padding:12px;border-top:1px solid rgba(0,0,0,.08);font-size:.95rem
}
footer a{color:var(--link);text-decoration:none}
footer a:hover{text-decoration:underline}
.socials{margin:6px 0 10px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* --- Mobile Menü --- */
.mobile-menu{
  display:none;position:fixed;top:calc(var(--hdr-h) + 20px);right:0;width:70%;
  z-index:999;background:rgba(255,255,255,.97);
  border-radius:12px 0 0 12px;box-shadow:-6px 0 18px rgba(0,0,0,.25);
  overflow:auto;animation:slideIn .3s ease-out;
}
@keyframes slideIn{from{transform:translateX(100%);}to{transform:translateX(0);}}
.mobile-menu a{
  display:block;padding:14px 16px;text-decoration:none;
  color:var(--link);border-bottom:1px solid rgba(0,0,0,.06);font-weight:600;
}
.mobile-menu a:last-child{border-bottom:none}
/* Dropdown-Menüs in Sidebar & Mobile-Menü */
.nav-dropdown{
  border-bottom:1px solid rgba(0,0,0,.06);
}
.nav-dropdown-toggle{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  padding:14px 16px;
  border:0;
  background:none;
  font:inherit;
  font-weight:600;
  color:var(--link);
  cursor:pointer;
  text-align:left;
}
.nav-dropdown-toggle:hover{
  background:rgba(0,123,255,.08);
}
.nav-dropdown .nav-caret{
  font-size:.85em;
}
.nav-dropdown-menu{
  display:none;
  background:rgba(255,255,255,.96);
}
.nav-dropdown.open .nav-dropdown-menu{
  display:block;
}
.nav-dropdown-menu a{
  padding-left:32px;
  border-bottom:1px solid rgba(0,0,0,.04);
}

/* Mobile-spezifische Anpassungen */
.mobile-menu .nav-dropdown{
  border-bottom:none;
}
.mobile-menu .nav-dropdown-menu a{
  border-bottom:1px solid rgba(0,0,0,.06);
}

@media (min-width:1025px){aside#sidebar{display:block}}

/* --- Frames --- */
.resp-frame{width:100%;border:0;min-height:1000px;background:transparent}

/* Wetterkarten.php als session-füllender Frame ohne Scrollbar */
.resp-frame-wetterkarten{
  width: 100%;
  border: 0;
  display: block;
  height: calc(100vh - var(--hdr-h, 72px));
  max-height: calc(100vh - var(--hdr-h, 72px));
}

/* Mobil & Tablet: gleicher Ansatz, damit der Header der Wetterkarten.php komplett sichtbar ist */
@media (max-width: 1024px){
  .resp-frame-wetterkarten{
    height: calc(100vh - var(--hdr-h, 72px));
    max-height: calc(100vh - var(--hdr-h, 72px));
  }
}

/* Wetterkarten.php als "Vollbild" innerhalb der Wetterkarten-Session */
.resp-frame-wetterkarten{
  width: 100%;
  border: 0;
  display: block;
  height: calc(100vh - var(--hdr-h, 72px));
  min-height: calc(100vh - var(--hdr-h, 72px));
}

/* Mobil & Tablet: gleiche Darstellung wie Handy (Session-Vollbild) */
@media (max-width: 1024px){
  .resp-frame-wetterkarten{
    height: calc(100vh - var(--hdr-h, 72px));
    min-height: calc(100vh - var(--hdr-h, 72px));
  }
}

/* --- Sidebar Boxen --- */
.sidebar-box{
  background:var(--glass-bg);backdrop-filter:blur(6px);
  border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.12);
  margin:10px 12px 16px 12px;padding:10px;
}
.sidebar-box a{display:block;text-align:center;margin-top:6px;color:var(--link);font-weight:600;text-decoration:none;}
.sidebar-box form{display:flex;gap:6px;margin-top:6px;}
.sidebar-box input{flex:1;padding:6px 8px;border:1px solid #ccc;border-radius:8px;}
.sidebar-box button{border:none;background:#0077cc;color:#fff;border-radius:8px;padding:6px 10px;cursor:pointer;font-weight:600;}
.sidebar-box button:hover{background:#005fa3}

/* --- Beiträge --- */
.post-item{
  background-color:#d9f0ff;color:#000;padding:15px;margin:10px 0;
  border-radius:12px;box-shadow:0 4px 6px rgba(0,0,0,0.2);
}
.post-item h3{margin-top:0;color:#000;font-size:1.2em}
.post-item p{color:#000;line-height:1.5}

.post-snippet{
  display:-webkit-box;
  -webkit-line-clamp:5;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.post-more{
  font-weight:600;
  text-decoration:none;
}
.post-more:hover{
  text-decoration:underline;
}
.post-item img,.post-item video{margin-top:10px;border-radius:8px;max-width:100%;display:block}
@media (max-width:768px){.post-item{padding:12px}}

/* --- Mobile Suche --- */
#mobileSearch{display:block;background:var(--glass-bg);backdrop-filter:blur(6px);border-radius:12px;padding:10px;margin-bottom:10px;max-width:70%;margin-left:auto;margin-right:auto;box-shadow:0 2px 6px rgba(0,0,0,0.15);}
#mobileSearch form{display:flex;gap:6px;}
#mobileSearch input{flex:1;padding:8px;border:1px solid #ccc;border-radius:8px;}
#mobileSearch button{border:none;background:#0077cc;color:#fff;border-radius:8px;padding:8px 10px;font-weight:600;}
#mobileSearch button:hover{background:#005fa3;}

/* Responsive Radar-Höhen */


@media (min-width: 1001px) {
  
}

@media (max-width: 1000px) {
  
}


@media (max-width: 1000px) {
  #__removed_warnBanner {
    display: none !important;
  }
  #__removed_warnIcon {
    display: inline !important;
    color: #ff6600;
    font-size: 1.4rem;
    margin-left: 12px;
  }
}
#__removed_warnIcon {
  display: none;
}


#__removed_warnIcon {
  display: none;
}

@media (max-width: 1000px) {
  #__removed_warnBanner {
    display: none !important;
  }
  #__removed_warnBanner.active + #__removed_warnIcon {
    display: inline-block !important;
    color: #ff6600;
    font-size: 1.4rem;
    margin-left: 12px;
  }
}



@media (min-width: 1001px) {
  
}
@media (max-width: 1000px) {
  
}


/* === Exakte Radar-Größen nach Vorlage === */

Z6px; /* Mobil = 50% */
  }
}


/* === Radar: exakte Höhen + min-height Override === */

Z6px !important; /* Mobile */
  }
}


/* === Warnicon-Logik (mobil nur wenn aktiv) === */
#__removed_warnIcon{ display:none; }
@media (max-width:1024px){
  #__removed_warnBanner{ display:none !important; } /* Banner mobil aus */
  #__removed_warnIcon{ display:none !important; }   /* Icon standard aus */
  #__removed_warnIcon.active{ display:inline-block !important; } /* nur wenn aktiv */
}


/* === Vollbild für Radar-Sektion === */
#radar:fullscreen, #radar:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  margin: 0;
}
#radar:fullscreen iframe, #radar:-webkit-full-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#radar /* === Centered top close button in fullscreen === */
.radar-exit{
  display:none;
  position:fixed;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:10000;
  width:40px;
  height:40px;
  border-radius:9999px;
  background:rgba(0,0,0,.7);
  color:#fff;
  font-size:20px;
  line-height:40px;
  text-align:center;
  border:1px solid rgba(255,255,255,.25);
  cursor:pointer;
  user-select:none;
}
#radar:fullscreen .radar-exit,
#radar:-webkit-full-screen .radar-exit,
#radar:-ms-fullscreen .radar-exit{
  display:flex;
  align-items:center;
  justify-content:center;
}
#radar:fullscreen .radar-exit, #radar:-webkit-full-screen /* === Centered top close button in fullscreen === */
.radar-exit{
  display:none;
  position:fixed;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:10000;
  width:40px;
  height:40px;
  border-radius:9999px;
  background:rgba(0,0,0,.7);
  color:#fff;
  font-size:20px;
  line-height:40px;
  text-align:center;
  border:1px solid rgba(255,255,255,.25);
  cursor:pointer;
  user-select:none;
}
#radar:fullscreen .radar-exit,
#radar:-webkit-full-screen .radar-exit,
#radar:-ms-fullscreen .radar-exit{
  display:flex;
  align-items:center;
  justify-content:center;
}


/* === ECHTES VOLLBILD für die Radar-Sektion (#radar) === */
#radar:fullscreen, #radar:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}
#radar:fullscreen iframe, #radar:-webkit-full-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#radar /* === Centered top close button in fullscreen === */
.radar-exit{
  display:none;
  position:fixed;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:10000;
  width:40px;
  height:40px;
  border-radius:9999px;
  background:rgba(0,0,0,.7);
  color:#fff;
  font-size:20px;
  line-height:40px;
  text-align:center;
  border:1px solid rgba(255,255,255,.25);
  cursor:pointer;
  user-select:none;
}
#radar:fullscreen .radar-exit,
#radar:-webkit-full-screen .radar-exit,
#radar:-ms-fullscreen .radar-exit{
  display:flex;
  align-items:center;
  justify-content:center;
}
#radar:fullscreen .radar-exit, #radar:-webkit-full-screen /* === Centered top close button in fullscreen === */
.radar-exit{
  display:none;
  position:fixed;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:10000;
  width:40px;
  height:40px;
  border-radius:9999px;
  background:rgba(0,0,0,.7);
  color:#fff;
  font-size:20px;
  line-height:40px;
  text-align:center;
  border:1px solid rgba(255,255,255,.25);
  cursor:pointer;
  user-select:none;
}
#radar:fullscreen .radar-exit,
#radar:-webkit-full-screen .radar-exit,
#radar:-ms-fullscreen .radar-exit{
  display:flex;
  align-items:center;
  justify-content:center;
}


/* === Radar: Iframe-Höhe halbiert (Desktop + Mobil) === */
#radar .resp-frame{
  min-height:500px;
}
@media (max-width:1024px){
  #radar .resp-frame{
    min-height:500px;
  }
}


/* === Iframe Scrollbars ausblenden, Scroll per Rad weiterhin möglich (Seite) === */
#radar iframe{
  -ms-overflow-style: none; /* IE/Edge legacy */
  scrollbar-width: none;    /* Firefox */
  overflow: hidden;         /* Standard */
}
#radar iframe::-webkit-scrollbar{
  width: 0;
  height: 0;
}


/* === Hide visible scrollbars (keep scrolling) === */
html, body {
  -ms-overflow-style: none; /* IE/Edge legacy */
  scrollbar-width: none;    /* Firefox */
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
iframe {
  border: 0;
  display: block;
  /* Hide scrollbar UI where supported, but do not block overflow */
  scrollbar-width: none;    /* Firefox */
}
iframe::-webkit-scrollbar {
  width: 0;
  height: 0;
}


/* === Mobile Wettersuche global anzeigen === */
@media (max-width:1024px){#mobileSearch{display:block;background:var(--glass-bg);backdrop-filter:blur(6px);border-radius:12px;padding:10px;margin-bottom:10px;max-width:70%;margin-left:auto;margin-right:auto;box-shadow:0 2px 6px rgba(0,0,0,0.15);}}
}


/* === E-Mail ganz rechts im Header (separat vom Logo) === */
header{ display:flex; align-items:center; justify-content:space-between; }
#header-right{ margin-left:auto; display:flex; align-items:center; gap:10px; }
#header-right .email-right-link{ text-decoration:none; font-weight:700; color: var(--link,#004d80); }
.logo .email-text, .logo .mail-icon{ display:none !important; }


/* === Header Repair & Layout === */
:root{ --hdr-h:72px; }
header{
  position:sticky; top:0; z-index:9999;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; min-height:var(--hdr-h);
  padding:10px 12px; background: var(--glass-bg, rgba(255,255,255,.82));
  backdrop-filter: blur(5px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.logo{ display:flex; align-items:center; gap:8px; cursor:pointer; }
.logo img{ height:46px; border-radius:8px; }
#__removed_warnIcon{ font-size:20px; cursor:pointer; user-select:none; }
#header-right{ margin-left:auto; display:flex; align-items:center; gap:10px; }
#header-right .email-right-link{ text-decoration:none; font-weight:700; color: var(--link,#004d80); }
.hamb{ display:flex; flex-direction:column; gap:4px; cursor:pointer; padding:6px; }
.hamb span{ display:block; width:22px; height:2px; background:#333; }
@media (max-width:1024px){
  header{ flex-wrap:wrap; }
  #header-right{ order:3; width:100%; justify-content:flex-end; padding:6px 0; }
}


/* === Sidebar Radar: mehr Tiefe (höher) === */
aside#sidebar iframe{width:100%;height:190px;min-height:190px;}


@media (min-width:1025px){#mobileSearch{display:none !important;}}

@media (min-width:1025px){.hamb{display:none !important;}}
/* === Einheitliche Wettersuche (mobil + Sidebar) === */
#mobileSearch form,
.sidebar-box form {
  display: flex;
  gap: 6px;
  align-items: center;
}
#mobileSearch input,
.sidebar-box input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
}
#mobileSearch button,
.sidebar-box button {
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  background: #0077cc;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
}
#mobileSearch button:hover,
.sidebar-box button:hover {
  background: #005fa3;
}
/* === Sidebar verlängert (über Footer) === */
aside#sidebar {
  max-height: calc(120vh - var(--hdr-h));
  overflow: visible !important;
  padding-bottom: 40px;
}
/* === Sidebar verlängert (über Footer, 30%) === */
aside#sidebar {
  max-height: calc(130vh - var(--hdr-h));
  overflow: visible !important;
  padding-bottom: 40px;
}
/* === Sidebar dynamisch verlängert bis Footer === */
aside#sidebar {
  height: auto;
  min-height: calc(100vh - var(--hdr-h) + 100px);
  overflow: visible !important;
  padding-bottom: 60px;
}
/* === Automatische Medienanpassung === */
.post-item img,
.post-item video,
.post-item iframe {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 12px auto;
  object-fit: contain;
}

.post-item img {
  max-height: 80vh;
}
/* === Dynamische Textbreite in Beiträgen === */
.post-item {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.post-item h2,
.post-item h3,
.post-item p,
.post-item .meta {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.post-item h2 {
  margin-bottom: 0.5em;
}

.post-item .meta {
  font-size: 0.9em;
  opacity: 0.8;
  text-align: center;
  margin-bottom: 1em;
}

/* === Lightbox Vollbildmodus === */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
/* === Einheitlicher Sektionsname oben rechts (Text-only) === */
.section-name{
  font-weight:700;
  color:#222;
  white-space:nowrap;
}
@media (max-width:1024px){
  .section-name{font-size:0.95rem;}
}

/* === Lightbox: Click on media to close (cursor hint) === */
.lightbox-overlay .lightbox-media > img,
.lightbox-overlay .lightbox-media > video,
.lightbox-overlay .lightbox-media > iframe{
  cursor: zoom-out;
}


/* === Remove glass background from all Beiträge containers on index === */
#beitraege_wetter,
#beitraege_warnhinweis,
#beitraege_sturmjagd,
#beitraege_wetterwissen,
#beitraege_astrowissen,
#beitraege_kooperation{
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* === Wettersuche: kompakte Badge-Ergebnisse (scoped, minimal) === */
.ws-results{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.ws-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.08);
  font-weight:600;font-size:.95rem;
}
.ws-city{font-weight:800}
.ws-icon{font-size:1.1rem}

/* === MOBILE-ONLY FIXES (safe) === */
@media (max-width:1024px){
  /* email: replace text with small icon next to title */
  #header-right .email-right-link{ display:none !important; }
  .logo .mail-icon{ display:inline-flex !important; text-decoration:none; font-size:1.25rem; line-height:1; margin-left:16px; }

  /* warn icon: default hidden; only show when .active (prevents flicker) */
  #__removed_warnBanner{ display:none !important; }           /* banner stays hidden on mobile */
  #__removed_warnIcon{ display:none !important; }
  #__removed_warnIcon.active{ display:inline-block !important; color:#ff6600; }
}

/* FINAL OVERRIDE: mail icon spacing (mobile) */
@media (max-width:1024px){
  .logo .mail-icon{
    margin-left: 24px !important;
    display: inline-flex !important;
    align-items: center;
  }
}

/* Mobile placement: mail icon left of warn icon */
@media (max-width:1024px){
  #header-right .mail-icon{
    display:inline-flex !important;
    align-items:center;
    font-size:1.25rem;
    line-height:1;
    margin-right:10px;   /* left of warn icon */
    margin-left:0 !important;
    text-decoration:none;
  }
  /* Hide any mail icon left inside the logo if not moved (fallback) */
  .logo .mail-icon{ display:none !important; }
}

/* Dropdown styles for mobile weather search */
.ws-details{border-radius:12px;background:var(--glass-bg);backdrop-filter:blur(5px);box-shadow:0 2px 8px rgba(0,0,0,.12);padding:8px;margin-top:6px}
.ws-details summary{display:flex;align-items:center;gap:8px;font-weight:800;cursor:pointer;list-style:none}
.ws-caret{transition:transform .2s ease}
.ws-details[open] .ws-caret{transform:rotate(180deg)}
.ws-form{margin-top:6px}

/* Ensure hamburger menu is fully scrollable on mobile */
@media (max-width:1024px){
  #mobileMenu{
    position: fixed;
    right: 0;
    top: calc(var(--hdr-h) + 4px);
    bottom: 0;
    height: calc(100vh - var(--hdr-h) - 4px);
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 24px);
    max-height: none !important;
  }
}

/* --- Injected: mobile email icon like Impressum --- */
@media (max-width: 768px){
  header .mobile-actions { display: inline-flex !important; align-items: center; gap: .5rem; margin-left: .4rem; }
  #header-right .email-right-link{ display:none !important; }
}
@media (min-width: 769px){
  header .mobile-actions { display: none !important; }
}

/* === FINAL OVERRIDE: Mobile hamburger position & scroll === */
@media (max-width:1024px){
  #mobileMenu{
    position: fixed !important;
    right: 0 !important;
    top: calc(var(--hdr-h) + 12px) !important;   /* deeper under header */
    bottom: 0 !important;
    height: calc(100vh - var(--hdr-h) - 12px) !important;
    max-height: none !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding-bottom: env(safe-area-inset-bottom, 28px) !important;
    z-index: 3000 !important;
  }
  /* Ensure body can scroll inside the menu if needed */
  body{ overscroll-behavior-y: none; }
}

/* === FIX: keep hamburger scroll working when weather dropdown is open === */
@media (max-width:1024px){
  #mobileMenu details,
  #mobileMenu .ws-details,
  #mobileMenu .ws-form,
  #mobileMenu #searchResultsMobile{
    max-height: none !important;
    overflow: visible !important;
  }
  /* make sure inner elements don't trap touch scrolling */
  #mobileMenu *{
    -webkit-overflow-scrolling: auto !important;
    overscroll-behavior: contain !important;
    touch-action: auto !important;
  }
  /* ensure body remains scrollable context inside menu */
  html, body { overflow: visible; }
}

/* === HARD OVERRIDE (mobile): hamburger must scroll fully === */
@media (max-width:1024px){
  #mobileMenu{
    position: fixed !important;
    right: 0 !important;
    left: auto !important;
    top: calc(var(--hdr-h) + 14px) !important;
    bottom: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding-bottom: env(safe-area-inset-bottom, 28px) !important;
    z-index: 4000 !important;
  }
  /* prevent inner containers from creating their own scroll areas */
  #mobileMenu details,
  #mobileMenu .ws-details,
  #mobileMenu .ws-form,
  #mobileMenu #searchResultsMobile{
    max-height: none !important;
    overflow: visible !important;
  }
  /* inputs/buttons shouldn't block scroll gestures */
  #mobileMenu input, #mobileMenu button, #mobileMenu form{
    touch-action: manipulation !important;
  }
  /* kill any sticky/fixed inside the menu that could lock it */
  #mobileMenu *{
    position: static !important;
  }
}

/* === Mobile email icon (Impressum style) === */
@media (max-width: 768px){
  header .mobile-actions{ display:inline-flex !important; align-items:center; gap:.5rem; margin-left:.4rem; }
  #header-right .email-right-link{ display:none !important; }
}
@media (min-width: 769px){
  header .mobile-actions{ display:none !important; }
}


/* === Vollbild Radar: Schließen-Button nur im Vollbildmodus oben zentriert === */
.radar-exit {
  display: none !important;
}
#radar:fullscreen .radar-exit,
#radar:-webkit-full-screen .radar-exit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 9999px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  z-index: 10000 !important;
}
#radar:fullscreen .radar-exit span,
#radar:-webkit-full-screen .radar-exit span {
  font-size: 22px !important;
  line-height: 1 !important;
}


/* === Einheitlicher Sektionsname unter dem Header (mobil + Desktop) === */
#sectionName {
  font-weight: 700;
  color: #000;
  font-size: 1.1rem;
  margin: 12px 18px 6px 18px;
  text-align: left;
}


/* Über uns: nur blauer Beitragskasten, ohne weißen/glass Hintergrund */
#beitraege_ueber_uns{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}


/* === DESKTOP: Zweispaltige Beiträge + Overlay === */
@media (min-width: 1001px) {
  #beitraege_wetter,
  #beitraege_warnhinweis,
  #beitraege_sturmjagd,
  #beitraege_wetterwissen,
  #beitraege_astrowissen,
  #beitraege_kooperation,
  #beitraege_ueber_uns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
  }
  .post-item {
    max-width: 100%;
    margin: 0;
    position: relative;
  }
  .mehr-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    font-weight: 600;
    color: #000;
  }
  .mehr-btn:hover {
    background: rgba(255,255,255,0.95);
  }
}
/* === Overlay-Stil === */
.post-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 99999;
}
.post-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.post-overlay-content {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  transform: scale(0.96);
  transition: transform .3s ease;
}
.post-overlay.active .post-overlay-content {
  transform: scale(1);
}
.post-overlay-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  border-radius: 9999px;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
}
.post-overlay-close:hover {
  background: rgba(0,0,0,0.8);
}


/* Wetterwissen: Titel-Link in schwarzer dickschrift */
#Wetterwissen h3 a,
#beitraege_wetterwissen h3 a{
  color:#000;
  font-weight:700;
  text-decoration:none;
}
#Wetterwissen h3 a:hover,
#beitraege_wetterwissen h3 a:hover{
  text-decoration:underline;
}
.ww-atoz{
  text-align:center;
  font-weight:700;
  color:#000;
  margin:4px 0 10px;
}

/* --- inline style block 2 --- */
/* === SAFE PATCH: minimal overrides === */
.post-validity{
  margin: 8px 0 10px;
  font-size: .9em;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-block;
}
@media (max-width:1024px){
  .mobile-menu{ display:none; }
  .mobile-menu.open{ display:block !important; }
  #mobileMenu{ z-index: 6000 !important; }
}
/* Icon sichtbar, wenn aktiv */
#__removed_warnIcon.active{ display:inline-block !important; }

/* --- inline style block 3 --- */
/* === VALIDITY stacked (untereinander) === */
.post-validity{ 
  display:block; 
  margin: 8px 0 10px; 
  font-size:.95em; 
  background: rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:10px 12px;
}
.post-validity .vr{ 
  display:block; 
  margin: 2px 0; 
}
.post-validity .vr strong{ 
  font-weight:700;
}

/* --- inline style block 4 --- */
/* === FORCE DESKTOP HELPER === */
html.force-desktop { /* placeholder if we need to target styles later */ }

/* --- inline style block 5 --- */
/* === WARN LAYOUT TUNING === */
/* Desktop & forced-desktop: Banner sichtbar, Icon aus */
@media (min-width:1025px){
  #__removed_warnIcon{ display:none !important; }
  #__removed_warnBanner.active{
    display:block !important;
    position: fixed;
    top: 8px;
    left: 25%;
    width: 50%;
    z-index: 6001;              /* über Header */
    pointer-events: auto;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
    opacity: 0.98;
  }
}
/* Erzwungene Desktop-Ansicht auf Mobile: gleiche Regeln */
html.force-desktop #__removed_warnIcon{ display:none !important; }
html.force-desktop #__removed_warnBanner.active{
  display:block !important;
  position: fixed;
  top: 8px;
  left: 25%;
  width: 50%;
  z-index: 6001;
  pointer-events: auto;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  opacity: 0.98;
}

/* Mobile (ohne Desktop-Anforderung): Icon an, Banner aus */
@media (max-width:1024px){
  html:not(.force-desktop) #__removed_warnBanner{ display:none !important; }
  html:not(.force-desktop) #__removed_warnIcon.active{ display:inline-block !important; }
}

/* --- inline style block 6 --- */
/* === FORCE DESKTOP HELPER v2 === */
html.force-desktop{}
/* Hide mobile chrome when forced desktop */
html.force-desktop .hamb{ display:none !important; }
html.force-desktop .mobile-actions{ display:none !important; }
html.force-desktop #mobileMenu{ display:none !important; }
/* Warn layout: banner over header, icon hidden */
html.force-desktop #__removed_warnIcon{ display:none !important; }
html.force-desktop #__removed_warnBanner.active{
  display:block !important;
  position:fixed;
  top:0;
  left:25%;
  width:50%;
  z-index:100000; /* definitely above header */
  pointer-events:auto;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
  opacity:.98;
}
/* On true desktop (min-width) behave the same */
@media (min-width:1025px){
  #__removed_warnIcon{ display:none !important; }
  #__removed_warnBanner.active{
    display:block !important;
    position:fixed;
    top:0;
    left:25%;
    width:50%;
    z-index:100000;
    pointer-events:auto;
    border-radius:10px;
    box-shadow:0 8px 24px rgba(0,0,0,.2);
    opacity:.98;
  }
}
/* Mobile default: keep banner hidden, icon visible when active */
@media (max-width:1024px){
  html:not(.force-desktop) #__removed_warnBanner{ display:none !important; }
  html:not(.force-desktop) #__removed_warnIcon.active{ display:inline-block !important; }
}

/* --- inline style block 7 --- */
/* === DESKTOP TOGGLE & SECTION NAME GLASS === */
@media (max-width:1024px){
  .toggle-desktop{
    margin-left:10px; padding:6px 10px; border:1px solid rgba(0,0,0,.08);
    border-radius:9999px; background:var(--glass-bg, rgba(255,255,255,.6));
    backdrop-filter: blur(6px); font-size:.85rem; cursor:pointer;
  }
}
@media (min-width:1025px){
  #sectionName{
    position: fixed;
    top: calc(var(--hdr-h, 60px) + 8px);
    left: 50%; transform: translateX(-50%);
    display: inline-block;
    padding: 8px 14px;
    background: var(--glass-bg, rgba(255,255,255,.6));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    z-index: 4000;
    font-weight: 600;
  }
}
html.force-desktop #sectionName{
  position: fixed;
  top: calc(var(--hdr-h, 60px) + 8px);
  left: 50%; transform: translateX(-50%);
  display: inline-block;
  padding: 8px 14px;
  background: var(--glass-bg, rgba(255,255,255,.6));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  z-index: 4000;
  font-weight: 600;
}

/* Runde Sektionsbuttons (Sidebar & Mobile-Menü) */
#sidebar a,
.mobile-menu a{
  border-radius: 12px !important;
  padding: 8px 10px;
}

/* Force-desktop keeps warn icon hidden and banner above header */
html.force-desktop #__removed_warnIcon{ display:none !important; }
html.force-desktop #__removed_warnBanner.active{
  display:block !important;
  position:fixed;
  top:0; left:25%; width:50%;
  z-index:100000; pointer-events:auto;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
  opacity:.98;
}

/* --- inline style block 8 --- */
/* === TOGGLE BUTTON UNDER HEADER (MOBILE-ONLY, INCLUDING FORCE-DESKTOP) === */
#toggleDesktopBtnWrap{ display:none; }
@media (max-width:1024px){
  #toggleDesktopBtnWrap{ display:block; }
}
/* When desktop is forced on a mobile device, still show the button */
html.force-desktop #toggleDesktopBtnWrap{ display:block !important; }

#toggleDesktopBtn{
  position: fixed;
  top: calc(var(--hdr-h, 60px) + 8px);
  right: 10px;
  z-index: 5000;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--glass-bg, rgba(255,255,255,.7));
  backdrop-filter: blur(8px);
  font-size: .85rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* Optional hover/active feedback */
#toggleDesktopBtn:hover{ filter: brightness(0.98); }
#toggleDesktopBtn:active{ transform: translateY(1px); }

/* --- inline style block 9 --- */
/* === TOGGLE BUTTON: on header bottom-right (mobile only + force-desktop) === */
#toggleDesktopBtnWrap{ display:none; }
@media (max-width:1024px){
  #toggleDesktopBtnWrap{ display:block; }
}
html.force-desktop #toggleDesktopBtnWrap{ display:block !important; }

header{ position: sticky; } /* ensure positioned ancestor exists */
header #toggleDesktopBtnWrap{ position:absolute; right:10px; top:6px; z-index:6000; }
#toggleDesktopBtn{
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--glass-bg, rgba(255,255,255,.7));
  backdrop-filter: blur(8px);
  font-size: .85rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
#toggleDesktopBtn:hover{ filter: brightness(0.98); }
#toggleDesktopBtn:active{ transform: translateY(1px); }

/* --- inline style block 10 --- */
/* === TOGGLE VISIBILITY FIX (ensure visible on mobile & force-desktop) === */
@media (max-width:1024px){
  #toggleDesktopBtnWrap{ display:block !important; }
}
html.force-desktop #toggleDesktopBtnWrap{ display:block !important; }
header{ position:sticky; top:0; z-index:9999 !important; } /* header reliably positioned */
header #toggleDesktopBtnWrap{ position:absolute; right:10px; top:6px; z-index:6000; }
#toggleDesktopBtn{
  z-index:120000 !important;
  color:#0b4b78; font-weight:600;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* --- inline style block 11 --- */
/* === DESKTOP WARN PRESENTATION === */
@media (min-width:1025px){
  #__removed_warnIcon{ display:none !important; }
}
html.force-desktop #__removed_warnIcon{ display:none !important; }
/* Make the banner text fully clickable */
#__removed_warnBanner .warn-link{
  display:block; text-decoration:none; color:inherit;
}

/* --- inline style block 12 --- */
/* === HIDE WARN ICON ON DESKTOP === */
@media (min-width:1025px){
  #__removed_warnIcon{ display:none !important; }
}
/* Also hide when Desktop-Ansicht auf Mobile erzwungen ist */
html.force-desktop #__removed_warnIcon{ display:none !important; }

/* --- inline style block 13 --- */
/* === FINAL: Toggle button pinned ON header (top-right) for mobile & force-desktop === */
@media (max-width:1024px){
  #toggleDesktopBtn{ 
    position: fixed !important;
    top: 4px; 
    right: 10px; 
    z-index: 120001 !important; /* above warn banner */
    padding: 7px 11px;
    font-size: .85rem;
    border-radius: 9999px;
  }
}
html.force-desktop #toggleDesktopBtn{
  position: fixed !important;
  top: 4px; 
  right: 10px; 
  z-index: 120001 !important;
}

/* --- inline style block 14 --- */
/* === FINAL HEADER TOGGLE PLACEMENT (bottom-right, in header) === */
@media (max-width:1024px){
  header{ position: sticky; top: 0; }
  header #toggleDesktopBtnWrap{
    display: block !important;
    position: absolute !important;
    right: 10px !important;
    bottom: 6px !important;
    top: auto !important;
    z-index: 10010 !important; /* above header background, within header */
    pointer-events: auto;
  }
  header #toggleDesktopBtn{
    position: static !important;              /* sits inside the wrapper */
    display: inline-flex !important;
    align-items: center;
    gap: .25rem;
    padding: 8px 12px !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    background: var(--glass-bg, rgba(255,255,255,.8)) !important;
    backdrop-filter: blur(8px);
    font-size: .85rem !important;
    line-height: 1 !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.12) !important;
    z-index: 10011 !important;
  }
}
/* Show the button also when Desktop-Ansicht auf Mobile erzwungen ist */
html.force-desktop header #toggleDesktopBtnWrap{ display:block !important; }
/* Hide on real desktop (no force-desktop) */
@media (min-width:1025px){
  html:not(.force-desktop) #toggleDesktopBtnWrap{ display:none !important; }
}

/* --- inline style block 15 --- */
/* Mini social icons */
.socials a svg{width:22px;height:22px;vertical-align:middle;transition:transform .15s ease;}
.socials a:hover svg{transform:translateY(-1px) scale(1.08);}
.socials a{display:inline-flex;align-items:center;justify-content:center;line-height:0}

/* --- inline style block 16 --- */
.warnmap-frame{ width:100%; height:70vh; min-height:520px; border:0; display:block; }
  .warn-legend{
    display:grid; gap:6px; padding:10px 12px;
    border-top:1px solid rgba(0,0,0,.08); background:rgba(255,255,255,.92);
    font-weight:600;
  }
  .warn-legend .row{ display:flex; align-items:center; gap:8px; }
  .warn-legend .dot{
    width:16px; height:16px; border-radius:3px;
    display:inline-block; border:1px solid rgba(0,0,0,.25);
  }
  .dot-none{ background:#2e7d32; border-color:#1b5e20; } /* Grün */
  .dot-s1{   background:#ffea00; border-color:#b28704; } /* Gelb */
  .dot-s2{   background:#ff9800; border-color:#a65d00; } /* Orange */
  .dot-s3{   background:#d50000; border-color:#8e0000; } /* Rot */

/* --- inline style block 17 --- */
/* Beiträge aus Warnkarte unterhalb Fenster / oberhalb Legende */
  .warn-posts{
    padding: 10px 12px;
    border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.94);
    font-size: .95rem;
  }
  .warn-posts p{ white-space: pre-line; margin:6px 0 0; }
  .warn-posts hr{ border:0; border-top:1px solid rgba(0,0,0,.1); margin:8px 0; }

/* --- inline style block 18 --- */
/* iframe Höhe */
  #warnhinweis .warnmap-frame{ height:48vh !important; min-height:320px !important; }
  @media (min-width: 768px){
    #warnhinweis .warnmap-frame{ height:52vh !important; min-height:360px !important; }
  }
  @media (min-width: 1200px){
    #warnhinweis .warnmap-frame{ height:56vh !important; min-height:400px !important; }
  }

  /* Desktop kompakter: Media & Beiträge */
  @media (min-width: 1200px){
    #media, #medien, .media, .media-section { --card-pad: 8px; --card-radius: 10px; }
    #media .card, #medien .card, .media .card, .media-section .card { padding: var(--card-pad); border-radius: var(--card-radius); }
    #media img, #media video, #media iframe,
    #medien img, #medien video, #medien iframe,
    .media img, .media video, .media iframe,
    .media-section img, .media-section video, .media-section iframe {
      max-height: 28vh !important; height: auto; max-width: 100%; object-fit: cover;
    }
    #beitraege, #beiträge, #beitraege_warnhinweis { font-size: .90rem; }
    #beitraege .card, #beiträge .card, #beitraege_warnhinweis .card,
    #beitraege article, #beiträge article { padding: 8px 10px; border-radius: 10px; }
    #beitraege img, #beiträge img, #beitraege_warnhinweis img { max-height: 150px; height: auto; object-fit: cover; }
  }
  @media (min-width: 1600px){
    #media img, #media video, #media iframe,
    #medien img, #medien video, #medien iframe,
    .media img, .media video, .media iframe,
    .media-section img, .media-section video, .media-section iframe { max-height: 24vh !important; }
    #beitraege, #beiträge, #beitraege_warnhinweis { font-size: .88rem; }
  }

/* --- inline style block 19 --- */
/* Fix: Banner mittig fixiert auf Header */
#__removed_warnBanner{
  position:fixed !important;
  top:0; left:50%; transform:translateX(-50%);
  width:50%; max-width:600px;
  z-index:9999;
  background:linear-gradient(90deg,#ff8800,#ffbb33);
  color:#fff; font-weight:700;
  text-align:center; padding:8px 10px;
  border-radius:0 0 12px 12px;
  box-shadow:0 4px 16px rgba(0,0,0,.15);
}
/* Desktop: Warn-Icon ausblenden */
@media (min-width:1025px){
  #__removed_warnIcon{ display:none !important; }
}

/* --- inline style block 20 --- */
/* 🗺️ Warnkarten-Frame leicht vergrößert */
iframe.frame, iframe.warnmap-frame {
  min-height: 78vh;
  height: 78vh;
}
@media (max-width: 700px) {
  iframe.frame, iframe.warnmap-frame {
    min-height: 82vh;
    height: 82vh;
  }
}

/* 📘 Legende etwas kompakter */
#legende, .warn-legend {
  font-size: 0.9rem !important;
  padding: 8px 10px !important;
}
#legende h2, .warn-legend h2 {
  font-size: 1rem !important;
  margin-bottom: 6px !important;
}

/* --- inline style block 21 --- */
<script>






<style>
/* === Global milchiger Glas-Stil wie Header === */
#beitraege_wetter .post-item,
#beitraege_warnhinweis .post-item,
#beitraege_sturmjagd .post-item,
#beitraege_wetterwissen .post-item,
#beitraege_astrowissen .post-item,
#beitraege_kooperation .post-item,
#beitraege_ueber_uns .post-item {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#beitraege_wetter .post-item:hover,
#beitraege_warnhinweis .post-item:hover,
#beitraege_sturmjagd .post-item:hover,
#beitraege_wetterwissen .post-item:hover,
#beitraege_astrowissen .post-item:hover,
#beitraege_kooperation .post-item:hover,
#beitraege_ueber_uns .post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* --- inline style block 22 --- */
/* === Einheitlicher milchiger Glas-Look auch für Wetterwissen-Boxen === */
#beitraege_wetterwissen .post-item,
#beitraege_wetterwissen .post-title,
#beitraege_wetterwissen .post-body {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}
#beitraege_wetterwissen .post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* --- inline style block 23 --- */
/* === PERFORMANCE FIX: kein fixierter Hintergrund auf Mobilgeräten === */
body {
  background: url("background.jpg") center/cover no-repeat;
}
@media (min-width: 1001px) {
  body {
    background-attachment: fixed;
  }
}

/* --- inline style block 24 --- */
/* === CLS-Reduktion: Platz für Medien reservieren === */
.post-item img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.03);
}
.post-item img[width][height]{
  aspect-ratio: auto;
}
.post-item iframe{
  display:block;
  width:100%;
  aspect-ratio: 16 / 9;
  height:auto;
  border:0;
}
/* === Lange URLs umbrechen, damit sie in der Box bleiben === */
.post-item a {
  word-break: break-all;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
  display: inline;
  text-decoration: underline;
  color: #004d80;
}

/* --- inline style block 25 --- */
@media (min-width: 1100px){
  /* Startseite: Beiträge links, iFrame-Rail rechts */
  #Wetter .home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
  }
  #Wetter .home-rail {
    position: sticky;
    top: calc(var(--hdr-h, 72px) + 4px);
    align-self: start;
  }
  #Wetter .home-rail .sidebar-box iframe{
    width: 100%;
    display: block;
    border: 0;
    background: transparent;
  }
  /* Höhe für die einzelnen Boxen (anpassbar) */
  #Wetter .home-rail .box-warn iframe{ height: 360px; }
#Wetter .home-rail .box-koop iframe{ height: 360px; }
  #Wetter .home-rail .box-long15 iframe{ height: 360px; }
  /* Beiträge links breiter */
  #Wetter #beitraege_wetter{ max-width: none; }
}
@media (max-width: 1099.98px){
  #Wetter .home-rail { position: static; }
}
/* Kopfzeile in Sidebar-Boxen mit Session-Link vereinheitlichen */
.sidebar-box .box-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:8px;
}
.sidebar-box .box-head a{
  font-weight:800; text-decoration:none; color:inherit;
}

/* --- inline style block 26 --- */
@media (min-width: 1100px){
  #Wetter .home-final{ display:grid; grid-template-columns: minmax(0,1fr) 400px; gap:20px; align-items:start }
  #Wetter .rail{ position:sticky; top:76px; align-self:start }
  #Wetter #beitraege_wetter{ max-width:none }
  .sidebar-box{ background: rgba(255,255,255,.92); border:1px solid rgba(0,0,0,.1); border-radius:10px; padding:10px; box-shadow: 0 2px 10px rgba(0,0,0,.06) }
  .sidebar-box .head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; font-weight:800 }
  .sidebar-box .head a{ color:inherit; text-decoration:none }
  .sidebar-box iframe{ width:100%; display:block; border:0; background:transparent }
  /* Heights */
  .sidebar-box.warn iframe{ height:360px }
  .sidebar-box.tage3 iframe{ height:680px }  /* größer gewünscht */
  .sidebar-box.tage15 iframe{ height:420px }
  .sidebar-box.koop iframe{ height:420px }
}
@media (max-width: 1099.98px){
  #Wetter .rail{ position:static }
}
/* Disable scrollbars for warn */
.sidebar-box.warn iframe{ overflow:hidden }

/* --- inline style block 27 --- */
@media (max-width: 1099.98px){
  #Wetter .rail,
  #Wetter .sidebar-box,
  #Wetter .sidebar-box iframe{ display:none !important; }
}

/* --- inline style block 28 --- */
#Wetterwissen .content-wrap,
#Wetterwissen .cards-wrap,
#Wetterwissen .posts-wrap{ max-width:none !important; }
#Wetterwissen .card-grid,
#Wetterwissen .cards,
#Wetterwissen .posts,
#Wetterwissen #beitraege_wissen,
#Wetterwissen [id*="beitraege"],
#Wetterwissen [class*="grid"]{
  display:grid; gap:16px;
}
@media (min-width: 1100px){
  #Wetterwissen .card-grid,
  #Wetterwissen .cards,
  #Wetterwissen .posts,
  #Wetterwissen #beitraege_wissen,
  #Wetterwissen [id*="beitraege"],
  #Wetterwissen [class*="grid"]{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1500px){
  #Wetterwissen .card-grid,
  #Wetterwissen .cards,
  #Wetterwissen .posts,
  #Wetterwissen #beitraege_wissen,
  #Wetterwissen [id*="beitraege"],
  #Wetterwissen [class*="grid"]{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#Wetterwissen article,
#Wetterwissen .card{ width:100% }

/* --- inline style block 29 --- */
/* Hero 10-Tage Block: mobil unverändert, Desktop kleiner */
.hero-10tage{ margin: 12px auto; max-width: 1280px; }
.hero-10tage .frame-wrap{ position: relative; width: 100%; border-radius: 12px; overflow: hidden; }
.hero-10tage iframe{ width: 100%; height: 0; border: 0; display: block; background: transparent; }
/* Ab Desktop kleiner (Breite und damit auch Höhe) */
@media (min-width: 1024px){
  .hero-10tage{ max-width: 980px; }
}

/* --- inline style block 30 --- */
/* === Mobile Hero: Wetterkarten (aus 3tage.html) statt 10tage === */
.hero-forecast-mobile{ display:none; }
.hero-forecast-controls{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 6px auto 10px;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(5px);
  border-radius: 999px;
  padding: 8px 10px;
  position: relative;
  z-index: 10;
}

.hero-input-wrapper{ position:relative; flex: 1 1 100%; min-width: 0; }
.hero-input-wrapper input{
  width:100%;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.88);
  outline:none;
  font-size:1rem;
}
.hero-input-wrapper input:focus{
  border-color:#0077ff;
  box-shadow:0 0 0 2px rgba(0,119,255,.15);
}

.hero-suggest-list{
  position:absolute;
  top: calc(100% + 6px);
  left:0; right:0;
  margin:0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  max-height: 260px;
  overflow:auto;
  z-index: 20;
  display:none;
}
.hero-suggest-item{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  cursor:pointer;
}
.hero-suggest-item:last-child{ border-bottom:none; }
.hero-suggest-item:hover{ background: rgba(0,0,0,.05); }
.hero-suggest-primary{ font-weight:800; }
.hero-suggest-secondary{ display:block; font-size:.85rem; color:#555; margin-top:2px; }


.hero-day-block{
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  margin: 10px 0 6px;
}

.hero-carousel{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hero-carousel::-webkit-scrollbar{ height:0; }

.hero-time-card{
  flex: 0 0 92%;
  scroll-snap-align: start;
  background: rgba(255,255,255,.35);
  border-radius: 14px;
  padding: 10px 10px 8px;
  text-align:center;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
@media (min-width: 520px){ .hero-time-card{ flex-basis: 72%; } }
@media (min-width: 740px){ .hero-time-card{ flex-basis: 52%; } }

.hero-time-card .badge{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,95,163,.10);
  color:#004d80;
  font-weight:900;
  font-size:.88rem;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hero-time-card .icon{ margin: 8px 0 6px; }
.hero-time-card .icon img{ width: 38px; height: 38px; object-fit: contain; display:inline-block; }
.hero-time-card .temp{ font-weight:900; font-size:1.25rem; margin: 4px 0 6px; color:#0b4b78; }
.hero-time-card .meta{ font-size:.85rem; line-height:1.25; }

/* Mobile aktiv, aber Force-Desktop respektieren */
@media (max-width: 1000px){
  .hero-10tage .frame-wrap{ display:none; }
  .hero-forecast-mobile{ display:block; }
  html.force-desktop .hero-10tage .frame-wrap{ display:block; }
  html.force-desktop .hero-forecast-mobile{ display:none; }
}
@media (min-width: 1001px){
  .hero-forecast-mobile{ display:none; }
}

/* --- inline style block 31 --- */
/* === Neue Wettersuche + Minikarte === */
.weather-search{
  margin-top:6px;
  position:relative;
  font-size:.9rem;
}

.weather-search-input{
  display:flex;
  gap:6px;
}

.weather-search-input input[type="search"]{
  flex:1;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.15);
  background:rgba(255,255,255,.9);
  outline:none;
  font-size:.9rem;
}

.weather-search-input input[type="search"]:focus{
  border-color:#0077ff;
  box-shadow:0 0 0 2px rgba(0,119,255,.15);
}

.weather-search-input button{
  border-radius:999px;
  border:none;
  padding:0 10px;
  font-size:1rem;
  cursor:pointer;
  background:linear-gradient(135deg,#0077ff,#00c3ff);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.weather-search-input button:focus-visible{
  outline:2px solid #005fcc;
  outline-offset:2px;
}

.weather-suggestions{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 4px);
  z-index:5000;
  margin:0;
  padding:4px 0;
  background:var(--glass-bg);
  backdrop-filter:blur(6px);
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  list-style:none;
  max-height:260px;
  overflow-y:auto;
  border:1px solid rgba(0,0,0,.06);
  display:none;
}

.weather-suggestions.show{
  display:block;
}

.weather-suggestions li{
  padding:6px 10px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}

.weather-suggestions li[aria-selected="true"],
.weather-suggestions li:hover{
  background:rgba(0,119,255,.08);
}

.weather-suggestion-secondary{
  font-size:.8rem;
  opacity:.7;
}

.weather-no-results{
  padding:6px 10px;
  color:rgba(0,0,0,.6);
}

.weather-result-card{
  margin-top:10px;
  font-size:.9rem;
  border-radius:12px;
  background:var(--glass-bg);
  backdrop-filter:blur(6px);
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  padding:10px;
}

.weather-result-header{
  display:block;
}

.weather-location{
  font-weight:600;
  margin-bottom:4px;
}

.weather-temp-line{
  display:flex;
  flex-wrap:wrap;
  gap:4px 8px;
  align-items:baseline;
  margin-bottom:4px;
}

.weather-temp{
  font-size:1.2rem;
  font-weight:600;
}

.weather-desc{
  font-size:.9rem;
  opacity:.8;
}

.weather-meta{
  display:flex;
  flex-wrap:wrap;
  gap:4px 8px;
  opacity:.85;
}

.weather-meta span{
  white-space:nowrap;
}

.weather-icon-wrap img{
  width:40px;
  height:40px;
  display:block;
}

.weather-mini-map-wrap{
  margin-top:8px;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 1px 6px rgba(0,0,0,.15);
}

.weather-mini-map{
  width:100%;
  border:0;
  display:block;
  min-height:180px;
}

/* Mobile: Hamburger-Menü Schrift kleiner & mobile Wetterkarte kompakter */
@media (max-width: 1024px){
  .mobile-menu a{
    font-size:0.9rem;
  }
  #mobileSearch strong{
    font-size:0.9rem;
  }
  #mobileSearch .weather-result-card{
    font-size:0.85rem;
  }
}


.weather-icon-inline{
  display:flex;
  align-items:center;
}

.weather-icon-inline img{
  width:32px;
  height:32px;
  display:block;
}

/* --- inline style block 32 --- */
/* === PSI Patch v2: CLS/LCP Stabilisierung === */

/* Hero-iframe: Platz reservieren, CLS reduzieren */
.hero-10tage .frame-wrap{ position: relative; width: 100%; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.hero-10tage .frame-wrap iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
  display:block;
}

/* Sidebar-Boxen: feste Höhen, damit nichts "springt" */
@media (min-width:1100px){
  #Wetter .home-rail .sidebar-box.warn iframe{ height: 360px; }
#Wetter .home-rail .sidebar-box.tage3 iframe{ height: 260px; }
  #Wetter .home-rail .sidebar-box.tage15 iframe{ height: 360px; }
  #Wetter .home-rail .sidebar-box.koop iframe{ height: 360px; }
}

/* Skeleton für Beiträge: sofort sichtbarer Inhalt (besserer LCP) */
.wfc-skel{ padding: 8px 0; }
.wfc-skel-line{
  height: 12px;
  border-radius: 8px;
  background: rgba(0,0,0,.08);
  margin: 10px 0;
}
.wfc-skel-line.w1{ width: 72%; height: 18px; margin-top: 0; }
.wfc-skel-line.w2{ width: 94%; }
.wfc-skel-line.w3{ width: 86%; }
.wfc-skel-line.w4{ width: 64%; margin-bottom: 0; }

/* --- inline style block 33 --- */
/* Astrowissen: 1:1 Optik wie Wetterwissen */
#beitraege_astrowissen .post-item,
#beitraege_astrowissen .post-title,
#beitraege_astrowissen .post-body{
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}
#beitraege_astrowissen .post-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Astrowissen: Titel-Link in schwarzer dickschrift */
#astrowissen h3 a,
#beitraege_astrowissen h3 a{
  color:#000;
  font-weight:700;
  text-decoration:none;
}
#astrowissen h3 a:hover,
#beitraege_astrowissen h3 a:hover{
  text-decoration:underline;
}

/* --- inline style block 34 --- */
/* WFC mobile media enlarge */
@media (max-width: 768px) {
  /* Beiträge-Box nicht zu schmal – wie Textbereich */
  .post-item {
    max-width: 100% !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  /* Medien so breit wie der Textbereich */
  .post-item img,
  .post-item video,
  .post-item iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 12px;
  }

  /* Videos stabil im Verhältnis */
  .post-item video {
    aspect-ratio: 16 / 9;
  }
}

/* --- inline style block 35 --- */
.forecast-iframe-wrapper{display:none;margin:8px 0;max-width:300px}
  @media (min-width:1024px){
    .forecast-iframe-wrapper{display:block}
    .forecast-iframe{width:100%;height:220px;border:0;border-radius:8px;box-shadow:0 6px 12px rgba(16,24,40,0.08);overflow:hidden}
  }



/* --- CLS Stabilisierung (Mobile) --- */
#heroForecastOut{ min-height: 170px; } /* reserviert Platz bevor Live-Daten kommen */
@media (min-width: 1025px){
  #heroForecastOut{ min-height: 190px; }
}

/* Reserviere Platz für dynamische Beiträge/Medien, damit nichts "springt" */
#beitraege_wetter{ min-height: 260px; } /* mindestens Skeleton-Höhe */
.post-item{ overflow: hidden; }
.post-item img,
.post-item video{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  border-radius:8px;
  background: rgba(0,0,0,.06);
  min-height: 180px; /* verhindert Layout-Shift bis Bild geladen ist */
}
@media (min-width: 1025px){
  .post-item img,
  .post-item video{ min-height: 220px; }
}

/* Iframes/Karten: feste Ratio */
.post-item iframe,
.frame-wrap iframe{
  width:100%;
  aspect-ratio: 16 / 9;
  height:auto;
  display:block;
}
