/*
 * Erscheinungsbild der PC-Ansicht.
 * Vorlage: Referenzbild "Download (1)" (Adventure-Landingpage): Wolkenhimmel, scharfe Kanten, große fette Überschrift
 * links, dünn umrandete Knöpfe in Großbuchstaben, kleine Navigationsleiste mit "/", durchsichtige senkrechte Streifen.
 * Regeln aus dem Skill "minimalist-ui": flach (keine Verläufe, keine Schatten), 1-px-Linien, Linien-Icons statt Emojis,
 * Mono-Schrift für Kleingedrucktes, viel Weißraum, Elemente blenden beim Scrollen sanft ein.
 * Wird nach desktop.css, heatmap.css und radar.css geladen und überschreibt deren Werte.
 */
:root {
  --ink: #f3f7f9; --muted: rgba(228, 238, 243, .72); --line: rgba(255, 255, 255, .2);
  --glass: rgba(8, 22, 30, .5); --glass-line: rgba(255, 255, 255, .18);
  --accent: #ffffff;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Geist Mono", Consolas, monospace;
}
body { font-family: "SF Pro Display", "Segoe UI Variable Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; line-height: 1.6; }

/* Himmel: Foto plus eine flache dunkle Schicht (kein Verlauf) */
.sky { background: url("sky.jpg") center top / cover no-repeat, #0a1a22; }
.sky::after { content: ""; position: absolute; inset: 0; background: rgba(6, 16, 22, .5); }

.shell { gap: 0; }
main { display: grid; gap: 56px; padding-top: 8px; }

/* Kopfzeile */
.top { gap: 28px; padding-bottom: 8px; }
.mark { margin-right: auto; color: #fff; text-decoration: none; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.mark span { font-weight: 300; opacity: .8; margin-left: 2px; }
.search { width: auto; gap: 16px; align-items: center; }
.search input {
  width: 250px; height: 42px; padding: 0 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: #fff;
}
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: 0; border-bottom-color: #fff; }
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px; cursor: pointer; text-decoration: none;
  font: inherit; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: #fff;
  background: transparent; border: 1px solid rgba(255, 255, 255, .85); border-radius: 0; transition: background-color .2s, transform .2s;
}
.ghost-btn:hover { background: rgba(255, 255, 255, .14); filter: none; }
.ghost-btn:active { transform: scale(.98); }
.ghost-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.search .ghost-btn { color: #fff; background: transparent; }
.alt-link { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; color: var(--muted); }
.status { border-radius: 0; margin-bottom: 24px; }

/* Hero: links große Überschrift, mittig das Radar, rechts die Streifen */
.hero {
  position: relative; display: grid; align-items: stretch; gap: 28px;
  grid-template-columns: minmax(0, 1fr) 60px;
}
.hero-copy { align-self: end; padding-bottom: 6px; min-width: 0; max-width: 420px; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; color: var(--muted); }
.kicker #place { color: #fff; font-weight: 700; }
.kicker-sep { opacity: .55; }
.now-icon { display: inline-flex; margin-left: 4px; color: #fff; }
.hero-temp { margin: 0; font-size: clamp(110px, 12.5vw, 210px); font-weight: 800; line-height: .82; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.hero-temp .deg { font-weight: 300; margin-left: 2px; font-size: 1em; color: #fff; vertical-align: baseline; }
.cond { margin: 18px 0 0; font-size: clamp(1.5rem, 2.3vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; text-transform: none; }
.text { margin: 14px 0 22px; max-width: 34ch; font-size: .92rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 28px 0 0; }
.facts div { padding: 10px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.facts dt { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; color: var(--muted); }
.facts dd { font-size: .95rem; font-weight: 600; }

.strips { display: flex; align-self: stretch; }
.strips i { flex: 1; }
.strips i:nth-child(1) { background: rgba(255, 255, 255, .08); }
.strips i:nth-child(2) { background: rgba(20, 38, 46, .34); }
.strips i:nth-child(3) { background: rgba(10, 20, 26, .58); }

/* Flächen: eckig, flach, dünne Linie */
.panel {
  border-radius: 0; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: none; padding: 28px;
}
.panel-head { margin-bottom: 22px; }
.panel h2 { margin: 0; font-family: var(--mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; }
.panel h2 .num { color: rgba(255, 255, 255, .5); margin-right: 10px; }
.panel-sub, .sun { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; }
.radar-panel { padding: 20px; }
.radar-panel .panel-head { margin-bottom: 14px; }
.radar-panel .wr {
  --wr-map-h: clamp(300px, calc(100dvh - 430px), 620px);
  --wr-accent: #ffffff; --wr-ink: #f3f7f9; --wr-muted: rgba(228, 238, 243, .72); --wr-chip-line: rgba(255, 255, 255, .24); --wr-sea: #0a1a22;
}

/* Radar-Bedienung im gleichen Stil */
.radar-panel .wr-src { border-radius: 0; height: 34px; padding: 0 16px; background: transparent; border-color: var(--line); font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .16em; }
.radar-panel .wr-src[aria-pressed="true"] { background: #fff; color: #0b1a22; border-color: #fff; }
.radar-panel .wr-wo-frame, .radar-panel .wr-map { border-radius: 0; border-color: var(--line); }
.radar-panel .wr-credits { font-family: var(--mono); font-size: .64rem; letter-spacing: .02em; }
.radar-panel .wr-play { width: 42px; height: 42px; border-radius: 0; background: transparent; border: 1px solid rgba(255, 255, 255, .85); color: #fff; font-size: 13px; }
.radar-panel .wr-play:hover { background: rgba(255, 255, 255, .14); filter: none; }
.radar-panel .wr-toggle span { padding: 0 16px; height: 34px; display: inline-flex; align-items: center; border-radius: 0; background: transparent; border: 1px solid var(--line); font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: .64rem; color: var(--muted); }
.radar-panel .wr-toggle input:checked + span { background: #fff; color: #0b1a22; border-color: #fff; }
.radar-panel .wr-time { font-family: var(--mono); font-size: .95rem; }
.radar-panel .wr-map .leaflet-control-zoom a { border-radius: 0; }
.radar-panel .wr-range { accent-color: #fff; }

/* Navigationsleiste */
.subnav { display: flex; align-items: center; gap: 30px; padding: 15px 0; margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; }
.subnav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.subnav a:hover, .subnav a:focus-visible { color: #fff; }
.subnav-icon { display: inline-flex; color: #fff; }
.subnav-sep { opacity: .5; margin-left: -12px; }
.subnav-down { margin-left: auto; display: inline-flex; }
.subnav { margin-bottom: -28px; }

/* Wettersymbole */
.wx-icon { display: block; }
.hero-copy .now-icon .wx-icon { width: 28px; height: 28px; }

/* Tage als Reihe */
.days-panel .panel-head { align-items: center; }
.days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.days li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 8px;
  border: 0; border-right: 1px solid var(--line);
}
.days li:last-child { border-right: 0; }
.days .rng { display: none; }
.days .n { order: 1; font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: .64rem; font-weight: 500; color: var(--muted); }
.days .i { order: 2; display: flex; justify-content: center; }
.days li > :nth-child(6) { order: 3; font-size: 1.7rem; font-weight: 700; min-width: 0; text-align: center; }
.days li > :nth-child(4) { order: 4; min-width: 0; text-align: center; color: var(--muted); font-weight: 500; }
.days li > :nth-child(3) { order: 5; min-width: 0; text-align: center; min-height: 1.1em; font-family: var(--mono); }

/* Stunden */
.hours .curve { stroke: #fff; stroke-width: 2; }
.hours .dot { stroke: #fff; fill: #0c1c25; }
.hours .lbl { font-family: var(--mono); font-weight: 500; }
.hours-cols .h { font-family: var(--mono); }
.hours-cols .i { display: flex; justify-content: center; padding: 4px 0; }
.hours-cols .r { color: #b9d6ff; font-family: var(--mono); }

/* Regentage: gleiche durchsichtige Karte wie die anderen, Zellen in Blautönen (mehr Regen = dunkleres Blau) */
.heat-panel { padding: 28px; }
.heat-panel h2 .num { color: rgba(255, 255, 255, .5); }
.heat-stats dt, .heat-source, .heat-legend, .hm-months, .hm-days { font-family: var(--mono); }
.hm-cell { border-radius: 2px; }
.heat-legend i { border-radius: 2px; }

.tip { border-radius: 0; font-family: var(--mono); font-size: .74rem; }
.foot { color: var(--muted); font-family: var(--mono); font-size: .68rem; margin-top: 56px; }

/* Sanftes Einblenden beim Scrollen (per JS gesetzt: .reveal, dann .in) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 80ms); }
  .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .strips { display: none; }
  .hero-copy { padding-bottom: 12px; max-width: none; }
  .days { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}

/* Korrekturen: feste Plätze im Hero, Icons in der Stundenreihe klein halten */
.hero-copy { grid-column: 1; grid-row: 1; }
.strips { grid-column: 2; grid-row: 1; }
.radar-panel { grid-column: auto; grid-row: auto; }
.hours .hours-cols .wx-icon { width: 26px; height: 26px; overflow: visible; }


/* Radar: eigene Fläche unter der ersten Linie, ganze Breite */
.radar-panel .wr { --wr-map-h: clamp(360px, calc(100dvh - 300px), 620px); }

/* Ohne Navigationsleiste: Radar direkt unter der 15, die drei Karten (01 bis 03) weiter unten */
.days-panel { margin-top: 110px; }
.hero { margin-bottom: -16px; }
