/* SEEHÖHE (Beispiel) – Berghotel am Tauernsee. Eine Seite, zwei Jahreszeiten.
   Farben hängen an html[data-zeit]; alle Größen kommen aus den Variablen unten. */

@font-face { font-family: "Jakarta"; src: url("../schrift/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../schrift/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../schrift/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

@property --tief { syntax: "<color>"; inherits: true; initial-value: #06474d; }
@property --grund { syntax: "<color>"; inherits: true; initial-value: #0a6c72; }
@property --mitte { syntax: "<color>"; inherits: true; initial-value: #17a0a6; }
@property --hell { syntax: "<color>"; inherits: true; initial-value: #fff4e2; }
@property --tinte { syntax: "<color>"; inherits: true; initial-value: #06383d; }
@property --akzent { syntax: "<color>"; inherits: true; initial-value: #ff6a3d; }
@property --auf-akzent { syntax: "<color>"; inherits: true; initial-value: #2b0d03; }

:root {
  /* Sommer: Seegrün, Abendsonne, warmes Weiß */
  --tief: #06474d; --grund: #0a6c72; --mitte: #17a0a6; --hell: #fff4e2; --tinte: #06383d; --akzent: #ff6a3d; --auf-akzent: #2b0d03;
  /* Schrift-Ordnung: fünf Größen */
  --g-wort: clamp(3rem, min(15vw, 24svh), 17rem);
  --g-zeile: clamp(2.1rem, min(5.2vw, 9svh), 5.4rem);
  --g-ueber: clamp(1.5rem, 2.4vw, 2.6rem);
  --g-text: clamp(1.0625rem, 1.05vw, 1.1875rem);
  --g-klein: 0.875rem;
  /* Abstände */
  --a1: 8px; --a2: 16px; --a3: 24px; --a4: clamp(28px, 3.2vw, 40px); --a5: clamp(44px, 5vw, 64px); --a6: clamp(64px, 8vw, 104px); --a7: clamp(96px, 12vw, 168px);
  --rand: clamp(20px, 4.5vw, 72px);
  --rund: 22px;
  --schrift: "Jakarta", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --weich: cubic-bezier(.2, .75, .2, 1);
  --leiste: 72px;
  transition: --tief .9s var(--weich), --grund .9s var(--weich), --mitte .9s var(--weich), --hell .9s var(--weich), --tinte .9s var(--weich), --akzent .9s var(--weich), --auf-akzent .9s var(--weich);
}
/* Winter: blaue Stunde, Alpenglühen, Eisweiß */
html[data-zeit="winter"] { --tief: #090f33; --grund: #131c5a; --mitte: #3447b5; --hell: #eef1ff; --tinte: #0c1340; --akzent: #ff6088; --auf-akzent: #2a0312; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--leiste); }
body { background: var(--tief); color: #fff; font-family: var(--schrift); font-size: var(--g-text); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }
.innen { width: min(1600px, 100% - 2 * var(--rand)); margin-inline: auto; }
.sprung { position: fixed; left: 12px; top: -80px; z-index: 99; background: #fff; color: #06383d; padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.sprung:focus { top: 12px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.022em; line-height: 1.06; text-wrap: balance; }

/* ---------- Knopf und Schalter ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--akzent); color: var(--auf-akzent); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .25s var(--weich), box-shadow .25s var(--weich); }
.knopf:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.knopf:active { transform: scale(.97); }
.knopf.klein { min-height: 44px; padding: 8px 20px; font-size: .95rem; }
.schalter { display: inline-flex; padding: 3px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .55); }
.schalter button { min-height: 38px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background-color .35s var(--weich), color .35s var(--weich); }
.schalter button[aria-pressed="true"] { background: #fff; color: var(--tinte); }
.schalter.gross { padding: 5px; border-width: 2px; }
.schalter.gross button { min-height: 60px; padding: 12px clamp(22px, 2.6vw, 40px); font-size: clamp(1.2rem, 2vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em; }
html:not(.js) .schalter { display: none; }

/* ---------- Leiste ---------- */
.leiste { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--leiste); transition: background-color .4s ease; }
html.unten .leiste { background: var(--tief); }
.leiste-innen { width: min(1600px, 100% - 2 * var(--rand)); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.marke { font-weight: 800; letter-spacing: .16em; font-size: 1.05rem; text-decoration: none; padding: 10px 0; }
.leiste-wege { margin-left: auto; display: flex; gap: clamp(14px, 2vw, 30px); }
.leiste-wege a { font-weight: 600; font-size: .95rem; text-decoration: none; padding: 12px 2px; }
/* Im Kopf gehört der Himmel dem Riesenwort: die Menüpunkte kommen, sobald der Kopf vorbei ist. */
html.js:not(.unten) .leiste-wege { opacity: 0; visibility: hidden; }
.leiste-wege { transition: opacity .4s ease, visibility 0s linear 0s; }
.leiste-wege a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Kopf ---------- */
.kopf { position: relative; height: 420svh; }
.kopf-buehne { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #2a5fae; }
.kasten { position: absolute; left: 55%; top: 0; width: max(100%, 177.78svh); aspect-ratio: 16 / 9; translate: -55% 0; container-type: inline-size; will-change: transform; }
.kasten picture { display: contents; }
.kasten .still, .kasten canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kasten .still.winter { opacity: 0; }
.kasten canvas { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
body.szene-an .kasten canvas { opacity: 1; }
.himmel { position: absolute; inset: 0; overflow: hidden; -webkit-mask: url("../bilder/kopf-himmel.png") center / 100% 100% no-repeat; mask: url("../bilder/kopf-himmel.png") center / 100% 100% no-repeat; }
.wort-heber { position: absolute; left: 55%; top: 4.7cqw; translate: -50% 0; transition: transform 1.7s cubic-bezier(.16, .8, .2, 1), opacity 1s ease; }
html.vor .wort-heber { transform: translateY(17cqw); opacity: 0; }
.wort { display: block; font-weight: 800; font-size: min(13.2cqw, 15vw); line-height: 1; letter-spacing: .012em; white-space: nowrap; color: #fff; will-change: transform; }

.dock { position: absolute; left: max(var(--rand), (100% - 1600px) / 2); right: max(var(--rand), (100% - 1600px) / 2); bottom: clamp(14px, 3.6svh, 36px); z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(230px, .7fr); gap: clamp(18px, 2.2vw, 40px); align-items: center; background: var(--tief); border-radius: var(--rund); padding: clamp(16px, 1.7vw, 26px) clamp(20px, 2.2vw, 36px); will-change: transform; }
.dock h1 { font-size: clamp(1.6rem, min(2.5vw, 5svh), 2.8rem); }
.dock h1 span { display: block; white-space: nowrap; }
.karte-zeile { max-width: 34ch; font-size: 1.02rem; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.karte-beleg { margin-top: 6px; font-family: var(--mono); font-size: .76rem; color: rgba(255, 255, 255, .72); }
.dock-ruf { display: grid; gap: 8px; justify-items: start; }
.karte-ruhe { max-width: 26ch; font-size: .8rem; line-height: 1.35; color: rgba(255, 255, 255, .76); }
.jahr { font-family: var(--mono); padding-left: clamp(16px, 1.8vw, 30px); border-left: 1.5px solid rgba(255, 255, 255, .22); }
.jahr-monate { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .62); padding-bottom: 12px; border-bottom: 1.5px solid rgba(255, 255, 255, .26); }
.jahr-zeiger { position: absolute; left: 0; bottom: -6px; width: calc(100% / 7); height: 11px; will-change: transform; }
.jahr-zeiger::after { content: ""; position: absolute; left: 50%; top: 0; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--akzent); }
.jahr-werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.jahr-werte b { display: block; font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jahr-werte span { white-space: nowrap; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .66); }
.jahr-lade { position: relative; margin-top: 10px; padding-top: 8px; font-size: .7rem; color: rgba(255, 255, 255, .76); }
.jahr-lade i { position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--akzent); transform: scaleX(0); transform-origin: left; transition: opacity .6s ease .3s; }
.jahr-lade.fertig i { opacity: 0; }

/* ---------- Die Wahl mit Gratstaffel ---------- */
.wahl { position: relative; z-index: 3; margin-top: -58svh; }
.staffel { position: relative; height: 24vw; pointer-events: none; overflow: hidden; }
.grat { position: absolute; left: -5%; right: -5%; bottom: -2px; height: 100%; will-change: transform; }
.g1 { background: var(--mitte); clip-path: polygon(0 62%, 6% 48%, 11% 55%, 18% 30%, 23% 41%, 29% 22%, 35% 44%, 41% 36%, 47% 52%, 54% 28%, 60% 40%, 66% 18%, 72% 38%, 79% 30%, 85% 50%, 91% 34%, 96% 46%, 100% 40%, 100% 100%, 0 100%); }
.g2 { background: var(--grund); clip-path: polygon(0 70%, 5% 78%, 12% 56%, 17% 66%, 24% 50%, 31% 68%, 38% 58%, 44% 72%, 51% 54%, 57% 66%, 63% 48%, 70% 64%, 76% 56%, 83% 72%, 89% 58%, 95% 68%, 100% 60%, 100% 100%, 0 100%); }
.g3 { background: var(--tief); clip-path: polygon(0 88%, 7% 80%, 13% 90%, 21% 76%, 28% 86%, 36% 78%, 43% 90%, 52% 80%, 59% 88%, 67% 76%, 75% 88%, 82% 80%, 90% 90%, 100% 82%, 100% 100%, 0 100%); }
.wahl-grund { position: relative; margin-top: -1px; background: var(--tief); padding: var(--a5) 0 var(--a7); }
.satz { font-size: var(--g-zeile); max-width: 19ch; line-height: 1.04; letter-spacing: -0.028em; }
.satz .w { opacity: .24; transition: opacity .5s ease; }
.satz .w.an { opacity: 1; }
.wahl-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: var(--a4); }
.wahl-hinweis { max-width: 34ch; color: rgba(255, 255, 255, .82); }
.zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: var(--a5); padding-top: var(--a3); border-top: 1.5px solid rgba(255, 255, 255, .24); }
.zahlen dt { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .72); }
.zahlen dd { margin-top: 6px; font-size: clamp(2.2rem, 4.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- „je“: Text, der mit der Jahreszeit umblättert ---------- */
.je { display: grid; overflow: clip; overflow-clip-margin: .14em; }
.preis .je { display: inline-grid; vertical-align: bottom; }
.je > * { grid-area: 1 / 1; transition: transform .75s var(--weich), opacity .5s ease, visibility 0s linear 0s; }
html.js:not([data-zeit="winter"]) .je > .wi { transform: translateY(100%); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, .75s; }
html.js[data-zeit="winter"] .je > .so { transform: translateY(-100%); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, .75s; }
html:not(.js) .je > .wi { display: none; }

/* ---------- Welle: beim Umschalten zieht ein Gratband über den ganzen Bildschirm ---------- */
.welle { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; visibility: hidden; }
.welle i { position: absolute; left: 0; right: 0; top: 0; height: 54vh; background: var(--mitte); will-change: transform; transform: translateY(-60vh); clip-path: polygon(0 12%, 7% 4%, 13% 14%, 20% 2%, 27% 11%, 34% 5%, 42% 16%, 50% 3%, 57% 12%, 65% 0, 73% 13%, 81% 6%, 89% 15%, 100% 5%, 100% 88%, 93% 97%, 86% 86%, 78% 100%, 70% 89%, 62% 96%, 54% 85%, 46% 98%, 38% 88%, 30% 95%, 22% 84%, 14% 97%, 7% 87%, 0 94%); }
.welle.ab, .welle.auf { visibility: visible; }
.welle.ab i { animation: welle-ab 1.1s cubic-bezier(.5, .05, .3, 1) both; }
.welle.auf i { animation: welle-auf 1.1s cubic-bezier(.5, .05, .3, 1) both; }
@keyframes welle-ab { from { transform: translateY(-58vh); } to { transform: translateY(104vh); } }
@keyframes welle-auf { from { transform: translateY(104vh); } to { transform: translateY(-58vh); } }

/* ---------- Bildpaare: Sommer liegt unten, Winter kommt mit der Schneegrenze ---------- */
.paar { position: relative; }
.paar > picture { position: absolute; inset: 0; display: block; }
.paar > picture img { width: 100%; height: 100%; object-fit: cover; }
.paar > .wi { will-change: clip-path; }
html:not(.js) .paar > .wi { display: none; }

/* ---------- Wasser ---------- */
.wasser { position: relative; height: 250svh; }
.wasser-buehne { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #0b6f78; }
.paar.voll { position: absolute; inset: 0; }
.paar.voll > picture img { object-position: 40% 50%; }
.wasser-buehne::after { content: ""; position: absolute; inset: 42% 0 0 0; z-index: 2; background: linear-gradient(to top, rgba(0, 32, 44, .78), rgba(0, 32, 44, 0)); pointer-events: none; }
.wasser-text { position: absolute; left: 0; right: 0; bottom: clamp(18px, 6svh, 60px); z-index: 3; }
.riese { font-size: clamp(4rem, min(13vw, 22svh), 12rem); font-weight: 800; line-height: .92; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.wasser-text h2 { margin-top: 6px; font-size: var(--g-ueber); max-width: 24ch; }
.wasser-satz { margin-top: 10px; max-width: 54ch; color: rgba(255, 255, 255, .92); }
.wasser-liste { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 16px; font-family: var(--mono); font-size: .8rem; color: rgba(255, 255, 255, .86); }
.griff { position: absolute; right: max(var(--rand), (100% - 1600px) / 2); top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; translate: 0 -50%; cursor: ns-resize; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 999px; }
.griff-linie { display: none; }
.griff-wort { order: -1; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; padding: 7px 12px; border-radius: 999px; background: var(--tief); color: #fff; }
.griff-knauf { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--tinte); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); transition: transform .25s var(--weich); }
.griff:hover .griff-knauf, .griff.zieht .griff-knauf { transform: scale(1.1); }
html:not(.js) .griff { display: none; }

/* ---------- helle Abschnitte und Grat-Kante ---------- */
.hell { background: var(--hell); color: var(--tinte); }
.grat-oben { position: relative; z-index: 2; margin-top: -5vw; padding-top: calc(5vw + var(--a6)); clip-path: polygon(0 5vw, 4% 3.2vw, 9% 4.4vw, 15% 1.6vw, 21% 3.4vw, 27% .6vw, 33% 2.8vw, 39% 1.8vw, 46% 4vw, 52% 1vw, 58% 2.9vw, 64% 0, 70% 2.4vw, 77% 1.2vw, 84% 3.8vw, 90% 2vw, 95% 3.4vw, 100% 1.5vw, 100% 100%, 0 100%); }

/* ---------- Suiten ---------- */
.suiten { padding-bottom: calc(5vw + var(--a6)); }
.suiten-kopf { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px 64px; align-items: end; margin-bottom: var(--a4); }
.suiten-kopf h2 { font-size: var(--g-zeile); letter-spacing: -0.028em; max-width: 15ch; }
.suiten-kopf p { max-width: 46ch; }
.fenster { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rund); overflow: hidden; background: #22313f; }
.blick { position: absolute; left: 14%; top: 12%; width: 73%; height: 58%; overflow: hidden; }
.blick-zug { position: absolute; inset: -8%; will-change: transform; }
.innenraum { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; scale: 1.025; will-change: transform; }
.arten { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: var(--a4); border-top: 1.5px solid color-mix(in srgb, var(--tinte) 28%, transparent); }
.arten li { padding-top: 24px; }
.arten h3 { font-size: var(--g-ueber); }
.arten p { margin-top: 6px; max-width: 34ch; }
.preis { font-family: var(--mono); font-weight: 500; }
.preis .je { font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--tinte); }
.preis small { font-size: .78rem; font-weight: 400; }
.fein { margin-top: var(--a3); font-size: var(--g-klein); opacity: .78; max-width: 70ch; }

/* ---------- Ein Tag ---------- */
.tag { background: var(--grund); padding-bottom: var(--a6); }
.tag-raster { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 88px); }
.tag-links { position: sticky; top: calc(var(--leiste) + 28px); align-self: start; }
.tag-links h2 { font-size: var(--g-ueber); }
.uhr { margin-top: 10px; font-family: var(--mono); font-weight: 500; font-size: clamp(4.4rem, min(12.5vw, 26svh), 13.5rem); line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.tag-zeit { margin-top: 6px; font-family: var(--mono); font-size: .86rem; color: rgba(255, 255, 255, .78); }
.tag-liste { list-style: none; }
.tag-liste li { padding: 28px 0 30px; border-top: 1.5px solid rgba(255, 255, 255, .22); opacity: .4; transition: opacity .45s ease; }
.tag-liste li.aktiv, html:not(.js) .tag-liste li, html.ruhig .tag-liste li { opacity: 1; }
.tag-liste li::before { content: attr(data-so) " Uhr"; display: block; margin-bottom: 8px; font-family: var(--mono); font-size: .82rem; color: var(--akzent); }
html[data-zeit="winter"] .tag-liste li::before { content: attr(data-wi) " Uhr"; }
.tag-liste h3 { font-size: var(--g-ueber); }
.tag-liste p { margin-top: 8px; max-width: 48ch; color: rgba(255, 255, 255, .9); }

/* ---------- Küche ---------- */
.kueche { position: relative; min-height: 118svh; overflow: hidden; display: grid; align-items: end; background: #1a0f08; }
.kueche-bild { position: absolute; inset: -10% 0; will-change: transform; }
.kueche-bild picture { display: contents; }
.kueche-bild img { width: 100%; height: 100%; object-fit: cover; }
.kueche-innen { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding-block: var(--a6) calc(5vw + var(--a5)); }
.kueche-karte { width: min(580px, 100%); background: var(--tief); border-radius: var(--rund); padding: clamp(22px, 3vw, 44px); }
.kueche-karte h2 { font-size: clamp(1.7rem, 3vw, 3rem); }
.kueche-karte > p { margin-top: 14px; color: rgba(255, 255, 255, .9); }
.kueche-karte .menue-kopf { margin-top: 26px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--akzent); }
.menue { list-style: none; counter-reset: gang; margin-top: 8px; }
.menue li { counter-increment: gang; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .22); font-weight: 600; }
.menue li::before { content: counter(gang); font-family: var(--mono); font-weight: 500; color: var(--akzent); }

/* ---------- Anfrage ---------- */
.anfrage { padding-bottom: calc(5vw + var(--a6)); }
.anfrage h2 { font-size: var(--g-zeile); letter-spacing: -0.028em; }
.anfrage-satz { margin-top: 12px; max-width: 48ch; }
.monate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-top: var(--a4); }
.monate button { display: grid; gap: 2px; justify-items: center; align-content: center; min-height: 84px; padding: 12px 2px; border-radius: 18px; border: 1.5px solid transparent; cursor: pointer; color: #fff; transition: transform .3s var(--weich), box-shadow .3s var(--weich); }
.monate b { font-size: 1.2rem; font-weight: 800; }
.monate span { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .82; }
.monate [data-art="sommer"] { background: #0a6c72; }
.monate [data-art="winter"] { background: #131c5a; }
.monate [data-art="zu"] { background: transparent; color: var(--tinte); border: 1.5px dashed color-mix(in srgb, var(--tinte) 45%, transparent); }
.monate button:hover { transform: translateY(-4px); }
.monate button[aria-pressed="true"] { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--hell), 0 0 0 6px var(--akzent); }
.monat-hinweis { margin-top: 16px; font-family: var(--mono); font-size: .82rem; min-height: 1.6em; }
.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: var(--a4); max-width: 1000px; }
.feld.breit { grid-column: 1 / -1; }
.feld label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.feld .leise { font-weight: 400; opacity: .75; }
.feld input, .feld select, .feld textarea { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--tinte) 38%, transparent); background: #fff; color: #0c1340; }
.feld textarea { resize: vertical; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; border-radius: 14px; }
.feld.fehler input { border-color: #b3261e; box-shadow: 0 0 0 2px #b3261e; }
.absenden { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.formular-ruhe { font-size: var(--g-klein); }
.formular-status { flex-basis: 100%; min-height: 1.6em; font-weight: 700; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tief); padding-bottom: 36px; }
.fuss-wort { font-size: min(17.2vw, 19rem); font-weight: 800; line-height: .84; letter-spacing: .012em; white-space: nowrap; color: var(--mitte); margin-left: -0.05em; will-change: transform; }
.fuss-wort.geteilt { overflow: hidden; padding-top: .14em; }
.fuss-wort .b { display: inline-block; transform: translateY(112%); transition: transform 1.1s var(--weich); }
.fuss-wort .b:nth-child(2) { transition-delay: .06s; } .fuss-wort .b:nth-child(3) { transition-delay: .12s; } .fuss-wort .b:nth-child(4) { transition-delay: .18s; }
.fuss-wort .b:nth-child(5) { transition-delay: .24s; } .fuss-wort .b:nth-child(6) { transition-delay: .3s; } .fuss-wort .b:nth-child(7) { transition-delay: .36s; }
.fuss-wort.da .b { transform: none; }
.fuss-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 28px 40px; margin-top: var(--a4); padding-top: var(--a3); border-top: 1.5px solid rgba(255, 255, 255, .24); }
.fuss-name { font-weight: 800; letter-spacing: .04em; }
.fuss-raster p + p { margin-top: 10px; }
.fuss-raster a { text-underline-offset: 4px; }
.zeichen-reihe { list-style: none; display: flex; gap: 8px; align-self: start; }
.zeichen-link { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .42); transition: background-color .3s ease, color .3s ease; }
.zeichen-link:hover { background: #fff; color: var(--tinte); }
.zeichen { width: 18px; height: 18px; }
.fuss .fein { opacity: .7; }

/* ---------- flaches Fenster ---------- */
@media (min-width: 821px) and (max-height: 640px) {
  .dock { padding: 12px 20px; gap: 18px; }
  .dock h1 { font-size: clamp(1.35rem, 5.2svh, 2rem); }
  .karte-zeile { font-size: .9rem; line-height: 1.35; }
  .karte-beleg, .jahr-lade, .karte-ruhe, .wasser-liste { display: none; }
  .dock .knopf { min-height: 44px; padding: 8px 22px; }
  .riese { font-size: clamp(3rem, 20svh, 6rem); }
  .uhr { font-size: clamp(3.4rem, 24svh, 7rem); }
}
@media (min-width: 821px) and (max-width: 1240px) {
  .dock { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px 28px; }
  .jahr { border-left: 0; padding-left: 0; }
}

/* ---------- Handy ---------- */
@media (max-width: 980px) { .leiste-wege { display: none; } .leiste .schalter { margin-left: auto; } }
@media (max-width: 820px) {
  :root { --leiste: 64px; }
  .leiste .knopf { display: none; }
  .kopf { height: 300svh; }
  .kopf-buehne { background: var(--tief); }
  .kasten { left: 50%; top: 0; width: max(100%, 70svh); aspect-ratio: 4 / 5; translate: -50% 0; }
  .kasten canvas { display: none; }
  .himmel { -webkit-mask-image: url("../bilder/kopf-himmel-handy.png"); mask-image: url("../bilder/kopf-himmel-handy.png"); }
  .wort-heber { left: 48%; top: 22.5cqw; }
  .wort { font-size: min(17cqw, 19vw); }
  .dock { left: 12px; right: 12px; bottom: 12px; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 16px 14px; }
  .dock h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .dock h1 span { white-space: normal; }
  .karte-beleg, .jahr-lade { display: none; }
  .dock-ruf { justify-items: stretch; }
  .dock .knopf { width: 100%; }
  .karte-ruhe { max-width: none; text-align: center; }
  .jahr { order: -1; border-left: 0; padding-left: 0; padding-bottom: 10px; border-bottom: 1.5px solid rgba(255, 255, 255, .2); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: center; }
  .jahr-monate { font-size: .58rem; }
  .jahr-werte { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
  .jahr-werte div:nth-child(3) { display: none; }
  .jahr-werte b { font-size: 1.05rem; }
  .staffel { height: 34vw; }
  .zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .wasser { height: 220svh; }
  .paar.voll > picture img { object-position: 50% 50%; }
  .wasser-liste { display: none; }
  .griff-wort { display: none; }
  .suiten-kopf, .tag-raster, .fuss-raster { grid-template-columns: minmax(0, 1fr); }
  .fenster { margin-inline: calc(-1 * var(--rand)); border-radius: 0; }
  .arten { grid-template-columns: minmax(0, 1fr); }
  .tag-links { top: var(--leiste); z-index: 2; background: var(--grund); padding: 10px 0 12px; margin-inline: calc(-1 * var(--rand)); padding-inline: var(--rand); }
  .tag-links h2 { font-size: 1.15rem; }
  .uhr { font-size: 4.6rem; margin-top: 2px; }
  .kueche { min-height: 0; display: block; }
  .kueche-bild { position: relative; inset: auto; height: 96vw; }
  .kueche-innen { padding-block: 0 calc(5vw + var(--a5)); margin-top: -12vw; }
  .monate { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .monate button { min-height: 68px; }
  .formular { grid-template-columns: minmax(0, 1fr); }
  .absenden .knopf { width: 100%; }
}

/* ---------- ruhige Fassung und ohne Skript: nichts angeheftet ---------- */
html.ruhig .kopf, html:not(.js) .kopf { height: auto; }
html.ruhig .kopf-buehne, html:not(.js) .kopf-buehne { position: relative; }
html.ruhig .wahl, html:not(.js) .wahl { margin-top: 0; }
html.ruhig .staffel, html:not(.js) .staffel { display: none; }
html.ruhig .wasser, html:not(.js) .wasser { height: auto; }
html.ruhig .wasser-buehne, html:not(.js) .wasser-buehne { position: relative; }
html.ruhig .satz .w { opacity: 1; }
html.ruhig .griff { display: none; }
html.ruhig .jahr-lade { display: none; }
html.ruhig *, html.ruhig *::before, html.ruhig *::after { transition-duration: .01s !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.kasten.hand-sommer canvas { opacity: 0; }
@media (max-width: 820px) and (max-height: 600px) {
  .karte-zeile, .jahr, .karte-ruhe { display: none; }
  .dock h1 { font-size: 1.35rem; }
}
