/* ===========================================================================
 * psyluna Website -- gemeinsame Gestaltung aller Seiten
 * Werte 1:1 aus dem Design-Handoff (design_handoff_psyluna_website_responsiv).
 * Startseiten-Abschnitte stehen in /assets/css/pages/start.css, die der
 * Unterseiten in /assets/css/pages/<slug>.css.
 * Das Prototyp-Markup traegt alle Styles inline und berechnet das Layout in
 * JavaScript ueber eine Fenster-Breite; hier steht beides als CSS mit
 * Media Queries -- so wie es der Handoff unter "State Management" verlangt.
 * =========================================================================== */

/* --- Design-Tokens ------------------------------------------------------- */
:root {
  --bg:                 #ffffff;
  --bg-tint:            #FAF7F5;
  --surface-soft:       #FDFBFA;
  --bg-footer:          #F5F1EE;
  --shot-bg:            #fcfcfd;

  --accent:             #A45C3C;
  --accent-dark:        #7C5A48;
  --accent-deep:        #7C3E20;
  --accent-deep-muted:  #8A5A40;
  --accent-mid:         #D5977E;
  --accent-arrow:       #D8AA94;
  --accent-line:        #D9BCA9;
  --accent-line-soft:   #E0C8B8;
  --accent-border:      #EBC7B6;
  --accent-border-s1:   #EFE0D8;
  --accent-border-s2:   #eee5df;
  --accent-border-s3:   #f0e8e3;
  --accent-border-s4:   #f6f2ef;
  --accent-fill:        #F6E3D9;
  --accent-fill-soft:   #FAF3EF;

  --text-heading:       #111827;
  --text-strong:        #374151;
  --text:               #4b5563;
  --text-muted:         #6b7280;
  --text-meta:          #9ca3af;
  --footer-meta:        #a58b7d;
  --footer-fine:        #c4b0a4;

  --border:             #e5e7eb;
  --border-light:       #f3f4f6;

  --warn-bg:            #fffbeb;
  --warn-border:        #fde68a;
  --warn-border-hi:     #fcd34d;
  --warn-text:          #b45309;
  --warn-icon:          #d97706;

  --font-body:    'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit Variable', Outfit, system-ui, sans-serif;
  --font-script:  Parisienne, 'Segoe Script', cursive;

  --container: 1180px;
  --pad-x:     clamp(18px, 3vw, 32px);

  --shadow-hero:  0 18px 40px -26px rgba(124, 90, 72, .38);
  --shadow-shot:  0 22px 48px -28px rgba(124, 90, 72, .42);
  --shadow-mail:  0 18px 40px -28px rgba(124, 90, 72, .35);
}

/* --- Reset / Basis ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-strong);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img, svg { display: block; max-width: 100%; }
svg { flex: none; }
img { height: auto; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

/* Sichtbarer Fokus -- der Prototyp hat keinen, eine Tastaturbedienung braucht ihn. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Sprungziele liegen unter dem sticky Header -- Handoff: "Real bug, fix on the way in". */
:target, section[id] { scroll-margin-top: 72px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section        { padding-top: clamp(52px, 7vw, 84px); padding-bottom: clamp(48px, 6vw, 76px); }
.section--short { padding-top: clamp(52px, 7vw, 76px); padding-bottom: clamp(52px, 7vw, 76px); }
.section--tint  { background: var(--bg-tint); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section--rule  { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section--last  { border-bottom: 0; }

/* --- Typografie ---------------------------------------------------------- */
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

.h1 {
  margin: 0 0 20px;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(33px, 6.4vw, 54px); line-height: 1.09;
  letter-spacing: -0.02em; color: var(--text-heading);
  text-wrap: pretty;
}
/* Die Eyebrow-Zeile sitzt bewusst IM h1 (ein einziges h1, das den Suchbegriff traegt). */
.h1__eyebrow {
  display: block; margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

.h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 5vw, 42px); line-height: 1.14;
  letter-spacing: -0.02em; color: var(--text-heading);
  text-wrap: pretty;
}
.h2--sm {
  font-size: clamp(27px, 4.6vw, 38px);
  line-height: normal; letter-spacing: -0.01em;
}
.h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text-heading); }
.h2--gap { margin-bottom: 32px; }

.lead      { font-size: 17px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.lead--wide{ line-height: 1.7; }

/* --- Wortmarke ----------------------------------------------------------- */
.wordmark { display: flex; align-items: baseline; gap: 1px; }
.wordmark__psy {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(25px, 5vw, 30px); letter-spacing: -0.01em;
  color: var(--text-strong); line-height: 1;
}
.wordmark__luna {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(25px, 5vw, 30px);
  color: var(--accent-mid); line-height: 1;
  -webkit-text-stroke: 0.5px var(--accent-mid);
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  border-radius: 8px; padding: 14px 24px;
  text-align: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary {
  background: var(--accent-fill); border: 1px solid var(--accent-border);
  color: var(--accent);
}
.btn--primary:hover { background: #F1D8CB; color: var(--accent-deep); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); background: none; }
.btn--ghost:hover { border-color: var(--accent-border); color: var(--accent-dark); }
.btn--block { display: block; width: 100%; padding: 14px 22px; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.site-header__bar {
  max-width: var(--container); margin: 0 auto;
  padding: 12px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; color: inherit; }
.brand:hover { color: inherit; }
.brand__mark { flex: none; }

.nav-desktop {
  display: none;
  flex-wrap: nowrap; align-items: center; gap: clamp(14px, 1.8vw, 22px);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nav-desktop a { color: var(--text); }
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop .nav-cta {
  background: var(--accent-fill); border: 1px solid var(--accent-border);
  color: var(--accent); padding: 8px 16px; border-radius: 8px;
}
.nav-desktop .nav-cta:hover { background: #F1D8CB; color: var(--accent-deep); }

.burger {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-right: -11px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--text); font-family: inherit;
}
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open  { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px var(--pad-x) 20px;
  border-top: 1px solid var(--border-light);
  background: #fff;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  padding: 13px 0; font-size: 16px; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--accent-border-s4);
}
.nav-mobile a:last-of-type { border-bottom: 0; }
.nav-mobile .nav-cta {
  margin-top: 12px; text-align: center; border-bottom: 0;
  background: var(--accent-fill); border: 1px solid var(--accent-border);
  color: var(--accent); padding: 14px 18px; border-radius: 8px;
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .burger, .nav-mobile { display: none !important; }
}

/* --- Produktaufnahmen ---------------------------------------------------- */
/* Rahmenbehandlung laut Handoff: 1px #e5e7eb, radius 14, warmer Schatten,
   overflow hidden, Hintergrund #fcfcfd. Kein Fenster-Chrome. */
.shot {
  position: relative; width: 100%;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--shot-bg); overflow: hidden;
}
.shot > img { display: block; width: 100%; height: auto; }
.shot--hero { box-shadow: var(--shadow-hero); }

/* --- #funktionen --------------------------------------------------------- */
.funktionen { text-align: center; }
.funktionen .lead { max-width: 700px; margin: 20px auto 0; }
.stage-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(16px, 2.4vw, 30px); margin-top: 40px; text-align: left;
}
.stage-arrow {
  display: none; position: absolute; z-index: 2; top: 26px;
  width: 36px; text-align: center;
  color: var(--accent-arrow); font-size: 22px; line-height: 1;
}
.stage-arrow--1 { left: calc(33.333% - 23px); }
.stage-arrow--2 { left: calc(66.666% - 13px); }

.stage {
  min-width: 0; padding: 22px 22px 20px;
  border: 1px solid var(--accent-border); border-radius: 12px;
  background: var(--surface-soft);
}
.stage__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.stage__num {
  flex: none; width: 30px; height: 30px; border-radius: 9999px;
  background: var(--accent-fill); color: var(--accent);
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.stage__list { display: flex; flex-direction: column; gap: 8px; }
.stage__item {
  padding: 9px 10px; border: 1px solid var(--accent-border-s2);
  border-radius: 8px; background: #fff;
}
.stage__item h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.stage__item p  { margin: 3px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-meta); }

/* --- E-Mail-Fenster (Empfaengerpruefung) ------------------------------- */
.mail-mock {
  min-width: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-mail); overflow: hidden;
}
.mail-mock__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.mail-mock__title { font-size: 14px; font-weight: 600; color: var(--text-heading); }
.mail-mock__toggle { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }
.mail-mock__switch {
  width: 30px; height: 17px; border-radius: 9999px;
  background: var(--border); position: relative; display: inline-flex;
}
.mail-mock__switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%; background: #fff;
}
.mail-mock__body { padding: 16px; }
.mail-mock__label { margin: 0 0 6px; font-size: 12px; color: var(--text-muted); }
.mail-mock__label--spaced { margin-top: 16px; }
.mail-mock__patient {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  border: 1px solid var(--accent-border); background: var(--accent-fill-soft);
  border-radius: 8px; padding: 9px 12px; margin-bottom: 16px;
}
.mail-mock__patient-icon { display: inline-flex; color: var(--accent); }
.mail-mock__patient-name { font-size: 14px; font-weight: 500; color: var(--accent-dark); white-space: nowrap; flex: none; }
.mail-mock__patient-note { font-size: 12px; line-height: 1.4; color: var(--accent); min-width: 0; }
.mail-mock__to {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; border-radius: 9999px; padding: 3px 10px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.pill--ok   { background: #f9fafb; border: 1px solid var(--border); color: var(--text-strong); }
.pill--warn { background: var(--warn-bg); border: 1px solid var(--warn-border-hi); color: var(--warn-text); }
.pill--ok svg { color: var(--accent); }
.notice-warn {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 8px; padding: 9px 11px;
  background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 8px;
}
.notice-warn__icon { display: inline-flex; color: var(--warn-icon); padding-top: 1px; flex: none; }
.notice-warn p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--warn-text); }
.mail-mock__subject { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--text-strong); }
.mail-mock__skeleton {
  margin-top: 12px; border: 1px solid var(--border-light); border-radius: 8px;
  padding: 12px; display: flex; flex-direction: column; gap: 7px;
}
.mail-mock__skeleton span { height: 8px; border-radius: 9999px; background: var(--border-light); }
.bar--82 { width: 82%; }
.bar--64 { width: 64%; }
.bar--73 { width: 73%; }
.mail-mock__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.mail-mock__send {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  background: var(--accent-fill); border: 1px solid var(--accent-border);
  color: var(--accent); padding: 7px 14px; border-radius: 8px;
}
.mail-mock__status { margin-left: auto; font-size: 12px; color: var(--text-meta); }

/* --- #fragen (details/summary, damit Antworten ohne JS im DOM stehen) ----- */
.faq { max-width: 840px; display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--accent-border); }
.faq__item:last-child { border-bottom: 1px solid var(--accent-border); }
.faq__item > summary {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 18px 2px; cursor: pointer; list-style: none;
  font-size: clamp(16px, 2.2vw, 18px); line-height: 1.4; font-weight: 500;
  color: var(--text-heading);
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::marker { content: ""; }
.faq__q { flex: 1; }
.faq__indicator { flex: none; display: inline-flex; color: var(--accent); }
.faq__indicator .icon-minus { display: none; }
.faq__item[open] > summary .icon-minus { display: block; }
.faq__item[open] > summary .icon-plus  { display: none; }
.faq__answer { padding: 0 clamp(6px, 5vw, 60px) 22px 2px; display: flex; flex-direction: column; gap: 10px; }
.faq__answer p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .28s ease, content-visibility .28s allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__item::details-content { transition: none; }
  .btn { transition: none; }
}

/* --- #preis -------------------------------------------------------------- */
.price-card {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); align-items: stretch;
  border: 1px solid var(--accent-border); border-radius: 16px;
  padding: clamp(26px, 4vw, 48px) clamp(20px, 4vw, 52px);
}
.price-card__main { flex: 1 1 420px; min-width: 0; }
.price-card__main .h2 { margin-bottom: 12px; }
.price-card__sub { margin: 0 0 26px; font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 480px; }
.price-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px clamp(20px, 3vw, 32px);
}
.price-features p {
  margin: 0; display: flex; align-items: flex-start; gap: 9px;
  font-size: 15px; line-height: 1.5; color: var(--text-strong);
}
.price-features p > span:first-child { display: inline-flex; color: var(--accent); padding-top: 3px; flex: none; }
.price-card__teams {
  margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--accent-border-s3);
  font-size: 15px; line-height: 1.6; color: var(--text-muted);
}
.price-card__aside {
  flex: 1 1 260px; min-width: 0; text-align: center;
  border-top: 1px solid var(--accent-border-s3); padding-top: 30px;
  display: flex; flex-direction: column; justify-content: center;
}
.price-figure { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(48px, 8vw, 64px); line-height: 1; color: var(--text-heading); }
.price-unit  { margin: 8px 0 0; font-size: 14px; color: var(--text-muted); }
.price-note  { margin: 4px 0 22px; font-size: 14px; color: var(--text-meta); }
.price-fine  { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-meta); }

/* --- #testzugang --------------------------------------------------------- */
.trial { display: flex; flex-wrap: wrap; gap: clamp(30px, 4vw, 56px); align-items: flex-start; }
.trial__text { flex: 1 1 340px; min-width: 0; }
.trial__text .h2 { margin-bottom: 18px; }
.trial__intro { margin: 0 0 28px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.trial__steps { display: flex; flex-direction: column; gap: 16px; }
.trial__steps p { margin: 0; display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.trial__num {
  flex: none; width: 24px; height: 24px; border-radius: 9999px;
  background: var(--accent-fill); border: 1px solid var(--accent-border); color: var(--accent);
  font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center;
}
.trial__steps b { color: var(--text-heading); font-weight: 600; }
.trial__card {
  flex: 1 1 380px; min-width: 0; background: #fff;
  border: 1px solid var(--accent-border); border-radius: 14px;
  padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 34px);
}

/* --- Formular ------------------------------------------------------------ */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: flex; gap: 14px; }
.form__row--plz > .field:first-child { flex: 0 0 118px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field__label { font-size: 13px; font-weight: 500; color: var(--text-strong); }
.field__label span { font-weight: 400; color: var(--text-meta); }
.field input, .field textarea {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 15px; color: var(--text-heading);
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; outline: none;
}
.field textarea { line-height: 1.55; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field__hint  { font-size: 12px; line-height: 1.45; color: var(--text-meta); }
.field__error { font-size: 13px; line-height: 1.45; color: var(--warn-text); }
.field__error[hidden] { display: none; }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--warn-border-hi); }

/* Honeypot: per CSS aus dem Blick genommen, NIE type="hidden"
   (docs/trial-form-spec.md §2). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__summary {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 13px; background: var(--warn-bg);
  border: 1px solid var(--warn-border); border-radius: 8px;
}
.form__summary[hidden] { display: none; }
.form__summary > span { display: inline-flex; color: var(--warn-icon); padding-top: 1px; flex: none; }
.form__summary p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--warn-text); }

.form__foot { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; border-top: 1px solid var(--border-light); }
.form__privacy { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-meta); }
.form__privacy a { color: var(--accent); text-decoration: underline; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-fill); border: 1px solid var(--accent-border); color: var(--accent);
  padding: 12px 22px; border-radius: 8px;
  font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .15s ease;
}
.form__submit:hover:not(:disabled) { background: #F1D8CB; }
.form__submit:disabled { cursor: progress; }
.form__submit .label-pending { display: none; }
.form__submit[data-pending] .label-idle    { display: none; }
.form__submit[data-pending] .label-pending { display: inline; }
.form__price { font-size: 13px; line-height: 1.5; color: var(--text-muted); }

.noscript-note {
  margin: 0 0 16px; padding: 11px 13px;
  background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 8px;
  font-size: 13px; line-height: 1.5; color: var(--warn-text);
}

/* --- Danke-Seite / Bestaetigungsblock ------------------------------------ */
.confirm { display: flex; flex-direction: column; gap: 12px; }
.confirm__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px;
  background: var(--accent-fill); border: 1px solid var(--accent-border);
  color: var(--accent); margin-bottom: 4px;
}
.confirm h1, .confirm h2 {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 5vw, 34px); line-height: 1.2;
  letter-spacing: -0.01em; color: var(--text-heading);
}
.confirm p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.confirm p strong { font-weight: 600; color: var(--text-heading); }
.confirm p.confirm__meta { font-size: 14px; color: var(--text-meta); }

/* --- Inhaltsseiten (Impressum, Datenschutz) ------------------------------ */
.page { max-width: 760px; }
.page h1 {
  margin: 0 0 24px; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 5vw, 42px); line-height: 1.14;
  letter-spacing: -0.02em; color: var(--text-heading); text-wrap: pretty;
}
.page h2 {
  margin: 36px 0 12px; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(22px, 3.4vw, 28px); line-height: 1.25;
  letter-spacing: -0.01em; color: var(--text-heading);
}
.page h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; color: var(--text-heading); }
.page p, .page li { font-size: 16px; line-height: 1.7; color: var(--text); }
.page p { margin: 0 0 12px; }
.page ul, .page ol { margin: 0 0 12px; padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page a { text-decoration: underline; }
.page dl { margin: 0 0 12px; }
.page dt { font-size: 15px; font-weight: 600; color: var(--text-heading); margin-top: 12px; }
.page dd { margin: 4px 0 0; font-size: 16px; line-height: 1.7; color: var(--text); }
.page__lead { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-bottom: 24px; }
.page__meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 13px; line-height: 1.6; color: var(--text-meta); }
.callout {
  margin: 0 0 20px; padding: 16px 18px;
  background: var(--surface-soft); border: 1px solid var(--accent-border); border-radius: 12px;
}
.callout p:last-child { margin-bottom: 0; }
.placeholder {
  background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 4px;
  padding: 1px 6px; color: var(--warn-text); font-size: .95em;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--accent-border); }
.site-footer__top {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(36px, 5vw, 44px) var(--pad-x);
  display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 48px); align-items: flex-start;
}
.site-footer__brand { flex: 1 1 260px; min-width: 0; }
.site-footer__brand .brand { margin-bottom: 12px; gap: 8px; }
.site-footer__brand .wordmark__psy,
.site-footer__brand .wordmark__luna { font-size: 24px; }
.site-footer__brand .wordmark__luna { -webkit-text-stroke: 0; }
.site-footer__tagline { margin: 0; font-size: 13px; line-height: 1.6; color: var(--accent-dark); max-width: 320px; }
.site-footer__col { flex: 1 1 150px; min-width: 140px; display: flex; flex-direction: column; gap: 8px; }
.site-footer__col h2 {
  margin: 0 0 4px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.site-footer__col a { font-size: 14px; color: var(--accent-dark); }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__bottom { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x) 32px; }
.site-footer__bottom p { margin: 0; font-size: 12px; color: var(--footer-meta); }
.site-footer__bottom p + p { margin-top: 6px; font-size: 11px; line-height: 1.5; color: var(--footer-fine); }
.site-footer__attrib { margin-top: 6px !important; font-size: 11px !important; line-height: 1.5; color: var(--footer-fine) !important; }
.site-footer__attrib a { color: var(--footer-meta); text-decoration: underline; }

/* ===========================================================================
 * Breakpoint 1024px -- der Layout-Umschaltpunkt aus dem Handoff.
 * =========================================================================== */
@media (min-width: 1024px) {
  /* .shot--hero: Rahmen der Kopf-Aufnahme auf /funktionen/kalender/. */
  .shot--hero { max-width: 620px; }

  .stage-arrow { display: block; }

  .price-card__aside {
    border-top: 0; border-left: 1px solid var(--border-light);
    padding-top: 0; padding-left: 48px;
  }
}

/* ===========================================================================
 * Unterseiten (Artikel) -- gemeinsame Bausteine fuer /funktionen/* und
 * /sicherheit/. Seitenspezifisches gehoert in /assets/css/pages/<slug>.css,
 * NICHT hierher (docs/unterseiten.md).
 * =========================================================================== */

/* --- Brotkrumen ---------------------------------------------------------- */
.crumbs { max-width: var(--container); margin: 0 auto; padding: 18px var(--pad-x) 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-meta); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--accent-line); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text-strong); }

/* --- Artikel-Kopf -------------------------------------------------------- */
.art-hero {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--pad-x) clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); align-items: center;
}
.art-hero__text { min-width: 0; }
.art-hero .h1 { font-size: clamp(32px, 5.6vw, 50px); }
.art-hero__lead { margin: 0 0 22px; font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--text); text-wrap: pretty; max-width: 640px; }
.art-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.art-hero__figure { min-width: 0; }

/* Status-Hinweis fuer Funktionen, die noch nicht live sind. */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 18px; padding: 4px 11px; border-radius: 9999px;
  font-size: 12px; font-weight: 500; line-height: 1.5;
  background: var(--accent-fill-soft); border: 1px solid var(--accent-border); color: var(--accent-deep);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-mid); }
.status--soon::before { background: var(--warn-icon); }

/* "Auf einen Blick" -- die Kernaussagen als Liste (fuer Menschen und Agenten). */
.keyfacts {
  margin: 0 0 26px; padding: 18px 20px;
  background: var(--surface-soft); border: 1px solid var(--accent-border); border-radius: 12px;
}
.keyfacts h2 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-family: var(--font-body); }
.keyfacts ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.keyfacts li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.55; color: var(--text-strong); }
.keyfacts li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* --- Inhaltsverzeichnis -------------------------------------------------- */
.toc { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: var(--bg-tint); }
.toc__inner { max-width: var(--container); margin: 0 auto; padding: 14px var(--pad-x); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.toc__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.toc a { font-size: 14px; color: var(--text); }
.toc a:hover { color: var(--accent); }

/* --- Artikel-Abschnitte -------------------------------------------------- */
.art-section { max-width: var(--container); margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--pad-x) 0; }
.art-section:last-of-type { padding-bottom: clamp(44px, 6vw, 72px); }
.art-band { background: var(--bg-tint); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding-bottom: clamp(44px, 6vw, 72px); margin-top: clamp(44px, 6vw, 72px); }
.art-band > .art-section:first-child { padding-top: clamp(44px, 6vw, 72px); }

.art-part {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.art-part svg { color: var(--accent); }

.prose { max-width: 720px; }
.prose > * + * { margin-top: 14px; }
.prose h2, .art-section > h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(26px, 4vw, 36px); line-height: 1.18; letter-spacing: -0.015em;
  color: var(--text-heading); text-wrap: pretty; margin: 0 0 16px;
}
.prose h3 { margin-top: 30px; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--text-heading); }
.prose h2 + h3 { margin-top: 18px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 600; color: var(--text-heading); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code, .specs code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--accent-fill-soft); border: 1px solid var(--accent-border-s1); border-radius: 5px; padding: 1px 5px; color: var(--accent-deep); }

/* Text + Bild nebeneinander (ab 1024px), sonst untereinander. */
.duo { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.duo > * { min-width: 0; }

/* --- Abbildungen --------------------------------------------------------- */
.figure { margin: 28px 0 0; min-width: 0; }
.duo .figure { margin-top: 0; }
.figure .shot { box-shadow: var(--shadow-shot); }
.figure figcaption { margin: 10px 2px 0; font-size: 13px; line-height: 1.5; color: var(--text-meta); }
.figure--wide { max-width: 100%; }
/* Rahmen fuer Diagramme und nachgebaute Oberflaechen-Ausschnitte. */
.diagram {
  background: var(--surface-soft); border: 1px solid var(--accent-border); border-radius: 14px;
  padding: clamp(18px, 3vw, 32px); overflow: hidden;
}
.diagram svg { width: 100%; height: auto; }
.diagram--white { background: #fff; }

/* --- Nachgebaute Oberflaeche (Mock) -------------------------------------- */
.mock {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-mail); overflow: hidden; min-width: 0;
}
.mock__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.mock__title { font-size: 14px; font-weight: 600; color: var(--text-heading); }
.mock__meta { margin-left: auto; font-size: 12px; color: var(--text-meta); }
.mock__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mock__label { margin: 0; font-size: 12px; color: var(--text-muted); }
.mock__field { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--text-strong); }
.mock__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 13px; color: var(--text-strong); }
.mock__row--accent { border-color: var(--accent-border); background: var(--accent-fill-soft); }
.mock__row > .push { margin-left: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  font-size: 12px; line-height: 1.4; border-radius: 9999px; padding: 2px 9px;
  background: #f9fafb; border: 1px solid var(--border); color: var(--text-strong);
}
.chip--accent { background: var(--accent-fill); border-color: var(--accent-border); color: var(--accent-deep); }
.chip--warn { background: var(--warn-bg); border-color: var(--warn-border-hi); color: var(--warn-text); }
.chip--muted { color: var(--text-muted); }
.mock__btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  background: var(--accent-fill); border: 1px solid var(--accent-border); color: var(--accent);
  padding: 7px 14px; border-radius: 8px;
}
.mock__btn--ghost { background: #fff; border-color: var(--border); color: var(--text); }
.skeleton { display: flex; flex-direction: column; gap: 7px; }
.skeleton span { display: block; height: 8px; border-radius: 9999px; background: var(--border-light); }
.skeleton .w40 { width: 40%; } .skeleton .w60 { width: 60%; } .skeleton .w75 { width: 75%; } .skeleton .w90 { width: 90%; }

/* --- Ablauf in Schritten ------------------------------------------------- */
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 18px 20px 18px 62px; background: #fff;
  border: 1px solid var(--accent-border-s1); border-radius: 12px;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 18px; top: 17px;
  width: 28px; height: 28px; border-radius: 9999px;
  background: var(--accent-fill); border: 1px solid var(--accent-border); color: var(--accent);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--text-heading); }
.steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* --- Kacheln ------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 26px; }
.card {
  min-width: 0; padding: 20px; background: var(--surface-soft);
  border: 1px solid var(--accent-border-s1); border-radius: 12px;
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px; border-radius: 9px;
  background: var(--accent-fill); color: var(--accent);
}
.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--text-heading); }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.art-band .card, .art-band .steps > li { background: #fff; }

/* --- Gegenueberstellung (z. B. zwei Modi) -------------------------------- */
.compare { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
.compare__col { min-width: 0; padding: 22px; background: #fff; border: 1px solid var(--accent-border); border-radius: 12px; }
.compare__col h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--text-heading); }
.compare__tag { margin: 0 0 12px; font-size: 13px; color: var(--accent); }
.compare__col ul { margin: 0; padding-left: 20px; }
.compare__col li { font-size: 15px; line-height: 1.6; color: var(--text); }
.compare__col li + li { margin-top: 6px; }

/* --- Hinweis-Kasten ------------------------------------------------------ */
.callout-box {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px;
  padding: 16px 18px; border-radius: 12px;
  background: var(--accent-fill-soft); border: 1px solid var(--accent-border);
}
.callout-box > svg { flex: none; margin-top: 2px; color: var(--accent); }
.callout-box p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--accent-deep); }
.callout-box p + p { margin-top: 6px; }
.callout-box--warn { background: var(--warn-bg); border-color: var(--warn-border); }
.callout-box--warn > svg { color: var(--warn-icon); }
.callout-box--warn p { color: var(--warn-text); }

/* --- Technik-Teil ------------------------------------------------------- */
.specs { margin: 26px 0 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--accent-border); max-width: 900px; }
.specs > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--accent-border-s1); }
.specs dt { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-heading); }
.specs dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }

/* --- Zusammenfassung + CTA ----------------------------------------------- */
.summary {
  display: grid; grid-template-columns: 1fr; gap: clamp(22px, 4vw, 44px); align-items: center;
  padding: clamp(24px, 4vw, 44px); border: 1px solid var(--accent-border); border-radius: 16px; background: #fff;
}
.summary > * { min-width: 0; }
.summary h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; color: var(--text-heading); }
.summary ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.summary li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.55; color: var(--text-strong); }
.summary li::before {
  content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.summary__cta { text-align: center; padding: 22px; border-radius: 12px; background: var(--bg-tint); border: 1px solid var(--accent-border-s1); }
.summary__cta p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.summary__cta .btn { width: 100%; }
.summary__cta .summary__fine { margin: 12px 0 0; font-size: 13px; color: var(--text-meta); }

/* --- Weiterlesen --------------------------------------------------------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 20px; }
.related a {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 16px 18px; border: 1px solid var(--accent-border-s1); border-radius: 12px; background: #fff;
  color: inherit; transition: border-color .15s ease;
}
.related a:hover { border-color: var(--accent-border); color: inherit; }
.related b { font-size: 15px; font-weight: 600; color: var(--text-heading); }
.related b::after { content: " →"; color: var(--accent); }
.related span { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* --- Autor:in ------------------------------------------------------------ */
.author {
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start;
  padding: clamp(22px, 3vw, 32px); border-radius: 16px;
  background: var(--surface-soft); border: 1px solid var(--accent-border);
}
.author__photo { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 1px solid var(--accent-border); background: var(--accent-fill); }
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author__label { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.author__name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--text-heading); }
.author__role { margin: 2px 0 14px; font-size: 14px; color: var(--text-muted); }
.author__bio p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.author__bio p + p { margin-top: 10px; }
.author__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.author__links a { text-decoration: underline; text-underline-offset: 2px; }

/* --- Seiten-FAQ ---------------------------------------------------------- */
.art-section .faq { margin-top: 18px; }

/* Abstand, wenn Bausteine direkt untereinander im Abschnitt stehen. */
.art-section > .duo, .art-section > .figure, .art-section > .prose + .prose { margin-top: 32px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.compare + .prose, .cards + .prose, .steps + .prose, .callout-box + .prose, .duo + .prose { margin-top: 32px; }
/* Diagramm in zwei Fassungen: breit ab 1024px, sonst schmal. */
.dia-wide { display: none; }
.dia-narrow { display: block; }

@media (min-width: 720px) {
  .steps--2, .steps--4 { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr 1fr; }
  .specs > div { grid-template-columns: 240px 1fr; gap: 24px; }
  .author { grid-template-columns: 112px 1fr; gap: 28px; }
}
@media (min-width: 1024px) {
  .art-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .art-hero--text { grid-template-columns: minmax(0, 820px); }
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .duo--wide-figure { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .duo--flip > :first-child { order: 2; }
  .dia-wide { display: block; }
  .dia-narrow { display: none; }
  /* Gespiegelt + breites Bild: das Bild steht links und bekommt die breite Spalte. */
  .duo--flip.duo--wide-figure { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
  .summary { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
