/* ============================================================
   Schleifenglück — style.css (Entwurf)
   Aufbau und Bausteine übernommen von der K&S-Website
   (mikestang1/Website, css/style.css): Reset, Fokus, Navigation,
   Buttons, Karten, Schritte, Formular, Akkordeon, Fußzeile,
   Einblenden, Seitenkopf, Rechtstexte, Responsive.
   Getauscht: Farben, Schrift, Radien, keine Schatten — alles nach
   Markenbuch Schleifenglück v0.2.
   ============================================================ */

/* Schriften selbst gehostet (nie über Google Fonts, Datenschutz).
   Lora und Open Sans, beide SIL Open Font License 1.1, Lizenztexte in assets/fonts/. */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/open-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/open-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/open-sans-latin-700-normal.woff2') format('woff2');
}

/* ---- 1. Design Tokens (Markenbuch v0.2, nur diese Farben) ---- */
:root {
  --braun:        #5B4331; /* Hauptfarbe: Logo, Überschriften, Knöpfe */
  --braun-dunkel: #3E2E22; /* Fließtext, Fußzeile */
  --creme:        #F6EFE4; /* heller Hintergrund */
  --creme-hell:   #FBF7F0; /* Karten, Seitenfläche */
  --kraft:        #D9B992; /* Papier, ruhige Flächen, feine Linien */
  --rose:         #B87F7F; /* nur Akzent (Knoten), nie Text */
  --rose-hell:    #E9CFCB; /* Fläche */
  --salbei:       #7F9275; /* nur Akzent, nie Text */
  --salbei-hell:  #D5DDCD; /* Fläche, Hinweis */
  --weiss:        #FFFFFF;

  --surface-page:    var(--creme);
  --surface-card:    var(--creme-hell);
  --surface-sunken:  var(--weiss);
  --surface-inverse: var(--braun);

  --border-subtle:  var(--kraft);
  --border-default: var(--braun);   /* Formularfelder brauchen 3:1 */

  --text-primary:   var(--braun-dunkel);
  --text-secondary: var(--braun);
  --text-tertiary:  var(--braun);
  --text-on-dark:   var(--creme);
  --text-link:      var(--braun);

  --accent-primary:        var(--braun);
  --accent-primary-hover:  var(--braun-dunkel);
  --accent-primary-active: var(--braun-dunkel);

  /* Typografie: Überschriften Lora, Text Open Sans */
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Open Sans', Arial, sans-serif;

  --weight-normal: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.15;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625; /* Text 16/26 */

  /* Stufen laut Markenbuch: Display 56/58, H1 34/40, H2 24/30, Text 16/26, Klein 13/20, Label 12/16 */
  --text-label: 0.75rem;
  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.5rem;
  --text-xl:   2.125rem;
  --text-2xl:  3.5rem;

  /* Abstände (wie K&S) */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 64px);

  /* Radien: 4 / 10 / rund */
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-full: 999px;

  --duration-sm: 0.2s;
  --duration-md: 0.35s;
  --ease-out:    cubic-bezier(0, 0, .2, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);

  --border-hairline: 1px solid var(--border-subtle);
  --logo-knoten: var(--rose);
  --nav-height: 76px;
}

/* ---- 2. Reset & Base (K&S) ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--accent-primary-hover); }
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* ---- 2b. Fokus & Skip-Link (K&S) ---- */
:focus-visible {
  outline: 3px solid var(--braun);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 1000;
  background: var(--accent-primary);
  color: var(--text-on-dark);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: top var(--duration-md) var(--ease-out);
}
.skip-link:focus { top: var(--space-md); }

/* ---- 2c. Entwurfs-Hinweis (nur solange die Seite ein Entwurf ist) ---- */
.entwurf-hinweis {
  background: var(--salbei-hell);
  color: var(--braun-dunkel);
  font-size: var(--text-xs);
  line-height: 1.5;
  padding: var(--space-xs) var(--container-pad);
  text-align: center;
}
.entwurf-hinweis strong { font-weight: var(--weight-bold); }

/* ---- 3. Typografie ---- */
h1, h2, .text-display {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--braun);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

.text-display {
  font-size: clamp(2.25rem, 6vw, var(--text-2xl));
  line-height: 1.04;
}

h1 { font-size: clamp(1.75rem, 4vw, var(--text-xl)); line-height: 1.18; }
h2 { font-size: var(--text-lg); line-height: var(--leading-snug); }

h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--braun-dunkel);
}

/* Label: Versalien, Laufweite 0,2 em (Markenbuch) */
.text-label {
  display: inline-block;
  font-size: var(--text-label);
  line-height: 1.33;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--braun);
}

.text-body { color: var(--text-primary); }
.text-klein { font-size: var(--text-xs); line-height: 1.54; }

/* ---- 4. Layout-Utilities (K&S) ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(var(--space-2xl), 8vw, var(--space-4xl)); }
.section-alt { background: var(--surface-sunken); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* ---- 5. Navigation (K&S Design B, ohne Schatten) ---- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  height: 64px;
  margin: 12px var(--container-pad) 0;
  display: flex;
  align-items: center;
  background: var(--creme-hell);
  border: var(--border-hairline);
  border-radius: var(--radius-full);
}

.nav__inner {
  width: 100%;
  padding-inline: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
  min-height: 44px;
  color: var(--braun);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 1.25rem;
}
@media (hover: hover) and (pointer: fine) {
  .nav__logo:hover { color: var(--braun-dunkel); }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-left: auto;
}

.nav__link {
  font-size: var(--text-sm);
  color: var(--braun-dunkel);
  text-decoration: none;
  padding: 12px var(--space-sm);
  border-radius: var(--radius-full);
  transition: background-color var(--duration-sm) var(--ease-out);
  white-space: nowrap;
}

.nav__link.active {
  color: var(--braun);
  font-weight: var(--weight-semibold);
  background: var(--creme);
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--braun-dunkel); background: var(--creme); }
}

.nav__cta {
  height: 44px;
  padding: 0 var(--space-lg);
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-on-dark);
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--duration-sm) var(--ease-out), transform var(--duration-sm) var(--ease-out);
  white-space: nowrap;
}
.nav__cta:active { transform: scale(0.96); transition-duration: 0.12s; }
@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover { background: var(--accent-primary-hover); color: var(--text-on-dark); }
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--braun-dunkel);
  border-radius: 2px;
  transition: transform var(--duration-md) var(--ease-out), opacity var(--duration-sm) var(--ease-out);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); visibility: hidden; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 88px;
  left: var(--container-pad);
  right: var(--container-pad);
  border-radius: var(--radius-md);
  border: var(--border-hairline);
  background: var(--creme-hell);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-2xs);
}

@media (max-width: 1080px) {
  .nav__mobile.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--duration-sm) var(--ease-out), transform var(--duration-md) var(--ease-out);
  }
}
@starting-style {
  .nav__mobile.open { opacity: 0; transform: translateY(-8px); }
}

.nav__mobile .nav__link {
  font-size: var(--text-md);
  padding: var(--space-md) 0;
  border-radius: 0;
  background: none;
  border-bottom: var(--border-hairline);
}

/* ---- 6. Hero (Startseite) ---- */
.hero { padding-block: clamp(var(--space-2xl), 8vw, var(--space-4xl)); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-2xl);
  align-items: center;
}

.hero__text .text-label { margin-bottom: var(--space-md); }
.hero__title { margin-bottom: var(--space-lg); }

.hero__subtitle {
  font-size: var(--text-md);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: var(--space-xl);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.hero__siegel {
  justify-self: center;
  width: min(100%, 360px);
  color: var(--braun);
}
.hero__siegel svg { width: 100%; height: auto; }

/* ---- 6b. Logo-Zeichnung (Muster K&S logo-draw) ----
   Ohne JavaScript steht das Logo fertig da. main.js setzt erst .logo-draw--ready
   (Startzustand: Linien ungezeichnet, Knoten und Schrift unsichtbar) und dann
   .logo-draw--drawn (Endzustand mit Übergängen). Reihenfolge: Ringe, Schleife,
   Knoten, Schrift Buchstabe für Buchstabe. Linien haben pathLength="1". */
.logo-draw--ready .logo-draw__line {
  stroke-dasharray: 1.02 1.02; /* etwas länger als der Pfad, sonst bleibt an der Naht eine Lücke */
  stroke-dashoffset: 1.02;
  opacity: 0;
}
.logo-draw--ready .logo-draw__knot,
.logo-draw--ready .logo-draw__glyph { opacity: 0; }
.logo-draw--ready .logo-draw__knot {
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
}

.logo-draw--drawn .logo-draw__line {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset 1.1s var(--ease-in-out), opacity 0.01s linear;
}
.logo-draw--drawn .logo-draw__ring--innen { transition-delay: 0.15s; }
.logo-draw--drawn .logo-draw__bow { transition-duration: 0.9s; transition-delay: 0.6s; }
.logo-draw--schleife.logo-draw--drawn .logo-draw__bow { transition-delay: 0s; }
.logo-draw--drawn .logo-draw__knot {
  opacity: 1;
  transform: scale(1);
  transition: opacity var(--duration-md) var(--ease-out) 1.4s, transform var(--duration-md) var(--ease-out) 1.4s;
}
.logo-draw--schleife.logo-draw--drawn .logo-draw__knot { transition-delay: 0.8s; }
.logo-draw--drawn .logo-draw__glyph {
  opacity: 1;
  transition: opacity 0.4s var(--ease-out) calc(1.1s + var(--i, 0) * 0.04s);
}

/* Zweitrangige Handlung als Textlink unter den Knöpfen (K&S hero__hint) */
.hero__hint { margin-top: var(--space-md); font-size: var(--text-sm); }
.hero__hint a { font-weight: var(--weight-semibold); }

/* ---- 7. Buttons (K&S) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  min-height: 44px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform var(--duration-sm) var(--ease-out), background-color var(--duration-sm) var(--ease-out),
              border-color var(--duration-sm) var(--ease-out), color var(--duration-sm) var(--ease-out);
  white-space: nowrap;
}

.btn-lg { min-height: 52px; padding: 0 var(--space-xl); font-size: var(--text-base); }
.btn:active { transform: scale(0.97); transition-duration: 0.12s; }

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-on-dark);
  border: 1px solid transparent;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--border-default);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid transparent;
  padding-inline: 0;
}

.btn-on-dark {
  background: var(--creme-hell);
  color: var(--braun);
  border: 1px solid transparent;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-primary-hover); color: var(--text-on-dark); }
  .btn-secondary:hover { background: var(--creme-hell); color: var(--braun-dunkel); border-color: var(--braun-dunkel); }
  .btn-ghost:hover { color: var(--braun-dunkel); }
  .btn-on-dark:hover { background: var(--weiss); color: var(--braun-dunkel); }
}

/* ---- 8. Badge (K&S), hier für „Entwurf“-Markierungen ---- */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  background: var(--salbei-hell);
  color: var(--braun-dunkel);
}

/* ---- 9. Karten (K&S Feature-Card, ohne Schatten) ---- */
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-card);
  border: var(--border-hairline);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-sm) var(--ease-out), border-color var(--duration-sm) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); border-color: var(--braun); }
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--creme);
  color: var(--braun);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) var(--space-lg) 0;
}
.card__icon svg { width: 24px; height: 24px; }

.card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.card__body > .btn-ghost { margin-top: auto; align-self: flex-start; white-space: normal; text-align: left; }
.card__body p { margin-bottom: var(--space-xs); }

/* Fotos in Karten (K&S card__media). Platzhalterfotos tragen einen Hinweis. */
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--kraft);
  overflow: hidden;
  border-bottom: var(--border-hairline);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img { transform: scale(1.03); }
}
.foto-hinweis {
  position: absolute;
  left: var(--space-sm);
  bottom: var(--space-sm);
  background: var(--creme-hell);
  color: var(--braun-dunkel);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  padding: 2px var(--space-xs);
  border-radius: var(--radius-sm);
}

/* Platzhalter ohne Foto (falls ein Bild fehlt) */
.platzhalter-foto {
  aspect-ratio: 4 / 3;
  background: var(--kraft);
  color: var(--braun-dunkel);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-bottom: var(--border-hairline);
}

/* ---- 10. CTA-Banner (K&S, ohne Verlauf) ---- */
.cta-banner {
  background: var(--surface-inverse);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-2xl), 6vw, var(--space-3xl)) clamp(var(--space-lg), 5vw, var(--space-3xl));
  text-align: center;
}
.cta-banner h2 { color: var(--creme); margin-bottom: var(--space-sm); }
.cta-banner p {
  color: var(--creme);
  margin: 0 auto var(--space-xl);
  max-width: 52ch;
}

/* ---- 11. Abschnitt-Kopf (K&S) ---- */
.section-header {
  max-width: 760px;
  margin-bottom: var(--space-2xl);
}
.section-header .text-label { margin-bottom: var(--space-sm); }
.section-header h2 { margin-bottom: var(--space-sm); }

/* ---- 12. Ablauf-Schritte (K&S) ---- */
.steps {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--kraft);
}

.step__number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--braun);
  color: var(--creme);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step__content { padding-top: var(--space-xs); }
.step__title { margin-bottom: var(--space-2xs); }

/* ---- 13. Preistabelle ---- */
.preis-tabelle {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.preis-tabelle caption {
  caption-side: top;
  text-align: left;
  font-size: var(--text-xs);
  padding-bottom: var(--space-sm);
  color: var(--braun-dunkel);
}
.preis-tabelle th,
.preis-tabelle td {
  padding: var(--space-sm) var(--space-md);
  text-align: right;
  border-bottom: var(--border-hairline);
  white-space: nowrap;
}
.preis-tabelle th:first-child,
.preis-tabelle td:first-child { text-align: left; white-space: normal; }
.preis-tabelle thead th { font-weight: var(--weight-semibold); color: var(--braun); }
.preis-tabelle tbody tr:last-child td,
.preis-tabelle tbody tr:last-child th { border-bottom: 0; }
.tabelle-scroll { overflow-x: auto; }

.fakten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.fakt {
  background: var(--surface-card);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.fakt__wert {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  line-height: 1.1;
  color: var(--braun);
  margin-bottom: var(--space-xs);
}

/* ---- 13b. Akkordeon / Häufige Fragen (K&S) ---- */
.accordion { border-top: var(--border-hairline); max-width: 760px; }
.accordion-item { border-bottom: var(--border-hairline); }
.accordion-item h3 { font-size: var(--text-base); }
.accordion-btn {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: var(--space-md) var(--space-2xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--braun);
  transition: transform var(--duration-sm) var(--ease-out);
}
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--duration-md) var(--ease-out), visibility var(--duration-md);
}
.accordion-item.open .accordion-body { grid-template-rows: 1fr; visibility: visible; }
.accordion-body__inner { overflow: hidden; }
.accordion-body p { padding: 0 var(--space-2xs) var(--space-md); }

/* ---- 14. Formular (K&S) ---- */
.form { display: flex; flex-direction: column; gap: var(--space-lg); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group { display: flex; flex-direction: column; gap: 6px; width: 100%; }

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  padding: 0;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--weiss);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-sm);
  height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

.form-textarea {
  height: auto;
  padding: var(--space-sm);
  resize: vertical;
  min-height: 140px;
  line-height: var(--leading-normal);
}

.form-input:focus-visible,
.form-textarea:focus-visible { outline: 3px solid var(--braun); outline-offset: 1px; }

.form-helper { font-size: var(--text-xs); color: var(--text-primary); }

fieldset.form-group { border: 0; min-width: 0; }

.form-radio-row { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }

.form-radio,
.form-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
}
.form-checkbox { align-items: flex-start; }
.form-checkbox > span:last-child { padding-top: 10px; }

.form-radio input,
.form-checkbox input {
  position: absolute;
  z-index: 1;
  opacity: 0;
  width: 44px;
  height: 44px;
  left: -12px;
  margin: 0;
  cursor: pointer;
}

.form-radio__mark,
.form-checkbox__mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-default);
  background: var(--weiss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-radio__mark { border-radius: var(--radius-full); }
.form-checkbox__mark { border-radius: var(--radius-sm); margin-top: 12px; color: var(--creme); }

.form-radio__mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  opacity: 0;
}
.form-radio input:checked ~ .form-radio__mark::after { opacity: 1; }

.form-checkbox__mark svg { opacity: 0; }
.form-checkbox input:checked ~ .form-checkbox__mark { background: var(--accent-primary); }
.form-checkbox input:checked ~ .form-checkbox__mark svg { opacity: 1; }

.form-radio input:focus-visible ~ .form-radio__mark,
.form-checkbox input:focus-visible ~ .form-checkbox__mark {
  outline: 3px solid var(--braun);
  outline-offset: 2px;
}

/* Honeypot gegen Spam-Bots (K&S): für Menschen unsichtbar */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Meldungen: nie nur über Farbe, immer mit Symbol und Text */
.form-message {
  display: none;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--braun-dunkel);
}
.form-message svg { width: 24px; height: 24px; flex-shrink: 0; }
.form-message--hinweis { background: var(--salbei-hell); }
.form-message.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--duration-md) var(--ease-out), transform var(--duration-md) var(--ease-out);
}
@starting-style {
  .form-message.visible { opacity: 0; transform: translateY(-8px); }
}

.form-card {
  background: var(--surface-card);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-lg), 4vw, var(--space-xl));
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 720px;
}

/* ---- 15. Fußzeile (K&S) ---- */
.footer {
  background: var(--braun-dunkel);
  color: var(--creme);
  padding-block: var(--space-3xl) var(--space-lg);
  margin-top: var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__logo { color: var(--creme); --logo-knoten: var(--rose-hell); }
.footer__tagline { font-size: var(--text-sm); max-width: 34ch; }

.footer__heading {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.footer__links { display: flex; flex-direction: column; }

.footer__link,
.footer__legal a {
  display: inline-block;
  padding-block: 10px;
  font-size: var(--text-sm);
  color: var(--creme);
}
@media (hover: hover) and (pointer: fine) {
  .footer__link:hover,
  .footer__legal a:hover { color: var(--weiss); }
}

.footer :focus-visible { outline-color: var(--creme); }

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--braun);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer__copy { font-size: var(--text-xs); }
.footer__legal { display: flex; gap: var(--space-lg); flex-wrap: wrap; }

/* ---- 16. Einblenden beim Scrollen (K&S) ----
   Nur wenn JavaScript läuft (Klasse .js von main.js), sonst bleibt alles sichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ---- 16b. Zahlen-Leiste mit Hochzählen (K&S stats-band, ohne Schatten) ---- */
.stats-band { padding-block: 0 var(--space-4xl); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}
.stats-grid > div {
  background: var(--surface-card);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  line-height: 1.1;
  color: var(--braun);
  margin-bottom: var(--space-xs);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--text-sm); color: var(--text-primary); }

/* ---- 16c. Über mich: Siegel neben Text (K&S portrait-split) ---- */
.portrait-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-3xl);
  align-items: center;
  max-width: 960px;
}
.portrait-split__bild { color: var(--braun); justify-self: center; width: min(100%, 320px); }
.portrait-split__bild svg { width: 100%; height: auto; }
.portrait-split .prose p + p { margin-top: var(--space-md); }

/* ---- 17. Seitenkopf Unterseiten (K&S) ---- */
.page-hero { padding-block: clamp(var(--space-2xl), 7vw, var(--space-3xl)) var(--space-lg); }
.page-hero .text-label { margin-bottom: var(--space-sm); }
.page-hero h1 { margin-bottom: var(--space-sm); max-width: 24ch; }
.page-hero p { font-size: var(--text-md); max-width: 56ch; }

/* ---- 18. Rechtstexte (K&S Prose) ---- */
.prose { max-width: 720px; }
.prose h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.prose p,
.prose li { margin-bottom: var(--space-md); }
.prose ul { list-style: disc; padding-left: var(--space-lg); }

.platzhalter-text {
  background: var(--rose-hell);
  color: var(--braun-dunkel);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}

/* Lesbare Zeilenlänge (K&S) */
.section-header p,
.step p,
.prose p,
.prose li,
.card__body p { max-width: 65ch; }

/* Nur für Screenreader sichtbar (K&S) */
.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;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px) (K&S)
   ============================================================ */
/* Navigation: ab 1080 px Hamburger, damit fünf Links und der Knopf nie überlaufen */
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__siegel { width: min(70%, 280px); order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .footer__brand { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .stats-grid { grid-template-columns: 1fr; }
  .portrait-split { grid-template-columns: 1fr; gap: var(--space-xl); }
  .portrait-split__bild { width: min(70%, 240px); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .form-row,
  .fakten { grid-template-columns: 1fr; }
  .preis-tabelle { font-size: var(--text-xs); }
  .preis-tabelle th,
  .preis-tabelle td { padding: var(--space-xs) 6px; }
  .preis-tabelle th:first-child,
  .preis-tabelle td:first-child { padding-left: var(--space-sm); hyphens: auto; }
}

/* ============================================================
   Weniger Bewegung (K&S)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .logo-draw * { transition: none !important; }
  html { scroll-behavior: auto; }
}
