/* Website dueinbox.com – Vorbild Stripe.com/Linear: hell, ruhig, echte App-Bilder als Hauptsache.
   Gleiche Farben und Schrift wie die App (app/globals.css). Blau nur für Marke und Hauptaktion.
   Kein JavaScript, keine fremden Schriften, keine Cookies. */

:root {
  --papier: #ffffff;
  --flaeche: #f6f8fa;
  --tinte: #1a1b25;
  --tinte-2: #414552;
  --leise: #687385;
  --linie: #ebeef1;
  --linie-stark: #d5dbe1;
  --blau: #0f6cbd;
  --blau-dunkel: #0b5699;
  --blau-hell: #e8f1fa;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
  --breite: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--papier); color: var(--tinte-2); font: 400 17px/1.6 var(--schrift); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
h1, h2, h3 { margin: 0; color: var(--tinte); font-weight: 600; }
p { margin: 0; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.visuell { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Kopf ─────────────────────────────────────────────────────────────── */
.kopf { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; gap: 32px; height: 64px; }
.marke { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; text-decoration: none; color: var(--blau); }
.marke svg { width: 22px; height: 22px; }
.kopf nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; }
.kopf nav a { text-decoration: none; color: var(--tinte-2); }
.kopf nav a:hover { color: var(--tinte); }
.kopf nav .leise { color: var(--leise); }
.kopf nav .knopf, .kopf nav .knopf:hover { color: #fff; }

.knopf { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 6px; background: var(--blau); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--blau); }
.knopf:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); }
.knopf--leise { background: var(--papier); color: var(--tinte); border-color: var(--linie-stark); }
.knopf--leise:hover { background: var(--flaeche); border-color: var(--linie-stark); }
.knopf--klein { height: 36px; padding: 0 14px; font-size: 15px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 0; }
.hero h1 { font-size: 64px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 650; white-space: pre-line; }
.hero__text { margin-top: 24px; font-size: 20px; line-height: 1.55; color: var(--tinte-2); max-width: 36em; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__hinweis { margin-top: 14px; font-size: 14px; color: var(--leise); }
/* das Bild ragt in den nächsten Abschnitt: echte App statt Grafik */
.buehne { margin-top: 64px; position: relative; }
.buehne::before { content: ""; position: absolute; top: 22%; bottom: 0; left: calc(50% - 50vw); width: 100vw; background: var(--flaeche); border-top: 1px solid var(--linie); z-index: -1; }
.rahmen { border: 1px solid var(--linie-stark); border-radius: 10px; overflow: hidden; background: var(--papier); box-shadow: 0 30px 60px -30px rgba(26, 27, 37, 0.28), 0 18px 36px -18px rgba(26, 27, 37, 0.12); }
.rahmen__leiste { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--linie); background: #fbfcfd; }
.rahmen__leiste span { width: 10px; height: 10px; border-radius: 50%; background: var(--linie-stark); }

/* ── Abschnitte ───────────────────────────────────────────────────────── */
.abschnitt { padding: 112px 0; }
.abschnitt--flaeche { background: var(--flaeche); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.abschnitt h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.025em; max-width: 18ch; }
.abschnitt__einleitung { margin-top: 16px; font-size: 18px; color: var(--leise); max-width: 40em; }

.schritte { background: var(--flaeche); padding: 72px 0 112px; }
.schritte ol { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: schritt; }
.schritte li { counter-increment: schritt; border-top: 1px solid var(--linie-stark); padding-top: 20px; }
.schritte li::before { content: counter(schritt); display: block; font-size: 15px; font-weight: 600; color: var(--blau); margin-bottom: 10px; font-feature-settings: "tnum" 1; }
.schritte h3 { font-size: 19px; }
.schritte p { margin-top: 8px; color: var(--tinte-2); }

.funktion { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.funktion + .funktion { margin-top: 128px; }
.funktion--gespiegelt { grid-template-columns: 7fr 5fr; }
.funktion--gespiegelt .funktion__text { order: 2; }
.funktion h2 { font-size: 34px; }
.funktion__text > p { margin-top: 16px; color: var(--tinte-2); }
.haken { list-style: none; margin: 24px 0 0; padding: 0; }
.haken li { position: relative; padding-left: 28px; margin-top: 10px; color: var(--tinte); font-size: 16px; }
.haken li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--blau); border-bottom: 2px solid var(--blau); transform: rotate(-45deg); }

.vertrauen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 48px; }
.vertrauen h3 { font-size: 17px; }
.vertrauen p { margin-top: 8px; font-size: 15px; color: var(--leise); }

/* ── Preise ───────────────────────────────────────────────────────────── */
.tarife { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.tarif { display: flex; flex-direction: column; border: 1px solid var(--linie-stark); border-radius: 10px; padding: 28px; background: var(--papier); }
.tarif--hervor { border-color: var(--blau); box-shadow: 0 0 0 1px var(--blau); }
.tarif h3 { font-size: 18px; }
.tarif__preis { margin-top: 16px; font-size: 44px; line-height: 1; font-weight: 650; letter-spacing: -0.03em; color: var(--tinte); font-feature-settings: "tnum" 1; }
.tarif__preis small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--leise); margin-left: 6px; }
.tarif__jahr { margin-top: 8px; font-size: 14px; color: var(--leise); min-height: 22px; }
.tarif .haken { flex: 1; margin-bottom: 28px; }
.tarife__fuss { margin-top: 24px; font-size: 14px; color: var(--leise); max-width: 60em; }

/* ── Schluss und Fuß ──────────────────────────────────────────────────── */
.schluss { text-align: center; padding: 112px 0; border-top: 1px solid var(--linie); }
.schluss h2 { margin: 0 auto; font-size: 40px; letter-spacing: -0.025em; max-width: none; }
.schluss p { margin-top: 12px; color: var(--leise); font-size: 18px; }
.schluss .knopf { margin-top: 28px; }

.fuss { border-top: 1px solid var(--linie); padding: 40px 0 56px; font-size: 14px; color: var(--leise); }
.fuss .huelle { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--tinte); text-decoration: underline; }

/* ── Rechtstexte ──────────────────────────────────────────────────────── */
.recht { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; font-size: 16px; }
.recht h1 { font-size: 36px; letter-spacing: -0.02em; line-height: 1.2; }
.recht h2 { font-size: 20px; margin-top: 40px; }
.recht h3 { font-size: 17px; margin-top: 28px; }
.recht p, .recht ul, .recht ol, .recht table { margin-top: 12px; }
.recht li + li { margin-top: 4px; }
.recht table { border-collapse: collapse; width: 100%; font-size: 14px; }
.recht th, .recht td { border: 1px solid var(--linie-stark); padding: 8px 10px; text-align: left; vertical-align: top; }
.recht th { background: var(--flaeche); color: var(--tinte); font-weight: 600; }
.recht a { color: var(--blau); }
.recht__zurueck { display: inline-block; margin-bottom: 32px; color: var(--leise); text-decoration: none; font-size: 15px; }
.recht__zurueck:hover { color: var(--tinte); }
.recht__hinweis { background: var(--blau-hell); border-radius: 8px; padding: 14px 18px; color: var(--tinte); font-size: 15px; margin-bottom: 24px; }
.impressum dt { margin-top: 24px; font-weight: 600; color: var(--tinte); }
.impressum dd { margin: 6px 0 0; white-space: pre-line; }

/* ── Kleinere Bildschirme ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero h1 { font-size: 48px; }
  .funktion, .funktion--gespiegelt { grid-template-columns: 1fr; gap: 32px; }
  .funktion--gespiegelt .funktion__text { order: 0; }
  .vertrauen { grid-template-columns: repeat(2, 1fr); }
  .tarife { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .huelle { padding: 0 16px; }
  .kopf .huelle { gap: 16px; }
  .kopf nav { gap: 16px; }
  .kopf nav .weg-mobil { display: none; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 40px; }
  .hero__text { font-size: 18px; }
  .buehne { margin-top: 40px; }
  .abschnitt, .schluss { padding: 72px 0; }
  .abschnitt h2, .schluss h2 { font-size: 30px; }
  .funktion h2 { font-size: 26px; }
  .funktion + .funktion { margin-top: 72px; }
  .schritte ol { grid-template-columns: 1fr; gap: 28px; }
  .vertrauen { grid-template-columns: 1fr; gap: 24px; }
  .rahmen__leiste { display: none; }
  .fuss nav { margin-left: 0; }
  .recht { padding: 40px 16px 72px; }
  .recht h1 { font-size: 28px; }
  .recht table { display: block; overflow-x: auto; }
}
