/* Farben aus Brand/Farben.md, Systemschrift wie in der App. Keine externen Schriften oder Skripte. */
:root {
  color-scheme: light dark;
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --accent: #0B5D6B;
  --on-accent: #FFFFFF;
  --pressed: #07434E;
  --highlight: #CDEBF0;
  --separator: #E8E8ED;
  --loss: #B42318;
  --tag-open: #6E6E73;
  --brand: #0B5D6B;
  --brand-light: #5FC2D1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --card: #1C1C1E;
    --text: #F5F5F7;
    --text-2: #98989D;
    --accent: #5FC2D1;
    --on-accent: #0A1F22;
    --pressed: #7FD0DC;
    --highlight: #0E3A41;
    --separator: #38383A;
    --loss: #F97066;
    --tag-open: #98989D;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --card: #1C1C1E;
  --text: #F5F5F7;
  --text-2: #98989D;
  --accent: #5FC2D1;
  --on-accent: #0A1F22;
  --pressed: #7FD0DC;
  --highlight: #0E3A41;
  --separator: #38383A;
  --loss: #F97066;
  --tag-open: #98989D;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--pressed); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 12px; }

/* Kopfzeile */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.brand span { color: var(--brand); }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-header nav a { color: inherit; text-decoration: none; opacity: 0.85; }
.site-header nav a:hover { opacity: 1; }
.on-brand .brand, .on-brand nav a { color: #FFFFFF; }
.on-brand .brand span { color: var(--brand-light); }
.on-brand .brand img { box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
@media (max-width: 720px) { .site-header nav a.hide-small { display: none; } }
@media (max-width: 480px) { .site-header nav a:not(.button) { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand span { color: var(--brand-light); } }
:root[data-theme="dark"] .brand span { color: var(--brand-light); }

/* Knöpfe */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.button:hover { background: var(--pressed); color: var(--on-accent); }
.button.light { background: #FFFFFF; color: #0B5D6B; }
.button.light:hover { background: #E3F3F6; color: #07434E; }
/* Offizielles Badge von Apple, unverändert; Mindesthöhe 40 px, Freiraum ein Viertel der Höhe */
.store-badge { display: inline-flex; align-items: center; border-radius: 9px; }
.store-badge img { height: 48px; width: auto; }
.hero .actions { align-items: center; }
.cta .store-badge { margin-top: 4px; }
.button.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.button.ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); }
.button.ghost:hover { background: rgba(255,255,255,0.1); }

/* Kopfbereich in Markenfarbe */
.hero {
  position: relative; overflow: hidden; color: #FFFFFF;
  background: linear-gradient(118deg, #0B5D6B 0%, #09515D 52%, #063F49 100%);
}
.hero .fan { position: absolute; right: -10%; top: -6%; width: 80%; height: 112%; opacity: 0.14; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 40px 0 0; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 650; letter-spacing: 0.02em; color: var(--brand-light); margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -0.03em; }
.hero .lead { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: rgba(255,255,255,0.86); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.7); }
.hero-text { padding-bottom: 64px; }

/* Offizielle Apple Produktrahmen: unverändert, ohne Schatten, nicht überlappend,
   Größen im echten Verhältnis (iPad Pro 13 Zoll 281,6 mm hoch, iPhone 17 Pro 150,0 mm) */
.devices { display: flex; align-items: flex-end; justify-content: center; gap: 5%; padding: 8px 0 56px; }
.devices .tablet { width: 64%; }
.devices .phone { width: 21.8%; }

/* Gerätebilder mindestens 200 px hoch: zweispaltig erst, wenn das iPhone groß genug bleibt,
   auf dem Handy nur das iPhone */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; }
  .hero-text { padding-bottom: 8px; }
  .devices { max-width: 560px; width: 100%; margin: 0 auto; padding: 16px 0 40px; }
}
@media (max-width: 600px) {
  .devices .tablet { display: none; }
  .devices .phone { width: 48%; }
}

/* Abschnitte */
section { padding: 88px 0; }
@media (max-width: 600px) { section { padding: 60px 0; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; font-size: 19px; color: var(--text-2); }

.card { background: var(--card); border-radius: 20px; padding: 26px; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }

.effects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.effects li { background: var(--card); border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.effects li strong { display: block; font-weight: 650; }
.effects li small { display: block; color: var(--text-2); font-size: 15px; margin-top: 2px; }
@media (max-width: 720px) { .effects { grid-template-columns: 1fr; } }

/* Kennzeichnungen wie in der App */
.tag { flex: none; display: inline-block; font-size: 13px; font-weight: 650; line-height: 1; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.tag.law { background: var(--accent); color: var(--on-accent); }
.tag.assumption { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tag.open { color: var(--tag-open); border: 1.5px dashed var(--tag-open); padding: 4.5px 8.5px; }
.origin .card .tag { margin-bottom: 14px; }
.origin .card p { color: var(--text-2); }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 26px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--highlight); color: var(--accent);
}
.card h3 + p { margin-top: 8px; color: var(--text-2); }

/* Bildstreifen */
.gallery { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; margin: 0 -24px; scrollbar-width: thin; }
.gallery figure { flex: none; width: 240px; margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--text-2); }
.gallery figcaption strong { display: block; color: var(--text); font-weight: 650; }
@media (max-width: 600px) { .gallery { padding: 8px 16px 24px; margin: 0 -16px; gap: 16px; } .gallery figure { width: 200px; } }

.wide-shot { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.wide-shot h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.wide-shot p { margin-top: 12px; font-size: 18px; color: var(--text-2); }
.wide-shot img { width: 100%; max-width: 520px; justify-self: center; }
@media (max-width: 760px) { .wide-shot { grid-template-columns: 1fr; gap: 24px; } }

/* iPhone Duo: Gerät steht still, nur der Bildschirminhalt wechselt.
   Zugeklappt und aufgeklappt im selben Maßstab (Rahmen 1574 und 3093 Pixel breit). */
.duo-stage { display: flex; align-items: flex-end; justify-content: center; gap: 5%; }
.duo-closed { width: 30.5%; }
.duo-open { position: relative; width: 60%; }
.duo-open img + img { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; animation: duo-screen 15s 5s infinite both; }
.duo-open img:nth-child(3) { animation-delay: 10s; }
.duo-stage figure { margin: 0; }
.duo-stage figcaption { margin-top: 16px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-2); }
@keyframes duo-screen { 0% { opacity: 0; } 6% { opacity: 1; } 33.3% { opacity: 1; } 39.3% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .duo-open img + img { animation: none; } }
@media (max-width: 720px) {
  .duo-stage { flex-direction: column; align-items: center; gap: 32px; }
  .duo-closed { width: 50.9%; }
  .duo-open { width: 100%; }
}

/* Kostenlos und Vollversion */
.plans .card h3 { margin-bottom: 14px; }
.plans ul { margin: 0; padding: 0; list-style: none; }
.plans li { position: relative; padding-left: 28px; margin-top: 10px; }
.plans li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plans .card.featured { background: var(--highlight); }
.plans .price { margin-top: 18px; font-weight: 650; color: var(--accent); }

.privacy-band { background: var(--card); }
.privacy-points { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.privacy-points li { padding: 10px 16px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 15px; }

.disclaimer { font-size: 15px; color: var(--text-2); max-width: 820px; }
.disclaimer h2 { font-size: 20px; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }

.cta { text-align: center; }
.cta p { margin: 14px auto 28px; max-width: 34em; color: var(--text-2); font-size: 19px; }

/* Textseiten */
.legal { padding: 48px 0 88px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.legal .stand { color: var(--text-2); margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.015em; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal ul, .legal address { margin: 0 0 14px; }
.legal address { font-style: normal; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .card { margin: 0 0 14px; }
.legal details { background: var(--card); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.legal summary { cursor: pointer; font-weight: 650; }
.legal details p { margin: 12px 0 0; color: var(--text-2); }
mark.todo { background: #FDB02233; color: inherit; padding: 0 4px; border-radius: 4px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--separator); padding: 32px 0 44px; font-size: 14px; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: inherit; }
.privacy-link { margin-top: 24px; }
