/* Erzeugt von scripts/build-website.mjs – Änderungen dort vornehmen. */

/* Bewusst nur hell: Die Seite trägt die Farben der App, die ebenfalls im
   hellen Modus startet. Die Variablennamen nutzt auch die Moderationsseite
   (web/m-*.html) – beim Umbenennen dort mitziehen. */
:root {
  color-scheme: light;
  --bg: #F5EFE4;
  --band: #F0E8DA;
  --surface: #FFFFFF;
  --cream: #FFFCF6;
  --text: #3A3226;
  --muted: #6B6255;
  --soft: #7A7062;
  --border: #E2D7C3;
  --accent: #4F6450;
  --terra: #A33A35;
  --navy: #3B5F73;
  --gold: #C8963E;
  --gold-text: #9A7228;
  --device: #2B2620;
  --shadow: 0 30px 60px rgba(58, 50, 38, 0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  /* Lange Wörter dürfen die Spalte nicht sprengen – sonst schiebt eine
     einzige Überschrift die ganze Seite horizontal auf. */
  overflow-wrap: break-word;
}
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.03; margin: 0; }
em {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 650;
  letter-spacing: -0.01em;
}
em.red, dt.red { color: var(--terra); }
em.moss, dt.moss { color: var(--accent); }
dt.navy { color: var(--navy); }
em.gold { color: #B5832E; }
em.cream { color: #F0D9A8; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--terra); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--soft);
}
.eyebrow.gold { color: var(--gold-text); }
.eyebrow.gold svg { color: var(--gold); }
.eyebrow.cream { color: #F0D9A8; }

/* --- Kopf- und Fußzeile ------------------------------------------------ */
.topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { height: 44px; width: auto; }
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-size: 0.94rem;
  font-weight: 600;
}
.topbar nav [aria-current] { color: var(--terra); }
.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 999px;
}
a.nav-cta:hover { color: var(--bg); background: var(--terra); }
@media (max-width: 640px) {
  .topbar nav a:not(.nav-cta) { display: none; }
  .topbar nav a[href$="#hilfe"] { display: inline; }
}

.footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner {
  padding-top: 32px;
  padding-bottom: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--soft);
}
.footer-inner img { height: 32px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; }
.footer-links [aria-current] { color: var(--terra); }
.footer-note { margin: 0; }

/* --- Hero -------------------------------------------------------------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 72px;
}
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 {
  margin: 0;
  /* Untergrenze bewusst niedrig: Bei 390 px Breite passte "hinter deinem
     Feed." sonst nicht in eine Zeile und schob die Seite seitlich auf. */
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.lead { margin: 0; font-size: clamp(1.06rem, 1.8vw, 1.19rem); line-height: 1.55; color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.store {
  display: inline-flex;
  flex-direction: column;
  background: var(--text);
  color: var(--bg);
  padding: 13px 26px;
  border-radius: 16px;
  line-height: 1.15;
}
a.store:hover { color: var(--bg); background: var(--terra); }
.store-small { font-size: 0.69rem; font-weight: 500; opacity: 0.75; }
.store-big { font-size: 1.19rem; font-weight: 700; }

.free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--accent);
  background: #E3E8DD;
  padding: 14px 20px;
  border-radius: 999px;
}

/* Zwei schräg gestellte iPhones. Alle Maße relativ zur Containerbreite
   (cqw), damit die Komposition auf dem Handy einfach mitschrumpft. */
.phones {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 520 / 640;
  position: relative;
  container-type: inline-size;
}
.phone {
  border: 1.9cqw solid var(--device);
  border-radius: 8.4cqw;
  overflow: hidden;
  background: var(--device);
  box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phones .phone { position: absolute; }
.phone-back { left: 2%; top: 8.8%; width: 46.2%; height: 81.4%; transform: rotate(-7deg); }
.phone-front { left: 46%; top: 2.8%; width: 50.4%; height: 88.9%; transform: rotate(4deg); box-shadow: 0 40px 70px rgba(58, 50, 38, 0.28); }

/* --- Zahlen ------------------------------------------------------------ */
.facts { background: var(--band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts dl {
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.facts div { display: flex; align-items: baseline; gap: 14px; }
.facts dt { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; color: var(--muted); }

/* --- Städte ------------------------------------------------------------ */
.cities { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 34px; }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.split-head h2 { max-width: 14em; }
.split-head p { margin: 0; font-size: 1.06rem; line-height: 1.55; color: var(--muted); max-width: 26em; }
.city-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 14px;
}
.city { background: var(--surface); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.city-code { color: #FFFFFF; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; padding: 30px 16px 12px; }
.city-code.moss { background: var(--accent); }
.city-code.red { background: var(--terra); }
.city-code.navy { background: var(--navy); }
.city-code.gold { background: #A87A2E; }
.city-name { padding: 12px 16px 14px; font-weight: 700; font-size: 0.94rem; }
.city-more {
  background: transparent;
  border: 2px dashed var(--gold);
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 18px;
  min-height: 118px;
  text-align: center;
  font-weight: 700;
  font-size: 0.94rem;
  color: #8A6A2C;
}
.city-more .plus { font-size: 1.9rem; font-weight: 800; line-height: 1; color: #B5832E; }

/* --- So geht's --------------------------------------------------------- */
.how { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.how-shot { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; }
.how-shot .phone { width: 270px; aspect-ratio: 620 / 1348; border-width: 10px; border-radius: 44px; box-shadow: 0 30px 60px rgba(58, 50, 38, 0.2); }
.how-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-no {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  color: #B5832E;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.steps b { font-size: 1.19rem; font-weight: 700; }
.steps li > span:last-child > span { color: var(--muted); line-height: 1.55; }

/* --- Premium ----------------------------------------------------------- */
.premium { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); scroll-margin-top: 12px; }
.premium-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.premium-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.premium-head > div { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.premium-head p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.6; max-width: 32em; }
.checks { flex: 0 1 360px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-weight: 500; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { color: var(--gold); flex: none; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.plan-name { font-size: 0.81rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8A8478; }
.plan-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-note { font-size: 0.875rem; color: var(--soft); }
.plan-featured { background: #FBF3E2; border: 2.5px solid var(--gold); box-shadow: 0 18px 40px rgba(200, 150, 62, 0.18); }
.plan-featured .plan-name { color: var(--gold-text); }
.plan-featured .plan-note { color: var(--accent); font-weight: 600; }
.plan-badge {
  position: absolute;
  top: -14px;
  left: 26px;
  background: var(--gold);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.fineprint { margin: 0; font-size: 0.81rem; line-height: 1.6; color: var(--soft); max-width: 60em; }

/* --- Widgets ----------------------------------------------------------- */
.widgets { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.widgets-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.widgets-text p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 28em; }
.widget-board {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 34px;
  background: #E9E0D0;
  border-radius: 32px;
}
.widget-board img { width: 170px; filter: drop-shadow(0 12px 22px rgba(58, 50, 38, 0.16)); }
.widget-board img.wide { width: 364px; }

/* --- Community --------------------------------------------------------- */
.community {
  margin-bottom: 96px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 32px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.community > div { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.community h2 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1; }
.community p:not(.eyebrow) { margin: 0; font-size: 1.12rem; line-height: 1.6; color: #DCE3D6; max-width: 32em; }
.pill-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  color: var(--text);
  font-weight: 800;
  font-size: 1.06rem;
  padding: 18px 28px;
  border-radius: 999px;
}
.pill-light span { font-size: 1.4rem; line-height: 1; }

/* --- Hilfe ------------------------------------------------------------- */
.help { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; scroll-margin-top: 24px; }
.help-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.help h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.05; }
.help-text p { margin: 0; color: var(--muted); line-height: 1.6; }
.help-text .contact a { font-size: 1.12rem; font-weight: 700; color: var(--terra); word-break: break-word; }
.help-text .support-note { font-size: 0.9rem; }
.help-text .support-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }
.faq { flex: 1 1 520px; min-width: 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.12rem;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 1.5rem; line-height: 1; color: var(--terra); transition: transform 0.2s ease; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .faq-plus { transition: none; }
}

/* --- Rechtstexte ------------------------------------------------------- */
.prose { max-width: calc(70ch + 48px); padding-top: 24px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 8px; }
.prose .updated { color: var(--soft); margin: 0 0 40px; }
.prose section { margin: 0 0 34px; }
.prose h2 { font-size: 1.19rem; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 10px; }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; word-break: break-word; }
