/* Bembeltakt – Website. Farben wie in der App (src/config.ts). */

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-alt: #ebeff4;
  --border: #e0e6ec;
  --text: #0e1a25;
  --muted: #5a6b7b;
  --faint: #8a99a8;
  --primary: #2457b0;
  --primary-ink: #ffffff;
  --primary-soft: #e0e8f7;
  --accent: #d25f2a;
  --accent-soft: #fbe7dc;
  --live: #17a863;
  --hero-a: #2457b0;
  --hero-b: #142f6e;
  --shadow: 0 24px 60px -20px rgba(20, 47, 110, 0.35);
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1016;
    --surface: #131c25;
    --surface-alt: #1a2530;
    --border: #22303d;
    --text: #eaf1f7;
    --muted: #93a4b4;
    --faint: #637587;
    --primary: #7fa8f2;
    --primary-ink: #0a1a3d;
    --primary-soft: #16264a;
    --accent: #f28b58;
    --accent-soft: #3a2216;
    --live: #3dd68c;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------------------------------------------------------------- Kopf */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { color: var(--primary); font-weight: inherit; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang a { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--primary); color: var(--primary-ink); }
.lang a:hover { text-decoration: none; }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(60% 60% at 20% 20%, color-mix(in srgb, var(--hero-a) 30%, transparent), transparent 70%),
    radial-gradient(50% 50% at 85% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); position: relative; }
.dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: var(--live); opacity: .35; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .5; } to { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot::after { animation: none; } }

h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -2px;
  margin: 20px 0 18px; font-weight: 850;
}
h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 34ch; margin: 0 0 30px; }
@media (max-width: 920px) { .lead { margin-inline: auto; } }

.cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 920px) { .cta { justify-content: center; } }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 14px; font-weight: 700; font-size: 16px;
  background: var(--text); color: var(--bg); border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .7; line-height: 1; margin-bottom: 2px; }
.btn .btn-text { line-height: 1.15; text-align: left; }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.note { margin-top: 14px; font-size: 14px; color: var(--faint); }

/* ---------------------------------------------------------- Telefone */
.phones { position: relative; height: 620px; }
@media (max-width: 920px) { .phones { height: 560px; margin-top: 10px; } }
.phone {
  position: absolute; width: 280px; aspect-ratio: 1206 / 2622;
  border-radius: 46px; padding: 9px; background: #0b1117;
  box-shadow: var(--shadow), inset 0 0 0 2px #2a3642;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phones .phone:nth-child(1) { left: 50%; top: 0; transform: translateX(-88%) rotate(-6deg); z-index: 1; }
.phones .phone:nth-child(2) { left: 50%; top: 30px; transform: translateX(-12%) rotate(5deg); z-index: 2; }
@media (max-width: 520px) {
  .phones { height: 470px; }
  .phone { width: 220px; border-radius: 38px; }
  .phone img { border-radius: 31px; }
}

/* -------------------------------------------------------- Abschnitte */
section { padding: 88px 0; }
.kicker { color: var(--primary); font-weight: 800; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -1px; margin: 10px 0 14px; font-weight: 800; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 60ch; margin: 0; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.2px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Galerie */
.gallery-band { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #fff; }
.gallery-band .kicker { color: #bfe6f7; }
.gallery-band .section-lead { color: #d4ecf7; }
.gallery {
  display: flex; gap: 28px; overflow-x: auto; padding: 44px 20px 30px; margin-top: 10px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.gallery .phone { position: relative; width: 250px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.55), inset 0 0 0 2px #2a3642; }
.gallery figcaption { margin-top: 16px; font-weight: 700; font-size: 16px; }
.gallery figcaption span { display: block; font-weight: 500; font-size: 14px; color: #cfe8f4; }
@media (min-width: 1200px) { .gallery { justify-content: center; } }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 14px;
}

/* Privat */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .privacy { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 650; font-size: 15px;
}
.chip svg { width: 18px; height: 18px; color: var(--primary); }
.privacy-art {
  border-radius: 28px; padding: 36px; text-align: center;
  background: radial-gradient(circle at 50% 35%, var(--primary-soft), transparent 70%), var(--surface);
  border: 1px solid var(--border);
}
.privacy-art .lock {
  width: 110px; height: 110px; margin: 10px auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink);
}
.privacy-art .lock svg { width: 50px; height: 50px; }
.privacy-art p { margin: 0; color: var(--muted); }

/* Sprachen */
.langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.langs span { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 15px; }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 800; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Abschluss */
.final { text-align: center; }
.final .box {
  border-radius: 32px; padding: 64px 28px; color: #fff;
  background: linear-gradient(140deg, var(--hero-a), var(--hero-b));
  position: relative; overflow: hidden;
}
.final .box::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -60px; top: -60px;
  background: color-mix(in srgb, var(--accent) 55%, transparent); filter: blur(60px); opacity: .6;
}
.final h2 { color: #fff; position: relative; }
.final p { color: #d4ecf7; font-size: 19px; margin: 0 auto 28px; max-width: 46ch; position: relative; }
.final .cta { justify-content: center; position: relative; }
.final .btn { background: #fff; color: #0a3a52; }
.final .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }

/* Fuß */
footer { padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 28px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }
/* Versteckter Link zur Widmung: ein blasses Herz neben Impressum/Datenschutz. */
footer a.heart { color: var(--faint); opacity: 0.45; text-decoration: none; transition: opacity .2s, color .2s; }
footer a.heart:hover, footer a.heart:focus-visible { color: var(--accent); opacity: 1; }

/* Rechtstexte */
.legal { max-width: 760px; padding: 56px 0 80px; }
.legal h1 { font-size: 40px; letter-spacing: -1px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); }
.todo { background: var(--accent-soft); color: var(--accent); padding: 12px 16px; border-radius: 12px; font-weight: 600; }

/* Bilder, die je nach Farbschema wechseln */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) { .only-light { display: none; } .only-dark { display: block; } }

/* Widmung */
.dedication .heart { font-size: 44px; color: var(--accent); margin: 0 0 4px; line-height: 1; }
.dedication .lead { font-size: 20px; color: var(--text); font-weight: 600; margin: 8px 0 0; max-width: none; text-align: left; }
.dedication .who { margin-top: -8px; font-size: 14px; color: var(--faint); }
.dedication .outro { margin-top: 40px; font-style: italic; color: var(--text); }
.dedication .signature { font-style: italic; font-weight: 700; color: var(--primary); }

/* Android-Test (geheime Seite) */
.tester .lead { margin: 12px 0 0; max-width: none; text-align: left; color: var(--muted); }
.tester .eyebrow { padding: 6px 12px; }
.tester-card { margin-top: 32px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.tester-card form { display: grid; gap: 8px; }
.tester-card label { font-weight: 700; color: var(--text); margin-top: 10px; }
.tester-card label .optional { font-weight: 500; color: var(--faint); }
.tester-card input[type=email], .tester-card input[type=text], .tester-card textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.tester-card input:focus, .tester-card textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.tester-card .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); font-size: 15px; margin-top: 14px; }
.tester-card .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.tester-card .submit { justify-content: center; margin-top: 16px; background: var(--primary); color: #fff; cursor: pointer; }
.tester-card .submit:disabled { opacity: .6; cursor: wait; transform: none; }
.tester-card .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 4px 0 0; color: var(--muted); }
.form-status[data-kind=error] { color: var(--accent); font-weight: 600; }
.tester-card .done h2, .tester-card .closed h2 { margin-top: 0; }
.tester .howto { color: var(--muted); padding-left: 1.4em; margin: 14px 0 0; }
.tester .howto li { margin: 0 0 12px; padding-left: 4px; line-height: 1.55; }
.tester .callout { margin-top: 36px; padding: 4px 22px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent); }

/* Markenname im Text: „Neckar“ normal, „takt“ in der Markenfarbe – wie im Logo. */
.tk { color: var(--primary); }

/* Offizielles App-Store-Badge von Apple – Grafik unverändert lassen. */
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge:hover { text-decoration: none; transform: translateY(-1px); }
.store-badge img { display: block; height: 58px; width: auto; }

/* Anleitung (/anleitung/, /en/guide/) */
.nav-links a[aria-current="page"] { color: var(--primary); }
.guide-head { padding: 64px 0 24px; }
.guide-head h1 { font-size: clamp(36px, 5.5vw, 58px); line-height: 1.05; letter-spacing: -1.6px; margin: 12px 0 16px; font-weight: 850; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.toc a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 650; font-size: 15px; color: var(--text); }
.toc a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.guide-steps { display: grid; gap: 28px; }
.guide-step {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; scroll-margin-top: 84px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 32px; padding: 44px;
}
.guide-step:nth-child(even) { grid-template-columns: auto 1fr; }
.guide-step:nth-child(even) .guide-text { order: 2; }
.guide-text h2 { font-size: clamp(26px, 3vw, 34px); margin: 14px 0 12px; }
.guide-text p, .guide-text li { color: var(--muted); }
.guide-text ul { padding-left: 1.2em; }
.guide-text li { margin-bottom: 6px; }
.guide-text .num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.guide-text .hint { font-size: 15px; padding: 12px 16px; border-radius: 14px; background: var(--primary-soft); color: var(--text); }
.new {
  display: inline-block; vertical-align: middle; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.guide-text h2 .new { font-size: 13px; margin-left: 6px; position: relative; top: -3px; }
.guide-shots { display: flex; gap: 20px; justify-content: center; }
.guide-shots .phone { position: relative; width: 240px; }
.legend { list-style: none; padding: 0 !important; margin: 18px 0 0; display: grid; gap: 12px; }
.legend li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin: 0; }
.sample {
  justify-self: start; font-weight: 700; font-size: 14px; padding: 3px 9px; border-radius: 8px;
  background: var(--surface-alt); color: var(--text); white-space: nowrap;
}
.sample s { color: var(--faint); font-weight: 500; }
.sample.line { background: #16944a; color: #fff; padding: 3px 14px; }
.sample.big { background: none; padding: 0; font-size: 18px; font-weight: 800; color: var(--accent); }
.sample.late { background: var(--accent-soft); color: var(--accent); }
.sample.ok { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); font-size: 13px; padding: 1px 7px; }
.sample.plain { color: var(--muted); }
.guide-cta { justify-content: center; margin-top: 28px; }
@media (max-width: 900px) {
  .guide-step, .guide-step:nth-child(even) { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; gap: 28px; }
  .guide-step:nth-child(even) .guide-text { order: 0; }
}
@media (max-width: 560px) {
  .guide-shots { gap: 12px; }
  .guide-shots .phone { width: min(240px, calc(50% - 6px)); border-radius: 28px; padding: 6px; }
  .guide-shots .phone img { border-radius: 25px; }
  .guide-shots .phone:only-child { width: min(260px, 75%); }
  .legend li { grid-template-columns: 84px minmax(0, 1fr); }
  .guide-head { padding-top: 44px; }
}
.more-link { margin: 28px 0 0; font-weight: 700; font-size: 17px; }

/* Quellenangabe mit RMV-Logo (verlangt der RMV, Nutzungsbedingungen 5f). Das Logo
   ist dunkelblau, im dunklen Design steht es darum auf einer hellen Fläche. */
.credit { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; flex: 1 1 520px; }
.source-logo { display: inline-flex; flex: none; border-radius: 8px; }
.source-logo img { height: 22px; width: auto; }
@media (prefers-color-scheme: dark) { .source-logo { background: #fff; padding: 5px 8px; } }
