/* Dayts – get-dayts.de
   Farben/Schrift 1:1 aus design-system/tokens.json (App-Design-System).
   Schriften liegen lokal (kein Google-Fonts-Abruf – DSGVO). */

@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --brand: #1F8A87;
  --brand-strong: #166B69;
  --on-brand: #FFFFFF;
  --coral: #E8907A;
  --gold: #D9A24B;
  --flame-deep: #D2634B;
  --flame-light: #FFE7AE;
  --ground: #FBF8F3;
  --glow: #E4F3F1;
  --card: #FFFFFF;
  --soft: #EEF6F4;
  --ink: #1E3336;
  --ink-muted: #5E7477;
  --line: #E3ECEA;
  --tape-coral: rgba(232, 144, 122, 0.55);
  --tape-teal: rgba(79, 193, 188, 0.5);
  --tape-gold: rgba(217, 162, 75, 0.5);
  --shadow: 0 1px 2px rgba(30, 51, 54, 0.06), 0 12px 32px rgba(30, 51, 54, 0.10);
  --shadow-lift: 0 2px 4px rgba(30, 51, 54, 0.08), 0 24px 48px rgba(30, 51, 54, 0.16);

  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4FC1BC;
    --brand-strong: #7ED6D1;
    --on-brand: #0B1718;
    --coral: #F0A48F;
    --gold: #E6B868;
    --flame-deep: #DE7059;
    --flame-light: #FFE9B8;
    --ground: #0F1B1D;
    --glow: #14302F;
    --card: #172628;
    --soft: #213538;
    --ink: #EAF4F3;
    --ink-muted: #9DB5B6;
    --line: #2A4043;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 48px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #4FC1BC;
  --brand-strong: #7ED6D1;
  --on-brand: #0B1718;
  --coral: #F0A48F;
  --gold: #E6B868;
  --flame-deep: #DE7059;
  --flame-light: #FFE9B8;
  --ground: #0F1B1D;
  --glow: #14302F;
  --card: #172628;
  --soft: #213538;
  --ink: #EAF4F3;
  --ink-muted: #9DB5B6;
  --line: #2A4043;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 48px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 2.5vw, 24px); }
.site-nav a.navlink { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.site-nav a.navlink:hover { color: var(--ink); }
@media (max-width: 640px) { .site-nav a.navlink { display: none; } }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lang-switch button {
  font: 600 0.8rem/1 var(--body); letter-spacing: 0.06em;
  border: 0; background: transparent; color: var(--ink-muted);
  padding: 7px 10px; border-radius: 999px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

/* ---------- Store-Hinweis ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: var(--on-brand);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 35%, transparent);
  text-decoration: none;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.store-badge strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.store-note { color: var(--ink-muted); font-size: var(--step--1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background:
    radial-gradient(40% 50% at 78% 40%, color-mix(in srgb, var(--coral) 22%, transparent), transparent 70%),
    radial-gradient(45% 55% at 20% 20%, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px);
}
.eyebrow { font-weight: 700; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.hero h1 { font-size: var(--step-4); font-weight: 700; margin-block: 14px 20px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead { font-size: var(--step-1); color: var(--ink-muted); max-width: 34ch; line-height: 1.55; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }

/* Polaroid-Wand */
.wall { position: relative; min-height: clamp(420px, 52vw, 560px); }
.polaroid {
  position: absolute;
  /* Polaroids sind immer helles Papier – auch im Dunkelmodus. */
  background: #FFFDF8;
  padding: 10px 10px 34px;
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.polaroid img { border-radius: 3px; background: var(--soft); aspect-ratio: 1290 / 2796; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--display); font-weight: 500; font-size: 0.95rem; color: #5E7477; }
.tape {
  position: absolute; top: -14px; left: 50%; width: 88px; height: 26px; margin-left: -44px;
  background: var(--tape-coral);
  border-radius: 2px;
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.tape.teal { background: var(--tape-teal); transform: rotate(5deg); }
.tape.gold { background: var(--tape-gold); transform: rotate(-7deg); }
.wall .p1 { width: 40%; left: 0; top: 10%; transform: rotate(-8deg); z-index: 1; }
.wall .p2 { width: 44%; left: 29%; top: 0; transform: rotate(2deg); z-index: 3; }
.wall .p3 { width: 40%; right: -2%; top: 20%; transform: rotate(9deg); z-index: 2; }
.wall .polaroid:hover { transform: rotate(0deg) translateY(-6px); z-index: 4; }
.wall .otter-mark { position: absolute; right: 0; bottom: -4%; width: 150px; height: auto; z-index: 5; filter: drop-shadow(0 10px 18px rgba(60, 35, 20, 0.22)); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .wall { min-height: clamp(360px, 110vw, 520px); max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--step-3); margin-top: 10px; }
.section-head p { color: var(--ink-muted); margin-top: 14px; font-size: var(--step-1); line-height: 1.55; }

/* Drei Schritte (echte Reihenfolge) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 1.25rem/1 var(--display);
  background: var(--brand); color: var(--on-brand);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: 54px; right: -12px;
  border-top: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent);
}
.steps h3 { font-size: var(--step-1); margin-bottom: 8px; }
.steps p { color: var(--ink-muted); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding-top: 0; padding-left: 60px; min-height: 42px; }
  .steps li:not(:last-child)::after { top: 50px; bottom: -22px; left: 20px; right: auto; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); }
}

/* Funktions-Reihen */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.reverse .feature-media { order: -1; }
.feature h3 { font-size: var(--step-3); margin-block: 10px 16px; }
.feature .body { color: var(--ink-muted); font-size: var(--step-1); line-height: 1.55; max-width: 34ch; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.facts .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 0.95rem; }
.facts strong { color: var(--ink); }
.feature-media { position: relative; display: flex; justify-content: center; }
.feature-media .polaroid { position: relative; width: min(300px, 78%); }
.feature-media .polaroid.tilt-l { transform: rotate(-3deg); }
.feature-media .polaroid.tilt-r { transform: rotate(3deg); }
.feature-media .polaroid.second { position: absolute; width: min(220px, 56%); right: 2%; bottom: -8%; transform: rotate(7deg); }
.feature-media .polaroid:hover { transform: rotate(0deg); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .feature .body { max-width: none; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-size: var(--step--1); font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }

/* Privatsphäre-Band */
.privacy { background: var(--brand-strong); color: #EAF4F3; }
:root[data-theme="dark"] .privacy { background: var(--glow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .privacy { background: var(--glow); } }
.privacy .section-head h2 { color: #FFFFFF; }
.privacy .eyebrow { color: #9FE3DE; }
.privacy .section-head p { color: #CFE7E5; }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.privacy-grid div { border-top: 1px solid rgba(234, 244, 243, 0.25); padding-top: 16px; }
.privacy-grid h3 { font-size: var(--step-1); color: #FFFFFF; margin-bottom: 6px; }
.privacy-grid p { color: #CFE7E5; font-size: var(--step-0); }

/* Schluss */
.closing { text-align: center; }
.closing .otter-mark { display: block; width: 150px; height: auto; margin: 0 auto 18px; }
.closing h2 { font-size: var(--step-3); }
.closing p { color: var(--ink-muted); margin-top: 12px; font-size: var(--step-1); }
.closing .actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 28px 36px; color: var(--ink-muted); font-size: var(--step--1); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .spacer { margin-left: auto; }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(32px, 6vw, 72px); }
.legal article { max-width: 44rem; }
.legal h1 { font-size: var(--step-3); margin-bottom: 8px; }
.legal .stand { color: var(--ink-muted); margin-bottom: 28px; }
.legal h2 { font-size: var(--step-1); margin-block: 32px 10px; }
.legal p { margin-block: 0 12px; white-space: pre-line; }
.legal .note { background: var(--soft); border-radius: 12px; padding: 12px 16px; color: var(--ink-muted); font-size: var(--step--1); margin-bottom: 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 20px; }

/* ---------- Bewegung ---------- */
/* Otti & Lumi wippen sanft wie auf dem Wasser */
.otter-mark { animation: bob 4.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .otter-mark { animation: none; }
  .polaroid { transition: none; }
}

[hidden] { display: none !important; }
