/* Bauhelfer.app — Marketing-Seite. Ästhetik wie Prototyp/App (CLAUDE.md): INK, PAPER, CARD,
   ACCENT, GOOD; Fraunces nur für die Wortmarke (kein Kyrillisch), sonst IBM Plex Sans. */
:root {
  color-scheme: only light; /* kein automatisches Abdunkeln, siehe build.mjs */
  --ink: #1c1814; --paper: #e9e3d8; --card: #f4efe6; --accent: #d2502a; --good: #3f6b4f;
  --mute: #6f6557; --line: #d6cdbd;
  --rad: 16px; --breit: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.huelle { max-width: var(--breit); margin: 0 auto; padding: 0 20px; }

/* Kopf */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.marke { font: 600 30px/1 Fraunces, Georgia, serif; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.marke .wort span { color: var(--accent); }
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
.sprachwahl { font: 600 14px "IBM Plex Sans", sans-serif; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.knopf {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 600 16px/1 "IBM Plex Sans", sans-serif; padding: 14px 20px; border-radius: 12px;
}
.knopf:hover { filter: brightness(0.95); }
.knopf.klein { padding: 10px 14px; font-size: 14px; }
@media (max-width: 560px) { .kopf .knopf.klein { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 28px 0 56px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; } }
.kicker { display: inline-block; font-weight: 600; font-size: 14px; color: var(--good); background: #e0e6dc; border-radius: 99px; padding: 6px 12px; }
h1 { font-weight: 700; font-size: clamp(32px, 5.2vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0; }
.hero p.lead { font-size: 19px; color: #3a332c; margin: 0 0 24px; }
.beispiel { background: var(--card); border-radius: var(--rad); padding: 22px; box-shadow: 0 1px 0 var(--line); }
.beispiel .label { font-size: 13px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: 0.04em; }
.beispiel .gesagt { font-size: 18px; margin: 6px 0 18px; }
.beispiel .gesagt::before { content: "🎤 "; }
.dokument { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 15px; }
.dokument .dkopf { font-weight: 700; margin-bottom: 10px; }
.dokument .zeile { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.dokument .summe { display: flex; justify-content: space-between; font-weight: 700; padding-top: 8px; }

/* Abschnitte */
section { padding: 48px 0; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 24px; }
.raster { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .raster { grid-template-columns: 1fr; } }
.kachel { background: var(--card); border-radius: var(--rad); padding: 20px; }
.kachel h3 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.k-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: #f6ddd1; color: var(--accent); }
.kachel p { margin: 0; color: #3a332c; font-size: 16px; }
.schritt .nr { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }

/* Testphase + Formular */
.test { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .test { grid-template-columns: 1fr; } }
.haken { list-style: none; padding: 0; margin: 16px 0 0; }
.haken li { padding-left: 30px; position: relative; margin: 10px 0; }
.haken li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
form { background: var(--card); border-radius: var(--rad); padding: 22px; }
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
label:first-of-type { margin-top: 0; }
input[type=text], input[type=email], select {
  width: 100%; font: 400 17px "IBM Plex Sans", sans-serif; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hinweis { font-size: 13px; color: var(--mute); margin-top: 4px; }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 18px 0; }
.einwilligung input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.topf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .knopf { width: 100%; }
.meldung { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 600; display: none; }
.meldung.ok { display: block; background: #e0e6dc; color: var(--good); }
.meldung.fehler { display: block; background: #f6ddd3; color: #9a3518; }

/* Einfache Seiten (Danke, Gelöscht, Rechtstexte, Sprachwahl) */
.einfach { padding: 24px 0 56px; max-width: 760px; }
.einfach h1 { font-size: clamp(28px, 4.4vw, 40px); }
.recht h1 { font-size: 34px; }
.recht h2 { font-size: 20px; margin: 28px 0 8px; }
.recht p, .recht li { font-size: 16px; }
.recht .stand { color: var(--mute); }
.sprachen { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 24px; }
.sprachen a { background: var(--card); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ink); font-weight: 600; }

/* Fuß */
.fuss { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fuss a { color: var(--mute); }

/* Ergänzungen: Google-Anmeldung, Wortmarke groß (ohne Inline-Styles wegen CSP) */
.marke-gross .wort span { color: var(--accent); }
.form-titel { font-size: 22px; margin-bottom: 16px; }
.google-zweiter { margin-top: 4px; }
#google-knopf { margin: 10px 0 14px; min-height: 44px; }
.google-start + .google-zweiter + .hinweis, form > .hinweis { margin-top: 12px; }
[hidden] { display: none !important; }
.knopf { white-space: nowrap; }
.dokument .zeile span:last-child, .dokument .summe span:last-child { white-space: nowrap; }

/* Logo = App-Icon (Launcher-Kachel) vor der Wortmarke — wie auf dem App-Startbildschirm */
.marke { display: inline-flex; align-items: center; gap: 10px; }
.marke img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.marke-gross { display: flex; align-items: center; gap: 14px; font: 600 clamp(32px, 6vw, 48px)/1 Fraunces, Georgia, serif; }
.marke-gross img { width: 72px; height: 72px; border-radius: 16px; }
@media (max-width: 560px) { .marke { font-size: 24px; gap: 8px; } .marke img { width: 42px; height: 42px; border-radius: 11px; } }
.wort { font-weight: inherit; color: var(--ink); white-space: nowrap; }

/* ── Nachgebaute App-Bildschirme (appScreens.mjs) — Maße aus dem App-Code (dp) × ~0,72 ─────── */
.schritte .schritt { display: flex; flex-direction: column; }
.schritt-bild { display: flex; justify-content: center; align-items: center; height: 580px; margin: -4px 0 16px; }
.handy {
  width: 282px; padding: 9px; background: #121010; border-radius: 36px;
  box-shadow: 0 1px 0 #000, 0 14px 30px rgba(28, 24, 20, 0.22);
}
.handy-schirm {
  height: 540px; overflow: hidden; border-radius: 28px; background: var(--paper); position: relative;
  display: flex; flex-direction: column;
  font: 400 11px/1.35 Roboto, "IBM Plex Sans", system-ui, sans-serif; color: var(--ink);
}
.statusleiste { display: flex; justify-content: space-between; padding: 7px 16px 3px; background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 600; }
.status-icons { letter-spacing: 2px; }
.a-topbar { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 9px 12px 11px; }
.a-icon { font-size: 15px; width: 16px; text-align: center; }
.a-titel { font-size: 14.5px; font-weight: 600; flex: 1; }
.a-akzent { color: var(--accent); }
.a-avatar { width: 22px; height: 22px; border-radius: 50%; background: #8a7f72; box-shadow: inset 0 -7px 0 #6f6557; }
.a-body { padding: 9px 11px; flex: 1; overflow: hidden; }
.a-bereit { background: var(--good); color: var(--paper); border-radius: 7px; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a-b-titel { font-weight: 600; font-size: 11.5px; }
.a-b-sub { font-size: 9px; opacity: 0.85; }
.a-b-hint { font-size: 8px; opacity: 0.7; }
.a-ueberschrift { font-size: 12.5px; font-weight: 600; margin: 11px 0 4px; }
.a-eintrag { background: var(--card); border-radius: 9px; padding: 10px; margin: 3px 0; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.a-e-titel { font-size: 11.5px; font-weight: 600; }
.a-e-sub { font-size: 9px; color: var(--mute); }
.a-chip { color: var(--paper); font-size: 8.5px; font-weight: 600; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.a-good { background: var(--good); } .a-warn { background: #b08300; } .a-mute { background: var(--mute); }
.a-bottom { display: flex; gap: 7px; padding: 9px 11px 12px; background: var(--paper); }
.a-kamera { width: 43px; height: 43px; border-radius: 11px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.a-mic { flex: 1; height: 43px; border-radius: 11px; background: var(--accent); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 11.5px; }
.a-pruef .a-ueberschrift { margin: 8px 0 3px; font-size: 11.5px; }
.a-gehoert { color: var(--mute); font-size: 8.5px; }
.a-chips { display: flex; gap: 4px; }
.a-chips span { flex: 1; text-align: center; border-radius: 6px; padding: 6px 2px; font-size: 9px; font-weight: 600; background: var(--paper); border: 1px solid #cbc1b0; }
.a-chips span.an { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.a-chips.klein { margin: 4px 0; } .a-chips.klein span { padding: 3px 2px; font-size: 8px; }
.a-feld { border: 1px solid #cbc1b0; border-radius: 4px; padding: 6px 7px 5px; background: transparent; font-size: 10px; position: relative; margin-top: 7px; min-width: 0; }
.a-f-wert { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-feld.voll { width: 100%; }
.a-feld.gesperrt { color: #8a7f72; }
.a-f-label { position: absolute; top: -6px; left: 5px; background: var(--card); padding: 0 3px; font-size: 7.5px; line-height: 1; color: var(--mute); white-space: nowrap; }
.a-body > .a-feld .a-f-label { background: var(--paper); }
.a-kunde { display: flex; align-items: center; gap: 6px; } .a-lupe { display: flex; margin-top: 5px; }
.a-neukunde { display: flex; justify-content: space-between; font-size: 10px; margin-top: 4px; }
.a-bekannt { color: var(--good); font-weight: 600; font-size: 9px; }
.a-pos { background: var(--card); border-radius: 7px; padding: 7px; margin: 4px 0; }
.a-pos-kopf { display: flex; align-items: center; gap: 6px; } .a-pos-kopf .a-feld { margin-top: 0; }
.a-x { color: var(--accent); font-size: 12px; }
.a-pos-felder { display: grid; grid-template-columns: 0.8fr 1.1fr 1.3fr; gap: 4px; }
.a-pos-summe { text-align: right; font-weight: 600; font-size: 10px; margin-top: 4px; }
.a-summe { display: flex; justify-content: space-between; border-top: 1px solid #cbc1b0; margin-top: 6px; padding-top: 6px; font-size: 10px; color: var(--mute); }
.a-summe b { color: var(--ink); font-size: 11.5px; }
.a-knoepfe { display: flex; gap: 7px; margin-top: 9px; }
.a-knoepfe span { height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 10.5px; }
.a-verwerfen { flex: 1; border: 1px solid #cbc1b0; color: var(--accent); }
.a-passt { flex: 2; background: var(--good); color: var(--paper); }
.pdf-vorschau { display: block; width: 300px; max-width: 100%; }
.pdf-vorschau img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 14px 30px rgba(28, 24, 20, 0.18); transform: rotate(-1.2deg); }
.pdf-link { margin-top: 10px !important; font-weight: 600; }
.beispiel-hinweis { margin-top: 14px; }

/* Prüfschritt kompakter, damit Summe + Knöpfe sichtbar sind (wie ein Screenshot ans Ende gescrollt) */
.a-pruef { padding-top: 7px; }
.a-pruef .a-ueberschrift { margin: 6px 0 2px; }
.a-pruef .a-pos { padding: 5px 6px; margin: 3px 0; }
.a-pruef .a-pos-felder .a-feld { padding: 5px 6px 4px; }
.a-feld.leistung { margin-top: 10px; }
.a-pruef .a-knoepfe { margin-top: 7px; }

/* Schritte responsiv (Review 26.10.: bei 1024 px liefen drei Kacheln über, bei 768 px stand die
   PDF-Kachel allein) — volle Größe ab 1100, verkleinert bis 861, Tablet quer, Handy gestapelt */
.schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) and (min-width: 861px) {
  .schritt-bild { height: 490px; }
  .schritt-bild > * { zoom: 0.82; }
}
@media (max-width: 860px) and (min-width: 561px) {
  .schritte { grid-template-columns: 1fr; }
  .schritte .schritt { flex-direction: row; align-items: center; gap: 28px; }
  .schritt-bild { height: auto; margin: 0; flex: none; width: 300px; }
  .schritt-text { flex: 1; }
}
@media (max-width: 560px) {
  .schritte { grid-template-columns: 1fr; }
  .schritt-bild { height: auto; }
}

/* Nummer + Titel über dem Bild (Owner 26.10.) */
.schritt-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.schritt-kopf .nr { margin-bottom: 0; flex: none; }
.schritt-kopf h3 { margin: 0; }
.schritt-bild { margin: 0 0 14px; }
.schritt-text p:first-child { margin-top: 0; }
@media (max-width: 860px) and (min-width: 561px) {
  .schritte .schritt { display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "bild ." "bild kopf" "bild text" "bild ."; column-gap: 28px; }
  .schritt-kopf { grid-area: kopf; margin-bottom: 6px; }
  .schritt-text p:first-child { margin-top: 0; }
  .schritt-bild { grid-area: bild; margin: 0; }
  .schritt-text { grid-area: text; }
}

/* „Mit Google anmelden" nach Googles Branding-Richtlinien (heller Knopf: weiß, Rand #747775,
   Text #1F1F1F, farbiges G links) — reiner Link-/Formularknopf, kein Google-Skript (Variante B) */
.google-knopf {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 12px; cursor: pointer;
  font: 600 16px/1 "IBM Plex Sans", Roboto, sans-serif; padding: 13px 16px; margin-top: 4px;
}
.google-knopf:hover { background: #f8f8f8; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3); }
.google-knopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.google-knopf img { width: 20px; height: 20px; }
form > .hinweis { margin-top: 12px; }

/* ── Hero: schräges Handy (3D) + Sprechblase + schwebende Angebotskarte (Owner 26.10.) ────────── */
.a-mic.an { background: var(--good); }
.hero-bild { position: relative; display: flex; justify-content: center; perspective: 1600px; padding: 150px 0 24px; }
.hero-handy { transform: rotateY(-18deg) rotateX(7deg) rotateZ(1.5deg); transform-style: preserve-3d; }
.hero-handy .handy { box-shadow: 18px 26px 50px rgba(28, 24, 20, 0.28), 0 1px 0 #000; }
.hero-handy .handy-schirm { height: 500px; }
.sprechblase {
  position: absolute; top: 0; left: 0; z-index: 2; max-width: 330px;
  background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 28px rgba(28, 24, 20, 0.16);
}
.sprechblase::after { content: ""; position: absolute; left: 46px; bottom: -12px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }
.sprechblase .gesagt { margin: 4px 0 0; font-size: 17px; }
.sprechblase .gesagt::before { content: "🎤 "; }
.hero-karte {
  position: absolute; right: 0; bottom: 110px; z-index: 2; width: 300px; max-width: 100%;
  background: var(--card); border-radius: 16px; padding: 14px; box-shadow: 0 14px 34px rgba(28, 24, 20, 0.22); transform: rotate(-1.5deg);
}
.hero-karte .dokument { margin-top: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: 0.04em; }
@media (min-width: 861px) { .hero { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1099px) and (min-width: 861px) { .hero-handy { zoom: 0.85; } .sprechblase { max-width: 280px; } .hero-karte { width: 270px; bottom: 95px; } }
/* Tablet/Handy: untereinander, Handy flacher und kleiner, Karte überlappt das Handy unten */
@media (max-width: 860px) {
  .hero-bild { flex-direction: column; align-items: center; padding: 0; perspective: none; }
  .sprechblase { position: relative; max-width: 420px; width: 100%; margin-bottom: 22px; }
  .hero-handy { transform: rotate(1.5deg); zoom: 0.8; }
  .hero-karte { position: relative; width: 100%; max-width: 420px; bottom: auto; margin-top: 18px; transform: none; }
}
.dokument .zeile small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
