/* =========================================================================
   Tischlerei Berger – 3 Varianten (Tokens + eigenständige Layouts)
   A = Klassisch & Vertrauenswürdig | B = Bold & Modern | C = Freundlich
   Aktiv über :root[data-variant="a|b|c"]. Es ist immer nur ein Layout gemountet.
   ========================================================================= */

/* ----------------------------- TOKENS ---------------------------------- */
:root[data-variant="a"] {
  --bg: #f7f3ec;  --fg: #24303a;  --muted: #5b6b76;
  --surface: #ffffff;  --border: #e6ddcd;
  --accent: #c9772f;  --accent-ink: #1f2933;  --accent-contrast: #ffffff;
  --radius: 6px;  --maxw: 1120px;  --pad: 1.25rem;  --focus: #1f6feb;
  --head-tracking: -0.01em;
  --font-head: "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-variant="b"] {
  --bg: #0b0f14;  --fg: #f2f5f7;  --muted: #98a6b0;
  --surface: #131b23;  --border: #232f3a;
  --accent: #ffd23f;  --accent-ink: #0b0f14;  --accent-contrast: #0b0f14;
  --accent-2: #3da9fc;
  --radius: 0px;  --maxw: 1240px;  --pad: 1.25rem;  --focus: #ffd23f;
  --head-tracking: -0.03em;
  --font-head: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
}
:root[data-variant="c"] {
  --bg: #faf6ef;  --fg: #33433a;  --muted: #6f7d72;
  --surface: #ffffff;  --border: #e7ece1;
  --accent: #57906c;  --accent-ink: #2c3e33;  --accent-contrast: #ffffff;
  --accent-2: #e7b34a;
  --radius: 22px;  --maxw: 1080px;  --pad: 1.25rem;  --focus: #57906c;
  --head-tracking: -0.005em;
  --font-head: ui-rounded, "Segoe UI Rounded", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --font-body: ui-rounded, "Segoe UI", system-ui, sans-serif;
}

/* common helpers used inside layouts */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent);
}
.lead { color: var(--muted); font-size: 1.075rem; }

/* =========================================================================
   VARIANTE A — KLASSISCH & VERTRAUENSWÜRDIG
   Konventionell vertikal, Full-Width-Hero mit Overlay, Karten-Grid.
   ========================================================================= */
.a-page { --header-h: 64px; }

.a-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.a-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.a-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; text-decoration: none; }
.a-brand img { width: 34px; height: 34px; }
.a-nav { display: none; gap: 1.4rem; }
.a-nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.a-nav a:hover { color: var(--fg); }
.a-header .btn { padding: 0.55em 1em; }

/* Sticky-Header verdeckt sonst Sprungziele -> Offset fuer alle Anker in A */
[data-variant="a"] [id] { scroll-margin-top: calc(var(--header-h) + .5rem); }
.a-hero {
  position: relative; color: #fff; isolation: isolate;
  display: flex; align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: calc(100svh - var(--header-h));   /* genau 1 Viewport unter dem klebenden Header */
}
.a-hero__bg {              /* jetzt ein <picture>-Wrapper statt nacktem <img> */
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
}
.a-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,26,32,.62), rgba(20,26,32,.82));
}
.a-hero .container { width: 100%; padding-block: clamp(2rem, 6vw, 4rem); }
[data-variant="a"] .hero-scroll { color: #fff; }
.a-hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; max-width: 16ch; }
.a-hero p { margin-top: 1rem; max-width: 46ch; font-size: 1.1rem; color: #f0ece3; }
.a-hero__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.a-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.a-hero .btn--ghost:hover { background: rgba(255,255,255,.12); }

.a-section-head { max-width: 60ch; margin-bottom: 2rem; }
.a-section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; margin-top: .4rem; }

.a-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.a-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0; overflow: hidden;
  box-shadow: 0 1px 2px rgba(31,41,51,.05);
  transition: box-shadow .2s ease, transform .2s ease;
}
.a-card:hover { box-shadow: 0 10px 24px rgba(31,41,51,.10); transform: translateY(-3px); }
.a-card__body { padding: 1.5rem; }
.a-card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent); margin-bottom: 1rem;
}
.a-card__icon svg { width: 30px; height: 30px; }
.a-card h3 { font-size: 1.2rem; font-weight: 800; }
.a-card p { margin-top: .5rem; color: var(--muted); }

.a-about { background: var(--surface); border-block: 1px solid var(--border); }
.a-about__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.a-about__media { border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 4/3; overflow: hidden; }
.a-about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-about h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 800; }
.a-about p { margin-top: 1rem; color: var(--muted); }
.a-facts { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.a-facts b { display: block; font-size: 1.5rem; color: var(--fg); }
.a-facts span { color: var(--muted); font-size: .9rem; }

.a-contact__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.a-contact .a-info-box {
  background: var(--accent-ink); color: #fff; border-radius: var(--radius);
  padding: 1.8rem;
}
.a-info-box h2 { font-size: 1.5rem; font-weight: 800; }
.a-info-list { margin-top: 1.2rem; display: grid; gap: .9rem; }
.a-info-list a, .a-info-list span { display: flex; gap: .7rem; align-items: flex-start; color: #ece8e0; text-decoration: none; }
.a-info-list svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.a-info-box .btn { margin-top: 1.5rem; width: 100%; }
.a-info-box .btn + .btn { margin-top: .6rem; }
.a-info-box .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.a-info-box .btn--ghost:hover { background: rgba(255,255,255,.12); }
.a-form { display: grid; gap: .9rem; align-content: start; }
.a-form label { font-weight: 700; font-size: .92rem; display: grid; gap: .35rem; }
.a-form input, .a-form textarea {
  font: inherit; padding: .8em; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--fg);
}
.a-form textarea { min-height: 120px; resize: vertical; }

.a-footer { background: var(--accent-ink); color: #cdd5db; padding-block: 2.5rem; }
.a-footer__grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.a-footer a { color: #cdd5db; }
.a-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.a-footer nav { display: grid; gap: .4rem; }
.a-footer__legal { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; opacity: .8; }

@media (min-width: 720px) {
  .a-nav { display: inline-flex; }
  .a-grid { grid-template-columns: repeat(2, 1fr); }
  .a-about__grid { grid-template-columns: 1.1fr .9fr; }
  .a-contact__grid { grid-template-columns: .9fr 1.1fr; }
  .a-footer__grid { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 1000px) {
  .a-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================================
   VARIANTE B — BOLD & MODERN (dunkel, asymmetrisch, typografisch)
   Hero als Statement, Leistungen als nummerierte Reihen, Kennzahlen-Band.
   ========================================================================= */
.b-page { padding-bottom: 0; }
.b-page ::selection { background: var(--accent); color: var(--accent-ink); }

.b-topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 1.2rem; }
.b-topbar .a-brand, .b-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.b-brand img { width: 32px; height: 32px; }
.b-brand small { color: var(--accent); font-weight: 700; }

.b-hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: calc(100svh - 72px);     /* mitscrollende b-topbar (~72px) einrechnen */
  padding-block: clamp(2.5rem, 10vw, 6rem) clamp(2rem, 6vw, 4rem);
}
[data-variant="b"] .hero-scroll { color: var(--accent); }
.b-hero__kicker { color: var(--accent); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; }
.b-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 13vw, 7.5rem);
  font-weight: 900; line-height: .92; text-transform: uppercase;
  letter-spacing: -.04em;
}
.b-hero h1 em { font-style: normal; color: var(--accent); }
.b-hero p { margin-top: 1.5rem; max-width: 52ch; font-size: 1.15rem; color: var(--muted); }
.b-hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.b-hero .btn--primary { background: var(--accent); color: var(--accent-ink); border-radius: 0; }
.b-hero .btn--primary:hover { background: #fff; }
.b-hero .b-link { color: var(--fg); font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--accent); padding-bottom: .15rem; }

.b-rule { height: 1px; background: var(--border); }

.b-list { display: grid; }
.b-list__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 2.5rem 1rem; }
.b-list__head h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; }
.b-row {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.5rem;
  align-items: start; padding-block: 1.6rem; border-top: 1px solid var(--border);
  transition: background-color .2s ease, padding-left .2s ease;
}
.b-row:hover { background: var(--surface); padding-left: .8rem; }
.b-row__no { font-size: 1.1rem; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.b-row h3 { font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.b-row p { color: var(--muted); margin-top: .4rem; max-width: 60ch; }

.b-stats { background: var(--accent); color: var(--accent-ink); }
.b-stats__grid { display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(2,1fr); padding-block: clamp(2.5rem,7vw,4rem); }
.b-stat b { display: block; font-size: clamp(2.2rem, 9vw, 4rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.b-stat span { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.b-about { padding-block: clamp(2.5rem,7vw,4rem); }
.b-about h2 { font-size: clamp(1.6rem,5vw,2.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; max-width: 18ch; }
.b-about p { margin-top: 1.2rem; color: var(--muted); max-width: 60ch; font-size: 1.1rem; }

.b-cta { background: var(--surface); border: 2px solid var(--accent); padding: clamp(1.8rem, 6vw, 3rem); margin-block: clamp(2.5rem,7vw,4rem); }
.b-cta h2 { font-size: clamp(1.8rem, 6vw, 3.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; }
.b-cta__big { display: inline-block; margin-top: 1rem; font-size: clamp(1.6rem,7vw,2.8rem); font-weight: 900; color: var(--accent); text-decoration: none; letter-spacing: -.02em; }
.b-cta__row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; color: var(--muted); }
.b-cta__row a { color: var(--fg); text-decoration: none; border-bottom: 2px solid var(--accent); }
.b-cta__form { margin-top: 1.6rem; display: grid; gap: .8rem; max-width: 520px; }
.b-cta__form input, .b-cta__form textarea {
  font: inherit; padding: .85em; background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--border); border-radius: 0;
}
.b-cta__form textarea { min-height: 110px; resize: vertical; }
.b-cta__form .btn--primary { background: var(--accent); color: var(--accent-ink); border-radius: 0; }
.b-cta__book { margin-top: 1.25rem; }
.b-cta__book .btn--primary { background: var(--accent); color: var(--accent-ink); border-radius: 0; }

.b-footer { border-top: 1px solid var(--border); padding-block: 2.2rem; color: var(--muted); }
.b-footer__top { display: grid; gap: 1.4rem; }
.b-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.b-footer a { color: var(--muted); text-decoration: none; }
.b-footer a:hover { color: var(--fg); }
.b-footer__legal { margin-top: 1.4rem; font-size: .82rem; }

/* mobile sticky CTA bar */
.b-stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: .5rem; padding: .6rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--border);
}
.b-stickybar .btn { flex: 1; border-radius: 0; padding: .8em; }
.b-stickybar .btn--primary { background: var(--accent); color: var(--accent-ink); }
.b-stickybar .btn--ghost { border-color: var(--border); color: var(--fg); }
[data-variant="b"] .b-page { padding-bottom: 5rem; }
/* Dev-Widget + Hero-Scroll-Hinweis über der mobilen Sticky-CTA-Bar der Variante B halten */
@media (max-width: 759px) {
  /* nur die Variable tauschen -> transform/translateX(-50%) bleibt unangetastet */
  [data-variant="b"] .devbar { --devbar-bottom: max(0.9rem, calc(env(safe-area-inset-bottom) + 4.25rem)); }
  [data-variant="b"] .b-hero .hero-scroll { bottom: calc(env(safe-area-inset-bottom) + 4.25rem); }
}

@media (min-width: 760px) {
  .b-row { grid-template-columns: 5rem 1fr; gap: 1rem 2rem; }
  .b-stats__grid { grid-template-columns: repeat(4,1fr); }
  .b-footer__top { grid-template-columns: 1fr auto; align-items: center; }
  .b-stickybar { display: none; }
  [data-variant="b"] .b-page { padding-bottom: 0; }
}

/* =========================================================================
   VARIANTE C — FREUNDLICH & EINLADEND (hell, weich, rund, bubbleartig)
   Zentrierter Hero-Blob, Zickzack-Leistungen, Team-Bubbles, Formular-Karte.
   ========================================================================= */
.c-page { overflow-x: clip; }
.c-topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.c-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; text-decoration: none; }
.c-brand img { width: 36px; height: 36px; }
.c-topbar .btn { padding: .55em 1.1em; }

.c-hero {
  position: relative; text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: calc(100svh - 72px);     /* mitscrollende c-topbar (~71px: Brand-Bild 36px + 2×1.1rem) einrechnen */
  padding-block: clamp(2rem, 8vw, 4rem);
}
.c-hero .container { width: 100%; }
[data-variant="c"] .hero-scroll { color: var(--fg); }
.c-hero__pill { display: inline-block; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-ink); border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: .85rem; }
.c-hero h1 { margin-top: 1rem; font-size: clamp(2.1rem, 8vw, 4rem); font-weight: 800; max-width: 18ch; margin-inline: auto; }
.c-hero p { margin: 1rem auto 0; max-width: 50ch; color: var(--muted); font-size: 1.12rem; }
.c-hero__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.c-hero .btn { border-radius: 999px; }
.c-hero__media {
  margin: clamp(1.25rem, 3vh, 2.5rem) auto 0; max-width: 760px; width: 100%;
  aspect-ratio: 3 / 2; max-height: clamp(180px, 38svh, 420px);
  border-radius: 40px; overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: 0 24px 60px rgba(52,67,58,.18);
  background: var(--surface);
}
.c-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.c-row { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; margin-block: clamp(2rem, 6vw, 3.5rem); }
.c-row__media {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(52,67,58,.10);
  aspect-ratio: 3 / 2;
}
.c-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-row__body .eyebrow { color: var(--accent); }
.c-row h3 { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; margin-top: .4rem; }
.c-row p { margin-top: .7rem; color: var(--muted); }
.c-row__tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.c-tag { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-ink); border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; font-weight: 600; }

.c-services__head, .c-block__head { text-align: center; max-width: 52ch; margin: 0 auto; }
.c-services__head h2, .c-block__head h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; margin-top: .4rem; }

.c-about { background: var(--surface); border-radius: 36px; padding: clamp(1.6rem, 5vw, 3rem); border: 1px solid var(--border); }
.c-team { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.c-bubble { text-align: center; width: 120px; }
.c-bubble__face {
  width: 84px; height: 84px; margin: 0 auto .5rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
  color: var(--accent-contrast);
  background: var(--accent);
}
.c-bubble:nth-child(2n) .c-bubble__face { background: var(--accent-2); color: #3a2f12; }
.c-bubble small { color: var(--muted); }
.c-chips { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.c-chip { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: .6rem 1.1rem; font-weight: 700; }
.c-chip b { color: var(--accent); }

.c-contact { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.c-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 30px; padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 16px 40px rgba(52,67,58,.10);
}
.c-card h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; }
.c-card__book { margin-top: 1.1rem; }
.c-card__book .btn { border-radius: 999px; }
.c-form { display: grid; gap: .9rem; margin-top: 1.2rem; }
.c-form label { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; }
.c-form input, .c-form textarea {
  font: inherit; padding: .85em 1em; border: 1.5px solid var(--border);
  border-radius: 16px; background: var(--bg); color: var(--fg);
}
.c-form textarea { min-height: 120px; resize: vertical; }
.c-form .btn { border-radius: 999px; }
.c-info { display: grid; gap: 1rem; align-content: start; }
.c-info__item { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1rem 1.2rem; text-decoration: none; color: var(--fg); }
.c-info__item svg { width: 24px; height: 24px; color: var(--accent); flex: 0 0 auto; }
.c-info__item b { display: block; }
.c-info__item span { color: var(--muted); font-size: .92rem; }

.c-footer { text-align: center; padding-block: 2.5rem 2rem; }
.c-footer__nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1.2rem; }
.c-footer__nav a { color: var(--muted); text-decoration: none; }
.c-footer__legal { margin-top: 1.4rem; color: var(--muted); font-size: .85rem; }

@media (min-width: 760px) {
  .c-row { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .c-row--reverse .c-row__media { order: 2; }
  .c-contact { grid-template-columns: 1.3fr .8fr; }
}
