/* Watt Wann / Watt When – wattwann.de. System fonts only: no external requests. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #0f1c19;
  --muted: #5d6d68;
  --line: rgba(15, 28, 25, 0.09);
  --brand: #0b7a62;
  --brand-ink: #07604d;
  --brand-soft: #e2f1eb;
  --great: #2fb36b;
  --ok: #f0a43a;
  --wait: #e25a4a;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(15, 28, 25, 0.04), 0 18px 48px -18px rgba(15, 28, 25, 0.22);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1311;
    --surface: #111c19;
    --ink: #e8f1ee;
    --muted: #97aaa4;
    --line: rgba(232, 241, 238, 0.1);
    --brand: #36b994;
    --brand-ink: #82dbbf;
    --brand-soft: rgba(54, 185, 148, 0.13);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Bilingual content: one page, two languages, switched on <html>. */
html.lang-de .en, html.lang-en .de { display: none !important; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.lang-switch {
  font: 600 14px/1 var(--font); color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.lang-switch:hover { border-color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; padding: 48px 0 112px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font);
  color: var(--brand-ink); background: var(--brand-soft); padding: 8px 14px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
h1 { font: 800 clamp(48px, 7.4vw, 92px)/0.98 var(--display); letter-spacing: -0.045em; margin: 26px 0 22px; }
h1 .now { color: var(--brand); }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--muted); max-width: 30ch; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 24px; border-radius: 999px; font: 600 17px/1 var(--font); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #06231c; } .btn.primary:hover { background: var(--brand-ink); } }
.btn.quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.btn.quiet:hover { border-color: var(--muted); }

/* Phone mockup (always the light app UI) */
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620; border-radius: 50px; padding: 12px;
  background: #0d1513; box-shadow: var(--shadow), inset 0 0 0 2px #2b3633;
}
.island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.screen {
  height: 100%; border-radius: 39px; background: #f2f2f7; color: #111; overflow: hidden;
  padding: 54px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-family: var(--font);
}
.screen .title { font: 800 28px/1 var(--display); letter-spacing: -0.02em; margin: 0 4px; }
.status { background: #e3f3ea; border: 1px solid #bfe3cf; border-radius: 20px; padding: 14px; }
.status .head { display: flex; align-items: center; gap: 8px; font: 700 16px/1.2 var(--display); }
.dot-ok { width: 24px; height: 24px; border-radius: 50%; background: var(--great); display: grid; place-items: center; flex: none; }
.dot-ok svg { width: 13px; height: 13px; }
.status .sub { font-size: 12.5px; margin: 6px 0 10px; }
.metrics { display: flex; gap: 18px; }
.metrics b { font: 800 26px/1 var(--rounded); letter-spacing: -0.01em; }
.metrics small { display: block; font-size: 11px; color: #667; margin-top: 3px; }
.panel { background: #fff; border-radius: 18px; padding: 12px; }
.panel .row { display: flex; justify-content: space-between; align-items: baseline; font: 700 14px/1 var(--display); margin-bottom: 9px; }
.panel .row span { font: 600 11px/1 var(--font); color: #444; }
.ribbon { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.ribbon i { display: block; height: 22px; border-radius: 3px; background: var(--ok); }
.ribbon i.g { background: var(--great); }
.ribbon i.w { background: var(--wait); }
.ribbon i.now { outline: 2px solid #111; outline-offset: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: #fff; border-radius: 16px; padding: 10px; font: 600 12.5px/1.25 var(--font); }
.tile svg { display: block; width: 22px; height: 22px; color: var(--brand); margin-bottom: 6px; }
.tile em { display: block; font-style: normal; font-weight: 700; color: #1d8a52; margin-top: 3px; }
.caption { font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.kicker { font: 600 14px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 16px; }
h2 { font: 800 clamp(32px, 4.4vw, 52px)/1.05 var(--display); letter-spacing: -0.035em; margin: 0 0 18px; max-width: 18ch; }
.intro { color: var(--muted); font-size: 20px; max-width: 46ch; margin: 0 0 48px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { font: 700 21px/1.25 var(--display); letter-spacing: -0.015em; margin: 18px 0 10px; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.icon svg { width: 24px; height: 24px; }

/* Stat */
.stat { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.stat .num { font: 800 clamp(96px, 16vw, 200px)/0.9 var(--rounded); letter-spacing: -0.05em; color: var(--brand); }
.stat .num sup { font-size: 0.28em; vertical-align: top; position: relative; top: 0.35em; margin-left: 4px; color: var(--muted); }
.stat p { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; margin: 0; max-width: 32ch; }
.stat .soft { color: var(--muted); }

/* Modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode { padding: 34px; }
.mode .tag { display: inline-block; font: 600 13px/1 var(--font); padding: 7px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.mode h3 { font-size: 26px; margin-top: 16px; }
.mini-ribbon { display: flex; gap: 3px; margin-top: 22px; }
.mini-ribbon i { flex: 1; height: 16px; border-radius: 3px; background: var(--ok); }
.mini-ribbon i.g { background: var(--great); }
.mini-ribbon i.w { background: var(--wait); }
.mini-chart { margin-top: 22px; height: 64px; width: 100%; }
.note { margin-top: 28px; color: var(--muted); font-size: 16px; }

/* Horizons */
.horizons { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.horizon { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 30px 8px 30px 0; border-bottom: 1px solid var(--line); }
.horizon:nth-child(odd) { padding-right: 32px; }
.horizon h3 { font: 700 20px/1.3 var(--display); margin: 2px 0 6px; letter-spacing: -0.01em; }
.horizon p { margin: 0; color: var(--muted); }

/* Ideas */
.ideas { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
form.card { padding: 32px; display: grid; gap: 18px; }
label { font: 600 15px/1.3 var(--font); display: grid; gap: 8px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
textarea, input[type="email"] {
  font: 400 17px/1.5 var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; width: 100%;
}
textarea { min-height: 128px; resize: vertical; }
textarea:focus, input:focus, .btn:focus-visible, .lang-switch:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.privacy { font-size: 14px; color: var(--muted); margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 0; font-weight: 600; min-height: 1.6em; }
.msg.ok { color: var(--brand-ink); }
.msg.err { color: var(--wait); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.fine { margin-top: 28px; font-size: 13px; line-height: 1.55; max-width: 90ch; }

/* Legal pages */
.legal { max-width: 760px; padding: 24px 0 96px; }
.legal h1 { font-size: clamp(38px, 6vw, 56px); margin: 24px 0 28px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; max-width: none; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink); }
.legal mark { background: #fff3c4; color: #5b4300; padding: 0 4px; border-radius: 4px; }
.draft { border: 1px dashed var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); border-radius: 14px; padding: 14px 18px; font-size: 15px; }

/* Gentle entrance, only with JS and when motion is welcome */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 24px 0 80px; }
  .grid3, .modes, .ideas { grid-template-columns: 1fr; }
  .horizons { grid-template-columns: 1fr; }
  .horizon:nth-child(odd) { padding-right: 8px; }
  .stat { grid-template-columns: 1fr; gap: 16px; }
  section { padding: 72px 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .phone { width: 280px; }
  .card, form.card, .mode { padding: 24px; }
}
