/* Neckartakt – Website. Farben wie in der App (src/theme). */

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-alt: #ebeff4;
  --border: #e0e6ec;
  --text: #0e1a25;
  --muted: #5a6b7b;
  --faint: #8a99a8;
  --primary: #0b6e99;
  --primary-ink: #ffffff;
  --primary-soft: #ddeff7;
  --accent: #d25f2a;
  --accent-soft: #fbe7dc;
  --live: #17a863;
  --hero-a: #1287bb;
  --hero-b: #0a4664;
  --shadow: 0 24px 60px -20px rgba(10, 46, 64, 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: #4db4e3;
    --primary-ink: #05222f;
    --primary-soft: #10303f;
    --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); }

/* 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; } }
