/* flx-development.com – Seitenlayout. Baut auf tokens.css + components.css (gemeinsame Basis) auf.
   Präfix p- = Seite, f- = Formular. Handy ≤ 640 px (wie components.css), Spalten brechen ≤ 900 px. */

/* ---------- Abschnitte ---------- */
.p-hero { padding: 112px 0 80px; }
.p-hero__title { max-width: 760px; }
.p-hero__lead { max-width: 580px; margin-top: 24px; }
.p-hero .p-price { margin-top: 20px; }
.p-hero--shot { padding-bottom: var(--section); }
.p-hero__shot { margin-top: 64px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.p-page { padding: 112px 0 96px; }
.p-page .t-h1 { max-width: 820px; }
.p-lead { max-width: 640px; margin-top: 20px; }
.p-narrow .c-container { max-width: 704px; }
:root { --section-short: 96px; }   /* kurze Abschnitte (Runde 4): 96 statt 128 px */
.p-sec { padding: var(--section) 0; }
.p-sec--short, .p-cta { padding: var(--section-short) 0; }
.is-start .p-hero--shot { padding-bottom: var(--section-short); }
.p-sec--line { border-top: 1px solid var(--line-1); }
.p-text { margin: 16px 0 0; color: var(--text-2); max-width: 460px; }
.p-text--intro { max-width: 560px; }
.p-price { margin: 24px 0 0; font-size: 13px; color: var(--text-3); }
.p-price strong { font-weight: 500; color: var(--text-1); }
.p-more { margin: 24px 0 0; font-size: 14px; }
.p-caption { margin: 14px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.p-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.p-sechead a { font-size: 14px; }
.p-cta .p-text { max-width: 560px; }
.p-cta .t-h2s { max-width: 640px; }

/* Zweispaltig: Text links, Liste/Bild rechts */
.p-split__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 80px; align-items: start; }
.p-split--mid .p-split__inner { align-items: center; }

/* Startseite: FLX Community HQ (Text + Preis links, Link rechts, zwei Demo-Bilder darunter) */
.p-hq__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.p-hq__head .p-text { max-width: 580px; }
.p-hq__btn { flex: none; }
.p-hq__shots { display: grid; gap: 16px; margin-top: 48px; }
.p-hq__shots--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.p-split__text .t-h2s { max-width: 440px; }

/* ---------- Scripts-Liste ---------- */
.p-slist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-1); }
.p-slist > li { border-bottom: 1px solid var(--line-1); }
.p-slist__row { display: grid; grid-template-columns: minmax(0, 1fr) 200px 110px 20px; align-items: center; gap: 24px; min-height: 98px; padding: 18px 4px; color: var(--text-1); }
.p-slist__row:hover { color: var(--text-1); background: #0e0e0e; }
.p-slist__row:focus-visible { border-radius: 6px; }
.p-slist__main { display: grid; gap: 6px; min-width: 0; }
.p-slist__name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.p-slist__sum { font-size: 13px; color: var(--text-2); }
.p-slist__meta { font-size: 12px; color: var(--text-3); }
.p-slist__price { justify-self: end; font-size: 15px; }
.p-slist__price.is-free { color: var(--text-2); }
.p-slist__chev { width: 14px; height: 14px; color: var(--text-3); justify-self: end; }
.p-slist--compact .p-slist__row { grid-template-columns: minmax(0, 1fr) 20px; min-height: 76px; }

/* ---------- Zeilen-Karte (rechts) ---------- */
.p-rows { list-style: none; margin: 0; padding: 0; }
.p-rows--card { border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); }
.p-rows > li { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: 14px 20px; font-size: 14px; }
.p-rows > li + li { border-top: 1px solid var(--line-1); }
.p-rows__k { font-weight: 500; }
.p-rows__v { color: var(--text-3); font-size: 13px; text-align: right; }
.p-rows--stack > li { display: grid; gap: 4px; justify-content: stretch; padding: 18px 20px; }
.p-rows--stack .p-rows__v { text-align: left; color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* ---------- Schritte, Prüfliste ---------- */
.p-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-1); }
.p-steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-1); }
.p-steps__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 12px; color: var(--text-2); }
.p-steps__h { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.p-steps p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.p-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.p-checks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; font-size: 14px; color: var(--text-1); }
.p-checks svg { width: 16px; height: 16px; margin-top: 2px; color: var(--check, var(--accent)); }
.p-way .p-checks { margin-top: 20px; }
.p-acc-h { margin: 0; font: inherit; }

/* ---------- Zwei Wege (Web) ---------- */
.p-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.p-way { padding: 32px; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); }
.p-way__for { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.p-way .p-text { max-width: none; }

/* ---------- Browserrahmen mit Screenshot ---------- */
.p-browser { margin: 0; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); overflow: hidden; }
.p-browser__bar { display: grid; place-items: center; height: 36px; border-bottom: 1px solid var(--line-1); }
.p-browser__url { padding: 3px 14px; border-radius: 6px; background: var(--surface-2); font-size: 12px; color: var(--text-2); }
.p-browser img { width: 100%; height: auto; }
/* Echte Screenshots (echt_bild): Demo-Abschnitte, gestapelte Bilder */
.p-echt-stack { display: grid; gap: 16px; }
.p-figlinks { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.p-figlinks__a { display: inline-flex; gap: 16px; }
.p-figlinks a { font-size: 12px; }
.p-shot__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.p-shot__head .p-text { max-width: 600px; }
.p-shot__link { font-size: 14px; white-space: nowrap; }
.p-kv { max-width: 560px; margin-top: 32px; }
.p-kv dd { min-width: 0; overflow-wrap: anywhere; }
.p-split__aside .p-kv { margin-top: 0; max-width: none; }

/* ---------- Fließtext (Über, Recht) ---------- */
.p-prose > p, .p-prose li { color: var(--text-2); }
/* Über mich: Kopf mit Foto (nur wenn assets/img/felix.jpg existiert) */
.p-about { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; align-items: start; }
.p-about__photo { margin: 0; }
.p-about__photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); }
.p-prose > p:first-child { margin-top: 0; }
.p-prose p { margin: 0 0 16px; max-width: 680px; }
.p-legal__body { margin-top: 48px; max-width: 720px; font-size: 15px; }
.p-legal__body h2 { margin: 40px 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--text-1); scroll-margin-top: 80px; }
.p-legal__body h2:first-child { margin-top: 0; }
.p-legal__body strong { color: var(--text-1); font-weight: 500; }
.p-legal__stand { margin-top: 40px !important; font-size: 13px; color: var(--text-3) !important; }
.p-legal__note { font-size: 13px; color: var(--text-3) !important; }
#kontakt { scroll-margin-top: 60px; }
#kontakt:focus { outline: none; }

/* ---------- Formular ---------- */
.f-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.f-privacy { margin-top: -4px; }
.f-page { position: relative; margin-top: 40px; max-width: 520px; }
.f-page__fields { display: grid; gap: 16px; }
.f-page__actions { margin-top: 24px; }
.f-radios { display: grid; gap: 10px; padding: 4px 0; }
.p-formnote { margin-top: 32px; max-width: 520px; }
.p-formfoot { margin-top: 24px; }
.c-dialog.f-anfrage { max-width: 440px; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1000px) {
  .p-slist__row { grid-template-columns: minmax(0, 1fr) 150px 90px 16px; gap: 16px; }
}
@media (max-width: 900px) {
  .p-split__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .p-split__text .t-h2s, .p-text { max-width: 640px; }
  .p-ways { grid-template-columns: 1fr; }
  .p-about { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
}

/* Handy (Übergabe 6, Bild 10): große Titel 34/700, Text 17, Buttons 50, gruppierte Listen */
@media (max-width: 640px) {
  :root { --section: 72px; }
  body { font-size: 17px; }
  .p-hero { padding: 40px 0 40px; }
  .p-hero .t-display, .p-page .t-h1 { font-size: 34px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
  .p-hero__lead, .p-lead { font-size: 17px; margin-top: 16px; }
  :root { --section-short: 64px; }
  .p-hq__head { flex-direction: column; align-items: stretch; gap: 0; }
  .p-hq__btn { margin-top: 28px; }
  .p-hq__shots { margin-top: 32px; }
  .p-hq__shots--2 { grid-template-columns: minmax(0, 1fr); }
  .p-hero__shot { margin-top: 40px; }
  .p-actions { flex-direction: column; gap: 10px; margin-top: 28px; }
  .p-page { padding: 40px 0 56px; }
  .t-h2, .t-h2s { font-size: 24px; letter-spacing: -0.02em; font-weight: 700; }
  .p-text, .p-steps p, .p-checks li, .p-rows--stack .p-rows__v { font-size: 16px; }

  /* Scripts als gruppierte Liste */
  .p-scripts .c-container { padding: 0 16px; }
  .p-sechead { margin: 0 4px 16px; }
  .p-sechead a { font-size: 17px; }
  .p-sr-m { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .p-slist { border: 0; background: var(--surface-1); border-radius: var(--r-card); overflow: hidden; }
  .p-slist > li { position: relative; border: 0; }
  .p-slist > li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line-1); }
  .p-slist__row { grid-template-columns: minmax(0, 1fr) auto 16px; grid-template-areas: "name price chev" "sum sum chev"; gap: 4px 12px; min-height: 0; padding: 14px 16px; }
  .p-slist__main { display: contents; }
  .p-slist__name { grid-area: name; font-size: 17px; font-weight: 400; }
  .p-slist__sum { grid-area: sum; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .p-slist__meta { display: none; }
  .p-slist__price { grid-area: price; font-size: 17px; }
  .p-slist__chev { grid-area: chev; width: 16px; height: 16px; }
  .p-slist--compact .p-slist__row { grid-template-columns: minmax(0, 1fr) 16px; grid-template-areas: "name chev" "sum chev"; }
  .p-slist__row:hover { background: #141414; }

  .p-rows > li { display: grid; gap: 2px; justify-content: stretch; padding: 12px 16px; font-size: 17px; min-height: 52px; }
  .p-rows > li + li { border-top: 0; position: relative; }
  .p-rows > li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line-1); }
  .p-rows__k { font-weight: 400; }
  .p-rows__v { font-size: 15px; text-align: left; }
  .p-rows--card { border: 0; }
  .p-way { padding: 24px 20px; }
  .p-shot__head { flex-direction: column; align-items: flex-start; }
  .p-figlinks { flex-direction: column; gap: 8px; }
  .p-figlinks a, .p-caption { font-size: 14px; }
  .p-browser { border-radius: 10px; }
  /* Hochkant-Aufnahme (780×1688) nicht über die ganze Breite: schmal und zentriert */
  .p-echt { max-width: 300px; margin-inline: auto; }
  /* Zwei Aufnahmen nebeneinander (Entwicklung); Adresszeile entfällt, die Bildunterschrift nennt beide */
  .p-echt-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .p-echt-stack .p-echt { max-width: none; margin: 0; }
  .p-echt-stack .p-browser__bar { display: none; }
  .p-about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .p-about__photo { max-width: 240px; }
  .p-legal__body { margin-top: 32px; font-size: 16px; }
  .c-dialog.f-anfrage { max-width: none; }
}

/* Links im Fließtext unterstreichen (erkennbar ohne Farbe) */
.p-prose p a, .p-formfoot a, .f-privacy a, .p-text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.p-browser picture, .p-browser picture img { display: block; width: 100%; height: auto; }

/* ===== Klicktest 23.11.2026 – Hauptdomain (A1, B4, B5, B7, C4) ===== */
/* B5 Startseite: Hero-Bilder mit festem Seitenverhältnis und heller Platzhalterfläche, Abstand darunter halbiert */
.p-hero__shot .c-devices__screen { aspect-ratio: 1440 / 900; background: var(--surface-2); }
.p-hero__shot .c-devices__phone { aspect-ratio: 780 / 1688; background: var(--surface-2); }
.p-hero__shot .c-devices__screen img, .p-hero__shot .c-devices__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.is-start .p-hero--shot { padding-bottom: calc(var(--section-short) / 2); }
.is-start .p-hero + .p-sec { padding-top: calc(var(--section-short) / 2); }

/* A1 Startseite: Client-Mods (Bild links, Text rechts; Bild so groß wie ein Community-HQ-Bild) */
.p-cm__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.p-cm__img { display: block; }
.p-cm__img .c-shot { background: var(--surface-2); aspect-ratio: 16 / 9; }
.p-cm__img .c-shot img { height: 100%; object-fit: cover; }
.p-cm__text .p-text { max-width: 520px; }

/* B4 Titel über volle Breite, Inhalt darunter (statt Titel allein in der linken Spalte) */
.p-split--top .p-split__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.p-split--top .p-split__text .t-h2s { max-width: none; }
.p-split__text--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.p-split__text--row .p-more { margin: 0; white-space: nowrap; }
.p-prose--cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; }
.p-prose--cols > p { margin: 0 0 16px; }
.p-prose--cols > .p-more { grid-column: 1 / -1; margin-top: 8px; }
.p-rows--cols > li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; justify-content: stretch; align-items: baseline; padding: 18px 20px; }
.p-rows--cols .p-rows__v { text-align: left; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.p-refhead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 80px; align-items: start; margin-top: 20px; }
.p-refhead .p-lead, .p-refhead .p-kv { margin-top: 0; max-width: none; }
/* Entwicklung „Im Einsatz“: zwei Aufnahmen nebeneinander, am Handy untereinander in voller Breite (C4) */
.p-echt-stack--row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) {
  .p-refhead, .p-prose--cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .p-cm__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .p-split__text--row { flex-direction: column; align-items: flex-start; gap: 0; }
  .p-split__text--row .p-more { margin-top: 20px; white-space: normal; }
  .p-rows--cols > li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; }
  .p-rows--cols .p-rows__v { font-size: 16px; }
  .p-echt-stack--row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .p-echt-stack--row .p-browser__bar { display: grid; }
  .p-echt-stack--row .p-echt img { max-height: 520px; object-fit: cover; object-position: top; }
  .p-cm__inner { gap: 24px; }
}

/* ===== Seiten (Restpunkte 24.11.2026): Demo-Bild nur im Abschnitt Community HQ (Punkt 25) ===== */
.p-hq__shot { margin-top: 48px; }
.p-hq__shot .c-devices__screen { aspect-ratio: 1440 / 900; background: var(--surface-2); }
.p-hq__shot .c-devices__phone { aspect-ratio: 780 / 1688; background: var(--surface-2); }
.p-hq__shot .c-devices__screen img, .p-hq__shot .c-devices__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 640px) { .p-hq__shot { margin-top: 32px; } }

/* ===== Recht/Kontakt (Restpunkte 24.11.2026): geschützte Mail-Adresse, Seite /kontakt ===== */
.contact-decoy { display: none; }
.p-contact__mail { font-size: 1.125rem; }

/* ===== Restpunkt 41 (24.11.2026): Handy-Tippflächen. „Mehr“-Links mit 44 px Tippfläche, Abstände bleiben ===== */
@media (max-width: 640px) {
  .p-more > a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
