/* ---------------------------------------------------------------------------
   kwitto — Startseite (kwitto.app)

   Eine Datei fuer beide Sprachfassungen (index.html = de, en.html = en).
   Farben sind die BrandTokens der App (lib/core/theme/brand_tokens.dart,
   Petrol hell); die Diagonale der dunklen Baender zeichnet den Header-Banner
   der App nach (lib/core/widgets/header_banner_background.dart).

   Kein externes CDN, keine Schrift von Google: Inter liegt unter
   /assets/fonts/ und wird lokal ausgeliefert.
--------------------------------------------------------------------------- */

@import url("/assets/fonts/inter.css");

:root {
  --ink:        #16393E;   /* Ueberschriften, Banner-Grundton     */
  --petrol:     #1E4B52;   /* primary                             */
  --petrol-alt: #2A6470;   /* hellerer Petrol-Ton                 */
  --orange:     #FF8A1E;   /* accent                              */
  --muted:      #415457;   /* Flieszstext                         */
  --subtle:     #6B7A7C;   /* Nebentexte                          */
  --ground:     #F4F7F7;   /* Grund der Screenshots — wichtig!    */
  --soft:       #E7F1F2;
  --border:     #C9D6D7;
  --white:      #FFFFFF;
  --green:      #1E7A48;

  --wrap: 1160px;
  --gap: clamp(56px, 8vw, 104px);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 57, 62, .05), 0 8px 28px rgba(22, 57, 62, .07);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto ist Pflicht — die width/height-Attribute im HTML halten das
   Seitenverhaeltnis beim Laden fest, wuerden ohne das aber als feste Hoehe
   wirken und jedes Telefon in die Laenge ziehen. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* Sichtbar nur fuer Screenreader — bis er den Fokus bekommt. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Kopfleiste ───────────────────────────────────────────────────────── */

/* Dunkel wie die AppBar der App — und damit nahtlos am dunklen Held-
   Abschnitt darunter. Bleibt beim Scrollen dunkel, sonst springt die Leiste
   an jeder Abschnittsgrenze um. */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 57, 62, .93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.top .mark { height: 26px; width: auto; flex: none; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a {
  color: #C9DEE0; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.top nav a:hover { color: #fff; background: rgba(255, 255, 255, .10); }
/* Der Knopf in der Kopfzeile ist auch ein `nav a` — Farbe und Fuellung
   muessen die Regel darueber ueberstimmen, sonst erbt er die Linkfarbe. */
.top nav a.btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.top nav a.btn-primary:hover { background: var(--soft); color: var(--ink); }
.top .lang { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.top .lang a { color: #9CB8BB; }
.top .lang a[aria-current] { background: #fff; color: var(--ink); }
@media (max-width: 860px) { .top nav .hide-sm { display: none; } }
/* Schmale Telefone: Wortmarke, Sprachwahl und Knopf muessen nebeneinander
   in 360 dp passen, ohne dass etwas rechts hinausfaellt. */
@media (max-width: 480px) {
  .top .wrap { gap: 10px; height: 62px; }
  .top nav { gap: 6px; }
  .top .mark { height: 24px; }
  .top nav a.btn-sm { padding: 8px 12px; font-size: .88rem; }
}

.lang {
  display: flex; align-items: center; gap: 2px; flex: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: #fff;
}
.lang a {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--subtle); text-decoration: none; padding: 4px 10px; border-radius: 999px;
}
.lang a[aria-current] { background: var(--ink); color: #fff; }

/* ── Knoepfe ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; text-decoration: none;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--petrol); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--petrol); }
.btn-sm { padding: 9px 16px; font-size: .93rem; border-radius: 10px; }

/* Store-Abzeichen. ACHTUNG: nachgebaut, fuer die Veroeffentlichung durch die
   offiziellen Marken-Assets von Google und Apple ersetzen. */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 18px 10px 15px; border-radius: 12px;
  border: 1px solid var(--ink);
  transition: background-color .12s ease;
}
.badge:hover { background: var(--petrol); }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge span { display: block; line-height: 1.25; }
.badge .small { font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; opacity: .72; }
.badge .big { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }

/* ── Held (dunkel) ────────────────────────────────────────────────────── */

/* Dunkel wie die Kopfzeile der App: Grundton --ink, darunter/rechts der
   hellere Petrol-Ton, getrennt durch die Banner-Diagonale von unten links
   nach oben rechts (HeaderBannerBackground). Die Telefonbilder sind dafuer
   freigestellt — mit dem frueheren flaechigen #F4F7F7 stuende hier ein
   leuchtender Kasten. */
.hero {
  background: linear-gradient(to bottom right, var(--ink) 50%, var(--petrol) 50%);
  color: #C9DEE0;
  padding-block: clamp(44px, 6vw, 80px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero .wrap {
  display: grid; gap: clamp(32px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
}

/* Die Wortmarke traegt den Abschnitt — sie steht als eigenes Element ueber
   der Zeile, nicht als Wasserzeichen dahinter. */
.hero-mark {
  height: clamp(54px, 7.2vw, 92px); width: auto;
  margin-bottom: clamp(22px, 2.6vw, 34px);
}

.hero h1 { color: #fff; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: #DDEBEC; background: rgba(255, 255, 255, .10);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
/* flex-start + Versatz: bricht die Zeile auf schmalen Schirmen um, haengt der
   Punkt sonst mittig zwischen beiden Zeilen. */
.hero .eyebrow { align-items: flex-start; }
.hero .eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--orange);
  margin-top: .58em; flex: none;
}
.hero .lead {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  margin-top: 20px; max-width: 34em; color: #C9DEE0;
}
.hero .badges { margin-top: 30px; }
/* Auf dunklem Grund kehren sich die Abzeichen um, sonst verschwinden sie. */
.hero .badge { background: #fff; color: var(--ink); border-color: #fff; }
.hero .badge:hover { background: var(--soft); }
.hero-note { margin-top: 16px; font-size: .86rem; color: #8FADB0; }

/* Ein weicher Lichtschein hinter dem Telefon — sein eigener Rand ist
   dunkles Petrol und ginge sonst im Grund unter. */
.hero-shot { position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: -6% -12%;
  background: radial-gradient(ellipse at 50% 48%, rgba(201, 222, 224, .20), rgba(201, 222, 224, 0) 68%);
  pointer-events: none;
}
.hero-shot img { position: relative; width: 100%; max-width: 390px; margin-inline: auto; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot img { max-width: 320px; }
}

/* ── Vertrauensband ───────────────────────────────────────────────────── */

.trust { background: var(--ground); border-top: 1px solid var(--border); }
.trust ul {
  list-style: none; margin: 0; padding: 20px 20px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
}
.trust li {
  display: flex; align-items: center; gap: 9px;
  font-size: .93rem; font-weight: 500; color: var(--ink);
}
.trust svg { width: 17px; height: 17px; flex: none; color: var(--green); }

/* ── Abschnitte ───────────────────────────────────────────────────────── */

section { padding-block: var(--gap); }
.sec-ground { background: var(--ground); }
.sec-soft   { background: var(--soft); }

.sec-head { max-width: 44ch; margin-bottom: clamp(34px, 4vw, 52px); }
.sec-head.mid { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: 14px; font-size: 1.06rem; }

.kicker {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}

/* Schritt-Karten */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.steps li {
  list-style: none; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; position: relative;
}
.steps li::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--soft); color: var(--petrol);
  font-weight: 700; font-size: 1.02rem; margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Grosze Funktionszeile: Telefon + Text */
.feature {
  display: grid; gap: clamp(30px, 5vw, 68px);
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
}
.feature + .feature { margin-top: var(--gap); }
.feature.flip .shot { order: 2; }
.feature .shot { background: var(--ground); border-radius: 24px; }
.feature .shot img { width: 100%; max-width: 340px; margin-inline: auto; }
.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature p { margin-top: 16px; }
.feature .points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.feature .points li { display: flex; gap: 11px; align-items: flex-start; }
.feature .points svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--petrol); }

/* Zwei Telefone nebeneinander (Scan: Zuschnitt + Ergebnis).
   `width:100%` gehoert zwingend dazu: `max-width:none` allein laesst die
   Bilder in ihrer Eigenbreite (680 px) stehen und zieht das ganze Dokument
   auf 1400 px — auf dem Telefon wird dann JEDE Zeile rechts abgeschnitten. */
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.feature .shot-pair img { width: 100%; max-width: none; }

@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .feature .shot img { max-width: 290px; }
}

/* Karten: Text links, Telefon rechts — es steigt von unten in die Karte
   hinein (unten beschnitten, nicht gestaucht). Zwei Spalten, damit das
   Telefon gross genug bleibt, um es zu erkennen. */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; padding: 26px 0 0 26px;
  display: grid; grid-template-columns: minmax(0, 1fr) 210px;
  grid-template-rows: auto 1fr; column-gap: 20px; align-items: start;
}
.card h3 { grid-column: 1; grid-row: 1; margin-bottom: 10px; }
.card p { grid-column: 1; grid-row: 2; font-size: .96rem; padding-bottom: 26px; }
.card .shot {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  background: var(--ground); border-radius: 14px 0 0 0;
  max-height: 265px; overflow: hidden;
}
.card .shot img { width: 100%; }
@media (max-width: 1040px) { .card { grid-template-columns: minmax(0, 1fr) 170px; } }
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: minmax(0, 1fr) 190px; }
}
@media (max-width: 460px) {
  .card { grid-template-columns: 1fr; padding: 24px 24px 0; }
  .card .shot { grid-column: 1; grid-row: 3; border-radius: 14px 14px 0 0; margin-top: 4px; }
}

/* Schlichte Merkmalsliste ohne Bilder */
.more { display: grid; gap: 20px 34px; grid-template-columns: repeat(3, 1fr); }
.more div { display: flex; gap: 13px; align-items: flex-start; }
.more svg { width: 21px; height: 21px; flex: none; margin-top: 3px; color: var(--petrol); }
.more b { display: block; color: var(--ink); font-weight: 600; }
.more span { font-size: .95rem; }
@media (max-width: 900px) { .more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .more { grid-template-columns: 1fr; } }

/* ── Dunkles Band mit der Banner-Diagonale der App ────────────────────── */

.band {
  /* Hard-Stop-Verlauf: Kante laeuft von unten links nach oben rechts,
     dunkel oben/links, heller unten/rechts — wie HeaderBannerBackground. */
  background: linear-gradient(to bottom right, var(--ink) 50%, var(--petrol) 50%);
  color: #fff;
}
.band h2 { color: #fff; }
.band p { color: #DDEBEC; }
.band .inner { max-width: 46ch; }
.band .inner p { margin-top: 18px; font-size: 1.08rem; }
.band .quote {
  margin-top: 26px; padding-left: 20px; border-left: 3px solid var(--orange);
  font-size: 1.05rem; color: #fff; font-weight: 500;
}

/* ── Preis ────────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.plan.hi { border-color: var(--petrol); border-width: 2px; box-shadow: var(--shadow); position: relative; }
.plan .tag {
  position: absolute; top: -13px; left: 26px;
  background: var(--orange); color: var(--ink); font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.05rem; color: var(--subtle); font-weight: 600; letter-spacing: .02em; }
.plan .price { margin-top: 12px; font-size: 2.4rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.plan .sub { margin-top: 8px; font-size: .93rem; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: .96rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--green); }
.plan .foot { margin-top: auto; padding-top: 24px; font-size: .88rem; color: var(--subtle); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan.hi { order: -1; } }

.price-note {
  margin-top: 26px; text-align: center; font-size: .92rem; color: var(--subtle);
  max-width: 62ch; margin-inline: auto;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle);
  transform: translateY(-70%) rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; font-size: 1rem; }
.faq .answer a { color: var(--petrol); }

/* ── Schluss-Aufruf ───────────────────────────────────────────────────── */

.cta { text-align: center; }
.cta h2 { margin-bottom: 18px; }
.cta .badges { justify-content: center; margin-top: 30px; }
.cta .lead { max-width: 46ch; margin-inline: auto; font-size: 1.08rem; }

/* ── Fusz ─────────────────────────────────────────────────────────────── */

footer { background: var(--ink); color: #B9CCCE; padding-block: 54px 34px; font-size: .94rem; }
footer .cols {
  display: grid; gap: 34px; grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: start;
}
footer .mark { height: 32px; width: auto; }
footer .about { margin-top: 18px; max-width: 34ch; color: #93AAAD; font-size: .92rem; }
footer h4 {
  margin: 0 0 14px; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #7E9699;
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer a { color: #DDEBEC; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .rule { margin-top: 42px; padding-top: 22px; border-top: 1px solid #2A5259;
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; color: #7E9699; font-size: .87rem; }
footer .rule .lang { background: none; border-color: #2A5259; margin-left: auto; }
footer .rule .lang a { color: #93AAAD; }
footer .rule .lang a[aria-current] { background: #2A5259; color: #fff; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .cols { grid-template-columns: 1fr; } }
