/* Curalbum Website – Styling aus dem Claude-Design-Export
   (Curalbum Landing.dc.html, Projekt "Curalbum Landing Page").
   Werte 1:1 übernommen; Klassennamen sind das stabile Interface. */

:root {
  --bg: #F2EDE3;
  --card: #FBF8F2;
  --surface: #FFFFFF;
  --ink: #1B1D22;
  --muted: #5C5E66;
  --primary: #2F4259;
  --primary-light: #4A5E78;
  --primary-tint: #E6E9EF;
  --border: #E5DFCE;
  --border-strong: #D7CFB8;
  --accent: #A07A4C;
  --accent-tint: #EFE4D2;
  --accent-dark: #6E4E28;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  /* Spacing-Skala: 4px-Rhythmus. Abstaende als Vielfaches von --space-1 setzen. */
  --space-1: 0.25rem;  /* 4px  */
  --space-2: 0.5rem;   /* 8px  */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-12: 3rem;    /* 48px */

  /* Screenshot-Rahmen ("Smartphone-Rand"): Dicke zentral, damit Hero + Galerie + Unterseiten identisch bleiben */
  --frame-bezel: 6px;
}

* { box-sizing: border-box; }
/* Sanftes Scrollen nur, wenn das System keine reduzierte Bewegung verlangt (WCAG 2.3.3). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface); /* Inversion: Seite ist jetzt weiss; Beige (--bg) nur noch fuer Akzent-Baender (.privacy, Footer) */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}
h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip-Link: unsichtbar, bis er per Tastatur fokussiert wird. */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 20;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ===== Header ===== */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); } /* Inversion: Beige-Header, damit die Seite mit Beige beginnt (wie der Footer sie beendet) */
.site-header .wrap {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark img { width: 24px; height: 24px; display: block; border-radius: 6px; }
.wordmark span { font-family: var(--serif); font-size: 21px; letter-spacing: 0.01em; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  font-size: 14.5px;
}
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.lang-switch {
  color: var(--accent-dark) !important; /* dunkler fuer besseren Kontrast auf Weiss (WCAG AA) */
  text-decoration: none;
  background: var(--surface); /* weisser Button auf dem beigen Header */
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 14px;
}
.lang-switch:hover, .lang-switch:focus-visible { background: var(--accent-tint); }

/* ===== Sektions-Grundmaß ===== */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) clamp(64px, 10vw, 120px);
}

/* ===== Hero ===== */
.hero {
  padding-top: clamp(76px, 12vw, 160px);
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow-x: clip;
}
.hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}
.hero__text { flex: 1 1 420px; min-width: 0; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.08;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero__sub {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 34em;
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.cta-store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 11px 20px 11px 16px;
  text-decoration: none;
}
a.badge[href]:hover, a.badge[href]:focus-visible { background: var(--primary-light); }
.badge--soon { cursor: default; }
.badge__text { display: flex; flex-direction: column; line-height: 1.25; }
.badge__status {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9D2DE;
}
.badge__store { font-size: 17px; font-weight: 600; }
.trust-line { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }
.qr { display: flex; align-items: center; gap: 14px; }
.qr__box {
  width: 120px;
  height: 120px;
  flex: none;
  background: #DBD7CD;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.qr p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 150px; }
.hero__visual { flex: 0 1 auto; margin: 12px auto 48px; position: relative; }
/* Wrapper um Screenshot + Collage: haelt die absolut gesetzte Collage am Handy
   verankert, damit der KI-Hinweis darunter im Fluss stehen kann. */
.hero__phone { position: relative; }
.phone {
  background: var(--primary);
  border-radius: 48px;
  padding: var(--frame-bezel);
  box-shadow: 0 30px 70px rgba(47, 66, 89, 0.22);
}
.phone img { display: block; width: min(270px, 66vw); height: auto; border-radius: calc(48px - var(--frame-bezel)); }
.collage {
  position: absolute;
  bottom: -34px;
  left: max(-72px, -12vw);
  width: 190px;
  height: 160px;
}
.collage__card {
  position: absolute;
  width: 92px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 6px 20px;
  box-shadow: 0 12px 28px rgba(47, 66, 89, 0.16); /* Inversion: mehr Kontrast, damit die Deko-Kaertchen auf Weiss lesbar bleiben */
}
.collage__card::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #DFDBD1;
}
.collage__card--1 { left: 0; top: 20px; transform: rotate(-9deg); }
.collage__card--2 { left: 40px; top: 10px; transform: rotate(-2deg); }
.collage__card--2::before { background: #DBD7CD; }
.collage__card--3 {
  left: 82px;
  top: 0;
  transform: rotate(7deg) translateY(-8px);
  box-shadow: 0 18px 36px rgba(47, 66, 89, 0.2);
}
.collage__card--3::before { background: #D7D3C8; }
.collage__chip {
  position: absolute;
  top: -13px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-tint);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}

/* ===== Feature-Karten ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cards li {
  background: var(--card);
  border: 1px solid var(--border-strong); /* Inversion: kraeftigerer Rand, damit Karten auf Weiss lesbar bleiben */
  border-radius: 18px;
  padding: 28px 26px;
}
.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.cards h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.cards p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ===== Privacy (volle Breite) ===== */
.privacy {
  background: var(--bg); /* Inversion: war weiss, jetzt Beige-Akzentband */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.privacy__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 48px);
}
.privacy h2 { text-align: center; margin-bottom: 18px; }
.privacy__lede {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 560px;
  text-align: center;
  text-wrap: pretty;
}
/* Gruppen-Label ueber beiden Kartenreihen ("Was Curalbum weglaesst" / "Was Curalbum liest") */
.privacy__label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
/* "Weglaesst"-Karten: weiss auf dem Beige-Band — bewusst anders als die cremefarbenen Feature-Karten auf Weiss */
.privacy__never {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
}
.privacy__never li {
  background: var(--surface);
  border: 1px solid #CBD3DE;
  border-radius: 18px;
  padding: 32px 24px 28px;
  text-align: center;
}
.privacy__never-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.privacy__never h4 { font-size: 19px; font-weight: 600; margin: 0 0 8px; color: var(--primary); }
.privacy__never p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }
/* "Liest"-Reihe: kleine Karten, bewusst zweitrangig zur "Weglaesst"-Reihe */
.privacy__reads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.privacy__reads li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 16px;
}
.privacy__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy__reads li span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }
.privacy__link { margin: var(--space-8) 0 0; text-align: center; }
.privacy__link a {
  color: var(--accent);
  font-size: 15.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Zwei-Link-Zeilen: den Zwischenraum ("·") exakt auf die Seitenmitte legen, statt die ganze
   Zeile zu zentrieren (sonst wandert der Trenner bei ungleich breiten Links aus der Mitte).
   Nur ab Tablet-Breite; darunter bleibt es klassisch zentriert. Gilt NUR bei exakt zwei
   Links: Einzel-Links (z. B. "Alle Fragen ansehen") und die Vier-Link-Reihen der
   SEO-Unterseiten bleiben klassisch zentriert (sonst zerreisst das 3-Spalten-Grid die
   Links und "·"-Trenner auf mehrere Zeilen). */
@media (min-width: 640px) {
  .privacy__link:has(a:nth-of-type(2)):not(:has(a:nth-of-type(3))) {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    column-gap: 0.4em;
  }
  .privacy__link:has(a:nth-of-type(2)):not(:has(a:nth-of-type(3))) a:first-of-type { justify-self: end; }
  .privacy__link:has(a:nth-of-type(2)):not(:has(a:nth-of-type(3))) a:last-of-type { justify-self: start; }
}

/* ===== So funktioniert's ===== */
.how { padding-top: clamp(64px, 10vw, 120px); }
.how h2 {
  line-height: 1.25;
  max-width: 22em;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 4vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li { border-top: 2px solid var(--border-strong); padding-top: 22px; }
.steps__num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 12px;
}
.steps h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ===== Galerie / Carousel (weisser Full-Width-Riegel) ===== */
.gallery-band { background: var(--surface); }
.gallery-band__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 48px);
  text-align: center;
}

.gallery-carousel { position: relative; }

/* Scroll-Track. Die Slide-Breite (flex-basis) steuert perPage je Media-Query. */
.gallery {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 4px 40px;
  -webkit-overflow-scrolling: touch;
}
.gallery figure {
  flex: 0 0 100%;               /* Handy: 1 pro Ansicht */
  margin: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border: var(--frame-bezel) solid var(--primary);
  border-radius: 48px;
  box-shadow: 0 16px 36px rgba(47, 66, 89, 0.12);
}
.gallery figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 12px; }

@media (min-width: 600px) {   /* Tablet: 2 pro Ansicht */
  .gallery figure { flex-basis: calc((100% - var(--space-6)) / 2); }
}
@media (min-width: 960px) {   /* Desktop: 3 pro Ansicht */
  .gallery figure { flex-basis: calc((100% - 2 * var(--space-6)) / 3); }
}

/* Scrollbalken erst verstecken, wenn JS den Carousel aktiviert (ohne JS bleibt er als Fallback). */
.gallery-carousel[data-enhanced] .gallery { scrollbar-width: none; }
.gallery-carousel[data-enhanced] .gallery::-webkit-scrollbar { display: none; }

.gallery-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(47, 66, 89, 0.16);
  cursor: pointer;
}
.gallery-nav--prev { left: -8px; }
.gallery-nav--next { right: -8px; }
.gallery-nav:hover { background: var(--primary-tint); }
.gallery-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }

/* ===== Unterseiten-Screenshot: gerahmt wie der Hero (.phone) ===== */
.lp-shot { margin: var(--space-6) auto 0; max-width: 300px; }
.lp-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--frame-bezel) solid var(--primary);
  border-radius: 48px;
  box-shadow: 0 30px 70px rgba(47, 66, 89, 0.22);
}

/* ===== KI-Kennzeichnung der Beispielfotos =====
   Die App-Oberflaeche auf den Screenshots ist eine echte Emulator-Aufnahme;
   gekennzeichnet werden nur die darin sichtbaren Beispielfotos. Marker am Bild:
   data-ai-example-photos (dient auch Lightbox und tools/check_site.py). */
.ai-note {
  display: block;
  max-width: 34ch;
  margin: var(--space-2) auto 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
  overflow-wrap: break-word;   /* lange EN-Zeilen brechen sauber (360px) */
}
/* Hero: Der Oberabstand haelt die Collage frei, die unter dem Handy haengt. */
.ai-note--hero { max-width: 32ch; margin-top: var(--space-12); }

/* ===== Release-Benachrichtigung ===== */
/* Folgt auf den weissen Galerie-Riegel: eigener Oberabstand, damit die Box nicht daran klebt
   (.section hat sonst padding-top: 0). data-notify greift sprachunabhaengig (DE + EN). */
.section[data-notify] { padding-top: clamp(56px, 8vw, 96px); }

.notify__card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border-strong); /* Inversion: Karte auf Weiss */
  border-radius: 22px;
  padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 52px);
  text-align: center;
}
.notify__card h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin: 0 0 14px;
}
.notify__lede {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.notify__card form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
}
.notify__card input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.notify__card input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.notify__card button {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #FFFFFF;
  cursor: pointer;
}
.notify__card button:hover { background: var(--primary-light); }
.notify__card button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Alterserklaerung: eigene Zeile im Formular (Reihenfolge im DOM = sichtbare
   Reihenfolge = Tab-Reihenfolge: Feld, Erklaerung, Absenden). */
.notify__age {
  flex: 1 1 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.notify__age input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}
.notify__age input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.notify__success {
  font-size: 16px;
  color: var(--primary);
  background: var(--primary-tint);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 16px;
}
.notify__error {
  font-size: 16px;
  color: var(--accent-dark);
  background: var(--accent-tint);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 16px;
}
.notify__fallback { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.notify__fallback a { color: var(--accent); }
.notify__privacy { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.notify__privacy a { color: var(--accent); }

/* ===== FAQ ===== */
.faq__inner { max-width: 720px; margin: 0 auto; }
.faq__inner h2 { margin-bottom: clamp(24px, 4vw, 36px); }
.faq__list { border-bottom: 1px solid var(--border-strong); }
.faq__list details { border-top: 1px solid var(--border-strong); }
.faq__list summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  flex: none;
}
.faq__list details[open] summary::after { content: "\2013"; }
.faq__list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq__list details p {
  margin: 0;
  padding: 0 2px 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}
.faq { padding-bottom: clamp(72px, 10vw, 130px); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border-strong); background: var(--bg); }
.site-footer .wrap {
  padding-top: 36px;
  padding-bottom: 52px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer__row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__row nav a { color: var(--muted); text-decoration: none; }
.footer__row nav a:hover, .footer__row nav a:focus-visible { color: var(--ink); }
.footer__row nav a.footer-lang { color: var(--accent); }
.footer__note { margin: 0; font-size: 13px; color: var(--muted); }

/* ===== Unterseiten (Legal/Support) ===== */
.page main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 48px) clamp(64px, 9vw, 96px);
}
.page main h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin: 0 0 24px; }
.page main h2 {
  font-size: clamp(20px, 3vw, 26px);
  margin: 36px 0 12px;
}
.page main p { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.page main a { color: var(--accent); }

/* ===== Sprachweiche / 404 / get ===== */
.chooser {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  padding: 2rem;
}
.chooser h1 { font-size: clamp(32px, 6vw, 48px); margin: 0 0 8px; }
.chooser p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.chooser a { color: var(--accent); }
.chooser img { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 10px; }

/* ===== Lightbox: App-Screenshots per Klick gross anzeigen ===== */
/* Per JS aktiviert (.lb-zoomable); ohne JS bleiben die Bilder statisch. */
.lb-zoomable { cursor: zoom-in; }

.lightbox {
  --lb-pad: clamp(16px, 5vw, 56px);
  --lb-note-space: 0px;          /* nur mit KI-Hinweis > 0 (siehe .lightbox--noted) */
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lb-pad);
  background: rgba(27, 29, 34, 0.88); /* --ink, abgedunkelt */
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

/* Bild + Hinweis stehen untereinander; der Wrapper ist selbst kein Klickziel
   zum Schliessen (das bleibt der dunkle Rand = .lightbox). */
.lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}

.lightbox__img {
  display: block;
  flex: 0 1 auto;
  min-height: 0;
  max-width: min(92vw, 460px);   /* Screenshots sind hochkant: Breite begrenzen */
  /* Hoehe: Viewport minus Rand minus reservierte Hinweishoehe. max-height an
     einem Ersatzelement skaliert seitenverhaeltnistreu -- keine Verzerrung. */
  max-height: min(92vh, calc(100vh - 2 * var(--lb-pad) - var(--lb-note-space)));
  width: auto;
  height: auto;
  object-fit: contain;           /* Sicherheitsnetz, falls der Hinweis doch umbricht */
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.98);
  transition: transform 0.2s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

/* Reserve fuer den Hinweis: bei 360px braucht der laengere DE-Satz drei Zeilen. */
.lightbox--noted { --lb-note-space: clamp(5rem, 16vw, 6rem); }
.lightbox__note {
  flex: 0 0 auto;
  max-width: min(100%, 46ch);
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox__close svg { width: 20px; height: 20px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__img { transition: none; }
}
