/* ============================================================
   BelegCode Landingpage — Premium Design
   Farbwelt: Dunkelblau (Vertrauen), Türkis (Technologie), Gold (Premium)
   Angepasst an die App 1.0.2 (vollständig offline)
   ============================================================ */

:root {
  --bg: #F8FAFC;
  --bg-alt: #EEF3F7;
  --dark: #071C33;
  --dark-2: #0B2A4A;
  --brand: #123B63;
  --brand-strong: #0B2A4A;
  --teal: #18B8A6;
  --teal-soft: #CFF2ED;
  --gold: #C9A227;
  --ink: #17222E;
  --ink-soft: #51617A;
  --line: rgba(23, 34, 46, .10);
  --white: #FFFFFF;
  --shadow-lg: 0 30px 60px -20px rgba(7, 28, 51, .28);
  --shadow-md: 0 16px 40px -16px rgba(7, 28, 51, .24);
  --shadow-sm: 0 6px 18px -8px rgba(7, 28, 51, .18);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Inter", "SF Pro Display", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* hidden-Attribut muss immer gelten — auch bei display:grid/flex-Klassen */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.gate-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--dark { background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%); color: #E6EDF4; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { color: var(--ink-soft); }
.section--dark p { color: #B7C9DA; }

.gradient-text {
  background: linear-gradient(92deg, var(--teal) 0%, #4AD2C1 55%, #7FE0D5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head .gradient-text,
.section-head--light .gradient-text {
  background: linear-gradient(92deg, var(--brand) 0%, var(--teal) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--dark .gradient-text {
  background: linear-gradient(92deg, var(--teal) 0%, #7FE0D5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: none; border-radius: 999px; padding: 14px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, #0F8577 100%);
  color: #fff; box-shadow: 0 12px 26px -10px rgba(24, 184, 166, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(24, 184, 166, .6); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--ghost { background: transparent; color: var(--brand); border: 1.5px solid rgba(18, 59, 99, .35); }
.btn--ghost:hover { background: rgba(18, 59, 99, .06); }
.btn--outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { transform: translateY(-2px); }
.section--dark .btn--ghost { color: #CFE2F0; border-color: rgba(255,255,255,.25); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; font-size: 20px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.brand__name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand__name b { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-soft); transition: color .15s; display: inline-flex; align-items: center; gap: 7px; }
.site-nav > a:hover { color: var(--brand); }
.nav-ico { font-size: .95rem; line-height: 1; filter: saturate(.85); }
.site-nav .nav-cta { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__badge {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--teal-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); margin: 20px 0 28px; max-width: 34rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 184, 166, .28) 0%, rgba(24, 184, 166, 0) 65%);
  top: -120px; right: -160px; pointer-events: none; z-index: -1;
}

/* ---------- Phone-Mockups ---------- */
.phone {
  width: 280px; aspect-ratio: 9 / 19; background: #0A1522;
  border-radius: 42px; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08);
  position: relative; flex-shrink: 0;
}
.phone__notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px; background: #0A1522; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column; font-size: 11px;
  color: var(--ink);
}

/* App-Brand-Kopf (wie in der App: dunkelblauer Verlauf + türkiser Chip) */
.app-brand {
  display: flex; align-items: center; gap: 9px;
  padding: 24px 14px 12px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff; border-bottom: 2px solid var(--teal);
}
.app-brand__chip {
  display: grid; place-items: center; width: 30px; height: 30px; font-size: 14px;
  background: var(--teal); border-radius: 9px;
}
.app-brand b { display: block; font-size: 13px; line-height: 1.15; }
.app-brand small { font-size: 8.5px; color: #7FE0D5; }

/* Testversion-Hinweis (Hero-Dashboard) */
.dash-trial {
  margin: 10px 12px 0; padding: 9px 12px; border-radius: 12px;
  background: var(--teal-soft); color: var(--brand-strong);
  font-weight: 800; font-size: 10px;
}
.dash-trial span { display: block; font-weight: 600; font-size: 8.5px; color: var(--ink-soft); }

/* Kennzahl-Kacheln */
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 12px 0; }
.dash-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.dash-stat small { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 700; }
.dash-stat b { font-size: 13.5px; font-weight: 800; color: var(--brand-strong); }

/* Kategorien-Zeilen */
.dash-row { display: flex; align-items: center; gap: 8px; padding: 9px 14px 0; font-size: 10px; }
.dash-row > i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.dash-row span { width: 66px; color: var(--ink-soft); }
.dash-bar { flex: 1; height: 6px; background: #E2E8EF; border-radius: 4px; overflow: hidden; }
.dash-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--teal)); border-radius: 4px; }
.dash-row b { font-size: 10px; }

.dash-budget { margin: 12px 12px 0; padding: 10px 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.dash-budget__head { display: flex; justify-content: space-between; font-size: 9.5px; margin-bottom: 6px; color: var(--ink-soft); }
.dash-budget__head b { color: var(--ink); }
.dash-progress { height: 8px; background: #E2E8EF; border-radius: 6px; overflow: hidden; }
.dash-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #7FE0D5); border-radius: 6px; }
.dash-progress i.warn { background: linear-gradient(90deg, var(--gold), #E8C558); }

.dash-latest { margin: auto 12px 14px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 9px; }
.dash-latest b { display: block; font-size: 9.5px; margin-bottom: 4px; color: var(--brand-strong); }
.dash-latest span { display: flex; justify-content: space-between; padding: 2px 0; color: var(--ink-soft); }

/* Einfacher Screen ohne Verlaufskopf (Screenshots-Sektion) */
.phone__screen--flat .app-brand { padding-top: 24px; }

/* Floating Cards im Hero */
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-md);
  font-size: .75rem; animation: floaty 5s ease-in-out infinite;
}
.float-card small { display: block; color: var(--ink-soft); font-size: .68rem; }
.float-card__icon {
  display: grid; place-items: center; width: 34px; height: 34px; font-size: 16px;
  background: var(--teal-soft); border-radius: 10px;
}
.float-card--1 { top: 14%; right: max(0px, 6%); }
.float-card--2 { bottom: 16%; left: max(0px, 2%); animation-delay: 2.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Trust-Strip ---------- */
.trust { background: var(--white); border-block: 1px solid var(--line); padding: 22px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust__item b { display: block; font-size: 1.25rem; color: var(--brand-strong); }
.trust__item span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Section-Head ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--light { margin-inline: auto; text-align: center; }
.section-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}
.section-head p { margin-top: 14px; font-size: 1.02rem; }

/* ---------- Features ---------- */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; font-size: 24px;
  background: linear-gradient(135deg, var(--teal-soft), #EAF6FB); border-radius: 16px; margin-bottom: 18px;
}
.feature-card p { font-size: .93rem; margin-top: 8px; }

/* ---------- Screenshots (dunkle Sektion) ---------- */
.shots__row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.shot { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shot .phone { width: 100%; max-width: 260px; box-shadow: 0 30px 60px -18px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.09); }
.shot figcaption { text-align: center; font-size: .88rem; color: #B7C9DA; max-width: 250px; }
.shot figcaption b { color: #fff; display: block; margin-bottom: 3px; font-size: .95rem; }

/* Einfacher App-Kopf für Screenshots (ohne Verlauf) */
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 26px 14px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.appbar--dark {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-bottom: 2px solid var(--teal);
}
.appbar__title { font-weight: 800; font-size: 12px; color: var(--brand-strong); }
.appbar--dark .appbar__title { color: #fff; }
.appbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Scanner-Screen */
.scan-view { padding: 14px; }
.scan-frame {
  position: relative; border-radius: 14px; background: var(--brand-strong); padding: 12px;
  min-height: 190px; display: grid; place-items: center;
}
.scan-frame__corner { position: absolute; width: 18px; height: 18px; border: 3px solid var(--teal); }
.scan-frame__corner.c1 { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-frame__corner.c2 { top: 6px; right: 6px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.scan-frame__corner.c3 { bottom: 6px; left: 6px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.scan-frame__corner.c4 { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scan-receipt {
  background: #fff; width: 78%; padding: 12px 12px; border-radius: 6px;
  transform: rotate(-2deg); box-shadow: 0 8px 18px rgba(0,0,0,.35);
  font-size: 9px; color: #222;
}
.scan-receipt b { display: block; font-size: 11px; letter-spacing: .08em; }
.scan-receipt small { color: #777; }
.scan-receipt hr { border: 0; border-top: 1px dashed #ccc; margin: 6px 0; }
.scan-line { display: flex; justify-content: space-between; padding: 1.5px 0; }
.scan-line--total { font-weight: 800; border-top: 1px solid #eee; margin-top: 3px; padding-top: 4px; }
.scan-result {
  margin: auto 12px 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--teal-soft); color: var(--brand-strong);
}
.scan-result b { display: block; font-size: 10.5px; }
.scan-result span { display: block; font-size: 8.5px; margin-top: 2px; }

/* Listen-Screen */
.list-search {
  margin: 10px 12px 2px; padding: 9px 12px; background: #fff; border-radius: 999px;
  border: 1px solid var(--line); color: #93A0AE; font-size: 9.5px;
}
.list-item {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 12px 0; padding: 10px 12px; background: #fff; border-radius: 12px;
  border: 1px solid var(--line);
}
.list-accent { width: 5px; height: 30px; border-radius: 3px; flex-shrink: 0; }
.list-item div { flex: 1; }
.list-item b { font-size: 10.5px; display: block; }
.list-item small { font-size: 8.5px; color: var(--ink-soft); }
.list-item em { display: block; font-style: normal; font-size: 8px; font-weight: 700; margin-top: 2px; }
.list-item em.ok { color: var(--teal); }
.list-item em.pending { color: #B25E00; }
.list-item .amt { font-size: 11px; color: var(--brand-strong); }
.list-fab {
  margin: auto 16px 14px; align-self: flex-end; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-size: 18px; box-shadow: 0 8px 18px rgba(24,184,166,.45);
}

/* Bericht-Screen */
.report-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 12px 0; }
.report-month { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 0 2px; }
.report-month span { color: var(--teal); font-weight: 800; }
.report-month b { font-size: 14px; }
.report-btn {
  margin: 8px 12px 0; padding: 11px; text-align: center; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--teal); color: var(--brand-strong); font-weight: 800; font-size: 10px;
}
.report-btn--primary { background: linear-gradient(135deg, var(--teal), #0F8577); color: #fff; border-color: transparent; }
.report-preview { margin: 10px 12px 0; background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.rp-head b { font-size: 11px; display: block; }
.rp-head small { color: var(--ink-soft); font-size: 8.5px; }
.rp-row { display: flex; justify-content: space-between; font-size: 9.5px; padding: 5px 0; border-bottom: 1px solid #EEF2F6; }
.rp-row--sum { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--brand-strong); margin-top: 3px; padding-top: 6px; }
.report-note { text-align: center; font-size: 8.5px; color: var(--ink-soft); padding: 10px 0 14px; }

/* ---------- Steps ---------- */
.steps__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand)); color: #fff;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; box-shadow: 0 10px 20px -8px rgba(11,42,74,.5);
}
.step p { font-size: .93rem; margin-top: 8px; }

/* ---------- Premium / Lizenz ---------- */
.pricing { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.pricing__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch;
}
.pricing-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.pricing-card--premium {
  background: linear-gradient(160deg, var(--brand-strong) 0%, var(--brand) 70%, #164a7c 100%);
  color: #E6EDF4; border: 0; box-shadow: var(--shadow-lg);
}
.pricing-card--premium h3 { color: #fff; }
.pricing-card__badge {
  align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--teal-soft); color: var(--brand-strong); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.pricing-card__badge--gold { background: rgba(201, 162, 39, .18); color: #E8C558; }
.pricing-card__price { margin: 14px 0 18px; }
.pricing-card__price b { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--brand-strong); }
.pricing-card--premium .pricing-card__price b { color: #fff; }
.pricing-card__price span { font-size: .88rem; color: var(--ink-soft); }
.pricing-card--premium .pricing-card__price span { color: #9FBBD3; }
.pricing-card__list { list-style: none; display: grid; gap: 9px; font-size: .92rem; margin-top: 6px; }
.pricing-card__steps { margin: 0 0 14px 0; padding-left: 20px; display: grid; gap: 10px; font-size: .92rem; }
.pricing-card__steps li { color: #CFE0EE; }
.pricing-card__steps b { color: #fff; }
.pricing-card__steps em { font-style: normal; color: #7FE0D5; font-weight: 700; }

/* ---------- Security ---------- */
/* Sicherheits-Sektion: Überschrift über der vollen Breite, darunter zwei
   gleich hohe Spalten — Felder schließen oben und unten exakt bündig ab. */
.security__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.security__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: stretch;
}
.security__list {
  list-style: none; display: grid; grid-template-rows: repeat(5, 1fr); gap: 14px;
}
.security__list li {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  padding: 14px 18px; border-radius: 14px; color: #D3E2EF;
}
.security__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; font-size: 19px;
  background: rgba(24, 184, 166, .12); border: 1px solid rgba(24, 184, 166, .3);
  border-radius: 12px;
}
.security__list b { display: block; font-size: .95rem; color: #fff; }
.security__list small { display: block; font-size: .8rem; color: #A5BDD3; line-height: 1.45; }
.security__panel {
  display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px;
}
.sec-card {
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 20px;
}
.sec-card span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--teal); font-weight: 800; margin-bottom: 5px; }
.sec-card code { font-size: .88rem; color: #E6EDF4; font-family: "SF Mono", Consolas, monospace; }

/* ---------- Download ---------- */
.download__card {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px;
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FB 100%);
  border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-lg);
}
.download__info p { margin: 14px 0 22px; }
.download__btn { margin-bottom: 22px; }
.download__steps { margin: 6px 0 0 20px; font-size: .92rem; color: var(--ink-soft); display: grid; gap: 6px; }
.download__meta { display: grid; gap: 12px; align-content: center; }
.meta-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.meta-item span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.meta-item b { font-size: .95rem; word-break: break-all; }
.meta-checksum { font-family: "SF Mono", Consolas, monospace; font-size: .8rem !important; }
.meta-item--note { border-left: 4px solid var(--teal); }

/* ---------- FAQ ---------- */
.faq__inner { max-width: 760px; }
.faq__list details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq__list summary {
  cursor: pointer; font-weight: 700; font-size: 1rem; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-size: 1.3rem; color: var(--teal); transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding-bottom: 16px; font-size: .93rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #B7C9DA; padding: 56px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name b { color: var(--teal); }
.site-footer__grid p { margin-top: 10px; font-size: .9rem; max-width: 280px; color: #8FA6BC; }
.site-footer__grid b { color: #fff; display: block; margin-bottom: 12px; font-size: .9rem; }
.site-footer__grid a { display: block; text-decoration: none; color: #B7C9DA; font-size: .9rem; padding: 4px 0; transition: color .15s; }
.site-footer__grid a:hover { color: var(--teal); }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: .82rem; color: #7E93A8; }
.consent-state { opacity: .8; }

/* ---------- Datenschutz-Gate ---------- */
.privacy-gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(4, 14, 26, .74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 18px;
}
.privacy-gate__card {
  width: min(680px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow-lg); text-align: center;
}
.privacy-gate__logo { font-size: 2rem; margin-bottom: 8px; }
.privacy-gate__card h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.privacy-gate__intro { margin: 12px auto 18px; max-width: 480px; font-size: .95rem; }
.privacy-gate__scroll {
  text-align: left; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 18px; background: var(--bg); flex: 1; min-height: 120px;
}
.privacy-gate__scroll h2 { font-size: .95rem; margin: 16px 0 6px; color: var(--brand-strong); }
.privacy-gate__scroll h2:first-child { margin-top: 0; }
.privacy-gate__scroll p, .privacy-gate__scroll li { font-size: .87rem; color: var(--ink-soft); }
.privacy-gate__scroll ul { margin: 6px 0 0 18px; display: grid; gap: 6px; }
/* Buttons im Gate: auf Desktop und Mobil gleich groß (Raster) */
.privacy-gate__actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px;
}
.privacy-gate__actions .btn { width: 100%; justify-content: center; padding-inline: 10px; }
.privacy-gate__declined { margin-top: 14px; font-size: .85rem; color: #B3261E; font-weight: 600; }

/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 220; display: grid; place-items: center;
  background: rgba(4, 14, 26, .68); backdrop-filter: blur(6px); padding: 18px;
}
.modal__card {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 22px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-lg);
}
.modal__sub { font-size: .88rem; margin: 10px 0 18px; }
/* Buttons in den Cookie-Einstellungen: gleich groß (Desktop-Raster, mobil gestapelt) */
.modal__actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px;
}
.modal__actions .btn { width: 100%; justify-content: center; padding-inline: 10px; }
.consent-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
}
.consent-row b { font-size: .93rem; }
.consent-row small { display: block; color: var(--ink-soft); font-size: .8rem; margin-top: 2px; }
.tag {
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: var(--teal-soft); color: var(--brand-strong); padding: 2px 7px; border-radius: 999px;
}

/* ---------- Download-Modal ---------- */
.download-modal { width: min(620px, 100%); }
.dl-warning {
  border-left: 4px solid var(--gold);
  background: #FDF6E3;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0 16px;
}
.dl-warning b { display: block; margin-bottom: 4px; color: var(--ink); }
.dl-warning small { color: var(--ink-soft); line-height: 1.5; }
.dl-details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 18px; margin-bottom: 16px; background: var(--bg);
}
.dl-details summary {
  cursor: pointer; font-weight: 700; font-size: .95rem; padding: 8px 0;
  list-style: none; display: flex; align-items: center;
}
.dl-details summary::-webkit-details-marker { display: none; }
.dl-details[open] summary { margin-bottom: 6px; }
.dl-steps { margin: 6px 0 10px 20px; display: grid; gap: 6px; font-size: .92rem; color: var(--ink-soft); }
.dl-check {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 18px; cursor: pointer;
  background: var(--bg);
}
.dl-check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--teal); }
.dl-check span { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.btn--disabled { opacity: .45; pointer-events: none; }

/* Download-Modal: beide Schaltflächen exakt gleich gross */
#downloadModal .modal__actions { grid-template-columns: repeat(2, 1fr); }
#downloadModal .modal__actions .btn {
  padding: 16px 24px;
  font-size: 1rem;
  width: 100%;
  justify-content: center;
}

/* ---------- Switch ---------- */
.switch { position: relative; display: inline-block; width: 48px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: #D6DDE5; border-radius: 999px; cursor: pointer; transition: .2s;
}
.switch span::before {
  content: ""; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::before { transform: translateX(21px); }
.switch--locked { opacity: .7; }

/* ---------- Reveal-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .shots__row { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: 1fr; }
  .download__card { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__actions { justify-content: center; }
  .hero__meta { justify-content: center; }
  .hero__visual { margin-top: 12px; }
  .security__grid { grid-template-columns: 1fr; }
  .security__list, .security__panel { grid-template-rows: none; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 18px 6% 22px; gap: 14px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .28s ease; z-index: 49;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav > a { padding: 10px 4px; font-size: 1rem; }
}
@media (max-width: 640px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .shots__row { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .phone { width: min(260px, 78vw); }
  /* Mobile: Gate- und Modal-Buttons untereinander, jeweils volle Breite */
  .privacy-gate__actions,
  .modal__actions { grid-template-columns: 1fr; }
  .privacy-gate__actions .btn,
  .modal__actions .btn { width: 100%; }
  /* Download-Bereich: Button und Hinweise mittig auf Mobilgeräten */
  .download__card { text-align: center; }
  .download__info { display: flex; flex-direction: column; align-items: center; }
  .download__btn { width: 100%; justify-content: center; }
  .download__steps { text-align: left; }
}

/* ============ App-Vorschau 1.2: neue Mockup-Elemente ============ */
/* Weisse Karte mit tuerkiser Titel-Kante (wie SectionCard in der App) */
.mcard {
  margin: 10px 12px 0; padding: 9px 11px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.mcard-t {
  display: block; font-size: 10px; font-weight: 800; color: var(--brand-strong);
  border-left: 3px solid var(--teal); padding-left: 6px; margin-bottom: 5px;
}
.mcard small { display: block; color: var(--ink-soft); font-size: 8.5px; }

/* Zeitraum-/Filter-Chips (Woche Monat Quartal Jahr / Rechnungen Angebote ...) */
.dash-chips { display: flex; gap: 5px; margin: 10px 12px 0; }
.dash-chips span {
  flex: 1; text-align: center; font-size: 8.5px; font-weight: 700; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 2px; background: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-chips span.on { background: var(--teal-soft); color: var(--brand-strong); border-color: transparent; }

/* Kennzahl-Karten nebeneinander, gleich hoch */
.dash-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 12px 0; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.dash-card small { display: block; font-size: 8px; color: var(--ink-soft); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-card b { font-size: 13px; font-weight: 800; color: var(--brand-strong); }

/* Donut-Diagramm mit Legende */
.dash-donut-row { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 9px 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.dash-donut {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--teal) 0 62%, #E8A13D 62% 84%, #1E6FB8 84% 100%);
  display: grid; place-items: center; position: relative;
}
.dash-donut::before { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.dash-donut span { position: relative; font-size: 7.5px; font-weight: 800; color: var(--brand-strong); }
.dash-donut-legend { font-size: 8px; color: var(--ink-soft); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 5px; }
.dash-donut-legend i { width: 8px; height: 8px; border-radius: 3px; }

/* Bottom-Navigation (Start Belege Funktionen Einstellungen) */
.mock-nav {
  display: flex; margin: auto 0 0; padding: 6px 8px 10px; gap: 4px;
  border-top: 1px solid var(--line); background: #fff;
}
.mock-nav span { flex: 1; text-align: center; font-size: 7px; color: var(--ink-soft); font-weight: 600; padding-top: 4px; }
.mock-nav span.on { color: var(--brand-strong); }
.mock-nav span.on::before { content: ""; display: block; width: 60%; height: 14px; margin: 0 auto 2px; border-radius: 999px; background: var(--teal-soft); position: absolute; left: 20%; z-index: 0; }
.mock-nav { position: relative; }
.mock-nav span { position: relative; z-index: 1; }

/* Rechnungen & Angebote */
.inv-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin: 8px 12px 0; padding: 9px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.inv-item b { font-size: 10px; color: var(--ink); }
.inv-item small { display: block; font-size: 8px; color: var(--ink-soft); margin-top: 1px; }
.inv-item em { display: block; font-style: normal; font-size: 7.5px; font-weight: 800; margin-top: 3px; }
.inv-reminder { color: #C6424F; }
.inv-open { color: #E8853D; }
.inv-quote { color: #1E6FB8; }
.inv-amt { text-align: right; }
.inv-amt b { font-size: 10.5px; color: var(--brand-strong); }
.inv-amt small { font-size: 7.5px; }

/* Statistik-Center */
.stat-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 9.5px; padding: 3px 0; }
.stat-row span { color: var(--ink-soft); }
.stat-row b { color: var(--ink); font-weight: 800; }
.stat-delta { font-style: normal; font-size: 7.5px; font-weight: 800; color: #3D9E6E; margin-left: 6px; }
.stat-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding-top: 6px; }
.stat-bars i { flex: 1; min-width: 4px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--teal), #0F8577); }
.stat-bars-labels { display: flex; gap: 3px; margin-top: 4px; }
.stat-bars-labels span { flex: 1; text-align: center; font-size: 6.5px; color: var(--ink-soft); }

/* ZIP-Button im Export-Center */
.report-btn--zip { background: var(--brand-strong); color: #fff; border-color: transparent; font-weight: 800; }

/* Chips + Budget im 1.2-Mockup (Pill-Stil wie in der App) */
.report-chips .chip {
  font-size: 8px; font-weight: 700; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; background: #fff;
}
.report-chips .chip--on { background: var(--teal-soft); color: var(--brand-strong); border-color: transparent; }

/* ============ Kompakte Overlays auf kleinen Geraeten (iPhone 14 und kleiner) ============ */
@media (max-width: 480px) {
  /* Datenschutz-Gate: schlanker, hochwertiger */
  .privacy-gate { padding: 12px; }
  .privacy-gate__card { padding: 20px 16px; border-radius: 18px; max-height: 94vh; }
  .privacy-gate__logo { font-size: 1.6rem; margin-bottom: 4px; }
  .privacy-gate__card h2 { font-size: 1.25rem; }
  .privacy-gate__intro { font-size: .84rem; margin: 8px auto 12px; }
  .privacy-gate__scroll { padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; }
  .privacy-gate__scroll h2 { font-size: .86rem; }
  .privacy-gate__scroll p, .privacy-gate__scroll li { font-size: .78rem; }
  .privacy-gate__actions { grid-template-columns: 1fr; gap: 8px; margin-top: 2px; }
  .privacy-gate__actions .btn { padding: 12px 10px; font-size: .88rem; }

  /* Alle Modals: kompakter Rahmen und Typografie */
  .modal { padding: 12px; }
  .modal__card { padding: 20px 16px; border-radius: 18px; max-height: 94vh; }
  .modal__card h2 { font-size: 1.25rem; }
  .modal__sub { font-size: .8rem; margin: 8px 0 12px; }

  /* Download-Modal: beide Buttons UNTEREINANDER, gleich gross, kompakt */
  #downloadModal .modal__actions { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  #downloadModal .modal__actions .btn { padding: 13px 14px; font-size: .9rem; }
  .download-modal { width: min(430px, 100%); }
  .dl-warning { padding: 10px 12px; margin: 10px 0; border-left-width: 3px; }
  .dl-warning small, .dl-steps { font-size: .78rem; }
  .dl-details { padding: 4px 12px 8px; margin-bottom: 10px; }
  .dl-details summary { font-size: .84rem; padding: 6px 0; }
  .dl-check { padding: 10px 12px; margin-bottom: 12px; gap: 9px; }
  .dl-check input { width: 16px; height: 16px; margin-top: 2px; }
  .dl-check span { font-size: .78rem; }

  /* Cookie-Einstellungen: kompakte Zeilen und Schalter */
  .consent-row { padding: 10px 12px; gap: 10px; margin-bottom: 8px; border-radius: 12px; }
  .consent-row b { font-size: .82rem; }
  .consent-row small { font-size: .72rem; margin-top: 1px; }
  .switch { width: 40px; height: 23px; }
  .switch span::before { width: 17px; height: 17px; left: 3px; top: 3px; }
  .switch input:checked + span::before { transform: translateX(17px); }
}

/* ============ Kontakt-Formular (Modal) ============ */
.contact-modal { width: min(560px, 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.contact-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; text-align: left; }
.contact-field > span { font-size: .82rem; font-weight: 700; color: var(--ink); }
.contact-field input, .contact-field select, .contact-field textarea, .contact-math input {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-size: .9rem; color: var(--ink); background: #fff; width: 100%;
}
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus, .contact-math input:focus {
  outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent;
}
.contact-field textarea { resize: vertical; min-height: 110px; }
.contact-math { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.contact-math span { font-size: .85rem; color: var(--ink-soft); }
.contact-math b { color: var(--brand-strong); }
.contact-math input { width: 84px; text-align: center; }
.contact-hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.contact-privacy { margin-bottom: 12px; cursor: pointer; }
.contact-error {
  background: #FBEDEC; border-left: 4px solid #B3261E; color: #8C1D18;
  border-radius: 10px; padding: 10px 12px; font-size: .84rem; margin-bottom: 12px; text-align: left;
}
.contact-success { text-align: center; padding: 16px 10px 8px; }
.contact-success__icon {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--teal-soft); color: var(--brand-strong); display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800;
}
.contact-success b { display: block; font-size: 1.05rem; color: var(--brand-strong); }
.contact-success span { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }
.contact-busy { opacity: .6; pointer-events: none; }

@media (max-width: 480px) {
  /* Kontakt mobil: kompakt wie die anderen Overlays, 16px gegen iOS-Zoom */
  .contact-modal { width: min(430px, 100%); }
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-field > span { font-size: .78rem; }
  .contact-field input, .contact-field select, .contact-field textarea, .contact-math input {
    font-size: 16px; padding: 9px 11px;
  }
  .contact-field textarea { min-height: 90px; }
  .contact-math { flex-wrap: wrap; margin-bottom: 10px; }
  .contact-error { font-size: .78rem; }
  #contactModal .modal__actions { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
  #contactModal .modal__actions .btn { padding: 13px 14px; font-size: .9rem; }
}

/* Kontakt-Modal: beide Schaltflaechen exakt gleich gross (ab 481px; darunter gestapelt) */
@media (min-width: 481px) {
  #contactModal .modal__actions { grid-template-columns: repeat(2, 1fr); }
  #contactModal .modal__actions .btn {
    padding: 13px 20px; font-size: .95rem;
    width: 100%; justify-content: center;
  }
}

/* iOS-Haertung: Safari darf Schrift nicht selbst vergroessern */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
