@font-face { font-family: "Red Hat Display"; src: url("../fonts/red-hat-display-latin-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("../fonts/red-hat-text-latin-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

/* Tischlerei Sonnendach – Entwurf C „Hobelbank“ (modular, strukturiert)
   Kontraste: Text 14,1:1 · Nebentext 6,8:1 · Weiß auf Waldgrün 7,7:1 · Holzton für Zahlen 5,5:1 · Rahmen 4,0:1 */
:root {
  --sb-bg: #fbf8f3;
  --sb-surface: #ffffff;
  --sb-tint: #efe6d8;
  --sb-text: #1e2a22;
  --sb-muted: #4f5a52;
  --sb-line: #e2d9cb;
  --sb-line-strong: #857a6b;
  --sb-brand: #3d5a40;
  --sb-on-brand: #ffffff;
  --sb-link: #3d5a40;
  --sb-accent: #8b5a2b;
  --sb-focus: #1e2a22;
  --sb-font-heading: "Red Hat Display", system-ui, sans-serif;
  --sb-font-body: "Red Hat Text", system-ui, sans-serif;
  --sb-heading-weight: 700;
  --sb-heading-tracking: -0.01em;
  --sb-radius: 10px;
  --sb-radius-lg: 14px;
  --sb-max: 74rem;
  --kd-holz: #8b5a2b;
}

.kd-wortmarke { font-weight: 700; gap: 10px; }
.kd-wortmarke i { display: inline-block; width: 28px; height: 28px; border-radius: 6px; font-style: normal;
  background: repeating-linear-gradient(100deg, #c99a63 0 3px, #b9874f 3px 5px, #d4a874 5px 9px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* Zahlen-Kacheln im Hero */
.sb-hero__facts { gap: 12px; }
.sb-hero__facts li { background: var(--sb-surface); border: 1px solid var(--sb-line); border-radius: var(--sb-radius); padding: 12px 16px; }
.sb-hero__facts strong { display: block; font-family: var(--sb-font-heading); font-size: 26px; color: var(--kd-holz); line-height: 1.1; }

/* Ablauf: Holzlineal mit Figuren */
.kd-ablauf { position: relative; padding-top: 140px; }
.kd-lineal { position: absolute; left: 0; right: 0; top: 112px; height: 22px; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(30,42,34,.55) 0 1px, transparent 1px 10px) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(30,42,34,.7) 0 1px, transparent 1px 50px) bottom / 100% 11px no-repeat,
    linear-gradient(180deg, #e2bd85, #cf9f63); box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); }
.kd-ablauf .sb-cards { position: relative; }
.kd-helfer { position: absolute; top: -10px; width: 120px; margin: 0; z-index: 2; }
.kd-helfer img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; }
.kd-helfer--3 { left: calc(50% + 2%); }
.kd-helfer--4 { left: calc(75% + 2%); }
@media (max-width: 760px) {
  .kd-ablauf { padding-top: 0; }
  .kd-lineal { display: none; }
  .kd-helfer { position: static; width: 96px; margin: 0 0 -8px auto; }
  .kd-helfer-mobil { display: flex; justify-content: flex-end; gap: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .kd-helfer img { transition: transform 200ms ease; }
  .kd-helfer:hover img { transform: rotate(-6deg); }
}
.sb-cards--steps .sb-card::before { color: var(--kd-holz); }

.kd-entwurf-hinweis { font-size: 14px; color: var(--sb-muted); text-align: center; padding: 10px var(--sb-gutter); background: var(--sb-tint); margin: 0; }
.sb-card__media img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Ablauf am Desktop immer in 4 Spalten, damit die Figuren über „Fertigung“ und „Montage“ stehen */
@container (min-width: 761px) { .kd-ablauf .sb-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kd-helfer { width: 140px; top: -30px; }

/* Handy: Logo und Menü-Knopf in einer Zeile */
@container (width < 48rem) {
  .sb-header__inner { gap: 0 12px; flex-wrap: nowrap; }
  .sb-logo { font-size: 18px; }
}

/* Figuren stehen rechts: gespiegelt, damit sie zum Inhalt schauen */
.kd-helfer img, .kd-helfer:hover img { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) { .kd-helfer:hover img { transform: scaleX(-1) rotate(-6deg); } }
