/* keto-app.de: Landingpage-Styles (dunkles App-Design, Markengrün) */

/* ── Font (selbst gehostet, DSGVO-sauber, kein Google-CDN) ─────────────── */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --green: #12a25b;
  --green-dark: #0c6e3e;
  --green-btn: #0c7a45;      /* Buttons: weiß darauf = 5.4:1 (WCAG AA) */
  --green-btn-h: #0e8449;    /* Hover: weiß darauf = 4.7:1 (WCAG AA) */
  --mint: #5bf0a8;
  --bg: #0c0e11;
  --surface: #16191e;
  --surface-2: #1d2127;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f5f3;
  --text-dim: #9aa3a0;
  --radius: 20px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Header (sticky, Glas): eigener GPU-Layer gegen Flackern ───────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 36px; height: 36px; }
.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav__links a { color: var(--text-dim); font-weight: 600; font-size: 0.95rem; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__cta {
  background: var(--green-btn);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--green-btn-h); }

/* ── Sprachumschalter (Dropdown, funktioniert ohne JS) ──────────────────── */
.lang-switch { position: relative; margin-left: 6px; flex-shrink: 0; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "▾"; font-size: 0.7rem; }
.lang-switch summary:hover { color: var(--text); }
.lang-switch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  min-width: 154px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  z-index: 60;
}
.lang-switch__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.lang-switch__menu a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.lang-switch__menu a.is-current { color: var(--mint); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow-x: clip; /* clippt Deko, laesst Sticky-Header in Ruhe */
  padding: 72px 0 0;
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(18, 162, 91, 0.28), transparent 65%),
    radial-gradient(700px 480px at 95% 25%, rgba(91, 240, 168, 0.10), transparent 60%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(18, 162, 91, 0.16);
  border: 1px solid rgba(91, 240, 168, 0.35);
  color: var(--mint);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
}
h1 em { font-style: normal; color: var(--mint); }
.hero p.lead {
  margin: 22px 0 30px;
  font-size: 1.13rem;
  color: var(--text-dim);
  max-width: 34em;
}
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid #3a3f45;
  border-radius: 14px;
  padding: 10px 20px;
  color: #fff;
  min-width: 190px;
}
.store-btn:hover { border-color: var(--mint); text-decoration: none; }
.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn small { display: block; font-size: 0.7rem; color: #b9c0bd; line-height: 1.2; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.hero__facts {
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero__facts span::before { content: "✓ "; color: var(--mint); }
.hero__phone { position: relative; text-align: center; }
.hero__phone img.phone {
  width: min(340px, 78%);
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
.hero__phone img.mascot {
  position: absolute;
  width: 120px;
  bottom: -10px;
  left: 4%;
}

/* ── Sektionen ─────────────────────────────────────────────────────────── */
section { padding: 84px 0; overflow-x: clip; }
section.alt { background: #101318; }
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-head { margin-bottom: 44px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; max-width: 720px; }

/* Feature-Karten */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.22s ease, border-color 0.22s ease,
              background 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-5px);
  background: var(--surface-2);
  border-color: rgba(91, 240, 168, 0.4);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
}
.card:hover .ico { background: rgba(18, 162, 91, 0.32); }
.card .ico { transition: background 0.22s ease; }
.card .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(18, 162, 91, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--mint); }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; font-weight: 700; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Abwechselnde Feature-Reihen */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.row__phone img {
  width: min(300px, 82%);
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.row__phone img:hover {
  transform: translateY(-8px) scale(1.02);
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.6));
}
.row h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.row p { color: var(--text-dim); margin-top: 12px; }
.row ul { margin: 18px 0 0 2px; list-style: none; }
.row li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text); }
.row li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 800; }

/* Screenshot-Galerie */
/* Screenshot-Galerie: seitenbreit, Auto-Scroll (Marquee), Pause bei Hover */
.gallery-wrap {
  overflow: hidden;
  padding: 8px 0 20px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.gallery {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: gallery-scroll 70s linear infinite;
}
.gallery li { flex-shrink: 0; margin-right: 18px; }
.gallery img {
  width: 240px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
  cursor: zoom-in;
}
.gallery-wrap:hover .gallery,
.gallery.is-paused { animation-play-state: paused; }
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery { animation: none; }
  .gallery-wrap { overflow-x: auto; }
}

/* Lightbox (Klick-Zoom) */
.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lb[hidden] { display: none; }
.lb img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.lb__close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
#faq .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mint);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--text-dim); }
.faq details a { font-weight: 600; }

/* Download-CTA */
.cta {
  text-align: center;
  position: relative;
}
.cta .mascot { width: 130px; margin: 0 auto 18px; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--text-dim); margin-bottom: 28px; }
.cta .stores { justify-content: center; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
footer .cols {
  display: flex;
  gap: 12px 34px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; }
.social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-dim);
}
.social a:hover { color: var(--text); border-color: var(--mint); background: var(--surface-2); }
.social svg { width: 18px; height: 18px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }
.disclaimer {
  margin-top: 22px;
  font-size: 0.8rem;
  color: #808a86;
  max-width: 70em;
}

/* ── Unterseiten (Impressum/Datenschutz) ───────────────────────────────── */
.page { padding: 64px 0 84px; min-height: 55vh; }
.page h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 28px; }
.page h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.page p, .page li { color: var(--text-dim); max-width: 46em; }
.page ul { margin: 10px 0 10px 22px; }
.page strong { color: var(--text); }
.page .meta { font-size: 0.9rem; margin: -18px 0 26px; }
.page .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 26px;
}
.page .note {
  border-left: 3px solid var(--mint);
  background: rgba(91, 240, 168, 0.06);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin: 14px 0;
}

/* ── Cookie-/Consent-Banner ────────────────────────────────────────────── */
.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.cc-banner__text strong { font-size: 1.02rem; }
.cc-banner__text p { color: var(--text-dim); font-size: 0.9rem; margin-top: 6px; }
.cc-banner__btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cc-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
}
.cc-btn--primary { background: var(--green-btn); color: #fff; }
.cc-btn--primary:hover { background: var(--green-btn-h); }
.cc-btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.cc-btn--ghost:hover { border-color: var(--mint); }

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
/* hidden-Attribut muss die display-Regel schlagen */
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
.cc-modal__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}
.cc-modal__panel h2 { font-size: 1.35rem; margin-bottom: 8px; }
.cc-modal__intro { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 20px; }
.cc-opt {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.cc-opt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 6px;
}
.cc-opt p { color: var(--text-dim); font-size: 0.88rem; }
.cc-opt__fixed { color: var(--mint); font-size: 0.82rem; font-weight: 700; }
.cc-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch__slider {
  position: absolute;
  inset: 0;
  background: #3a3f45;
  border-radius: 999px;
  transition: background 0.2s;
}
.cc-switch__slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cc-switch input:checked + .cc-switch__slider { background: var(--green-btn); }
.cc-switch input:checked + .cc-switch__slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-switch__slider { outline: 2px solid var(--mint); outline-offset: 2px; }
.cc-modal__btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

@media (max-width: 460px) {
  .cc-banner__btns .cc-btn { flex: 1 1 auto; }
}

/* ── Scrollleiste einfärben ─────────────────────────────────────────────── */
html { scrollbar-color: var(--green-dark) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--green-dark);
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── Nach-oben-Button ───────────────────────────────────────────────────── */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-btn);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease,
              transform 0.25s ease, background 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-btn-h); }
.to-top svg { width: 22px; height: 22px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero__facts { justify-content: center; }
  /* Store-Buttons full-width, gestapelt, Inhalt zentriert */
  .stores { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 360px; justify-content: center; }
  /* Sektions-Überschriften mittig */
  .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 30px; padding: 30px 0; }
  .row--flip .row__phone { order: -1; }
  .nav__links a:not(.nav__cta) { display: none; }
  /* Header kompakt: Brand + CTA + Switcher in eine Reihe */
  .nav__inner { gap: 10px; padding: 12px 16px; }
  .nav__links { gap: 0; }
  .nav__brand { font-size: 1rem; gap: 9px; }
  .nav__brand img { width: 32px; height: 32px; }
  .nav__cta { padding: 8px 15px; }
  .lang-switch { margin-left: 2px; }
  .lang-switch summary { padding: 6px 10px; font-size: 0.8rem; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .gallery img { width: 200px; }
  section { padding: 60px 0; }
}
