/* Entwurf A – „Lichtung“, übernommen aus a/style.css. Änderungen für das Seitenpaket sind mit „Paket:“ markiert. */

/* Entwurf A – „Lichtung“
   Hell, frisch, viel Luft. Logo-Grün ist die Aktionsfarbe, Waldschwarz die Schrift.
   Mobile first: Grundregeln gelten für das Telefon, größere Bildschirme per min-width. */

@font-face {
  font-family: "Instrument Sans";
  /* Paket: Schrift liegt flach im Asset-Ordner des Pakets. */
  src: url("/assets/instrument-sans-var.woff2") format("woff2-variations");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
}

:root {
  --white: #fff;
  --bg: #fff;
  --surface: #f2f5f0;      /* helle Salbeifläche */
  --tint: #e3eedf;         /* zartes Grün */
  --ink: #13211a;          /* Waldschwarz */
  --ink-2: #2c3a31;
  --muted: #48534b;        /* Nebentext, 7.8:1 auf Weiß */
  --green: #00842a;        /* Logo-Grün, Aktion */
  --green-dark: #006b22;
  --line: #d9e0d6;         /* nur Formularfelder und Trennungen in Listen */
  --foot: #13241a;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.75rem + 3.3vw, 4.25rem);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --pad: 20px;
  --section: 72px;
  --head-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
@media (min-width: 640px) { :root { --pad: 32px; --section: 96px; } }
@media (min-width: 1100px) { :root { --pad: 48px; --section: 120px; --head-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, ul, ol, figure, fieldset, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--tint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 20px; height: 20px; flex: none; }
/* Paket: Das Icon-Sprite steht eingebettet am Anfang von <body> und nimmt keinen Platz ein. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }

h1, h2 { font-weight: 600; font-stretch: 90%; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.02; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
/* Paket: Lange zusammengesetzte Wörter aus dem Admin brechen um, statt bei 320 px waagrecht zu scrollen. */
.hero h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 600 var(--fs-sm)/1.2 var(--font); padding-block: 8px; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-soft { background: var(--surface); color: var(--ink); }
.btn-soft:hover { background: var(--tint); }
.btn-line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--green-dark); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--green-dark); text-decoration: none; }
.link .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link:hover .i { transform: translateX(3px); }

/* ---------- Kopf ---------- */
.head {
  position: sticky; top: 0; z-index: 40; height: var(--head-h);
  background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .25s var(--ease);
}
.head.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(19, 33, 26, .35); }
.head-in { height: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { width: 96px; height: auto; }
.nav { display: none; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-call span, .head-contact { display: none; }
.head-call { width: 44px; padding: 0; }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--surface); cursor: pointer; }
.menu-btn .i { width: 22px; height: 22px; }
@media (min-width: 1100px) {
  .brand img { width: 112px; }
  .nav { display: flex; gap: 4px; margin-inline: auto; }
  .nav a { padding: 10px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--ink-2); transition: background-color .2s, color .2s; }
  .nav a:hover { background: var(--surface); color: var(--ink); }
  .nav a[aria-current="true"] { color: var(--green-dark); background: var(--tint); }
  .head-actions { margin-left: 0; }
  .menu-btn { display: none; }
  .head-call { width: auto; padding: 0 18px; }
  .head-call span { display: inline; }
}
@media (min-width: 1360px) { .head-contact { display: inline-flex; } }

/* Mobiles Menü */
.menu {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 39; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 16px var(--pad) calc(24px + env(safe-area-inset-bottom)); background: var(--white);
}
.menu[hidden] { display: none; }
.menu-nav { display: grid; }
.menu-nav a { padding: 14px 0; font-size: 1.5rem; font-weight: 600; font-stretch: 90%; letter-spacing: -0.02em; text-decoration: none; box-shadow: 0 1px 0 var(--surface); }
.menu-nav a:active { color: var(--green); }
.menu-foot { display: grid; gap: 14px; }

/* Erreichbarkeit */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa59d; flex: none; }
.is-open .dot { background: #1fa64a; box-shadow: 0 0 0 0 rgba(31, 166, 74, .5); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 166, 74, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(31, 166, 74, 0); } }

/* ---------- 1 Hero ---------- */
.hero { padding-block: 28px var(--section); }
.hero-in { display: grid; gap: 36px; }
.hero-text { display: grid; gap: 20px; align-content: center; }
.hero h1 { max-width: 16ch; }
@media (min-width: 1000px) { .hero h1 { max-width: 12ch; } }
.hero-lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 34rem; }
.hero-cta { display: grid; gap: 10px; margin-top: 4px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.hero-facts li { display: grid; gap: 2px; padding: 14px 12px; border-radius: var(--r-sm); background: var(--surface); text-align: center; }
.hero-facts strong { font-size: 1.5rem; font-weight: 600; font-stretch: 90%; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.hero-media { position: relative; }
.hero-photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r);
  background: var(--white); box-shadow: 0 12px 32px -16px rgba(19, 33, 26, .45);
}
.hero-card-sub { font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 640px) {
  .hero-cta { display: flex; flex-wrap: wrap; }
  .hero-facts { gap: 12px; }
  .hero-facts strong { font-size: 1.875rem; }
  .hero-facts span { font-size: var(--fs-sm); }
  .hero-card { left: 20px; right: auto; bottom: 20px; max-width: 360px; padding: 16px 20px; }
}
@media (min-width: 1000px) {
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
  .hero-text { padding-block: 32px; }
  .hero-photo { aspect-ratio: auto; height: 100%; min-height: 560px; max-height: 720px; }
}

/* ---------- Abschnitte allgemein ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 14px; max-width: 40rem; margin: 0 auto 40px; text-align: center; justify-items: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); }
@media (min-width: 1000px) { .section-head { margin-bottom: 56px; } }

/* ---------- 2 Leistungen ---------- */
.services { padding-top: 0; }
.cards { display: grid; gap: 32px; }
.card { display: grid; gap: 18px; align-content: start; }
.card-photo { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-photo img { transform: scale(1.04); }
.card-body { display: grid; gap: 8px; justify-items: start; }
.card-body p { color: var(--muted); }
.card-body .link { margin-top: 4px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; gap: 40px 24px; } .card-photo { aspect-ratio: 4 / 3; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } .card-photo { aspect-ratio: 4 / 5; } }

/* ---------- 3 Ihr Anliegen ---------- */
.situation { padding-top: 0; }
.panel { padding: 48px 16px 16px; border-radius: var(--r-lg); background: var(--surface); }
.panel .section-head { margin-bottom: 28px; padding-inline: 8px; }
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin: 0 auto 16px;
  border-radius: 22px; background: var(--white);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  min-height: 52px; padding: 8px 12px; border: 0; border-radius: 16px; line-height: 1.25;
  background: transparent; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tabs [role="tab"]:hover { background: var(--surface); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.tabpanel { display: grid; gap: 0; border-radius: var(--r); overflow: hidden; background: var(--white); }
.tabpanel[hidden] { display: none; }
/* Paket: Ohne Skript, oder wenn site.js nicht lädt, gibt es keine Reiter; alle Inhalte stehen untereinander.
   Erst wenn site.js die Reiter eingerichtet hat (.tabs-bereit), gilt das Feld des Entwurfs. */
.tabpanels { display: grid; gap: 24px; }
html:not(.tabs-bereit) .tabs { display: none; }
/* Alle Inhalte im selben Feld: die Höhe richtet sich nach dem längsten, nichts springt beim Umschalten.
   Ausgeblendete Inhalte bleiben unsichtbar und für Screenreader verborgen. */
.tabs-bereit .tabpanels > .tabpanel { grid-area: 1 / 1; }
.tabs-bereit .tabpanels > .tabpanel[hidden] { display: grid !important; visibility: hidden; opacity: 0; pointer-events: none; }
.tabpanel.enter { animation: panel .45s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(8px); } }
.tab-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.tab-photo img { width: 100%; height: 100%; object-fit: cover; }
.tab-text { display: grid; gap: 14px; align-content: center; justify-items: start; padding: 24px 20px 28px; }
.tab-text h3 { font-size: 1.5rem; font-stretch: 90%; letter-spacing: -0.02em; }
.tab-text p { color: var(--muted); }
.checks { display: grid; gap: 10px; margin-block: 4px 8px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks .i { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--tint); color: var(--green-dark); }
@media (min-width: 640px) { .panel { padding: 56px 24px 24px; } }
@media (min-width: 900px) {
  .tabs { display: flex; width: max-content; max-width: 100%; border-radius: 999px; }
  .tabs [role="tab"] { min-height: 44px; padding: 0 18px; border-radius: 999px; white-space: nowrap; }
}
@media (min-width: 900px) {
  .panel { padding: 72px 40px 40px; }
  .tabpanel { grid-template-columns: 1fr 1fr; min-height: 420px; }
  .tab-photo { position: relative; aspect-ratio: auto; height: 100%; min-height: 420px; }
  .tab-photo img { position: absolute; inset: 0; }
  .tab-text { padding: 48px; }
}

/* ---------- 4 Ablauf ---------- */
.steps { display: grid; gap: 0; max-width: 36rem; margin-inline: auto; }
.steps li { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding-bottom: 32px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::after { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--tint); }
.steps li:last-child::after { display: none; }
.step-n {
  grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--tint); color: var(--green-dark); font-weight: 700; font-size: 1.125rem;
}
.steps h3 { align-self: center; padding-top: 10px; }
.steps p { color: var(--muted); margin-top: 4px; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); max-width: none; gap: 32px; text-align: center; }
  .steps li { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .steps li::after { left: calc(50% + 40px); right: calc(-50% + 24px); top: 23px; bottom: auto; width: auto; height: 2px; }
  .step-n { grid-row: auto; margin-bottom: 20px; }
  .steps h3 { padding-top: 0; }
  .steps p { max-width: 15rem; }
}

/* ---------- 5 Über uns ---------- */
.about { background: var(--surface); }
.about-in { display: grid; gap: 48px; align-items: center; }
.about-media { position: relative; padding-bottom: 18%; padding-right: 14%; }
.about-main { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; }
.about-main img, .about-small img { width: 100%; height: 100%; object-fit: cover; }
.about-small {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; border-radius: var(--r);
  overflow: hidden; box-shadow: 0 0 0 6px var(--surface);
}
.about-text { display: grid; gap: 18px; }
.about-text > p:not(.lead) { color: var(--muted); }
.sign { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.sign img { width: 168px; mix-blend-mode: multiply; }
.sign p { display: grid; font-size: var(--fs-sm); line-height: 1.3; }
.sign span { color: var(--muted); }
.values { display: grid; gap: 12px; margin-top: 8px; }
.values li { display: flex; gap: 12px; align-items: center; }
.values .i { width: 24px; height: 24px; color: var(--green-dark); }
.values span { display: grid; font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.values strong { color: var(--ink); font-size: var(--fs-base); }
@media (min-width: 640px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .values li { align-items: flex-start; } .values .i { margin-top: 2px; } }
@media (min-width: 1000px) {
  .about-in { grid-template-columns: 1fr 1fr; gap: 80px; }
  .about-media { padding-right: 18%; }
}

/* ---------- 6 Holz ---------- */
.wood { padding-top: 0; background: var(--surface); }
.wood-band { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.wood-photo, .wood-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.wood-photo img { object-fit: cover; }
/* Abdunklung nur für Lesbarkeit */
.wood-band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(12, 22, 16, .62); }
.wood-in { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 64px 16px 16px; }
.wood-in > p { color: rgba(255, 255, 255, .86); font-size: var(--fs-lg); max-width: 30rem; }
.sorts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; text-align: left; }
.sorts li { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--white); color: var(--ink); }
.sorts li:last-child { grid-column: 1 / -1; }
.sorts strong { font-weight: 600; }
.sorts span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
@media (min-width: 900px) {
  .wood-in { padding: 112px 40px 40px; }
  .sorts { grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 56px; }
  .sorts li { padding: 18px 20px; }
  .sorts li:last-child { grid-column: auto; }
  .sorts span { font-size: var(--fs-sm); }
}

/* ---------- 7 Fragen ---------- */
.faq-in { display: grid; gap: 32px; }
.faq-side { display: grid; gap: 14px; justify-items: start; align-content: start; }
.faq-side p { color: var(--muted); font-size: var(--fs-lg); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: var(--r); background: var(--surface); transition: background-color .2s; }
.faq-list details[open] { background: var(--tint); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 20px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-base); line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--white); color: var(--green-dark); transition: transform .3s var(--ease); }
.faq-list details[open] summary .i { transform: rotate(45deg); }
.faq-list details p { padding: 0 20px 20px; color: var(--ink-2); max-width: 44rem; }
@media (min-width: 1000px) {
  .faq-in { grid-template-columns: 5fr 7fr; gap: 80px; }
  .faq-side { position: sticky; top: calc(var(--head-h) + 32px); }
  .faq-list summary { padding: 18px 24px; font-size: var(--fs-lg); }
  .faq-list details p { padding: 0 24px 24px; }
}

/* ---------- 8 Jobs ---------- */
.jobs { padding-top: 0; }
.jobs-panel { display: grid; gap: 40px; justify-items: center; padding: 56px 24px; border-radius: var(--r-lg); background: var(--tint); }
.sticker { display: grid; justify-items: center; gap: 6px; font-weight: 700; font-stretch: 100%; text-transform: uppercase; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1; letter-spacing: 0.01em; transform: rotate(-4deg); }
.sticker span { background: var(--ink); color: #fff; padding: .14em .32em .12em; }
.sticker span:nth-child(2) { transform: translateX(-.2em) rotate(2deg); }
.sticker span:nth-child(3) { transform: translateX(.18em) rotate(-1deg); background: var(--green); }
.jobs-text { display: grid; gap: 14px; justify-items: center; text-align: center; }
.jobs-text > p { color: var(--ink-2); font-size: var(--fs-lg); }
.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block: 4px 10px; }
.roles li { padding: 10px 16px; border-radius: 999px; background: var(--white); font-weight: 600; font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .jobs-panel { grid-template-columns: 1fr 1fr; padding: 80px 64px; align-items: center; }
  .jobs-text { justify-items: start; text-align: left; }
  .roles { justify-content: flex-start; }
}

/* ---------- 9 Kontakt ---------- */
.contact { padding-top: 0; }
.contact-in { display: grid; gap: 40px; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-info > p { color: var(--muted); font-size: var(--fs-lg); }
.info { display: grid; gap: 4px; margin-top: 12px; }
.info li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.info .i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--surface); color: var(--green-dark); }
.info li > span { display: grid; gap: 2px; padding-top: 1px; font-weight: 500; }
.info small { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.info a { text-decoration: none; }
.info a:hover { color: var(--green-dark); }
.info .route { font-size: var(--fs-sm); color: var(--green-dark); font-weight: 600; }
.info .status { margin-top: 2px; }

.form { display: grid; gap: 24px; padding: 24px 20px; border-radius: var(--r-lg); background: var(--surface); }
legend { font-weight: 600; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--white); font-size: var(--fs-sm); font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.chips label:hover span { box-shadow: inset 0 0 0 1.5px var(--green); }
.chips input:checked + span { background: var(--green); color: #fff; box-shadow: none; }
.chips input:checked + span::before { content: ""; width: 14px; height: 14px; background: currentColor; /* Paket: Haken als Datei statt eingebetteter URL, die CSP erlaubt nur eigene Dateien. */ --chk: url("/assets/haken.svg"); -webkit-mask: var(--chk) center / contain no-repeat; mask: var(--chk) center / contain no-repeat; }
.chips input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--fs-sm); font-weight: 600; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); font: inherit; font-size: var(--fs-base);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #87918a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 132, 42, .14); }
/* Paket: auch die Nachricht ist Pflichtfeld. */
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.err { color: #b3261e; font-size: var(--fs-sm); font-weight: 500; }
/* Paket: Pflicht-Hinweis außerhalb von .field (Themen), Einwilligung, verstecktes Feld gegen Bots, gesperrter Knopf bis zum Token. */
.pflicht { font-style: normal; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); margin-left: 4px; }
.einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); }
.einwilligung input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--green); }
.einwilligung a { text-decoration: underline; }
.zusatz { position: absolute; left: -10000px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.form-foot { display: grid; gap: 12px; }
.form-foot .btn { width: 100%; }
.form-note { font-size: var(--fs-sm); color: var(--muted); }
.form-note.ok { color: var(--green-dark); font-weight: 600; }
@media (min-width: 640px) {
  .form { padding: 32px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .form-foot { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .form-foot .btn { width: auto; }
}
@media (min-width: 1000px) {
  .contact-in { grid-template-columns: 5fr 7fr; gap: 80px; }
  .form { padding: 40px; }
}

/* ---------- Paket: Bildausschnitte ---------- */
/* Bildausschnitte je Platz statt style-Attribut (pos im Entwurf), die CSP erlaubt keine Inline-Stile.
   shortcut: Ausschnitt hängt am Platz, nicht am Bild; ändern, wenn Kunden Ausschnitte wählen wollen. */
.hero-photo img { object-position: 40% 50%; }
.card:nth-child(1) .card-photo img { object-position: 50% 62%; }
.card:nth-child(2) .card-photo img { object-position: 58% 50%; }
.card:nth-child(4) .card-photo img { object-position: 30% 50%; }
.tabpanel:nth-child(2) .tab-photo img { object-position: 50% 60%; }
.tabpanel:nth-child(3) .tab-photo img { object-position: 50% 55%; }
.about-main img { object-position: 50% 30%; }
.wood-photo img { object-position: 50% 45%; }

/* ---------- Paket: Rechtsseiten ---------- */
.recht { max-width: 44rem; padding-block: var(--section); overflow-wrap: anywhere; }
/* Abstände aus --pad und --section, damit sie mit der Seite wachsen. */
.recht > * + * { margin-top: calc(var(--pad) / 2); }
.recht h2 { margin-top: calc(var(--section) / 2); font-size: 1.5rem; }
.recht h3 { margin-top: var(--pad); }
.recht p { color: var(--ink-2); }

/* ---------- Fuß ---------- */
.foot { background: var(--foot); color: #c3cec6; font-size: var(--fs-sm); padding-bottom: 88px; }
.foot-in { display: grid; gap: 32px; padding-block: 56px 40px; }
.foot-brand { display: grid; gap: 16px; max-width: 22rem; }
.foot-brand img { width: 128px; }
.foot-col h2 { font-size: var(--fs-sm); font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: #fff; margin-bottom: 10px; }
.foot-col p + p { margin-top: 10px; }
.foot a { text-decoration: none; line-height: 1.9; }
.foot a:hover { color: #fff; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px; font-size: var(--fs-xs); color: #9aa89f; box-shadow: 0 -1px 0 rgba(255, 255, 255, .1); }
@media (min-width: 640px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot { padding-bottom: 0; } .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; padding-block: 72px 48px; } }

/* ---------- Aktionsleiste (Telefon) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .98); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -20px rgba(19, 33, 26, .4);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.dock.show { transform: none; }
@media (min-width: 1000px) { .dock { display: none; } }

/* ---------- Bestätigung unten rechts ---------- */
.toast {
  position: fixed; right: var(--pad); bottom: calc(88px + env(safe-area-inset-bottom)); left: var(--pad); z-index: 45;
  display: flex; align-items: center; gap: 12px; max-width: 26rem; margin-left: auto;
  padding: 14px 12px 14px 16px; border-radius: var(--r-sm); background: var(--white); color: var(--ink);
  box-shadow: inset 4px 0 0 var(--green), 0 0 0 1px var(--line), 0 20px 44px -16px rgba(19, 33, 26, .55);
  animation: toast-in .35s var(--ease) both;
}
.toast[hidden] { display: none; }
.toast > .i { width: 28px; height: 28px; padding: 5px; flex: none; border-radius: 50%; background: var(--green); color: #fff; }
.toast-text { flex: 1; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; }
.toast-zu { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.toast-zu:hover { background: var(--surface); color: var(--ink); }
.toast-zu .i { width: 18px; height: 18px; }
@media (min-width: 1000px) { .toast { bottom: 24px; left: auto; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Datenschutz im Fenster ---------- */
.ds {
  width: min(46rem, calc(100% - 2 * var(--pad))); max-height: min(85vh, 56rem); margin: auto; padding: 0;
  border: 0; border-radius: var(--r-lg); background: var(--white); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(19, 33, 26, .55); overflow: hidden;
}
.ds[open] { display: flex; flex-direction: column; }
.ds::backdrop { background: rgba(12, 22, 16, .55); }
.ds-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 24px; box-shadow: 0 1px 0 var(--line); }
.ds-kopf h2 { font-size: 1.25rem; }
.ds-zu { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.ds-zu:hover { background: var(--tint); }
.ds-text.recht { max-width: none; padding: 20px 24px 32px; overflow-y: auto; overscroll-behavior: contain; }
.ds-text.recht h2 { font-size: 1.25rem; margin-top: var(--pad); }

/* ---------- Einblenden ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.hero-text > *, .hero-media { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
.hero-media { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
