/* ZÜffl-Startseite: gemeinsame Gestaltung für alle Seiten.
   Farben wie in der Flaschenanimation, damit Seite und Bühne nahtlos ineinander übergehen. */
@import url("schriften/schriften.css");

:root {
  --bg: #FFFFFF;
  --flaeche: rgba(241, 242, 240, 0.94);
  --fg: #22272A;
  --muted: #5B6468;
  --accent: #C42D22;
  --auf-accent: #FFFFFF;
  --rule: rgba(34, 39, 42, 0.16);
  --feld: #FFFFFF;
  --schleier: rgba(255, 255, 255, 0.55);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161A1C; --flaeche: rgba(38, 44, 47, 0.95); --fg: #E6E9E8; --muted: #98A2A6;
    --accent: #E25A4E; --auf-accent: #161A1C; --rule: rgba(230, 233, 232, 0.18);
    --feld: #1D2224; --schleier: rgba(22, 26, 28, 0.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161A1C; --flaeche: rgba(38, 44, 47, 0.95); --fg: #E6E9E8; --muted: #98A2A6;
  --accent: #E25A4E; --auf-accent: #161A1C; --rule: rgba(230, 233, 232, 0.18);
  --feld: #1D2224; --schleier: rgba(22, 26, 28, 0.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; }

/* Schaltflächen */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none;
  color: var(--fg); background: var(--flaeche); border: 1px solid var(--rule);
  cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.knopf:hover { color: var(--fg); border-color: var(--fg); }
.knopf-haupt { color: var(--auf-accent); background: var(--accent); border-color: var(--accent); }
.knopf-haupt:hover { color: var(--auf-accent); filter: brightness(1.08); border-color: var(--accent); }

/* ---------- Startseite ----------
   Vier Ecken, eine Mitte: oben links nichts als Luft über dem Block, links mittig Marke, Satz und Knöpfe,
   rechts die Flasche, unten links der Partner, unten rechts Rechtliches, oben rechts der Pausenknopf.
   Handy: Marke oben, Flasche in der Mitte, Knöpfe unten im Daumenbereich. */
body.start {
  height: 100vh; height: 100dvh; overflow: hidden;
  --rand: clamp(20px, 5vw, 80px);
  --unten: max(20px, env(safe-area-inset-bottom));
}
.buehne {
  position: fixed; left: 0; width: 100%;
  top: 132px; height: calc(100% - 132px - 236px);
  border: 0; display: block; pointer-events: none; background: var(--bg);
}
.held {
  position: fixed; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: max(24px, env(safe-area-inset-top)) var(--rand) calc(var(--unten) + 64px);
}
.held > * { pointer-events: auto; }
.marke { font-size: clamp(48px, 14vw, 120px); line-height: 0.92; letter-spacing: -0.025em; }
.unterzeile { margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 1.45vw, 21px); line-height: 1.4; }
.aktionen { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.aktionen .knopf { width: 100%; min-height: 52px; }

/* Partner unten links, Rechtliches unten rechts */
.partner {
  position: fixed; left: var(--rand); bottom: var(--unten);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--muted);
}
.partner img { display: block; width: 34px; height: auto; flex: none; }
.partner-text { display: flex; flex-direction: column; font-size: 10px; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase; }
.partner-text strong { font-weight: 600; color: var(--fg); letter-spacing: 0.02em; text-transform: none; font-size: 12px; }
.partner:hover strong { color: var(--accent); }
.start .fuss {
  position: fixed; right: var(--rand); bottom: var(--unten);
  display: flex; gap: 16px; font-size: 12px; line-height: 34px;
}
.fuss a { color: var(--muted); }
.fuss a:hover { color: var(--accent); }

/* Pausenknopf oben rechts, klein und rund */
.pause-knopf {
  position: fixed; top: max(24px, env(safe-area-inset-top)); right: var(--rand);
  width: 36px; height: 36px; border-radius: 999px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: transparent; border: 1px solid var(--rule); cursor: pointer;
}
.pause-knopf[hidden] { display: none; }
.pause-knopf:hover { color: var(--fg); border-color: var(--fg); }
.pause-knopf svg { width: 14px; height: 14px; fill: currentColor; }
.pause-knopf .zeichen-play { display: none; }
.pause-knopf[aria-pressed="true"] .zeichen-pause { display: none; }
.pause-knopf[aria-pressed="true"] .zeichen-play { display: block; }

@media (min-width: 900px) {
  .buehne { top: 0; height: 100%; left: 38%; width: 62%; }
  .held {
    right: auto; width: 44%; max-width: 620px;
    justify-content: center; gap: 44px;
    padding: 0 0 0 var(--rand);
  }
  .aktionen { width: 300px; }
  .partner img { width: 44px; }
  .partner-text { font-size: 11px; }
  .partner-text strong { font-size: 13px; }
  .start .fuss { font-size: 13px; line-height: 44px; gap: 20px; }
}
/* Niedrige Fenster am Handy quer: weniger Abstand */
@media (max-width: 899px) and (max-height: 560px) {
  .marke { font-size: 40px; }
  .buehne { top: 104px; height: calc(100% - 104px - 200px); }
}

/* Ladebildschirm: deckt die Seite ab, bis die Flasche ihr erstes Bild gezeichnet hat */
.lader { display: none; }
.js .lader {
  position: fixed; inset: 0; z-index: 30; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.lader-marke { font-weight: 600; font-size: 34px; letter-spacing: -0.02em; color: var(--fg); }
.lader-balken { width: 120px; height: 2px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.lader-balken::after {
  content: ""; display: block; width: 40%; height: 100%; background: var(--accent); border-radius: 2px;
  animation: lader 1.1s ease-in-out infinite;
}
@keyframes lader { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.js.bereit .lader { opacity: 0; visibility: hidden; }
/* Danach erscheinen die Elemente nacheinander */
.js .held > *, .js .partner, .js .start .fuss, .js .pause-knopf { opacity: 0; transform: translateY(10px); }
.js.bereit .held > *, .js.bereit .partner, .js.bereit .start .fuss, .js.bereit .pause-knopf {
  opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.js.bereit .held > :nth-child(2) { transition-delay: 0.08s; }
.js.bereit .held > :nth-child(3) { transition-delay: 0.16s; }
.js.bereit .partner, .js.bereit .start .fuss, .js.bereit .pause-knopf { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .lader-balken::after { animation: none; width: 100%; }
  .js .held > *, .js .partner, .js .start .fuss, .js .pause-knopf { transform: none; }
}

/* Ebenen für Bestellen und Kontakt: öffnen sich über den Anker (#bestellen, #kontakt), auch ohne JavaScript */
.ebene {
  display: none; position: fixed; inset: 0; z-index: 10;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--schleier); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.ebene:target { display: flex; align-items: flex-start; justify-content: center; }
.ebene-hintergrund { position: fixed; inset: 0; }
.karte {
  position: relative; width: 100%; max-width: 520px; margin: auto 0;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 16px;
  padding: 24px 20px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
@media (min-width: 600px) { .ebene { padding-top: 6vh; padding-bottom: 6vh; } .karte { padding: 32px; } }
.karte h2 { font-size: 26px; padding-right: 40px; }
.karte > p { margin: 8px 0 0; color: var(--muted); }
.schliessen {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; font-size: 26px; line-height: 1; color: var(--muted);
}
.schliessen:hover { background: var(--rule); color: var(--fg); }

/* Formular */
form { margin-top: 20px; display: grid; gap: 16px; }
.reihe { display: grid; gap: 16px; }
@media (min-width: 480px) { .reihe { grid-template-columns: 1fr 1fr; } }
.feld { display: grid; gap: 6px; min-width: 0; }
.feld > label, fieldset legend { font-weight: 600; font-size: 15px; }
.zusatz { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--fg); background: var(--feld);
  border: 1px solid var(--rule); border-radius: 10px;
}
input[type="date"] { -webkit-appearance: none; appearance: none; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 6px; }
.wahl { display: flex; gap: 10px; flex-wrap: wrap; }
.wahl label {
  flex: 1 1 140px; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px;
  background: var(--feld); border: 1px solid var(--rule); border-radius: 10px; cursor: pointer;
}
.wahl label:has(input:checked) { border-color: var(--accent); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.bestaetigung { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.bestaetigung input { margin-top: 3px; }
.hinweis { margin: 0; font-size: 14px; color: var(--muted); }
.hinweis strong { color: var(--fg); font-weight: 600; }
form .knopf { width: 100%; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

address { font-style: normal; margin-top: 16px; line-height: 1.6; }
.karte > .kontakt-mail { color: var(--fg); margin-top: 16px; font-size: 18px; font-weight: 600; word-break: break-word; }
.karte .knopf { margin-top: 24px; }

/* ---------- Textseiten: Impressum, Datenschutz, Danke ---------- */
.text {
  max-width: 68ch; margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px 48px;
}
.text .zurueck { display: inline-block; font-weight: 600; font-size: 22px; text-decoration: none; margin-bottom: 32px; }
.text h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 16px; }
.text h2 { font-size: 20px; margin: 32px 0 8px; }
.text p, .text ul { margin: 0 0 12px; }
.text ul { padding-left: 20px; }
.text li { margin-bottom: 4px; }
.text .klein { font-size: 14px; color: var(--muted); }
.text .fuss { justify-content: flex-start; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); }
.danke { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.danke .knopf { align-self: flex-start; margin-top: 16px; }
