/*
 * daniel-marx.net, Stylesheet
 *
 * Design-Lesung: persönliche Dienstleister-Seite für Inhaber:innen kleiner Betriebe und Vereinsvorstände
 * in Ludwigshafen, ruhig, direkt und gut lesbar. Dials: Variance 5, Motion 3, Density 4.
 *
 * Farben: Tinte = Hintergrund des Portraitfotos (#202b34), kühles Papier statt Creme,
 * genau eine Akzentfarbe (Signalorange) für Handlungen. Hell und dunkel über prefers-color-scheme.
 * Schrift: Atkinson Hyperlegible Next (Braille Institute, OFL), lokal, für alles.
 * Form (Variante persönlich): Flächen, Karten und Bilder 16px, Eingabefelder 10px,
 * Buttons, Chips und Schnellkontakt rund (Pille). Portrait-Ausschnitte immer kreisrund.
 */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f4f3;
  --surface: #fafbfa;
  --ink: #1c2630;
  --muted: #4e5a63;
  --line: #d3d9db;
  --accent: #a93d0c;
  --accent-hover: #8c320a;
  --on-accent: #ffffff;
  --deep: #202b34;
  --on-deep: #e9eef0;
  --on-deep-muted: #aebbc4;
  --accent-on-deep: #f08a4b;
  --focus: #a93d0c;
  --ok: #2f6b4f;

  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px;
  --r-field: 10px;
  --photo: #202b34; /* Hintergrund des Portraitfotos, in beiden Modi gleich */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --shadow: 0 1px 2px rgb(28 38 48 / .06), 0 8px 24px rgb(28 38 48 / .08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121820;
    --surface: #1a222c;
    --ink: #e6ebee;
    --muted: #a3afb8;
    --line: #2c3742;
    --accent: #f29560;
    --accent-hover: #f6ad83;
    --on-accent: #121820;
    --deep: #222e3a;
    --on-deep: #e9eef0;
    --on-deep-muted: #aebbc4;
    --accent-on-deep: #f29560;
    --focus: #f29560;
    --ok: #7cc4a0;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
  }
}

/* ── Grundlagen ───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.6rem + 3vw, 3.9rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.7rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: .75rem 1rem; border-radius: var(--r); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.lead { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.35rem); color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.measure { max-width: 42rem; }

/* ── Buttons & Links ─────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border: 2px solid transparent; border-radius: var(--r);
  font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  font-weight: 700; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em;
}
.text-link:hover { color: var(--accent-hover); }

/* ── Staging-Hinweis ─────────────────────────────────── */

.staging-bar { background: #ffd23f; color: #1c2630; font-size: 1rem; }
.staging-bar-inner {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; justify-content: space-between;
  padding-block: .6rem;
}
.staging-bar a { color: #1c2630; font-weight: 700; }
.staging-bar a:hover { color: #1c2630; }
.staging-bar :focus-visible { outline-color: #1c2630; }

/* ── Kopf & Navigation ───────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-head { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); }
}
.site-head-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; font-weight: 750; font-size: 1.15rem; line-height: 1.15; letter-spacing: -0.01em; }
.brand-text span { font-weight: 400; font-size: .85rem; color: var(--muted); letter-spacing: 0; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; }
.site-nav ul a { text-decoration: none; font-weight: 600; padding-block: .5rem; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--ink); border-bottom-color: var(--line); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .site-head-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1.25rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--accent); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .brand-text span { display: none; }
}

/* ── Hero (Startseite) ───────────────────────────────── */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-kicker { font-weight: 600; color: var(--muted); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.5rem); max-width: 17em; }
.hero .lead { margin-top: 1.5rem; }
.hero .btn-row { margin-top: 2.25rem; }

.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--r); background: var(--deep);
}
.hero-photo figcaption {
  margin-top: .85rem; font-size: 1rem; color: var(--muted);
}
.hero-photo figcaption strong { color: var(--ink); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 22rem; }
  .hero-photo img { aspect-ratio: 4 / 4.2; }
}

/* ── Faktenleiste ────────────────────────────────────── */

.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul {
  list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem 2rem; padding-block: 1.5rem;
}
.facts li { display: flex; gap: .65rem; align-items: flex-start; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.facts .icon { color: var(--accent); margin-top: .05rem; }
@media (max-width: 1000px) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts ul { grid-template-columns: 1fr; } }

/* ── Leistungs-Komposition (Startseite) ──────────────── */

.services-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.services {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}
.svc { border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); }
.svc h3 { margin-bottom: .75rem; }
.svc p { color: var(--muted); }
.svc ul { list-style: none; margin-top: 1.25rem; display: grid; gap: .5rem; }
.svc li { display: flex; gap: .55rem; align-items: flex-start; font-size: 1.02rem; }
.svc li .icon { width: 1.1em; height: 1.1em; margin-top: .25rem; color: var(--accent); }

.svc-main {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: start;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}
.svc-main h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.svc-main p { color: var(--ink); max-width: 34rem; }
.svc-main ul { margin-top: 0; }
.svc-main .text-link { display: inline-block; margin-top: 1.25rem; }
@media (max-width: 860px) { .svc-main { grid-template-columns: 1fr; } }

.svc-deep { background: var(--deep); color: var(--on-deep); }
.svc-deep p { color: var(--on-deep-muted); }
.svc-deep li .icon { color: var(--accent-on-deep); }
.svc-deep .svc-tag { color: var(--accent-on-deep); }

.svc-plain { border: 1px solid var(--line); }
.svc-tag { display: block; font-weight: 700; color: var(--accent); margin-bottom: .35rem; font-size: 1rem; }

@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ── Direkt mit mir ──────────────────────────────────── */

.direct-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.direct-call { display: block; text-decoration: none; margin-top: 1.5rem; }
.direct-call .label { display: block; font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-bottom: .2rem; }
.direct-call .number {
  display: block; font-size: clamp(2.3rem, 1rem + 5.4vw, 4.9rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.direct-call:hover .number { color: var(--accent); }
.direct-alt { margin-top: 1.25rem; color: var(--muted); }
.direct-alt a { color: var(--ink); font-weight: 600; }

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.points h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.points p { color: var(--muted); font-size: 1.02rem; }

@media (max-width: 900px) { .direct-grid { grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 520px) { .points { grid-template-columns: 1fr; } }

/* ── Ablauf (nummerierte Schritte, echte Reihenfolge) ── */

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step); display: block;
  font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: .85rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.steps p { font-size: 1rem; color: var(--muted); }
.steps-foot { margin-top: 2.25rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ── Vereine ─────────────────────────────────────────── */

.club { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.club .lead { margin-top: 1.25rem; }
.checklist { list-style: none; display: grid; gap: .7rem; margin-top: 1.75rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: .2rem; width: 1.15em; height: 1.15em; }
.club .btn-row { margin-top: 2rem; }

.status-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); overflow: hidden; }
.status-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; border-bottom: 1px solid var(--line); }
.status-body { padding: 1.5rem clamp(1.25rem, 3vw, 1.75rem) 1.75rem; }
.status-body h3 { font-size: 1.2rem; }
.status-body > p { color: var(--muted); font-size: 1rem; margin-top: .25rem; }
.status-list { list-style: none; margin-top: 1.25rem; display: grid; gap: .1rem; }
.status-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.status-list li:last-child { border-bottom: 0; }
.status-ok { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--ok); white-space: nowrap; }
.status-ok .icon { width: 1em; height: 1em; }

@media (max-width: 860px) { .club { grid-template-columns: 1fr; } }

/* ── Referenzen ──────────────────────────────────────── */

.ref-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.ref-teaser { text-decoration: none; display: block; }
.ref-teaser img { border-radius: var(--r); border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .25s ease; }
.ref-teaser:hover img { transform: translateY(-3px); }
.ref-teaser h3 { margin-top: 1.1rem; font-size: 1.25rem; }
.ref-teaser:hover h3 { color: var(--accent); }
.ref-teaser p { color: var(--muted); font-size: 1rem; margin-top: .3rem; }
.ref-teaser .kind { font-weight: 700; color: var(--ink); }
@media (max-width: 760px) { .ref-pair { grid-template-columns: 1fr; } }

/* ── Abschluss-Panel ─────────────────────────────────── */

.closer {
  background: var(--deep); color: var(--on-deep); border-radius: var(--r);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center;
}
.closer p { color: var(--on-deep-muted); margin-top: .9rem; max-width: 36rem; }
.closer .btn-primary { background: var(--accent-on-deep); color: #1c2630; }
.closer .btn-primary:hover { background: #f6ad83; color: #1c2630; }
.closer .btn-ghost { border-color: var(--on-deep); color: var(--on-deep); }
.closer .btn-ghost:hover { background: var(--on-deep); color: var(--deep); }
.closer :focus-visible { outline-color: var(--accent-on-deep); }
.closer .btn-row { justify-content: flex-end; }
@media (max-width: 760px) {
  .closer { grid-template-columns: 1fr; }
  .closer .btn-row { justify-content: flex-start; }
}

/* ── Unterseiten: Kopf ───────────────────────────────── */

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 1.25rem; }

/* ── Leistungen ──────────────────────────────────────── */

.service-block {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line);
}
.service-block h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin-bottom: 1rem; }
.service-block .intro p { color: var(--muted); }
.service-block .intro .btn-row { margin-top: 1.75rem; }
.service-block figure { margin: 1.75rem 0 0; }
.service-block figure img { border-radius: var(--r); border: 1px solid var(--line); }
.service-block figcaption { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.inclusion h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.inclusion ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.5rem; }
.inclusion li { display: flex; gap: .55rem; align-items: flex-start; font-size: 1.02rem; }
.inclusion .icon { color: var(--accent); margin-top: .25rem; width: 1.1em; height: 1.1em; }
.inclusion-panel { background: var(--deep); color: var(--on-deep); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); }
.inclusion-panel .icon { color: var(--accent-on-deep); }
.service-block-wide { grid-template-columns: 1fr; gap: 2rem; }
.service-block-wide .intro { max-width: 44rem; }
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.outcomes > div { border-top: 3px solid var(--accent); padding-top: 1rem; }
.outcomes h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.outcomes p { color: var(--muted); font-size: 1.02rem; }
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .outcomes { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .inclusion ul { grid-template-columns: 1fr; } }

/* ── Prozess ─────────────────────────────────────────── */

.timeline { list-style: none; counter-reset: step; margin-top: 1rem; }
.timeline > li {
  counter-increment: step;
  display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 15rem); gap: 1rem 2rem;
  padding-block: 2rem; border-top: 1px solid var(--line);
}
.timeline > li::before {
  content: counter(step); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--accent);
}
.timeline h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.timeline p { color: var(--muted); }
.timeline ul { list-style: none; margin-top: 1rem; display: grid; gap: .45rem; }
.timeline ul li { display: flex; gap: .5rem; align-items: flex-start; font-size: 1.02rem; }
.timeline ul .icon { color: var(--accent); margin-top: .25rem; width: 1.05em; height: 1.05em; }
.timeline .note { align-self: start; border-left: 3px solid var(--line); padding-left: 1rem; font-size: 1rem; color: var(--muted); }
.timeline .note strong { display: block; color: var(--ink); }
.timeline .note-strong { border-left-color: var(--accent); }
@media (max-width: 860px) {
  .timeline > li { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .timeline > li::before { font-size: 2.2rem; }
  .timeline .note { grid-column: 2; }
}

.durations { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.durations div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.durations dt { font-weight: 700; }
.durations dd { margin: .5rem 0 0; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.durations dd span { display: block; font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: .3rem; }
@media (max-width: 760px) { .durations { grid-template-columns: 1fr; } }

/* ── Angebote ────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; }
.plan-for { font-weight: 700; color: var(--accent); font-size: 1rem; }
.plan h2 { font-size: 1.5rem; margin-top: .3rem; }
.plan-price { margin-top: 1.25rem; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-terms { color: var(--muted); font-size: 1rem; margin-top: .45rem; }
.plan ul { list-style: none; margin: 1.5rem 0 1.75rem; display: grid; gap: .55rem; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; font-size: 1.02rem; }
.plan li .icon { color: var(--accent); margin-top: .25rem; width: 1.05em; height: 1.05em; }
.plan li.is-not { color: var(--muted); }
.plan li.is-not .icon { color: var(--muted); }
.plan .btn { margin-top: auto; }
.plan-featured { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.plan-featured .plan-for { color: var(--accent-on-deep); }
.plan-featured .plan-price small, .plan-featured .plan-terms { color: var(--on-deep-muted); }
.plan-featured li .icon { color: var(--accent-on-deep); }
.plan-featured .btn-primary { background: var(--accent-on-deep); color: #1c2630; }
.plan-featured .btn-primary:hover { background: #f6ad83; color: #1c2630; }
.plan-featured :focus-visible { outline-color: var(--accent-on-deep); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 34rem; } }

.tax-note { margin-top: 1.25rem; font-size: 1rem; color: var(--muted); }

.budget {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 4rem;
  border-top: 3px solid var(--ink); padding-top: 2rem;
}
.budget ul { list-style: none; display: grid; gap: .7rem; }
.budget li { display: flex; gap: .6rem; align-items: flex-start; }
.budget .icon { color: var(--accent); margin-top: .2rem; width: 1.1em; height: 1.1em; }
@media (max-width: 860px) { .budget { grid-template-columns: 1fr; } }

.faq { margin-top: 2rem; max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.15rem 0; font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: .7rem; height: .7rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 0 1.4rem; color: var(--muted); max-width: 44rem; }

/* ── Referenzen (Detail) ─────────────────────────────── */

.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.case:nth-of-type(even) .case-media { order: 2; }
.case-media img { border-radius: var(--r); border: 1px solid var(--line); width: 100%; }
.case-meta { font-weight: 700; color: var(--accent); }
.case h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-top: .35rem; }
.case-place { color: var(--muted); margin-top: .35rem; }
.case-story { margin-top: 1.25rem; }
.case-story p { color: var(--muted); }
.case-story strong { color: var(--ink); }
.case h3 { font-size: 1.05rem; margin-top: 1.75rem; margin-bottom: .75rem; }
.case .checklist { margin-top: 0; gap: .5rem; }
.case .checklist li { font-size: 1.02rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tags li { border: 1px solid var(--line); border-radius: var(--r); padding: .25rem .65rem; font-size: .95rem; color: var(--muted); }
.case .text-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.5rem; }
.case .text-link .icon { width: 1.05em; height: 1.05em; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .case-media { order: 0; }
}

/* ── Kontakt ─────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: var(--section); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { order: -1; } }

.contact-aside dl { margin: 0; display: grid; gap: 1.25rem; }
.contact-aside dl div { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .1rem .8rem; }
.contact-aside dt { grid-column: 2; font-size: .95rem; color: var(--muted); font-weight: 600; }
.contact-aside dd { grid-column: 2; margin: 0; font-weight: 700; }
.contact-aside dd.plain { font-weight: 400; }
.contact-aside .icon { grid-row: 1 / span 2; color: var(--accent); margin-top: .15rem; }
.contact-aside .support { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }

.form { display: grid; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .field legend, .field .label { font-weight: 700; font-size: 1.02rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: .95rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid #8a959d; border-radius: var(--r);
  padding: .75rem .9rem; min-height: 48px;
}
@media (prefers-color-scheme: dark) {
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { border-color: #6b7883; }
}
.field textarea { min-height: 13rem; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-weight: 700; font-size: .98rem; }
@media (prefers-color-scheme: dark) {
  .field [aria-invalid="true"] { border-color: #ff8a80; }
  .field-error { color: #ff9e95; }
}
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--accent); flex-shrink: 0; }

.assist { border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; background: var(--surface); display: grid; gap: 1.1rem; }
.assist[hidden] { display: none; }
.assist-intro { font-size: 1rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-size: .98rem; text-align: left; line-height: 1.3;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--r); padding: .55rem .8rem; min-height: 44px; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); font-weight: 700; }

.notice { border-radius: var(--r); padding: 1.1rem 1.25rem; border-left: 4px solid; background: var(--surface); }
.notice h2 { font-size: 1.15rem; margin-bottom: .35rem; }
.notice ul { margin-top: .5rem; padding-left: 1.2rem; }
.notice-ok { border-color: var(--ok); }
.notice-error { border-color: #b3261e; }
@media (prefers-color-scheme: dark) { .notice-error { border-color: #ff8a80; } }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Rechtstexte ─────────────────────────────────────── */

.legal { max-width: 46rem; padding-bottom: var(--section); }
.legal h2 { font-size: 1.4rem; margin: 2.5rem 0 .75rem; }
.legal h3 { font-size: 1.12rem; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.25rem; margin-top: .5rem; display: grid; gap: .3rem; }
.legal address { font-style: normal; }
.legal .stand { color: var(--muted); margin-top: .75rem; }

/* ── Fuß ─────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: var(--section); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 1rem; }
.site-foot.no-gap, main + .site-foot.no-gap { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.foot-name { font-weight: 750; font-size: 1.2rem; margin-bottom: .6rem; }
.foot-brand p { color: var(--muted); max-width: 26rem; }
.foot-place { display: flex; gap: .45rem; align-items: center; margin-top: 1rem; }
.foot-place .icon { width: 1.1em; height: 1.1em; color: var(--accent); }
.foot-col h2 { font-size: 1rem; margin-bottom: .8rem; letter-spacing: 0; }
.foot-col ul { list-style: none; display: grid; gap: .45rem; }
.foot-col a { text-decoration: none; color: var(--muted); }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.foot-bottom p + p { margin-top: 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ── Schnellkontakt ──────────────────────────────────── */

.quick-contact {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: flex; flex-direction: column; gap: .5rem;
}
.quick-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 52px; height: 52px; border-radius: var(--r);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; font-weight: 700; font-size: 1rem;
}
.quick-btn .icon { width: 24px; height: 24px; }
.quick-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quick-btn:hover { color: var(--accent); border-color: var(--accent); }
.quick-btn-main { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.quick-btn-main:hover { background: var(--accent-hover); color: var(--on-accent); }

@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .quick-contact {
    left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: .5rem max(.5rem, env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left));
  }
  .quick-btn { flex: 1; width: auto; height: 48px; box-shadow: none; border: 0; background: transparent; }
  .quick-btn span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .quick-btn-main { background: var(--accent); }
}

/* ── Fehlerseite ─────────────────────────────────────── */

.fail { padding-block: 5rem; max-width: 40rem; }
.fail h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.fail-ref { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }

/* ── Variante persönlich ─────────────────────────────── */

.btn, .chip { border-radius: 999px; }
.btn { padding-inline: 1.5rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { border-radius: var(--r-field); }
.quick-btn { border-radius: 999px; }
.tags li { border-radius: 999px; }

picture:has(> .avatar) { display: block; flex-shrink: 0; }
.avatar {
  max-width: none;
  display: block; flex-shrink: 0; border-radius: 50%; object-fit: cover;
  background: var(--photo);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

/* Hero: das Foto steht in einer Fläche in seiner eigenen Hintergrundfarbe */
.hero { padding-block: clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem); }
.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); align-items: end;
  background-color: var(--photo);
  background-image: url("/assets/img/mark-deep.svg");
  background-repeat: no-repeat;
  background-size: clamp(320px, 42vw, 620px);
  background-position: -8% 135%;
  border-radius: calc(var(--r) * 1.5);
  color: var(--on-deep);
  min-height: clamp(520px, 62vh, 640px);
}
.hero-copy { align-self: center; padding: clamp(2rem, 5vw, 4.5rem); position: relative; z-index: 1; }
.hero-panel h1 { font-size: clamp(2.2rem, 1.4rem + 2.3vw, 3.2rem); max-width: 18em; }
.hero-panel .hero-kicker { color: var(--on-deep-muted); }
.hero-panel .lead { color: var(--on-deep-muted); }
.hero-panel .btn-primary { background: var(--accent-on-deep); color: #1c2630; }
.hero-panel .btn-primary:hover { background: #f6ad83; color: #1c2630; }
.hero-panel .btn-ghost { border-color: var(--on-deep); color: var(--on-deep); }
.hero-panel .btn-ghost:hover { background: var(--on-deep); color: var(--photo); }
.hero-panel :focus-visible { outline-color: var(--accent-on-deep); }

.hero-panel .hero-photo { max-width: none; align-self: end; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero-panel .hero-photo picture { display: block; width: 100%; max-width: 460px; }
.hero-panel .hero-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0;
  border-radius: 0; background: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%), linear-gradient(to right, transparent 0, #000 22%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%), linear-gradient(to right, transparent 0, #000 22%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-panel .hero-photo img { animation: hero-rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy { animation: hero-fade .6s ease-out .1s both; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 820px) {
  .hero-panel { grid-template-columns: 1fr; min-height: 0; background-position: 120% 105%; background-size: 300px; }
  .hero-copy { padding-bottom: 0; }
  .hero-panel .hero-photo picture { max-width: 300px; }
}

/* Faktenleiste: Symbole in getönten Kreisen */
.facts .icon {
  width: 2.25rem; height: 2.25rem; padding: .5rem; margin-top: -.3rem;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 13%, var(--surface));
}
.facts li { align-items: center; }

/* Telefonnummer mit Gesicht */
.direct-call { display: flex; align-items: center; gap: 1.25rem; }
.direct-call .avatar { width: clamp(52px, 5vw, 76px); height: clamp(52px, 5vw, 76px); }
.direct-call .number { font-size: clamp(2.1rem, .9rem + 3.9vw, 4.1rem); }

/* Abschlussflächen mit Gesicht und Logo-Zeichen */
.closer {
  position: relative; overflow: hidden;
  background-color: var(--photo);
  background-image: url("/assets/img/mark-deep.svg");
  background-repeat: no-repeat; background-size: 360px; background-position: 102% 170%;
  border-radius: calc(var(--r) * 1.5);
}
.closer-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; align-items: center; }
.closer-text picture { grid-row: span 2; align-self: start; }
.closer-text .avatar { box-shadow: 0 0 0 3px var(--photo), 0 0 0 5px var(--accent-on-deep); }
.closer-text p { grid-column: 2; }
@media (max-width: 520px) { .closer-text { grid-template-columns: 1fr; row-gap: 1rem; } .closer-text p { grid-column: 1; } }

/* Kontaktseite: wer antwortet */
.aside-who { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.aside-who h2 { font-size: 1.35rem; }

.svc-deep, .inclusion-panel, .plan-featured { background-color: var(--photo); }

/* ── Bewegung nur, wenn erwünscht ────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .quick-contact, .staging-bar, .site-foot { display: none; }
  body { background: #fff; color: #000; }
}
