/* SmokeCurve Website — helles Design nach dem App-Designsystem.
   Weiß und Orange wie die helle App-Version. Bewusst NUR ein helles Theme. */

:root {
  --brand: #FF6B35;
  --brand-dark: #E85A24;
  --brand-soft: #FFF0E9;
  --critical: #E63946;
  --hard: #F4A261;
  --transition: #E9C46A;
  --stable: #52B788;
  --savings: #2D9B6F;
  --bg: #FFFFFF;
  --bg-warm: #FAF8F5;
  --text: #1A1A18;
  --text-2: #6B6B6A;
  --line: #ECE9E4;
  --radius: 20px;
  --radius-s: 14px;
  --shadow: 0 14px 44px rgba(120, 60, 20, 0.10);
  --shadow-s: 0 6px 20px rgba(120, 60, 20, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* Scrollleiste in Markenfarbe (Firefox). */
  scrollbar-color: var(--brand) var(--bg-warm);
}
/* Scrollleiste in Markenfarbe (WebKit/Chrome/Safari). */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb {
  background: var(--brand); border-radius: 999px;
  border: 3px solid var(--bg-warm);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 4vw, 2.3rem); font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--text-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.brand-c { color: var(--brand); }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateZ(0);
  will-change: transform;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brand-dark); }
/* Der Lade-Button IN der Linkliste ist nur fuers mobile Menue gedacht. */
.nav-links .btn { display: none; }
/* Rechte Seite des Headers: Sprachwechsler + Store-Buttons. */
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-langs {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.nav-langs a {
  text-decoration: none; color: var(--text-2); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; line-height: 1;
}
.nav-langs a:hover { color: var(--brand-dark); }
.nav-langs a[aria-current="true"] { background: var(--brand); color: #fff; }
.store-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Der Sprachwechsler im Burger-Menue ist nur mobil sichtbar (dann als
   volles Segment-Control mit gleich breiten, gut tippbaren Feldern). */
.nav-langs--menu { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1rem; padding: 0.72em 1.35em; border-radius: 999px;
  border: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn.ghost {
  background: #fff; color: var(--text);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: #fff; }
.btn.small { font-size: 0.9rem; padding: 0.55em 1.1em; }

.nav-burger {
  display: none; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-burger span {
  display: block; width: 22px; height: 2.5px; background: var(--text);
  border-radius: 2px; margin: 4.5px 0; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Auf grossen Screens fuellt der Hero genau eine Bildschirmhoehe (abzueglich
   des 64px-Headers), Inhalt vertikal zentriert. */
.hero { padding: 24px 0; }
@media (min-width: 921px) {
  .hero { min-height: calc(100svh - 64px); display: flex; align-items: center; }
}
.hero-grid { width: 100%; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 46px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  font-weight: 700; color: var(--brand); margin: 0 0 0.7em;
}
.lead { font-size: 1.18rem; max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }
.store-note { font-size: 0.85rem; color: var(--text-2); }
.trust { margin-top: 20px; font-size: 0.92rem; color: var(--text-2); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-shot {
  /* Hoehe an den Viewport koppeln (auto-Breite haelt das Seitenverhaeltnis,
     sonst wurde das Mockup gestreckt). */
  height: min(64vh, 660px); width: auto; max-width: 100%;
  margin: 0 auto; display: block;
  border-radius: 26px; box-shadow: var(--shadow);
}
@media (max-width: 920px) {
  .hero-shot { height: auto; width: min(300px, 74vw); }
}

/* ---------- Kurven-Karte ---------- */
.curve-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-s);
}
.phase-legend { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-2); }
.phase-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: middle; }

/* ---------- Sektionen ---------- */
section { padding: clamp(48px, 7vw, 84px) 0; }
section.warm { background: var(--bg-warm); }
.section-head { max-width: 46ch; margin-bottom: 38px; }

/* Phasen */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--brand);
}
.phase .when { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.phase p { font-size: 0.94rem; margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); font-size: 1.4rem; margin-bottom: 12px;
}
.feature p { font-size: 0.93rem; margin: 0; }
/* Hover-Effekt fuer Karten (leicht anheben, Marken-Rand, staerkerer Schatten). */
.feature, .phase {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.feature:hover, .phase:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
@media (prefers-reduced-motion: reduce) {
  .feature:hover, .phase:hover { transform: none; }
}

/* Screenshots (sanft auto-laufende Galerie) */
.shots {
  display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 22px;
  -webkit-overflow-scrolling: touch;
  /* flex-start statt stretch: sonst dehnt der Flex-Container die Bilder in der
     Hoehe und verzerrt das Seitenverhaeltnis. Kein scroll-snap, das ruckelte
     beim automatischen Lauf. */
  align-items: flex-start;
  scrollbar-width: none;
  /* Weiche Verlaeufe an beiden Raendern (Bilder faden aus statt hart zu enden). */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  width: min(250px, 62vw); height: auto; flex: 0 0 auto;
  border-radius: 22px; box-shadow: var(--shadow-s);
}

/* Band */
.band {
  background: linear-gradient(135deg, var(--brand), #FF8C61);
  color: #fff; border-radius: 26px; padding: clamp(30px, 5vw, 52px);
  text-align: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.93); max-width: 54ch; margin: 0 auto 6px; }
.band .btn { background: #fff; color: var(--brand-dark); box-shadow: none; margin-top: 16px; }
.band .btn:hover { background: var(--brand-soft); transform: translateY(-2px); }

/* FAQ */
.faq details {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 2px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 700; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) 22px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--text-2); font-size: 0.98rem; }
.legal ul { padding-left: 1.2em; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-warm); padding: 44px 0 30px; font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h3 { font-size: 0.95rem; margin-bottom: 0.7em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover { color: var(--brand-dark); }
.foot-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-switch a { text-decoration: none; color: var(--text-2); font-weight: 600; }
.lang-switch a[aria-current="true"] { color: var(--brand-dark); }

/* ---------- Cookie-Hinweis + Einstellungen ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto;
}
/* Ohne dieses Override gewinnt display:flex gegen das hidden-Attribut, dann
   liesse sich der Banner per JS (bar.hidden = true) nicht schliessen. */
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 0.9rem; flex: 1 1 260px; }
.cookie-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-modal {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: rgba(26, 26, 24, 0.45); padding: 20px;
}
.cookie-modal[hidden] { display: none; }
.cookie-card {
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 460px; width: 100%; padding: 26px;
}
.cookie-card h2 { font-size: 1.25rem; }
.cookie-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.cookie-row:last-of-type { border-bottom: none; }
.cookie-row b { font-size: 0.97rem; }
.cookie-row p { margin: 2px 0 0; font-size: 0.85rem; }
.switch { position: relative; width: 46px; height: 27px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: #D9D5CF;
  transition: background 0.15s ease; pointer-events: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  background: #fff; border-radius: 50%; transition: transform 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.switch input:checked + .track { background: var(--stable); }
.switch input:checked + .track::after { transform: translateX(19px); }
.switch input:disabled + .track { background: var(--stable); opacity: 0.55; }

/* ---------- Scroll-to-top-Button ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-dark); }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.2s ease; transform: none; }
  .to-top.show { transform: none; }
}

/* ---------- Fehlerseiten ---------- */
.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 40px 22px; }
.error-code { font-size: clamp(4rem, 16vw, 7rem); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 22px 16px; box-shadow: var(--shadow-s);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .store-btns { padding: 12px 0; }
  .nav-burger { display: block; }
  /* Mobil: Sprachwechsler wandert ins Burger-Menue, damit die Kopfzeile nicht
     ueberlaeuft. Rechts bleibt nur das Logo (nav-right komplett aus). */
  .nav-right { display: none; }
  .nav-langs--menu {
    display: flex; width: 100%; max-width: 300px; gap: 6px;
    padding: 5px; margin: 12px 0 4px; border-color: var(--line);
  }
  .nav-langs--menu a {
    flex: 1; text-align: center; padding: 10px 0; font-size: 0.82rem;
  }
}
@media (max-width: 400px) {
  .nav-langs a { padding: 4px 7px; font-size: 0.72rem; }
}
@media (max-width: 520px) {
  .phases { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .switch .track, .switch .track::after, .nav-burger span { transition: none; }
}
