/* =========================================================
   Muster Bedachungen AG – Website-Entwurf v2
   Hell, freundlich, Firmengelb. Mobile-first, keine Abhängigkeiten.
   ========================================================= */

:root {
  /* Firmenfarben */
  --yellow:     #ffdf00;   /* Signalgelb aus Logo/Fahrzeugen */
  --yellow-600: #f0cc00;
  --yellow-200: #fff09a;
  --yellow-50:  #fffbe0;
  --ink:        #1d1d1b;   /* Anthrazit/Schwarz aus Logo */
  --ink-700:    #3a3a37;
  --ink-500:    #676760;
  --ink-300:    #c9c7bd;
  --cream:      #faf8f1;
  --stone:      #f1eee4;
  --white:      #ffffff;
  --red:        #d6301f;   /* nur für Notfall-Hinweise (Fahrzeugrot) */
  --ok:         #2f7d4f;

  --text:       var(--ink);
  --text-muted: var(--ink-500);
  --line:       #e8e5da;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-lg: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.625rem);
  --fs-h1: clamp(2.375rem, 1.5rem + 3.8vw, 4.25rem);

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(29,29,27,.05), 0 2px 8px rgba(29,29,27,.04);
  --shadow: 0 2px 4px rgba(29,29,27,.04), 0 12px 32px rgba(29,29,27,.08);
  --shadow-lg: 0 24px 60px rgba(29,29,27,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 72px;
  --mobilebar-h: 66px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 84px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--white); overflow-x: hidden;
  padding-bottom: var(--mobilebar-h);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-color: var(--yellow-600); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.022em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Markierstift-Effekt */
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Entwurfsband ---------- */
.draft-band { background: var(--stone); color: var(--ink-500); font-size: .8rem; text-align: center; padding: 6px var(--gutter); }
.draft-band strong { color: var(--ink); }

/* ---------- Topbar ---------- */
.topbar { background: var(--yellow); color: var(--ink); font-size: .875rem; }
.topbar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar a { color: var(--ink); font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__emergency { display: inline-flex; align-items: center; gap: 8px; }
.topbar__emergency .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
.topbar__meta { display: none; gap: 24px; }
@media (min-width: 768px) { .topbar__meta { display: flex; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214,48,31,.55); } 70% { box-shadow: 0 0 0 8px rgba(214,48,31,0); } 100% { box-shadow: 0 0 0 0 rgba(214,48,31,0); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(29,29,27,.06); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 50px; height: 50px; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.05rem; }
.brand__sub { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) { .brand__mark { width: 56px; height: 56px; } }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { position: relative; display: block; padding: 8px 14px; color: var(--ink-700); text-decoration: none; font-weight: 600; font-size: .96rem; white-space: nowrap; border-radius: 999px; transition: background .2s var(--ease), color .2s; }
.nav a:hover { background: var(--yellow-50); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }

.header-phone { display: none; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn.header-cta { display: none; white-space: nowrap; }
@media (min-width: 900px) { .nav { display: block; } .btn.header-cta { display: inline-flex; } }
@media (min-width: 1160px) { .header-phone { display: inline-flex; } }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: var(--yellow); border-radius: 50%; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; background: var(--cream); padding: 12px var(--gutter) calc(var(--mobilebar-h) + 24px); overflow-y: auto; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.nav-open .mobile-nav { transform: none; opacity: 1; visibility: visible; }
.mobile-nav ul { list-style: none; margin: 0 0 24px; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; color: var(--ink); text-decoration: none; font-size: 1.3rem; font-weight: 700; }
.mobile-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 6px; text-underline-offset: 2px; }
.mobile-nav .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
@media (min-width: 900px) { .mobile-nav { display: none; } }
.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--yellow); --btn-fg: var(--ink); --btn-bd: var(--yellow);
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --btn-bg: var(--yellow-600); --btn-bd: var(--yellow-600); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(240,204,0,.35); }
.btn:active { transform: translateY(0); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--ink-700); --btn-bd: var(--ink-700); color: #fff; box-shadow: 0 10px 24px rgba(29,29,27,.2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink-300); }
.btn--ghost:hover { --btn-bg: #fff; --btn-bd: var(--ink); box-shadow: var(--shadow-sm); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: #fff; --btn-bd: #fff; box-shadow: var(--shadow); }
.btn--sm { padding: 10px 18px; font-size: .94rem; }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

/* ---------- Sektionen ---------- */
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--yellow { background: var(--yellow); }
@media (min-width: 768px) { .section { padding: 112px 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-50); }
.section--yellow .eyebrow::before { background: var(--ink); box-shadow: none; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; }
.section-head--row > div { max-width: 640px; }
.lead { font-size: var(--fs-lg); color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: var(--yellow); right: -260px; top: -220px; }
@media (max-width: 999px) { .hero::before { width: 260px; height: 260px; right: -130px; top: -170px; } }
.hero .wrap { position: relative; display: grid; gap: 48px; padding-top: 48px; padding-bottom: 72px; align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 88px; padding-bottom: 112px; } }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 540px; color: var(--ink-700); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 14px 7px 8px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.hero__trust .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--yellow); }

.hero__media { position: relative; }
.hero__photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--stone); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: .88rem; line-height: 1.3; color: var(--ink-500); }
.hero__badge strong { display: block; font-size: 1rem; color: var(--ink); }
.hero__badge .badge-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); flex: none; color: var(--ink); }
.hero__badge--a { left: -6px; bottom: -26px; }
.hero__badge--b { right: -6px; top: -20px; }
.hero__badge--b .badge-ic { background: #fde7e4; color: var(--red); }
@media (min-width: 1000px) { .hero__badge--a { left: -36px; } .hero__badge--b { right: -20px; top: 24px; } }

/* Unterseiten-Kopf */
.page-hero { position: relative; background: var(--cream); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--yellow); right: -200px; top: -240px; }
.page-hero .wrap { position: relative; padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 768px) { .page-hero .wrap { padding-top: 80px; padding-bottom: 88px; } .page-hero::before { width: 560px; height: 560px; right: -120px; top: -260px; } }
.page-hero .lead { max-width: 640px; margin: 0; color: var(--ink-700); }
.breadcrumb { font-size: .875rem; margin-bottom: 18px; color: var(--text-muted); }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); margin-bottom: 12px; transition: transform .3s var(--ease); }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.06); }
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--text-muted); margin: 0; }
.card__link { margin-top: auto; padding-top: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__link .icon { transition: transform .25s var(--ease); }
.card:hover .card__link .icon { transform: translateX(5px); }

.card--yellow { background: var(--yellow); border-color: var(--yellow); }
.card--yellow p { color: var(--ink-700); }
.card--yellow .card__icon { background: #fff; color: var(--red); }

/* ---------- Split ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split--reverse > :first-child { order: 2; } }

.checklist { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--yellow); stroke-width: 2.4; margin-top: 1px; }

/* ---------- Fotos ---------- */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--stone); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-wrap { position: relative; z-index: 0; margin: 0 16px 16px 0; }
.photo-wrap::before { content: ""; position: absolute; inset: 24px -16px -16px 24px; border-radius: var(--radius); background: var(--yellow); z-index: -1; }
.photo-wrap .photo { box-shadow: var(--shadow); }

/* Platzhalterbilder (hell) */
.ph { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); color: var(--ink-700); display: grid; place-items: center; }
.ph svg.ph__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph__label { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.9); padding: 6px 12px; border-radius: 999px; margin: 12px; text-align: center; }
.ph--wide { aspect-ratio: 16 / 10; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: .95rem; color: var(--ink-700); }

/* ---------- Ablauf ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); font-size: 1.2rem; font-weight: 800; margin-bottom: 18px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* ---------- Referenzen ---------- */
.projects { display: grid; gap: 22px; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project .ph { border-radius: 0; }
.project__body { padding: 18px 22px 24px; }
.project__body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--text-muted); }
.tag { display: inline-block; background: var(--yellow-50); color: var(--ink); border: 1px solid var(--yellow-200); border-radius: 999px; padding: 2px 10px; font-size: .76rem; font-weight: 700; }
.project[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn { border: 1.5px solid var(--line); background: #fff; color: var(--ink-700); font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: all .2s var(--ease); }
.filter-btn:hover { border-color: var(--ink-300); }
.filter-btn[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- Leistungsdetails ---------- */
.service-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 16px; scrollbar-width: thin; }
.service-nav a { flex: none; text-decoration: none; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink-700); font-weight: 600; font-size: .92rem; transition: all .2s var(--ease); }
.service-nav a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.service { padding: 56px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 24px; }
.service .card__icon { margin-bottom: 18px; }

/* ---------- Werte / Team ---------- */
.value { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.value .card__icon { flex: none; margin: 0; }
.value h3 { font-size: 1.1rem; margin-bottom: 4px; }
.value p { color: var(--text-muted); margin: 0; }

.team-names { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
@media (min-width: 900px) { .team-names { grid-template-columns: repeat(4, 1fr); } }
.person { background: #fff; border-radius: var(--radius-sm); padding: 16px 18px; border-left: 4px solid var(--yellow); box-shadow: var(--shadow-sm); }
.person h3 { font-size: 1rem; margin: 0; }
.person p { color: var(--text-muted); font-size: .88rem; margin: 0; }

.logos { display: flex; flex-wrap: wrap; gap: 16px; }
.logo-ph { flex: 1 1 200px; border: 2px dashed var(--ink-300); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--ink-500); font-weight: 700; background: #fff; }

/* ---------- CTA ---------- */
.cta-band { background: var(--yellow); border-radius: 32px; padding: 44px 28px; display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.35); }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--ink-700); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; padding: 64px; } .cta-band__actions { justify-content: flex-end; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; } }
.form-card { background: #fff; border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 44px; } }
.form-card--plain { box-shadow: none; border: 1px solid var(--line); }

.form-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .field legend { font-weight: 700; font-size: .95rem; }
.field .opt { font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--cream); border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 13px 16px; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow-200); }
.field input[type="file"] { padding: 10px; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fff; }
.field__error { color: var(--red); font-size: .88rem; font-weight: 600; }
.field__error:empty { display: none; }
.hint { font-size: .85rem; color: var(--text-muted); }

fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .92rem; cursor: pointer; user-select: none; transition: all .15s var(--ease); }
.chip span:hover { border-color: var(--ink-300); }
.chip input:checked + span { background: var(--yellow); border-color: var(--yellow); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-muted); font-weight: 500; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }

.form-success { display: none; text-align: center; padding: 28px 8px; }
.form-success .card__icon { margin: 0 auto 16px; }
.form-sent .form-success { display: block; animation: pop .4s var(--ease); }
.form-sent form { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .card__icon { width: 44px; height: 44px; margin: 0; flex: none; }
.info-list .card__icon .icon { width: 22px; height: 22px; }
.info-list strong { display: block; }
.info-list a { font-weight: 700; }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:last-child { text-align: right; font-weight: 600; }

.emergency-box { background: var(--yellow); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; }
.emergency-box h3 { display: flex; gap: 10px; align-items: center; }
.emergency-box h3 .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #fff; color: var(--red); }
.emergency-box a.big { display: inline-block; font-size: 1.75rem; font-weight: 800; text-decoration: none; margin-top: 4px; letter-spacing: -0.01em; }
.emergency-box a.big:hover { text-decoration: underline; }

.map-ph { aspect-ratio: 16 / 9; max-height: 380px; width: 100%; border-radius: var(--radius); position: relative; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(0deg, rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 40px 40px, var(--stone); }
.map-ph::before { content: ""; position: absolute; left: -10%; right: -10%; top: 55%; height: 14px; background: #fff; transform: rotate(-8deg); }
.map-ph::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 38%; width: 10px; background: #fff; transform: rotate(12deg); }
.map-pin { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.map-pin .pin { width: 46px; height: 46px; border-radius: 50% 50% 50% 0; background: var(--yellow); border: 3px solid var(--ink); transform: rotate(-45deg); display: grid; place-items: center; }
.map-pin .pin::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.map-pin span { background: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: 18px; padding: 0 22px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 20px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); color: var(--ink-700); padding: 72px 0 28px; font-size: .95rem; border-top: 6px solid var(--yellow); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--yellow-600); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { margin-bottom: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; color: var(--text-muted); }
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- Mobile Aktionsleiste ---------- */
.mobile-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 110; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; height: calc(var(--mobilebar-h) - 10px); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 20px; box-shadow: 0 10px 30px rgba(29,29,27,.18); margin-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink); font-size: .76rem; font-weight: 700; border-radius: 14px; }
.mobile-bar a .icon { width: 21px; height: 21px; }
.mobile-bar a.is-primary { background: var(--yellow); }
.mobile-bar a.is-alert { color: var(--red); }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Scroll-Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }

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

/* ---------- Kleinkram ---------- */
.center { text-align: center; }
.note-ph { border-left: 4px solid var(--yellow); background: var(--yellow-50); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; color: var(--ink-700); }

/* Weitere Leistungen (Startseite) */
.extras { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.extras__label { font-weight: 700; margin-right: 4px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--cream); border: 1.5px solid var(--line); font-weight: 600; font-size: .94rem; text-decoration: none; transition: all .2s var(--ease); }
.chip-link .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--yellow); }
.chip-link:hover { background: #fff; border-color: var(--ink-300); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Header bei mittleren Breiten kompakter */
@media (min-width: 900px) and (max-width: 1099px) {
  .site-header .brand__text { display: none; }
  .nav a { padding: 8px 11px; }
}

/* =========================================================
   Dachaufbau – Scroll-Animation
   Ohne JS / bei reduzierter Bewegung: statische Ansicht (alles sichtbar)
   ========================================================= */
.rb { position: relative; background: var(--white); }
.rb__sticky { padding: 72px 0; }
.rb__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .rb__grid { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.rb__text h2 { margin-bottom: 18px; }
.rb__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rb-step { display: flex; gap: 14px; align-items: flex-start; }
.rb-step h3 { font-size: 1.1rem; margin: 4px 0 2px; }
.rb-step p { margin: 0; color: var(--text-muted); font-size: .96rem; }
.rb-step .btn { margin-top: 14px; }
.rb-step__num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); font-weight: 800; font-size: .95rem; }
.rb-step__num .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.rb__stage { position: relative; }
.rb__svg { width: 100%; height: auto; overflow: visible; }
.rb__progress, .rb__hint { display: none; }
.rb-air { stroke-dasharray: 10 14; animation: rb-flow 1.4s linear infinite; }
@keyframes rb-flow { to { stroke-dashoffset: -48; } }

/* ---- Scroll-Modus ---- */
.js .rb.is-scroll { height: calc(var(--rb-steps) * 62vh + 100vh); }
.js .rb.is-scroll .rb__sticky {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  padding: 0; display: flex; align-items: center; overflow: hidden;
}
.js .rb.is-scroll .rb__steps { display: grid; gap: 0; }
.js .rb.is-scroll .rb-step {
  grid-area: 1 / 1; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.js .rb.is-scroll .rb-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.js .rb.is-scroll .rb__progress { display: block; height: 4px; border-radius: 4px; background: var(--stone); margin: 0 0 22px; overflow: hidden; }
.js .rb.is-scroll .rb__progress span { display: block; height: 100%; width: 100%; background: var(--yellow); border-radius: 4px; transform-origin: left; transform: scaleX(var(--p, 0)); }
.js .rb.is-scroll .rb__hint {
  display: inline-flex; align-items: center; gap: 6px; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500);
  transition: opacity .4s var(--ease);
}
.js .rb.is-scroll .rb__hint .icon { transform: rotate(90deg); animation: rb-bob 1.6s var(--ease) infinite; }
.js .rb.is-scroll.is-started .rb__hint { opacity: 0; }
@keyframes rb-bob { 50% { translate: 0 4px; } }
.rb-layer, .rb-part { will-change: transform, opacity; }

/* Handy: Grafik oben, Text darunter, kompakter */
@media (max-width: 999px) {
  .js .rb.is-scroll .rb__sticky { align-items: stretch; padding-bottom: var(--mobilebar-h); }
  .js .rb.is-scroll .rb__grid { grid-template-rows: auto 1fr auto; height: 100%; padding-top: 20px; padding-bottom: 12px; gap: 8px; }
  .js .rb.is-scroll .rb__text { display: contents; }
  .js .rb.is-scroll .rb__text .eyebrow { display: none; }
  .js .rb.is-scroll .rb__text h2 { font-size: 1.45rem; margin: 0; grid-row: 1; }
  .js .rb.is-scroll .rb__stage { grid-row: 2; display: flex; align-items: center; min-height: 0; }
  .js .rb.is-scroll .rb__svg { max-height: 100%; }
  .js .rb.is-scroll .rb__hint { display: none; }
  .js .rb.is-scroll .rb__progress { grid-row: 3; margin: 0 0 12px; }
  .js .rb.is-scroll .rb__steps { grid-row: 4; background: var(--cream); border-radius: var(--radius); padding: 18px; min-height: 150px; align-content: start; }
  .js .rb.is-scroll .rb__grid { grid-template-rows: auto 1fr auto auto; }
}
@media (max-width: 999px) { .rb-label { display: none; } }

/* Demo: keine Platzhalter-Beschriftungen */
.ph__label{display:none}
