/* Wetox – Webseite, Layout „Story“ (Studiolicht, dunkel). Schrift: Work Sans, lokal gehostet (keine Verbindung zu Google). */
@font-face { font-family: 'Work Sans'; font-weight: 400 600; font-display: swap; src: url('fonts/WorkSans-600.ttf') format('truetype'); }
@font-face { font-family: 'Work Sans'; font-weight: 700 800; font-display: swap; src: url('fonts/WorkSans-700.ttf') format('truetype'); }

:root {
  --bg-top: #14202b;
  --bg-bottom: #0b0f13;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --accent: #9cc8e8;
  --btn: #3e8db0;
  --line: rgba(255, 255, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: var(--text);
  background:
    radial-gradient(90% 55% at 30% -10%, rgba(42, 127, 142, 0.55), transparent 70%),
    radial-gradient(70% 50% at 100% 100%, rgba(58, 106, 196, 0.3), transparent 70%),
    radial-gradient(60% 40% at 0% 80%, rgba(58, 90, 140, 0.25), transparent 70%),
    linear-gradient(var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  line-height: 1.55;
}

/* Sprachen: zwei Fassungen im Text, die passende wird gezeigt */
html[data-lang='de'] [lang='en'], html[data-lang='en'] [lang='de'] { display: none !important; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

nav.top { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand b { font-weight: 700; letter-spacing: 0.18em; font-size: 18px; }
.langs { display: flex; gap: 6px; font-size: 14px; }
.langs button {
  appearance: none; border: 1.5px solid transparent; background: none; color: var(--muted);
  font: 700 14px 'Work Sans', sans-serif; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed='true'] { border-color: var(--line); color: var(--text); }

/* Kopfbereich */
header.hero { position: relative; min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); display: flex; flex-direction: column; justify-content: center; padding: 20px 0 96px; }
.cue { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; opacity: 0.8; transition: opacity 0.4s; }
.cue svg { animation: bob 1.8s ease-in-out infinite; }
.cue.gone { opacity: 0; pointer-events: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(7px); opacity: 1; } }
h1 { font-weight: 700; font-size: clamp(42px, 8vw, 84px); line-height: 1.02; margin: 0 0 20px; letter-spacing: -0.01em; }
h1 span { color: var(--accent); }
.lead { font-size: clamp(17px, 2.4vw, 21px); max-width: 560px; margin: 0 0 30px; color: var(--muted); font-weight: 500; }

.card-form { width: min(560px, 100%); padding: 18px; border-radius: 30px; background: var(--glass); border: 1.5px solid var(--glass-line); text-align: left; }
.wl { display: flex; gap: 10px; flex-wrap: wrap; }
.wl input[type='email'] {
  flex: 1; min-width: 220px; padding: 16px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.08); color: var(--text); font: 600 16px 'Work Sans', sans-serif;
}
.wl input::placeholder { color: rgba(255, 255, 255, 0.55); }
.wl button.go {
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer; font: 700 16px 'Work Sans', sans-serif;
  background: linear-gradient(#4a9bbf, #2f7fa4); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); transition: transform 0.2s;
}
.wl button.go:hover { transform: translateY(-2px) scale(1.02); }
.wl button.go:disabled { opacity: 0.6; cursor: default; transform: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 4px 4px; font-weight: 500; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: #3e8db0; flex: none; }
.msg { margin: 10px 6px 0; font-size: 15px; font-weight: 700; min-height: 1.2em; }
.msg.ok { color: #9be0b4; }
.msg.err { color: #ffb3a7; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* Spam-Falle: Menschen sehen das Feld nicht */

/* Geschichte in drei Schritten: Handy rechts wechselt beim Scrollen */
h2 { font-weight: 700; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.12; margin: 0 0 14px; }
.story { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.steps .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.35; transition: opacity 0.5s; }
.steps .step.on { opacity: 1; }
.steps .n { width: 38px; height: 38px; border-radius: 50%; background: #17506a; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.steps .lead { margin-bottom: 0; }
.sticky { position: sticky; top: 60px; height: 640px; display: flex; justify-content: center; }
.phone { width: 310px; height: 630px; border-radius: 46px; border: 10px solid #05080a; background: #101a24; position: relative; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.08); }
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #05080a; z-index: 5; }
.scr { position: absolute; inset: 0; padding: 54px 20px 20px; opacity: 0; transform: scale(0.97); transition: opacity 0.5s, transform 0.5s; display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(90% 50% at 30% -10%, rgba(42, 127, 142, 0.5), transparent 70%), #101a24; }
.phone[data-s='1'] .s1, .phone[data-s='2'] .s2, .phone[data-s='3'] .s3 { opacity: 1; transform: none; }
.scr h4 { margin: 0; font-size: 17px; font-weight: 700; }
.pbars { display: flex; align-items: flex-end; justify-content: space-around; height: 200px; background: rgba(255, 255, 255, 0.07); border-radius: 18px; padding: 18px 10px; }
.bar { width: 38px; border-radius: 10px 10px 4px 4px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; height: 0; transition: height 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.phone[data-s='1'] .bar { height: var(--h); }
.bar i { display: block; }
.names { display: flex; justify-content: space-around; font-size: 12px; color: var(--muted); }
.rule { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); font-size: 14px; opacity: 0; transform: translateX(20px); transition: all 0.5s; }
.phone[data-s='2'] .rule { opacity: 1; transform: none; }
.phone[data-s='2'] .rule:nth-child(3) { transition-delay: 0.15s; }
.phone[data-s='2'] .rule:nth-child(4) { transition-delay: 0.3s; }
.tg { width: 44px; height: 26px; border-radius: 13px; background: #3e8db0; position: relative; flex: none; }
.tg::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fbf3ea; }
.s3 { align-items: center; text-align: center; justify-content: center; }
.rsvg { width: 190px; height: 190px; }
.rsvg circle { transition: stroke-dasharray 1.4s ease; }
.s3 b { font-size: 24px; }
.s3 small { color: var(--muted); font-weight: 500; }

/* Datenversprechen und Abschluss */
.promise { text-align: center; max-width: 700px; margin: 40px auto 0; font-size: 18px; color: var(--muted); font-weight: 500; }
.promise b { color: var(--text); }
.cta { padding: 50px 0 0; text-align: center; }
.cta .lead { margin: 0 auto 24px; }
.cta .card-form { margin: 0 auto; }

footer { margin-top: 70px; padding: 26px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-weight: 500; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Sanftes Einblenden */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Rechtstexte */
main.legal { padding: 30px 0 0; max-width: 780px; }
main.legal h1 { font-size: clamp(32px, 6vw, 48px); text-align: left; }
main.legal h2 { text-align: left; font-size: 22px; margin: 34px 0 10px; }
main.legal h3 { font-size: 17px; margin: 22px 0 6px; }
main.legal p, main.legal li { color: var(--muted); font-weight: 500; font-size: 16px; }
main.legal ul { padding-left: 22px; }
mark { background: #ffd666; color: #1b1b1b; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.note { padding: 14px 18px; border-radius: 14px; background: rgba(255, 214, 102, 0.12); border: 1px solid rgba(255, 214, 102, 0.5); font-size: 14px !important; }

@media (max-width: 860px) {
  /* Handy bleibt klein rechts stehen und wechselt weiter mit den Schritten */
  .story { grid-template-columns: 1fr 190px; gap: 20px; }
  .sticky { top: 16px; height: 380px; width: 190px; display: block; }
  .phone { transform: scale(0.6); transform-origin: 0 0; }
  .steps .step { min-height: 70vh; }
  .steps .step h2 { font-size: 24px; }
  .steps .lead { font-size: 16px; }
}
@media (max-width: 560px) {
  .story { grid-template-columns: 1fr 140px; gap: 14px; }
  .sticky { width: 140px; height: 290px; }
  .phone { transform: scale(0.45); }
  .steps .step h2 { font-size: 21px; }
  .wl button.go { width: 100%; }
  header.hero { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
