/* 12.11.2026: Lauf-Zeile aus, Zeitenregler nach oben (Handy)
   30.11.2026: Vorschau/Live: Regler direkt über der Karte (#regler:has(+ #karte)) */
header .lauf:not(.laden),
.lauf2:not(.laden){display:none !important}
@media (max-width:999px),(max-aspect-ratio:5/4){
  header #regler{
    order:4;
    flex:1 1 100%;
    width:100%;
    height:36px;
    margin:4px 0 2px;
    accent-color:var(--acc);
  }
  #regler:has(+ #karte){
    flex:0 0 auto;
    width:100%;
    height:36px;
    margin:2px 0 4px;
    accent-color:var(--acc);
    align-self:stretch;
  }
  header .lauf.laden{
    order:5;
    flex:1 1 100%;
    font-size:.72rem;
    line-height:1.3;
  }
}

/* 15.11.2026: Langdruck / Rechtsklick → Bild herunterladen */
#karte img#bild, #lbbild, #zbbild, #zbfl,
#stage, #stage img, img#karte{
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
}
#nhw-bild-menu{
  position:fixed;
  z-index:2147483002;
  display:flex;
  flex-direction:column;
  min-width:188px;
  max-width:calc(100vw - 16px);
  padding:5px;
  border-radius:12px;
  border:1px solid #405875;
  background:#172b45;
  box-shadow:0 8px 28px rgba(0,0,0,.45);
  color:#edf3fc;
  font:600 14px/1.25 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
#nhw-bild-menu button{
  appearance:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:44px;
  margin:0;
  padding:10px 14px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#edf3fc;
  font:inherit;
  cursor:pointer;
  text-align:center;
}
#nhw-bild-menu button:hover,
#nhw-bild-menu button:focus-visible{
  background:#243656;
  outline:0;
}
#nhw-bild-menu button:disabled{
  opacity:.7;
  cursor:wait;
}

/* 30.11.2026 21:5x Karte am PC groß v2 (pt7875u): nur Desktop-Layout auf Kartenseiten, Handy/App unverändert.
   Links Lauf-/Modellknöpfe, Mitte Karte (~90 % Fensterhöhe), rechts Produktliste; Seite scrollt,
   nach dem Laden wird der Kartenbereich ins Bild gescrollt. Spenden/App-Kasten als eine schmale Zeile.
   Maße setzt nhw-karten-ui.js (--nhw-haupt-h, --nhw-karte-w, --nhw-karte-h, --nhw-links).
   REVERT: /opt/wetter/backups/karte-pc-gross2-20261130/REVERT.sh */
@media (min-width:1000px) and (min-aspect-ratio:5001/4000){
  .app:has(> .haupt > .kspalte){height:auto !important;min-height:0 !important;overflow:visible !important}
  .app > .haupt:has(> .kspalte){flex:0 0 auto !important;height:var(--nhw-haupt-h,100vh) !important;justify-content:center !important;gap:16px !important}
  .app > .haupt > .kspalte{display:grid !important;grid-template-columns:var(--nhw-links,190px) var(--nhw-karte-w,560px);grid-template-rows:auto 1fr auto;column-gap:12px;row-gap:6px;align-content:start;width:auto !important;max-width:none !important;height:100% !important}
  .app > .haupt > .kspalte > *{grid-column:1;min-width:0}
  .app > .haupt > .kspalte > #laeufe{grid-row:1;flex-wrap:wrap;gap:4px}
  .app > .haupt > .kspalte > #laeufe button{padding:4px 8px;font-size:.78rem}
  .app > .haupt > .kspalte > #nhw-modellwechsel{grid-row:2;align-self:start;align-content:flex-start;flex-wrap:wrap;gap:4px;height:auto;overflow:visible}
  .app > .haupt > .kspalte > #nhw-modellwechsel button{min-height:30px !important;height:auto !important;padding:3px 7px !important;font-size:.76rem !important}
  .app > .haupt > .kspalte > #karte{grid-column:2 !important;grid-row:1 / span 2 !important;width:var(--nhw-karte-w,560px) !important;height:var(--nhw-karte-h,80vh) !important;flex:none !important;align-self:start}
  .app > .haupt > .kspalte > #nhw-pflicht-sicht{grid-column:2 !important;grid-row:3 !important;margin:0 !important}
  .app > .app-leer{display:none}
  .app > #mv-box{flex:0 0 auto !important}
  html:has(.app > .haupt > .kspalte) #nhw-boxen2{display:flex !important;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:4px auto !important;padding:0 8px}
  html:has(.app > .haupt > .kspalte) #nhw-boxen2 .spende-s{margin:0 !important;padding:3px 12px !important;max-width:none !important;flex-wrap:nowrap !important}
  html:has(.app > .haupt > .kspalte) #nhw-boxen2 .nhw-app2{margin:0 !important;max-width:none !important;gap:6px}
  html:has(.app > .haupt > .kspalte) #nhw-boxen2 .nhw-app2 a{padding:3px 12px !important;font-size:13px !important;border-radius:999px !important;min-height:0 !important;height:30px}
  html:has(.app > .haupt > .kspalte) #nhw-boxen2 .nhw-app2 a.gp small{display:none !important}
}

/* 30.11.2026 21:5x v3: Zeitregler am PC direkt über der Karte (Kartenseiten). REVERT: /opt/wetter/backups/karte-pc-gross3-20261130/REVERT.sh */
@media (min-width:1000px) and (min-aspect-ratio:5001/4000){
  .app > .haupt > .kspalte{grid-template-rows:auto auto 1fr auto !important}
  .app > .haupt > .kspalte > #laeufe{grid-row:1 !important}
  .app > .haupt > .kspalte > #nhw-modellwechsel{grid-row:2 / span 3 !important}
  .app > .haupt > .kspalte > #regler{grid-column:2 !important;grid-row:1 !important;width:100% !important;height:30px !important;margin:0 !important;accent-color:var(--acc,#ff8c00);cursor:pointer;align-self:center}
  .app > .haupt > .kspalte > #karte{grid-row:2 / span 2 !important}
  .app > .haupt > .kspalte > #nhw-pflicht-sicht{grid-row:4 !important}
}

/* 30.11.2026 21:5x v4 (Sebastian 21:51): Modellkartenseiten am PC als Vollbild-Layout – kein gemeinsamer Kopf,
   keine Spenden-/App-Zeile, oben nur „Zur Startseite“ (rechte Spalte). Knöpfe links, Karte groß, Produktliste bis zum Rand.
   Handy/App unverändert. REVERT: /opt/wetter/backups/karte-pc-gross4-20261130/REVERT.sh */
@media (min-width:1000px) and (min-aspect-ratio:5001/4000){
  html:has(.app > .haupt > .kspalte) .nhw-kopf2,
  html:has(.app > .haupt > .kspalte) #nhw-topleiste,
  html:has(.app > .haupt > .kspalte) #nhw-boxen2{display:none !important}
  .app > .haupt:has(> .kspalte){justify-content:flex-start !important;gap:16px !important;padding:6px 12px !important}
  .app > .haupt > .seite{flex:1 1 auto !important;min-width:285px;max-width:none !important;width:auto !important}
  .app > .haupt > .seite .modnav .grp.m4{grid-template-columns:repeat(auto-fill,minmax(150px,1fr)) !important}
  .app > .haupt > .seite > .titel2{max-width:none}
}
@media (min-width:1000px) and (min-aspect-ratio:5001/4000){
  .app > .haupt > .kspalte > #laeufe{flex-wrap:nowrap !important;gap:3px !important;align-self:center;overflow:hidden}
  .app > .haupt > .kspalte > #laeufe .ltitel{display:none !important}
  .app > .haupt > .kspalte > #laeufe button{padding:3px 6px !important;font-size:.72rem !important;white-space:nowrap}
}
/* 30.11.2026 21:5x (Sebastian 21:53): Handy/App – Modellknöpfe so klein wie die Laufknöpfe, „ab 22 Uhr“ klein in derselben Zeile */
@media (max-width:999px),(max-aspect-ratio:5/4){
  .nhw-mwbar button{flex-direction:row !important;height:30px !important;min-height:30px !important;padding:0 7px !important;font-size:.78rem !important;line-height:1 !important;gap:3px;border-radius:9px !important}
  .nhw-mwbar button small{display:inline !important;height:auto !important;font-size:.58rem !important;line-height:1 !important;opacity:.85}
  .nhw-mwbar button small:empty{display:none !important}
}
@media (min-width:1000px) and (min-aspect-ratio:5001/4000){
  .nhw-mwbar button{flex-direction:row !important;gap:3px}
  .nhw-mwbar button small{display:inline !important;height:auto !important;font-size:.6rem !important}
  .nhw-mwbar button small:empty{display:none !important}
}
/* 30.11.2026 21:5x v6 (Sebastian pt7880u): Karte am PC nach BREITE – Knopfspalte 150 px, Produktliste 300–340 px (2 Spalten, mitlaufend),
   Karte füllt die Mitte, Höhe aus Seitenverhältnis, Seite scrollt. REVERT: /opt/wetter/backups/karte-pc-gross5-20261130/REVERT-karte-breite.sh */
@media (min-width:1000px) and (min-aspect-ratio:5001/4000){
  .app > .haupt:has(> .kspalte){height:auto !important;align-items:flex-start !important}
  .app > .haupt > .kspalte{height:auto !important;grid-template-rows:auto auto auto auto !important}
  .app > .haupt > .kspalte > #karte{align-self:start}
  .app > .haupt > .seite{flex:1 1 var(--nhw-seite,300px) !important;min-width:var(--nhw-seite,300px) !important;height:auto !important;max-height:100vh;overflow-y:auto;position:sticky;top:0;align-self:flex-start}
  .app > .haupt > .seite .modnav .grp.m4{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
/* 30.11.2026 21:59 v8 (pt7882u): Zeitregler am PC rechts oben unter der Überschrift, sticky; Karte links ab oben.
   REVERT: /opt/wetter/backups/karte-pc-gross7-20261130/REVERT.sh */
@media (min-width:1000px) and (min-aspect-ratio:5001/4000){
  .app > .haupt > .seite .titel2 > #regler{display:block !important;width:100% !important;height:32px !important;margin:4px 0 8px !important;position:sticky;top:0;z-index:6;background:var(--bg,#0f172a);accent-color:var(--acc,#ff8c00);cursor:pointer;padding:0 2px;box-sizing:border-box}
  .app > .haupt > .kspalte > #karte{grid-row:1 / span 3 !important}
  .app > .haupt > .kspalte > #nhw-modellwechsel{grid-row:2 / span 3 !important}
  .app > .haupt > .kspalte > #nhw-pflicht-sicht{grid-row:4 !important}
}
