/* Fleißbots — Website
   Zentrales Stylesheet für alle Seiten (Landing, Datenschutz, Impressum, Löschung).
   Farben & Typografie = ADLX-CI (siehe docs/DESIGN.md). Barlow ist lokal gebündelt
   (assets/fonts/) — bewusst KEIN Google-Fonts-CDN (DSGVO: kein IP-Leak zu Google). */

/* ---------- Schrift (lokal, OFL) ---------- */
@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Barlow-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Barlow-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Barlow";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Barlow-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Barlow";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/Barlow-ExtraBold.ttf") format("truetype");
}

/* ---------- Design-Tokens (ADLX-CI) ---------- */
:root {
  --black: #000000;
  --yellow: #ffff00;
  --white: #ffffff;
  --ground: #f4f4ef;   /* warmer Screen-Hintergrund */
  --muted: #cfd0d0;    /* ruhiges Hellgrau (Design-Refresh v2) */
  --line: #e6e5df;     /* Haarlinien */
  --ink: #17171a;      /* Primärtext */
  --ink-soft: #5c5c58; /* Sekundärtext */
  --faint: #9a9a90;    /* dezent */
  --radius: 16px;
  --maxw: 1080px;
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  font-size: 18px;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--yellow); /* Markenkante */
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand .logo-tile {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand .logo-tile img { height: 24px; width: auto; }
.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 16px;
}
.site-header nav a {
  color: #d8d8d2;
  text-decoration: none;
  transition: color .15s;
}
.site-header nav a:hover { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero h1 .accent {
  background: var(--yellow);
  padding: 0 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero p.lead {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 32px;
}
.hero-visual {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.hero-visual img {
  width: 46%;
  max-width: 240px;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}
.hero-visual img:nth-child(2) { transform: translateY(28px); }

/* ---------- Download-Buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform .12s, opacity .12s;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; fill: currentColor; flex: 0 0 auto; }
.store-btn .st-top { font-size: 11px; opacity: .75; line-height: 1; display: block; }
.store-btn .st-main { font-size: 18px; font-weight: 700; line-height: 1.15; display: block; }
/* Platzhalter-Zustand, solange die App noch nicht im Store ist */
.store-btn.soon { background: var(--white); color: var(--faint); border: 1px dashed var(--muted); cursor: default; }
.store-btn.soon:hover { transform: none; }
.stores .soon-note { font-size: 14px; color: var(--faint); flex-basis: 100%; margin-top: 2px; }

/* ---------- Sektionen ---------- */
section { padding: 56px 0; }
/* Anker-Ziele nicht hinter dem Sticky-Header (68px + 3px Kante) parken */
section[id] { scroll-margin-top: 88px; }
.section-title {
  font-weight: 800;
  text-wrap: balance;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.section-sub { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 40px; text-wrap: balance; }
.center { text-align: center; }

/* ---------- Feature-Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--black);
  color: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 0 0 12px; }
.cta-band p, .cta-band h2 { text-wrap: balance; }
.cta-band p { color: #c9c9c3; margin: 0 auto 28px; max-width: 56ch; }
.cta-band .stores { justify-content: center; }
/* Auf schwarzem Grund muss der aktive Button invers laufen — sonst ist er
   schwarz auf schwarz und die Fläche verschwindet. */
.cta-band .store-btn { background: var(--white); color: var(--black); }
.cta-band .store-btn.soon {
  background: transparent;
  color: var(--faint);
  border-color: #4a4a44;
}

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--muted);      /* setzt die Fusszeile vom warmen Grund ab */
  border-top: 1px solid #bcbdbd;
  padding: 22px 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; font-size: 15px; }
.footer-links a { color: #45453f; text-decoration: none; white-space: nowrap; }
.footer-links a:hover { color: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #6b6b64; font-size: 14px; }
.footer-brand img { height: 22px; width: auto; }

/* ---------- Rechtstext-Seiten ---------- */
.legal { padding: 56px 0 24px; }
.legal .doc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px clamp(24px, 5vw, 56px);
  max-width: 820px;
  margin: 0 auto;
}
.legal h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal .updated { color: var(--faint); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 34px 0 10px; }
.legal h3 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: #33332f; font-size: 17px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: #1a1a17; text-underline-offset: 3px; }
.legal .back {
  display: inline-block;
  margin-top: 36px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}
.legal .back:hover { color: var(--ink); }
.legal .note {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Entwickler-Seite: Code & Tabellen im Doc ---------- */
.doc pre {
  background: var(--ink);
  color: #e8e8e2;
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
.doc pre code { background: none; border: none; color: inherit; padding: 0; font-size: inherit; word-break: normal; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.85em;
  word-break: break-word; /* lange Pfade dürfen mobil umbrechen (Tabelle!) */
}
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; color: #33332f; }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }

/* ---------- Rezepte-Seite ---------- */
.recipes { padding: 48px 0 56px; }
.recipes .card { display: flex; flex-direction: column; }
.recipe-meta { font-size: 12px; color: var(--faint); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.recipe-links { margin-top: auto; padding-top: 16px; display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.recipe-links a { color: var(--ink); text-underline-offset: 3px; }
.recipe-links a:first-child { border-bottom: 2px solid var(--yellow); text-decoration: none; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding: 56px 0; }
.ways h2 { font-size: 24px; margin: 0 0 10px; letter-spacing: -0.01em; }
.ways p { color: var(--ink-soft); font-size: 17px; }
.ways a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 720px) { .ways { grid-template-columns: 1fr; padding: 40px 0; } }

/* ---------- Hero-Wandbild (randlos) ----------
   Das Wandbild ist der Claim, deshalb volle Breite direkt unter der Kopfzeile.
   Die Quelldatei ist exakt 2:1 zugeschnitten, damit der Schriftzug nie angeschnitten
   wird — das Bild bleibt auf allen Groessen vollstaendig und wird mobil nur kleiner. */
.hero-wall { margin: 0; background: #f5c400; }
.hero-wall img {
  width: 100%;
  aspect-ratio: 2 / 1;   /* Quelle ist exakt 2:1 zugeschnitten -> kein Beschnitt am Schriftzug */
  object-fit: cover;
  object-position: center;
}

/* ---------- Hero-Einwand ----------
   Die Innenstimme des Lesers, direkt nachdem er das Graffiti gelesen hat. */
.objection {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 600;
  color: var(--ink-soft);
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
  margin: 0 0 22px;
  max-width: 40ch;
}

/* ---------- Sektions-Bänder ---------- */
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--black); color: var(--white); }
.band-dark .section-title { color: var(--white); }
.band-dark p { color: #c9c9c3; font-size: 19px; max-width: 58ch; margin-inline: auto; text-wrap: balance; }
.band-dark strong { color: var(--white); }
.band-dark .kicker {
  color: var(--yellow);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.01em;
  margin-top: 28px;
}

/* ---------- Merksatz zwischen den Blöcken ---------- */
.pull {
  text-align: center;
  text-wrap: balance;
  font-weight: 800;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 40px auto 0;
  max-width: 54ch;
}
/* Der Umschwung „…machen Sie“ wird gelb hinterlegt — gleiche Geste wie
   „loslassen“ in der H1, damit die Seite eine Akzent-Sprache hat. */
.pull .pull-turn {
  background: var(--yellow);
  padding: 0 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Tagesablauf ---------- */
.day { list-style: none; margin: 0; padding: 0; max-width: 760px; margin-inline: auto; }
.day li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.day li:last-child { border-bottom: 1px solid var(--line); }
.day .time {
  font-weight: 800;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.day p { margin: 0; color: var(--ink-soft); }
.day em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  padding: 0 4px;
  box-decoration-break: clone;          /* saubere Kanten, falls die Markierung umbricht */
  -webkit-box-decoration-break: clone;
}

/* ---------- Vertrauens-Siegel ----------
   Flaggen und Schild liegen als lokale SVG bei (assets/img/badge-*.svg) — kein
   fremdes CDN, sonst wäre ausgerechnet der Datenschutz-Abschnitt das Datenleck. */
.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 36px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 16px;
}
.badge img { height: 24px; width: auto; flex: 0 0 auto; }
/* Nur die Flaggen bekommen die abgerundete Kante — das Schild ist freigestellt. */
.badge img[src*="badge-de"], .badge img[src*="badge-eu"] { width: 36px; border-radius: 2px; }

/* ---------- Datenschutz-Liste ---------- */
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.trust li { padding-left: 26px; position: relative; color: var(--ink-soft); font-size: 17px; }
.trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--yellow);
}
.trust strong { color: var(--ink); }

/* ---------- Die Wand (Markengeschichte) ---------- */
.wall-story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.wall-story img { border-radius: var(--radius); border: 1px solid var(--line); max-width: 380px; margin-inline-start: auto; }
.wall-story p { color: var(--ink-soft); }

/* ---------- KI-Kennzeichnung ---------- */
.ai-note {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 26px 28px;
  max-width: 760px;
  margin: 0 auto;
}
.ai-glyph {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.ai-glyph img { height: 26px; width: auto; }
.ai-note h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.ai-note p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Kontakt-Link im CTA-Band ---------- */
.cta-contact {
  display: inline-block;
  margin-top: 26px;
  color: var(--yellow);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .wall-story, .trust, .badges { grid-template-columns: 1fr; }
  .wall-story { gap: 28px; }
  /* Einspaltig darf das Bild nicht mehr rechts kleben */
  .wall-story img { margin-inline-start: 0; max-width: 100%; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero p.lead { max-width: none; }
  .cards { grid-template-columns: 1fr; }
  .site-header nav { gap: 16px; }
}
@media (max-width: 520px) {
  /* Fusszeilen-Links in EINER Zeile halten */
  .footer-links { gap: 13px; font-size: 13px; flex-wrap: nowrap; }
  .footer-grid { gap: 14px; }
  .site-footer { padding: 18px 0; }
  /* Das CTA-Band braucht schmalere Polster, sonst passen die beiden
     Store-Buttons dort nicht mehr nebeneinander. */
  .cta-band { padding: 34px 18px; }
  /* Store-Buttons sollen nebeneinander bleiben — sonst rutscht Google Play
     unter den App-Store-Button und der Hero wird unnoetig lang. */
  .stores { gap: 10px; }
  .store-btn { padding: 10px 12px; gap: 8px; }
  .store-btn svg { width: 21px; height: 21px; }
  .store-btn .st-top { font-size: 10px; }
  .store-btn .st-main { font-size: 15px; }
  .day li { grid-template-columns: 1fr; gap: 6px; }
  body { font-size: 17px; }
  .site-header nav a:not(.nav-primary) { display: none; }
  .hero { padding: 48px 0 24px; }
}
