/* ==========================================================================
   trj.studio – Stylesheet
   Aufbau: 1 Fonts · 2 Tokens · 3 Reset/Basis · 4 Layout · 5 Komponenten
           6 Sektionen · 7 Demo-Mockups · 8 Rechtsseiten · 9 Responsive · 10 Motion
   ========================================================================== */

/* 1 · Fonts (lokal gehostet, DSGVO-konform) -------------------------------- */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* 2 · Design-Tokens --------------------------------------------------------- */
:root {
  /* Farben */
  --paper:      #f2f5f3;   /* Seitenhintergrund, kühles Papierweiß */
  --surface:    #ffffff;   /* Karten, Formularfelder */
  --tint:       #e6edea;   /* abgesetzte Sektionen */
  --ink:        #0f2a2e;   /* Text, dunkle Sektionen (Petrol) */
  --ink-soft:   #47605f;   /* Sekundärtext */
  --line:       #cfdad6;   /* Linien */
  --heide:      #6b3fa0;   /* Akzent: Heide-Violett */
  --heide-deep: #4f2b7a;   /* Hover */
  --heide-soft: #ece4f6;   /* Akzentflächen */
  --on-ink:     #e9f0ee;   /* Text auf dunklem Grund */
  --on-ink-soft:#a9bdba;

  /* Typografie */
  --font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-hero: clamp(2.35rem, 1.5rem + 5vw, 5.75rem);

  /* Abstände & Form */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 76rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --r-s: 6px;
  --r-m: 14px;
  --r-l: 22px;
  --shadow: 0 1px 0 rgba(15, 42, 46, 0.04), 0 24px 48px -24px rgba(15, 42, 46, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3 · Reset & Basis --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-variation-settings: "opsz" 16;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--heide); }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.1; font-weight: 700; text-wrap: balance; }
h2 {
  font-size: var(--fs-xl);
  font-stretch: 88%;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.015em;
}
h3 { font-size: var(--fs-md); font-variation-settings: "opsz" 24; letter-spacing: -0.01em; }
p { max-width: 64ch; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--heide); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; 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(--on-ink); padding: 0.75rem 1rem; border-radius: var(--r-s);
}
.skip-link:focus { top: 1rem; color: var(--on-ink); }

/* 4 · Layout ---------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tint { background: var(--tint); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-ink a:hover { color: #c9b2ea; }

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 44rem; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-md); line-height: 1.5; }

/* 5 · Komponenten ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  border: 2px solid var(--heide); border-radius: 999px;
  background: var(--heide); color: #fff;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--heide-deep); border-color: var(--heide-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-light { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.9375rem; }

.tick-list { display: grid; gap: 0.55rem; }
.tick-list li { position: relative; padding-left: 1.6rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.85rem; height: 0.45rem;
  border-left: 2px solid var(--heide); border-bottom: 2px solid var(--heide);
  transform: rotate(-45deg);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 245, 243, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }

.logo {
  font-size: 1.5rem; font-weight: 800; font-stretch: 80%; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 48; text-decoration: none; color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-dot { color: var(--heide); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav ul a { text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.site-nav ul a:hover { color: var(--heide); }

.nav-toggle { display: none; }

/* 6 · Sektionen ------------------------------------------------------------- */

/* Hero */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 5vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 720;
  font-stretch: 84%;
  font-variation-settings: "opsz" 96;
  line-height: 1;
  letter-spacing: -0.022em;
}
.hero-lead { margin-top: 1.75rem; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.hero-points li { display: flex; align-items: center; gap: 0.5rem; }
.hero-points li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--heide); }

/* Showcase */
.showcase { position: relative; }
.showcase::before {
  /* Heide-Fläche hinter dem Browser */
  content: ""; position: absolute; z-index: -1;
  inset: 12% -18% -10% 14%;
  background: var(--heide-soft);
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
}
.browser {
  background: var(--surface); border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.browser-bar {
  display: flex; align-items: center; gap: 1rem; padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line); background: #f7f9f8;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-url {
  flex: 1; max-width: 18rem; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--tint); color: var(--ink-soft); font-size: 0.8125rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-view { position: relative; aspect-ratio: 16 / 11; container-type: inline-size; }
.browser-view .demo { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s; }
.browser-view .demo.is-active { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }

.showcase-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.showcase-tabs button {
  padding: 0.45rem 0.95rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 0.875rem; font-weight: 500; color: var(--ink-soft);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.showcase-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.showcase-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.showcase-caption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--ink-soft); }

/* Leistungen */
/* Hauptleistung links über volle Höhe, Zusatzleistungen rechts gestapelt */
.services {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  border-top: 2px solid var(--ink);
}
.service { grid-column: 2; display: grid; gap: 0.6rem; align-content: start; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.service p { color: var(--ink-soft); }
.service-main {
  grid-column: 1; grid-row: 1 / span 4;
  gap: 1.25rem; padding-block: 2.25rem; border-bottom: 0;
}
.service-main h3 { font-size: var(--fs-lg); font-stretch: 85%; font-variation-settings: "opsz" 48; }
.service-main p { font-size: 1.125rem; }
.service-main .tick-list { margin-top: 0.5rem; padding: 1.5rem; border-radius: var(--r-m); background: var(--heide-soft); }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; counter-increment: step; padding-top: 3.75rem; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink);
  font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums;
}
.step::after {
  content: ""; position: absolute; top: 1.25rem; left: 3rem; right: -1rem;
  height: 2px; background: var(--line);
}
.step:last-child::after { display: none; }
.step:first-child::before { background: var(--heide); border-color: var(--heide); color: #fff; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.975rem; }

/* Arbeiten */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem); }
.work { display: grid; gap: 1rem; align-content: start; }
.work-frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); container-type: inline-size;
}
.work-meta h3 { margin-bottom: 0.25rem; }
.work-meta p { color: var(--ink-soft); font-size: 0.975rem; }

/* Arbeitsweise */
.principles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); }
.principles h2 { color: #fff; }
.principles-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.principles-list dt { font-size: var(--fs-md); font-weight: 650; margin-bottom: 0.5rem; color: #fff; }
.principles-list dt::before {
  content: ""; display: block; width: 2rem; height: 3px; margin-bottom: 1rem; background: #b897e3;
}
.principles-list dd { color: var(--on-ink-soft); }

/* Pakete */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2rem; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line);
}
.plan-for { color: var(--ink-soft); }
.plan .tick-list { margin-block: 0.5rem 1rem; }
.plan-price { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); font-weight: 650; }
.plan-featured { background: var(--heide-soft); border-color: transparent; }
.plan-featured .plan-price { border-top-color: rgba(107, 63, 160, 0.25); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-grid .section-head { position: sticky; top: 6rem; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.7rem; height: 0.7rem; margin-right: 0.25rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(15%) rotate(-135deg); }
.faq summary:hover { color: var(--heide); }
.faq details p { padding-bottom: 1.5rem; color: var(--ink-soft); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-intro h2 { color: #fff; }
.contact-intro > p { margin-top: 1.25rem; color: var(--on-ink-soft); font-size: var(--fs-md); line-height: 1.5; }
.contact-direct { display: grid; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(233, 240, 238, 0.15); }
.contact-direct li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.contact-direct span { color: var(--on-ink-soft); font-size: var(--fs-sm); padding-top: 0.15rem; }
.contact-direct a { text-decoration: none; font-weight: 500; }
.contact-direct a:hover { text-decoration: underline; }

.contact-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-l);
  background: rgba(233, 240, 238, 0.06); border: 1px solid rgba(233, 240, 238, 0.14);
}
.field { display: grid; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.optional { color: var(--on-ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.95); color: var(--ink);
  border: 2px solid transparent; transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #b897e3; }
.field [aria-invalid="true"] { border-color: #ff9c8a; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.field-check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--heide); }
.field-check label { font-weight: 400; color: var(--on-ink-soft); line-height: 1.5; }
.field-check a { color: var(--on-ink); }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-size: var(--fs-sm); color: var(--on-ink); }
.form-status.is-error { color: #ffb4a6; }
.form-status.is-success { color: #b9f0d2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-soft); font-size: var(--fs-sm); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-brand .logo { color: var(--on-ink); font-size: 1.5rem; }
.footer-brand p { margin-top: 0.75rem; max-width: 22rem; }
.footer-title { color: var(--on-ink); font-weight: 600; margin-bottom: 0.85rem; }
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.copyright { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(233, 240, 238, 0.12); }

/* 7 · Demo-Mockups (skalieren über Container-Einheiten) --------------------- */
.demo {
  --d-bg: #fff; --d-ink: #111; --d-acc: #888; --d-soft: #eee; --d-wdth: 100%; --d-wght: 700;
  display: flex; flex-direction: column; gap: 4cqw;
  padding: 3.2cqw 4.5cqw;
  background: var(--d-bg); color: var(--d-ink);
  font-size: 2cqw; line-height: 1.2;
}
.work-frame.demo { position: relative; height: 100%; }
.d-nav { display: flex; align-items: center; gap: 2.5cqw; font-size: 2.2cqw; }
.d-nav b { font-weight: 800; font-stretch: var(--d-wdth); margin-right: auto; letter-spacing: -0.01em; }
.d-nav span { width: 6cqw; height: 0.9cqw; border-radius: 1cqw; background: currentColor; opacity: 0.25; }
.d-nav em { font-style: normal; font-size: 1.8cqw; font-weight: 600; padding: 0.9cqw 2cqw; border-radius: 4cqw; background: var(--d-acc); color: var(--d-bg); }
.d-hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; align-items: center; }
.d-h { font-size: 6.4cqw; line-height: 0.98; font-weight: var(--d-wght); font-stretch: var(--d-wdth); letter-spacing: -0.03em; margin-bottom: 2.5cqw; max-width: none; }
.d-p { height: 1.1cqw; width: 85%; margin-bottom: 1.2cqw; border-radius: 1cqw; background: currentColor; opacity: 0.18; max-width: none; }
.d-p.short { width: 60%; }
.d-btn { display: inline-block; margin-top: 2cqw; padding: 1.3cqw 2.6cqw; border-radius: 0.8cqw; background: var(--d-acc); color: var(--d-bg); font-size: 1.8cqw; font-weight: 650; }
.d-img { height: 100%; max-height: 100%; border-radius: 1.5cqw; background: var(--d-soft); position: relative; overflow: hidden; }
.d-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5cqw; }
.d-row span { height: 7cqw; border-radius: 1.2cqw; background: var(--d-soft); }

/* Friseursalon: dunkel, elegant, schmal */
.demo-friseur { --d-bg: #1f1b1a; --d-ink: #f3e9e4; --d-acc: #e7b7a6; --d-soft: #3a302d; --d-wdth: 75%; --d-wght: 400; }
.demo-friseur .d-img-arch { border-radius: 30cqw 30cqw 1.5cqw 1.5cqw; background: linear-gradient(160deg, #6b4b41, #2f2523); }
.demo-friseur .d-btn { border-radius: 0; background: transparent; color: var(--d-acc); border: 1px solid var(--d-acc); }

/* Elektrobetrieb: kräftig, Signalgelb */
.demo-elektro { --d-bg: #0e1a3a; --d-ink: #ffffff; --d-acc: #ffd23f; --d-soft: #1d2c57; --d-wdth: 78%; --d-wght: 800; }
.demo-elektro .d-btn, .demo-elektro .d-nav em { color: #0e1a3a; border-radius: 0.4cqw; }
.demo-elektro .d-img-bolt { background: var(--d-acc); clip-path: polygon(48% 0, 20% 55%, 45% 55%, 34% 100%, 82% 38%, 55% 38%, 70% 0); border-radius: 0; }

/* Physiotherapie: ruhig, salbeigrün, rund */
.demo-physio { --d-bg: #f1f6f1; --d-ink: #1e3b32; --d-acc: #2f7a5f; --d-soft: #d6e6dc; --d-wdth: 100%; --d-wght: 600; }
.demo-physio .d-btn, .demo-physio .d-nav em { border-radius: 5cqw; }
.demo-physio .d-img-circle { border-radius: 50%; aspect-ratio: 1; height: auto; width: min(100%, 34cqw); justify-self: center; background: radial-gradient(circle at 35% 35%, #a9cdb8, #5f9c80); }
.demo-physio .d-row span { border-radius: 3cqw; }

/* Steuerkanzlei: hell, seriös, Navy + Messing */
.demo-steuer { --d-bg: #fbfaf7; --d-ink: #14213d; --d-acc: #14213d; --d-soft: #e9e5da; --d-wdth: 92%; --d-wght: 500; }
.demo-steuer .d-btn, .demo-steuer .d-nav em { border-radius: 0.3cqw; }
.demo-steuer .d-nav { border-bottom: 1px solid #d9d3c4; padding-bottom: 2cqw; }
.demo-steuer .d-img-grid {
  background:
    linear-gradient(#b08d57, #b08d57) 15% 100% / 14% 40% no-repeat,
    linear-gradient(#14213d, #14213d) 43% 100% / 14% 65% no-repeat,
    linear-gradient(#b08d57, #b08d57) 71% 100% / 14% 85% no-repeat,
    var(--d-soft);
  border-radius: 0.6cqw;
}

/* Kleinere Rahmen im Arbeiten-Raster */
.work .demo { gap: 3.5cqw; }
.work .d-h { font-size: 7cqw; }

/* 8 · Rechtsseiten ---------------------------------------------------------- */
.legal { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.legal-inner { max-width: 46rem; }
.legal h1 { font-size: var(--fs-xl); font-stretch: 85%; font-variation-settings: "opsz" 72; letter-spacing: -0.02em; margin-bottom: 2rem; }
.legal h2 { font-size: var(--fs-lg); margin: 2.5rem 0 0.75rem; }
.legal h3 { margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.5rem; }
.legal address { font-style: normal; color: var(--ink-soft); }
.placeholder { background: #fff3c4; color: #5c4600; padding: 0 0.3em; border-radius: 3px; }
.legal-note { margin-bottom: 2rem; padding: 1rem 1.25rem; border-radius: var(--r-m); background: #fff3c4; color: #5c4600; font-size: var(--fs-sm); }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.notfound h1 { font-size: var(--fs-hero); font-stretch: 78%; font-variation-settings: "opsz" 96; letter-spacing: -0.035em; }
.notfound p { margin: 1rem auto 2rem; color: var(--ink-soft); }

/* 9 · Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .step:nth-child(3)::after { display: none; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .showcase::before { inset: 10% -30% -8% 20%; }

  .services { grid-template-columns: 1fr; }
  .service, .service-main { grid-column: 1; grid-row: auto; }
  .service-main { border-bottom: 1px solid var(--line); }


  .plans { grid-template-columns: 1fr; max-width: 34rem; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }

  /* Mobile Navigation */
  .nav-toggle {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border: 0; background: transparent; cursor: pointer; border-radius: var(--r-s);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 1.4rem; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 2rem 3.75rem; }
  .step::after { display: block !important; top: 2.75rem; bottom: 0.25rem; left: 1.2rem; right: auto; width: 2px; height: auto; }
  .step:last-child::after { display: none !important; }

  .works { grid-template-columns: 1fr; }
  .principles-list { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-direct li { grid-template-columns: 5.5rem 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* 11 · Mehrseitige Erweiterung -------------------------------------------- */

/* Aktiver Menüpunkt */
.site-nav ul a[aria-current="page"] { color: var(--heide); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

/* Seitenkopf der Unterseiten */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); }
.page-hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  font-weight: 720; font-stretch: 84%; font-variation-settings: "opsz" 96;
  line-height: 1; letter-spacing: -0.022em;
}
.page-lead { margin-top: 1.25rem; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-soft); max-width: 44rem; }
.section-flush-top { padding-top: 0; }

/* Startseite: Teaser */
.teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.teaser {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem;
  border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.teaser p { color: var(--ink-soft); }
.teaser-link { margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--heide); }
.teaser:hover { background: var(--surface); color: var(--ink); }
.teaser:hover .teaser-link { text-decoration: underline; text-underline-offset: 0.25em; }

/* Startseite: Preis-Teaser mit großen Zahlen */
.price-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.price-teaser .section-head { margin-bottom: 0; justify-items: start; }
.price-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.price-figures > div { padding: 2rem; border-radius: var(--r-l); background: var(--heide-soft); }
.price-figures > div + div { background: var(--tint); }
.price-figures dt { font-weight: 600; }
.price-figures dd {
  margin-top: 0.75rem; font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1;
  font-weight: 720; font-stretch: 80%; font-variation-settings: "opsz" 96; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.figure-from, .figure-cur { font-size: 0.4em; font-weight: 600; letter-spacing: 0; font-stretch: 100%; }
.price-figures p { margin-top: 0.5rem; color: var(--ink-soft); font-size: var(--fs-sm); }

/* CTA-Band */
.cta-band { background: var(--heide); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { font-size: var(--fs-lg); }
.cta-band p { margin-top: 0.5rem; color: #e7dcf5; }

/* Leistungen: Branchen & Technik */
.branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.branches li { padding: 1.75rem; border-radius: var(--r-m); background: var(--surface); display: grid; gap: 0.6rem; align-content: start; }
.branches p { color: var(--ink-soft); font-size: 0.975rem; }
.tech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tech-grid .section-head { position: sticky; top: 6rem; margin-bottom: 0; }
.tech-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--ink); }
.tech-list > div { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.tech-list dt { font-weight: 650; margin-bottom: 0.35rem; }
.tech-list dd { color: var(--ink-soft); font-size: 0.975rem; }
.fine-print { margin-top: 2rem; font-size: var(--fs-sm); color: var(--ink-soft); max-width: 60rem; }
.works-note { margin-top: 2.5rem; }

/* Preise: Paketkarten */
.plan { position: relative; }
.plan-head { display: grid; gap: 0.15rem; }
.plan-head h3 { font-size: var(--fs-lg); font-stretch: 88%; font-variation-settings: "opsz" 48; }
.plan-sub { color: var(--ink-soft); font-size: var(--fs-sm); }
.plans .plan-price {
  margin-top: 0; padding-top: 0; border-top: 0; font-weight: 400;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem;
}
.price-amount {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; font-weight: 720;
  font-stretch: 82%; font-variation-settings: "opsz" 96; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.price-from, .price-unit { color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 500; }
.plan .tick-list { margin-block: 0.25rem 1.5rem; }
.plan > .btn { margin-top: auto; }
.plan-badge {
  position: absolute; top: -0.8rem; left: 2rem;
  padding: 0.2rem 0.75rem; border-radius: 999px;
  background: var(--heide); color: #fff; font-size: 0.8125rem; font-weight: 600;
}
.plan-featured { border: 2px solid var(--heide); }
.tax-note { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--ink-soft); }

/* Gründerangebot */
.offer { background: var(--ink); color: var(--on-ink); padding-block: clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.offer::before {
  content: ""; position: absolute; width: 34rem; height: 34rem; right: -10rem; top: -14rem;
  border-radius: 50%; background: var(--heide); opacity: 0.55;
}
.offer-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
.offer h2 { color: #fff; font-size: var(--fs-xl); }
.offer-copy p { margin-top: 1rem; color: var(--on-ink-soft); font-size: 1.125rem; }
.offer-prices { display: grid; gap: 0.75rem; }
.offer-prices > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--r-m); background: rgba(233, 240, 238, 0.08);
}
.offer-prices dd { font-size: 1.75rem; font-weight: 700; font-stretch: 85%; font-variant-numeric: tabular-nums; color: #fff; }

/* Zahlweise-Umschalter */
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; max-width: none; }
.section-head-row > div:first-child { display: grid; gap: 1rem; max-width: 44rem; }
.billing { display: inline-flex; padding: 0.3rem; border-radius: 999px; background: var(--tint); }
.billing button {
  border: 0; background: transparent; cursor: pointer; padding: 0.55rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem; color: var(--ink-soft);
}
.billing button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 42, 46, 0.15); }
.billing-save { font-weight: 500; color: var(--heide); font-size: 0.8125rem; margin-left: 0.25rem; }

/* Vergleichstabelle */
.table-wrap { overflow-x: auto; border-radius: var(--r-l); background: var(--surface); }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.975rem; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 1.125rem; font-weight: 700; border-bottom: 2px solid var(--ink); }
.compare thead th span { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft); }
.compare tbody th { font-weight: 500; width: 40%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .col-featured { background: var(--heide-soft); }
.cell-yes, .cell-no { display: inline-block; width: 1.25rem; height: 1.25rem; overflow: hidden; text-indent: 2rem; white-space: nowrap; position: relative; vertical-align: middle; }
.cell-yes::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.25rem; width: 0.85rem; height: 0.45rem;
  border-left: 2px solid var(--heide); border-bottom: 2px solid var(--heide); transform: rotate(-45deg);
}
.cell-no::before { content: ""; position: absolute; left: 0.2rem; top: 0.55rem; width: 0.8rem; height: 2px; background: var(--line); }

/* Zusatzleistungen als Preisliste */
.addons-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.addons-grid .section-head { margin-bottom: 0; }
.addons { border-top: 2px solid var(--ink); }
.addon { display: flex; align-items: baseline; gap: 0.75rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.addon dt { flex: 0 1 auto; min-width: 0; }
.addon::after { content: ""; order: 1; flex: 1 1 2rem; border-bottom: 2px dotted var(--line); transform: translateY(-0.3em); }
.addon dd { order: 2; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Kontaktseite */
.contact-title { font-size: var(--fs-xl); font-stretch: 88%; font-variation-settings: "opsz" 72; letter-spacing: -0.015em; color: #fff; }
.field textarea::placeholder { color: #7a8d8b; }
.faq-grid .section-head a { color: var(--heide); }

@media (max-width: 1080px) {
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .teasers, .price-teaser, .tech-grid, .addons-grid, .offer-inner { grid-template-columns: 1fr; }
  .tech-grid .section-head { position: static; }
  .teaser { padding: 1.75rem 0; }
  .plans { gap: 2rem; }
}
@media (max-width: 640px) {
  .price-figures, .branches, .tech-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner .btn { width: 100%; }
  .billing { width: 100%; }
  .billing button { flex: 1; padding-inline: 0.5rem; }
  .addon { flex-wrap: wrap; }
}

/* 10 · Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Korrekturen */
.copyright { max-width: none; }
.site-footer .logo-dot { color: #b897e3; }
.offer::before { right: -16rem; top: -18rem; opacity: 0.45; }
@media (max-width: 640px) {
  .billing button { line-height: 1.25; }
  .billing-save { display: block; margin-left: 0; }
  .offer::before { right: -22rem; top: -24rem; }
}
.plan-time { margin-top: -0.5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--heide); }
.plan-time:empty { display: none; }
.tax-note + .tax-note { margin-top: 0.35rem; }

/* Zahlungsbedingungen unter den Paketen */
.pay-terms {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem;
  margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line);
}
.pay-title { font-weight: 650; }
.pay-steps { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; counter-reset: pay; }
.pay-steps li { display: flex; align-items: baseline; gap: 0.6rem; counter-increment: pay; color: var(--ink-soft); }
.pay-steps li::before {
  content: counter(pay); flex: none; align-self: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--heide-soft); color: var(--heide); font-size: 0.8125rem; font-weight: 700;
}
.pay-steps strong { color: var(--ink); font-variant-numeric: tabular-nums; }
