/* seite.css · Waschbär (Beispiel), Waschsalon mit Café in Graz.
 * Hell, Weiß als Grund, genau ein Akzent: Waschmittel-Türkis aus dem Handtuch im Kopfbild.
 * Schrift: Nunito (rund wie Seifenblasen, fett gesetzt) für Überschriften, Atkinson Hyperlegible Next für Text.
 * Regelbruch (D26): die Überschrift ist um das Bullauge herum geteilt, der Waschbär sitzt mitten im Satz. */

@font-face { font-family: "Nunito"; src: url("../fonts/nunito-var.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --tinte: #10181a;          /* dunkle Flächen: Waschgang, Anzeigen */
  --tinte-text: #e9f4f3;
  --akzent-dunkel: #0a6f68;  /* Türkis als Schrift und Fokus auf Weiß, Kontrast über 4,5 : 1 */
  --t-titel: clamp(2.3rem, 1.2rem + 3.1vw, 4.3rem);
  --t-gross: clamp(2rem, 1.3rem + 2.4vw, 3.6rem);
  --rund-feld: 14px;
}
:focus-visible { outline-color: var(--akzent-dunkel); }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; line-height: 0.98; }
.abschnitt h2, .socken h2, .waschgang h2 { font-size: var(--t-gross); max-width: 16ch; }
.abschnitt-satz { margin-top: 18px; max-width: 38rem; color: var(--text-2); font-size: var(--t-mittel); line-height: 1.45; }

/* ---------- Kopfzeile */
.marke { gap: 10px; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; }
.marke-zeichen { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--akzent) 0 42%, #ffffff 44% 56%, #c9d6d7 58% 100%); box-shadow: inset 0 0 0 1px rgba(16, 24, 26, 0.12); }
.knopf { font-family: var(--schrift-display); font-weight: 850; letter-spacing: -0.005em; }
@media (hover: hover) and (pointer: fine) { .knopf:hover { box-shadow: 0 12px 30px -10px rgba(46, 196, 182, 0.75); transform: translateY(-1px); } }
.menue a { font-weight: 600; }

/* ---------- Erster Bildschirm: Bullauge in der Mitte, Überschrift links und rechts davon */
.anfang { display: block; min-height: 100svh; padding-top: calc(var(--kopf-hoehe) + clamp(8px, 2.4vh, 32px)); padding-bottom: clamp(24px, 4vh, 56px); overflow: clip; }
.anfang-buehne { --bu: min(56svh, 36vw, 600px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; justify-items: center; row-gap: clamp(14px, 2.2vh, 28px); }
.titel { grid-area: 1 / 1 / 2 / 4; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: calc(var(--bu) + clamp(28px, 3vw, 56px)); font-size: var(--t-titel); line-height: 0.95; letter-spacing: -0.04em; font-weight: 950; pointer-events: none; position: relative; z-index: 2; }
.titel-l, .titel-r { display: block; flex: 1 1 0; max-width: 7.2em; }
.titel-l { text-align: right; margin-left: auto; }
.titel-r { text-align: left; margin-right: auto; color: var(--akzent-dunkel); }
.bullauge { grid-area: 1 / 2 / 2 / 3; margin: 0; position: relative; }
.bullauge-rahmen { position: relative; width: var(--bu); aspect-ratio: 1; border-radius: 50%; padding: calc(var(--bu) * 0.055);
  background: radial-gradient(circle at 50% 50%, #ffffff 0 66%, #e6eeee 70%, #ffffff 80%, #dfe8e8 100%);
  box-shadow: 0 40px 70px -40px rgba(16, 24, 26, 0.55), 0 8px 18px -8px rgba(16, 24, 26, 0.2), inset 0 -10px 18px rgba(16, 24, 26, 0.07), inset 0 0 0 1px rgba(16, 24, 26, 0.06); }
.bullauge-glas { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #8d969a; box-shadow: inset 0 0 0 3px rgba(16, 24, 26, 0.45); transform: translateZ(0); }
.bullauge-glas::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: linear-gradient(140deg, rgba(255, 255, 255, 0.32) 0 12%, transparent 30% 100%), radial-gradient(circle at 50% 50%, transparent 0 68%, rgba(16, 24, 26, 0.32) 100%); }
.wb { position: absolute; inset: -3%; width: 106%; max-width: none; height: 106%; object-fit: cover; }
.wb-gl { display: block; opacity: 0; transition: opacity 0.3s ease; }
.wb-gl.bereit { opacity: 1; }
.bullauge-hinweis { margin-top: 12px; text-align: center; font-size: 0.86rem; color: var(--text-3); }
.hinweis-finger { display: none; }
@media (hover: none), (pointer: coarse) { .hinweis-maus { display: none; } .hinweis-finger { display: inline; } }
html:not(.js) .bullauge-hinweis { visibility: hidden; }
.anfang-text { grid-column: 1 / 4; display: grid; justify-items: center; text-align: center; }
.unterzeile { margin-top: 0; max-width: 34rem; font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.3rem); }
.beleg { margin-top: 10px; }
.handlung { margin-top: 18px; justify-content: center; }
.anfang .beruhigung { text-align: center; }

@media (max-width: 820px) and (orientation: portrait), (max-width: 560px) {
  .anfang-buehne { --bu: min(70vw, 36svh); grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .titel { grid-area: auto; display: block; text-align: center; font-size: clamp(2.05rem, 1.2rem + 4.6vw, 3rem); }
  .titel-l, .titel-r { display: inline; max-width: none; }
  .bullauge { grid-area: auto; }
  .anfang-text { grid-column: auto; }
  .bullauge-hinweis { margin-top: 6px; font-size: 0.8rem; }
  .unterzeile { font-size: 1.02rem; line-height: 1.38; }
  .handlung { margin-top: 12px; }
}

/* ---------- Waschgang: angeheftete Bühne auf dunklem Grund, die Trommel dreht mit dem Scrollen */
.waschgang { position: relative; height: 340vh; background: var(--tinte); color: var(--tinte-text); }
.waschgang-buehne { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding-top: var(--kopf-hoehe); overflow: hidden; }
.waschgang-raster { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 110px); }
.waschgang { --acc: #2ec4b6; --acc-2: #9ff3ea; --body: #ededeb; }
/* Maschine aus Spezialeffekt 398: Maße 66 × 90 cm, die Zeichenfläche füllt den Platz */
.maschine-platz { position: relative; margin: 0; height: min(calc(100svh - var(--kopf-hoehe) - 48px), 60vw * 90 / 66); aspect-ratio: 66 / 90; }
.maschine { position: absolute; inset: 0; }
.maschine-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mit-maschine .maschine-foto { visibility: hidden; }
.maschine-fig { position: absolute; left: 0; top: 0; will-change: transform; }
.maschine-fig canvas { position: absolute; left: 0; top: 0; display: block; }
html:not(.js) .maschine-fig, .waschgang:not(.mit-maschine) .maschine-fig { display: none; }
/* Display der Maschine: echte Schrift über der Grafik */
.disp { position: absolute; display: flex; flex-direction: column; justify-content: center; gap: .3em; padding: 0 .75em; color: #eefcfa; font-family: var(--schrift-display); font-variant-numeric: tabular-nums; pointer-events: none; border-radius: .4em; overflow: hidden; line-height: 1.15; }
.disp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 42%); pointer-events: none; }
.disp .r1 { display: flex; justify-content: space-between; gap: .6em; font-size: 1em; font-weight: 700; color: var(--acc-2); white-space: nowrap; }
.disp .rpm { display: inline-flex; align-items: center; gap: .25em; }
.disp .rpm svg { width: .85em; height: .85em; }
.disp .r2 { display: flex; align-items: baseline; gap: .55em; white-space: nowrap; }
.disp .tm { font-size: 1.75em; font-weight: 800; letter-spacing: .01em; text-shadow: 0 0 .5em rgba(120, 240, 225, .35); }
.disp .st { font-size: 1em; font-weight: 700; color: var(--acc-2); }
.disp .db { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.disp .db i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.disp .db i.on { background: var(--acc-2); }
.disp .db i.now { background: var(--acc-2); animation: blinken 1.4s ease-in-out infinite; }
@keyframes blinken { 50% { opacity: .35; } }
.disp.klein .r1, .disp.klein .st { display: none; }
.disp.klein { padding: 0 .5em; gap: .2em; }
.disp.klein .tm { font-size: 1.3em; }
.disp .tm.lang { font-size: 1.2em; }
.startic { position: absolute; pointer-events: none; color: #8a8d93; }
@media (prefers-reduced-motion: reduce) { .disp .db i.now { animation: none; } }
.waschgang h2 { color: #ffffff; }
.waschgang .abschnitt-satz { color: #b9cacb; }
.phasen { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; max-width: 34rem; }
.phasen li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid rgba(233, 244, 243, 0.14); color: #b9cacb; transition: color 0.4s var(--aus); }
.phasen li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: rgba(233, 244, 243, 0.25); transition: background-color 0.4s var(--aus), transform 0.4s var(--aus); }
.phasen strong { color: #ffffff; font-family: var(--schrift-display); font-weight: 850; margin-right: 6px; }
.phase-zeit { display: block; font-size: 0.82rem; letter-spacing: 0.02em; color: #8fa3a5; }
.js .phasen li { color: #7f9294; }
.js .phasen li strong { color: #b9cacb; }
.js .phasen li.aktiv { color: var(--tinte-text); }
.js .phasen li.aktiv strong { color: var(--akzent); }
.js .phasen li.aktiv::before { background: var(--akzent); transform: scale(1.3); }
@media (max-width: 820px) and (orientation: portrait), (max-width: 560px) {
  .waschgang { height: 360vh; }
  .waschgang-buehne { align-items: start; padding-top: calc(var(--kopf-hoehe) + 4px); }
  .waschgang-raster { grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; }
  .maschine-platz { height: min(40svh, 80vw * 90 / 66); }
  .waschgang h2 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.3rem); }
  .waschgang .abschnitt-satz { font-size: 0.98rem; margin-top: 8px; }
  .phasen { margin-top: 10px; gap: 0; }
  .phasen li { padding: 7px 0 7px 20px; font-size: 0.95rem; line-height: 1.35; }
  .phasen li::before { top: 13px; }
  .phase-zeit { display: inline; margin-right: 6px; }
}
@media (max-width: 820px) and (max-height: 700px) { .waschgang .abschnitt-satz { display: none; } }
/* flache Fenster (Laptop mit kleinem Browser, Handy quer): alles enger, damit Überschrift und Knopf im Bild bleiben */
@media (max-height: 600px) and (orientation: landscape) {
  .anfang-buehne { --bu: min(52svh, 34vw); row-gap: 8px; }
  .titel { font-size: clamp(1.8rem, 1rem + 2.6vw, 3rem); }
  .bullauge-hinweis { display: none; }
  .unterzeile { font-size: 0.98rem; line-height: 1.35; }
  .beleg { margin-top: 4px; }
  .handlung { margin-top: 8px; }
  .waschgang .abschnitt-satz { display: none; }
  .waschgang h2 { font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem); }
  .phasen { margin-top: 10px; gap: 0; }
  .phasen li { padding: 5px 0 5px 20px; font-size: 0.9rem; line-height: 1.3; }
  .phasen li::before { top: 11px; }
  .phase-zeit { display: inline; margin-right: 6px; }
  .maschine-platz { height: calc(100svh - var(--kopf-hoehe) - 24px); }
}

/* ---------- Preise als Programmtafel: schlichte Zeilen, die Dauer als ruhiger Balken (Anteil an 72 Minuten) */
.programme { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; border-top: 2px solid var(--text); }
.programm { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 3vw, 44px); padding: clamp(16px, 2.2vw, 24px) 0; border-bottom: 1px solid var(--linie); }
.programm-name { font-size: var(--t-mittel); color: var(--text-2); }
.programm-name strong { display: inline-block; min-width: 5.2em; margin-right: 8px; color: var(--text); font-family: var(--schrift-display); font-weight: 900; font-size: 1.25em; letter-spacing: -0.02em; }
.programm-dauer { display: flex; align-items: center; gap: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dauer-spur { flex: 1; height: 3px; border-radius: 3px; background: var(--linie); overflow: hidden; }
.dauer-balken { display: block; height: 100%; border-radius: inherit; background: var(--akzent-dunkel); transform-origin: left; transform: scaleX(calc(var(--anteil) * min(1, var(--p, 1) * 2.4))); }
.dauer-29 { --anteil: .403; } .dauer-49 { --anteil: .681; } .dauer-72 { --anteil: 1; } .dauer-15 { --anteil: .208; }
.programm-preis { min-width: 4.4em; text-align: right; font-family: var(--schrift-display); font-weight: 900; font-size: var(--t-mittel); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .programm { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n p" "d p"; row-gap: 8px; column-gap: 14px; }
  .programm-name { grid-area: n; font-size: 1rem; } .programm-dauer { grid-area: d; font-size: 0.95rem; } .programm-preis { grid-area: p; font-size: 1.2rem; min-width: 0; }
}

/* ---------- Socken-Fundbüro: einzelne Socken finden beim Scrollen zu Paaren */
.socken { position: relative; padding-top: var(--abstand); background: var(--grund-2); overflow: clip; }
.socken-kopf { position: relative; z-index: 1; }
.socken-feld { position: relative; display: block; width: 100%; height: clamp(380px, 64svh, 660px); margin-top: clamp(8px, 2vw, 24px); }
.socke { position: absolute; left: 0; top: 0; width: 320px; height: 375px; object-fit: contain; transform-origin: 50% 50%; will-change: transform; opacity: 0; transition: opacity .5s var(--aus); pointer-events: none; }
.socken-feld.bereit .socke { opacity: 1; }
@media (max-width: 700px) { .socken-feld { height: clamp(520px, 90svh, 760px); } }

/* ---------- Café: Karte links, Tasse rechts, Milch gießt ein Herz */
.cafe-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.karte { margin: 28px 0 0; padding: 0; max-width: 32rem; }
.karte div { display: grid; grid-template-columns: auto minmax(20px, 1fr) auto; align-items: baseline; gap: 12px; padding: 9px 0; }
.karte div::after { content: ""; grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 7px; height: 2px; background: radial-gradient(circle, var(--linie-feld) 0 1px, transparent 1.5px) 0 50% / 8px 2px repeat-x; transform-origin: left; transform: scaleX(min(1, calc(var(--p, 1) * 2.6))); }
.karte dt { grid-column: 1; grid-row: 1; font-family: var(--schrift-display); font-weight: 850; font-size: 1.2rem; letter-spacing: -0.01em; }
.karte dd { grid-column: 3; grid-row: 1; margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.karte-zusatz { font-family: var(--schrift-text); font-weight: 400; font-size: 0.9rem; color: var(--text-2); letter-spacing: 0; }
.tasse-platz { position: relative; justify-self: center; width: min(100%, 560px); aspect-ratio: 1; margin: 0; border-radius: 28px; overflow: hidden; background: #f4f1ea; }
.tasse-dreh { position: absolute; inset: 0; transform: rotate(calc((1 - var(--p, 1)) * -18deg)) scale(calc(1.04 - var(--p, 1) * 0.04)); }
.tasse-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* das Herz liegt deckungsgleich über dem Kaffee (Ausschnitt 600 von 1024 px, Mitte 513/484) und geht von der Mitte aus auf */
.tasse-herz { --herz: clamp(0, (var(--p, 1) - 0.14) * 2.4, 1); position: absolute; left: 20.8%; top: 17.97%; width: 58.59%; height: 58.59%;
  transform: scale(calc(0.9 + var(--herz) * 0.1)); opacity: calc(var(--herz) * 4);
  -webkit-mask-image: radial-gradient(circle at 50.3% 49%, #000 calc(var(--herz) * 66%), transparent calc(var(--herz) * 66% + 12%));
  mask-image: radial-gradient(circle at 50.3% 49%, #000 calc(var(--herz) * 66%), transparent calc(var(--herz) * 66% + 12%)); }
@media (max-width: 860px) { .cafe-raster { grid-template-columns: minmax(0, 1fr); } .tasse-platz { width: min(100%, 440px); } }

/* ---------- Öffnungszeiten auf dem Handtuch an der Wäscheleine (Effekt 18, angepasst) */
.zeiten { position: relative; padding-block: clamp(56px, 8vw, 120px) var(--abstand); overflow: clip; --cloth: #2ec4b6; --print: #05221f; }
.leine { position: relative; display: flex; justify-content: center; padding: 64px var(--rand) 40px; }
.leine::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 4px; border-radius: 4px; background: linear-gradient(180deg, #c3cfd0, #8a9a9c); box-shadow: 0 4px 6px -3px rgba(16, 24, 26, 0.35); }
.tuch-flaeche { position: absolute; z-index: 1; display: block; pointer-events: none; }
.tuch { position: relative; z-index: 2; width: min(980px, 100%); padding: clamp(46px, 6vw, 86px) clamp(22px, 5vw, 72px) clamp(54px, 7vw, 96px); text-align: center; background: var(--cloth) url(../bilder/frottee-800.webp) center bottom / cover; color: var(--print); border-radius: 3px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
/* Holzklammern als kleines Bild (bilder/klammer.webp, mit werkzeug/klammer-bild.mjs aus den früheren CSS-Verläufen gezeichnet):
   die Verlaufs-Kombination ließ beim ersten Auftritt die Grafikkarte rund 80 ms rechnen, das Bild nicht */
.tuch::before, .tuch::after { content: ""; position: absolute; top: -22px; width: 26px; height: 56px; z-index: 3; background: url(../bilder/klammer.webp) center / 26px 56px no-repeat; }
.tuch::before { left: calc(12% - 6px); } .tuch::after { right: calc(12% - 6px); }
.tuch-titel { font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; margin: 0 auto; font-weight: 950; }
.tuch-titel .z { display: inline; }
.tuch-titel .wort { white-space: nowrap; }
/* den Schatten zeichnet tuch.js selbst mit (ein CSS-Filter auf der Leinwand müsste in jedem Bild neu weichgezeichnet werden) */
.fx-tuch .tuch { background: transparent; }
.fx-tuch .tuch::before, .fx-tuch .tuch::after { z-index: 3; }
.fx-tuch .tuch-titel { color: transparent; }
.zeiten-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px clamp(16px, 3vw, 40px); margin-top: clamp(28px, 4vw, 48px); }
.zeiten-liste p { padding-top: 14px; border-top: 3px solid var(--akzent); color: var(--text-2); }
.zeiten-liste strong { display: block; color: var(--text); font-family: var(--schrift-display); font-weight: 850; font-size: 1.15rem; }
@media (max-width: 760px) { .zeiten-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } .leine { padding-top: 56px; } .tuch::before { left: calc(8% - 6px); } .tuch::after { right: calc(8% - 6px); } }

/* ---------- Reservieren: das Wasser steigt hinter dem Formular */
.kontakt { position: relative; overflow: clip; isolation: isolate; }
.wasserstand { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 72%; transform-origin: bottom; transform: scaleY(min(1, calc(var(--p, 1) * 1.9)));
  background: linear-gradient(180deg, rgba(46, 196, 182, 0.2), rgba(46, 196, 182, 0.08));
  -webkit-mask: radial-gradient(28px 14px at 28px 0, transparent 98%, #000) 0 0 / 56px 100% repeat-x;
  mask: radial-gradient(28px 14px at 28px 0, transparent 98%, #000) 0 0 / 56px 100% repeat-x; }
.kontakt h2 { font-size: var(--t-gross); }
.kontakt .abschnitt-satz { margin-bottom: 32px; }
.feld-reihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.feld input, .feld select { background-color: #ffffff; }
.feld-fehler { min-height: 1.45em; line-height: 1.45; }
.formular .formular-meldung { flex-basis: 100%; min-height: 3em; }
.direkt-satz { font-family: var(--schrift-display); font-weight: 850; font-size: 1.2rem; margin-bottom: 4px; }
.direkt a { color: var(--text); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .direkt a:hover { color: var(--akzent-dunkel); } }
@media (max-width: 420px) { .feld-reihe { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- Bewegung beim Scrollen (nur mit JavaScript und ohne „Bewegung reduzieren“) */
@media (prefers-reduced-motion: no-preference) {
  .js .titel-l { transform: translateX(calc(var(--p, 0) * -9vw)); }
  .js .titel-r { transform: translateX(calc(var(--p, 0) * 9vw)); }
  .js .bullauge-rahmen { transform: scale(calc(1 - var(--p, 0) * 0.12)) rotate(calc(var(--p, 0) * -14deg)); will-change: transform; }
  /* eigene Ebenen für alles, was sich beim Scrollen dreht oder aufgeht: die Grafikkarte verschiebt nur, statt neu zu malen */
  .js .tasse-dreh, .js .tasse-herz { will-change: transform, opacity; }
  .js .zeiten-liste p:nth-child(odd) { transform: translateY(calc((1 - var(--p, 1)) * 26px)); }
  .js .zeiten-liste p:nth-child(even) { transform: translateY(calc((1 - var(--p, 1)) * 48px)); }
}
