@import url("../fonts/fonts.css?v=dev-20260809");

/* =========================================================
   Rhein Elektrik GmbH — Stylesheet
   Design tokens aus dem Handoff (High-Fidelity)
   ========================================================= */

:root {
  --ink: #14161a;
  --brand: #d81f2a;
  --brand-dark: #b81824;
  --brand-tint: #fdeaec;
  --brand-tint-2: #faf5f5;
  --muted: #5b636e;
  --muted-2: #626a75; /* Sekundärtext auf hellem Grund: ≥4,5:1 auch auf --bg-light */
  --muted-3: #9aa1ab; /* Sekundärtext auf dunklem Grund */
  --ink-70: #3a4048;
  --border: #e6e8ec;
  --border-2: #dfe2e7;
  --border-3: #d7dbe0;
  --bg-light: #f4f5f7;
  --bg-dark: #0f1115;
  --card-dark: #171a1f;
  --border-dark: #262a31;
  --white: #ffffff;
  --wa: #25d366;
  --wa-ink: #05341f;
  --wa-dark: #136937;
  --wa-tint: #eafaf0;
  --wa-border: #b7e6c9;
  --star: #ffb703;

  --shadow-cta: 0 12px 28px rgba(216, 31, 42, .28);
  --shadow-card-hover: 0 22px 46px rgba(20, 22, 26, .1);
  --shadow-soft: 0 20px 44px rgba(20, 22, 26, .08);

  --maxw: 1240px;
  --pad-x: clamp(18px, 4vw, 48px);
  --sec-y: clamp(70px, 10vw, 124px);

  --r-chip: 8px;
  --r-btn: 10px;
  --r-card: 16px;

  --font-head: "Saira SemiCondensed", "Archivo", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; }
input, textarea, button, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; }
strong { font-weight: 700; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1em; height: 1em; display: inline-block; flex: 0 0 auto; stroke: currentColor; fill: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sec-y); position: relative; z-index: 1; }
.section--flush-top { padding-top: 0; }
.section--light { background: var(--bg-light); border-block: 1px solid var(--border); }
.section--dark { background: var(--bg-dark); color: var(--bg-light); }
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(75% 45% at 50% -8%, rgba(216, 31, 42, .05), transparent 70%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: var(--r-btn); font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; white-space: nowrap; line-height: 1.1;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { color: #fff; background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(216, 31, 42, .34); }
.btn--outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-tint-2); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { color: var(--wa-ink); background: #1fc35d; transform: translateY(-2px); }
.btn--wa-soft { background: var(--wa-tint); border-color: var(--wa-border); color: var(--wa-dark); }
.btn--wa-soft:hover { color: var(--wa-dark); border-color: var(--wa); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: #000; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(20, 22, 26, .06), 0 8px 24px rgba(20, 22, 26, .05);
}
.site-header__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 12px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { padding: 9px 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-70); border-radius: var(--r-chip); }
.nav__link:hover { color: var(--brand); background: var(--brand-tint-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--border);
  background: #fff; border-radius: var(--r-chip); align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; color: var(--ink); }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 74px 12px auto 12px; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 12px; box-shadow: 0 24px 50px rgba(20, 22, 26, .16);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s;
  }
  body.nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 13px 14px; font-size: 16px; }
  .nav__actions { margin-left: 0; margin-top: 6px; flex-direction: column; align-items: stretch; }
  .nav__actions .btn { width: 100%; padding: 14px; }
}

/* Scrim hinter dem mobilen Menü – fokussiert das Menü, Tap schließt (via JS) */
.nav-scrim {
  position: fixed; inset: 0; z-index: 45; background: rgba(15, 17, 21, .45);
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease);
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
@media (min-width: 941px) { .nav-scrim { display: none; } }

/* ---------- Section headers ---------- */
.sec-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.03; letter-spacing: -.02em;
  text-wrap: balance;
}
.sec-title--narrow { max-width: 600px; }
.sec-lead { font-size: 16px; line-height: 1.6; color: var(--muted); }
.section--dark .sec-lead { color: #b7bdc6; }
.sec-head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px);
}
.sec-head--split .sec-lead { max-width: 360px; }
.rule-top { border-top: 2px solid var(--ink); padding-top: 22px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(120px, 15vh, 172px); padding-bottom: clamp(36px, 6vw, 60px); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px;
  border: 1px solid var(--border-2); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 24px;
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa-dark); }
.hero__title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(33px, 6.6vw, 72px); line-height: 1.02; letter-spacing: -.025em;
  margin-bottom: 22px; text-wrap: balance; overflow-wrap: break-word;
}
.hero__title .accent { color: var(--brand); }
.hero__lead {
  font-size: clamp(16px, 1.9vw, 19px); line-height: 1.6; color: var(--muted);
  max-width: 520px; margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: clamp(380px, 46vw, 520px); object-fit: cover;
  object-position: center 30%; border-radius: 10px;
  box-shadow: 0 30px 60px rgba(20, 22, 26, .18);
}
.rating-badge {
  position: absolute; top: -14px; right: -14px; background: var(--brand); color: #fff;
  padding: 13px 17px; border-radius: 10px; box-shadow: var(--shadow-cta);
}
.rating-badge__score { font-family: var(--font-head); font-weight: 900; font-size: 26px; line-height: 1; display: flex; align-items: center; gap: 6px; }
.rating-badge__score .icon { width: 20px; height: 20px; color: var(--star); fill: var(--star); }
.rating-badge__label { font-size: 12px; opacity: .92; margin-top: 3px; }

/* Kenndaten – Typenschild statt generischem „große Zahl / kleines Label"-Streifen */
.nameplate {
  margin-top: clamp(38px, 5vw, 58px);
  border: 1px solid var(--border-2); border-radius: 12px;
  background: #fff; overflow: hidden; box-shadow: var(--shadow-soft);
}
.nameplate__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px clamp(16px, 2.4vw, 22px);
  border-bottom: 1px solid var(--border); background: var(--bg-light);
}
.nameplate__title {
  font-family: var(--font-head); font-weight: 800; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-70);
}
.nameplate__meta { font-size: 12px; color: var(--muted-2); }
.nameplate__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: clamp(16px, 2.1vw, 22px) clamp(16px, 2.4vw, 22px); border-left: 1px solid var(--border); }
.spec:first-child { border-left: none; }
.spec dt {
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px;
}
.spec dd {
  font-family: var(--font-head); font-weight: 800; color: var(--ink);
  font-size: clamp(29px, 3.5vw, 39px); line-height: 1;
  display: flex; align-items: baseline; gap: 7px;
}
.spec dd i { font-style: normal; font-weight: 700; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.spec--brand dd { color: var(--brand); }
@media (max-width: 620px) {
  .nameplate__grid { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(3) { border-left: none; }
  .spec:nth-child(3), .spec:nth-child(4) { border-top: 1px solid var(--border); }
}

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--border); background: #fff; }
/* Flex statt auto-fit-Grid: bei mittleren Breiten bricht 3+2 zentriert
   und damit symmetrisch um statt linksbündig auszufransen. */
.trust__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 22px var(--pad-x);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 34px; align-items: center;
}
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__item .icon { width: 26px; height: 26px; color: var(--brand); flex: 0 0 auto; }
.trust__item b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.2; }
.trust__item span { font-size: 12.5px; color: var(--muted); }

/* ---------- Services (Datenblatt-Raster) ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-card); overflow: hidden;
}
.service {
  background: #fff; padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column; transition: background .3s;
}
.service:hover { background: var(--brand-tint-2); }
.service__icon { width: 27px; height: 27px; color: var(--brand); margin-bottom: 18px; }
.service h3 { font-weight: 700; font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.01em; margin-bottom: 10px; }
.service p { font-size: 15px; line-height: 1.6; color: var(--muted); flex: 1; }
.service__list { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--ink-70);
  background: var(--bg-light); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.callout {
  margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  justify-content: space-between; padding: clamp(26px, 3.5vw, 38px) clamp(28px, 4vw, 44px); border-radius: var(--r-card);
  background: var(--brand); color: #fff;
}
.callout p { font-size: clamp(16px, 1.9vw, 19px); line-height: 1.5; max-width: 720px; margin: 0; font-weight: 500; }
.callout strong { font-weight: 800; }
.callout .btn { white-space: nowrap; }

/* ---------- Flow / Ablauf ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; --legT: .52s; }
.flow-step { position: relative; }
.flow-step__head { display: flex; align-items: center; margin-bottom: 20px; }
.flow-node {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%; background: #fff;
  border: 2px solid var(--border-3); position: relative;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.flow-node .icon { width: 26px; height: 26px; color: var(--muted-2); transition: color .2s var(--ease); }
.flow-node.is-active { border-color: var(--brand); box-shadow: 0 10px 24px rgba(216, 31, 42, .16); }
.flow-node.is-active .icon { color: var(--brand); }
.flow-step--last .flow-node.is-active { background: var(--brand); box-shadow: var(--shadow-cta); }
.flow-step--last .flow-node.is-active .icon { color: #fff; }
/* Verbindung: graue Spur + rote Füllung, die von Knoten zu Knoten fließt.
   Der Pfeil wandert mit der Füllspitze und löst sich am Zielknoten auf. */
.flow-connector { position: relative; flex: 1; height: 2px; margin: 0 6px; }
.flow-connector::before { content: ""; position: absolute; left: 0; right: 11px; top: 0; bottom: 0; background: var(--border); border-radius: 2px; }
.flow-connector__fill { position: absolute; left: 0; right: 11px; top: 0; bottom: 0; background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left center; }
.flow-connector__travel { position: absolute; inset: 0; }
.flow-arrow { position: absolute; left: 0; top: 50%; margin-top: -6px; width: 11px; height: 12px; background: var(--brand); clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: 0; }
.flow-connector.is-filled .flow-connector__fill { animation: flowFill var(--legT) linear forwards; }
.flow-connector.is-filled .flow-connector__travel { animation: flowTravel var(--legT) linear forwards; }
.flow-connector.is-filled .flow-arrow { animation: flowArrow var(--legT) linear forwards; }
@keyframes flowFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flowTravel { from { transform: translateX(0); } to { transform: translateX(calc(100% - 11px)); } }
@keyframes flowArrow { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 1; } }
.flow-step__body { padding-right: 16px; }
.flow-step__body h3 { font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.flow-step__body p { font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 760px) {
  .flow-connector, .flow-arrow { display: none; }
  .flow { gap: 22px; }
}

/* ---------- Gallery / Projekte ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.proj {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: box-shadow .35s, transform .35s;
}
.proj:hover { box-shadow: 0 20px 40px rgba(20, 22, 26, .14); transform: translateY(-4px); }
.proj__media { overflow: hidden; aspect-ratio: 4 / 3; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.05); }
.proj figcaption { padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.proj figcaption h3 { font-weight: 700; font-size: 16px; line-height: 1.25; }
.proj__tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); white-space: nowrap; margin-top: 3px; }

/* ---------- Brands grid ---------- */
.brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 860px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .brands { grid-template-columns: repeat(2, 1fr); } }
.brands__item {
  display: flex; align-items: center; justify-content: center; height: 100px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.brands__item:hover { border-color: var(--brand); box-shadow: 0 10px 22px rgba(20, 22, 26, .08); transform: translateY(-3px); }
.brands__item img { height: 38px; width: auto; max-width: 70%; object-fit: contain; }

/* ---------- Förderung + Einzugsgebiet ---------- */
.split-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: clamp(26px, 3vw, 38px);
}
.info-card__icon {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 13px; background: var(--brand-tint); margin-bottom: 20px;
}
.info-card__icon .icon { width: 26px; height: 26px; color: var(--brand); }
.info-card h3 { font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 12px; letter-spacing: -.01em; }
.info-card p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.checks { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 11px; font-size: 15px; line-height: 1.5; color: var(--ink-70); }
.checks .icon { width: 20px; height: 20px; color: var(--wa-dark); flex: 0 0 auto; margin-top: 2px; }
.region-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.region-chips li {
  list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-70);
  background: var(--bg-light); border: 1px solid var(--border); padding: 7px 13px; border-radius: 999px;
}
.region-chips li.is-more { background: transparent; border-style: dashed; color: var(--muted); }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.reviews-head__score { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.reviews-head__rating { text-align: right; }
.reviews-head__count { font-size: 14px; color: var(--muted-3); margin-top: 6px; }
.stars { color: var(--star); display: inline-flex; gap: 2px; }
.stars .icon { width: 18px; height: 18px; fill: var(--star); color: var(--star); }
.icon--star { color: var(--star); fill: var(--star); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.review-card { display: flex; flex-direction: column; padding: 26px; border-radius: 12px; background: var(--card-dark); border: 1px solid var(--border-dark); }
.review-card .stars { margin-bottom: 14px; }
.review-card p { font-size: 15px; line-height: 1.65; color: #d4d8dd; flex: 1; }
.review-card__author { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-dark); }
.review-card__author b { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.review-card__author span { display: block; font-size: 13px; color: var(--muted-3); }
.reviews-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; text-align: center; }
.reviews-foot span { font-size: 13px; color: var(--muted-3); }
@media (max-width: 420px) {
  .reviews-foot .btn { white-space: normal; text-align: center; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about__media figure { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--border); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body p { font-size: 16px; line-height: 1.65; color: var(--muted); margin-bottom: 16px; max-width: 60ch; text-wrap: pretty; }
.about__body p:last-child { margin-bottom: 0; }
/* Redaktionelles Zitat – die Stimme des Meisters, kein Kasten */
.about__quote {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(21px, 2.7vw, 29px); line-height: 1.3; letter-spacing: -.015em;
  color: var(--ink); margin: 0 0 24px; padding-left: 26px; position: relative;
  text-wrap: balance;
}
.about__quote::before {
  content: "\201C"; position: absolute; left: -3px; top: .16em;
  font-family: var(--font-head); font-size: 1.7em; line-height: 0; color: var(--brand);
}
/* Handschriftliche Unterschrift (Caveat als eingebetteter SVG-Pfad, kein Font-Request) */
.about__sign { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.signature { width: clamp(200px, 50%, 260px); height: auto; }
.about__sign-name b { font-family: var(--font-head); font-weight: 800; font-size: 16px; display: block; line-height: 1.25; }
.about__sign-name span { font-size: 13.5px; color: var(--muted); }
/* Schreib-Wipe nur mit JS – ohne JS ist die Unterschrift sofort vollständig sichtbar */
.js .about__body:not(.is-in) .signature { clip-path: inset(0 100% 0 0); }
.js .about__body.is-in .signature { clip-path: inset(0 100% 0 0); animation: sigWipe 1s var(--ease) .25s forwards; }
@keyframes sigWipe { to { clip-path: inset(0 -2% 0 0); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); }
.contact-methods { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.contact-phone { padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.contact-phone__label { font-size: 13px; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.contact-phone__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 3.2vw, 28px); letter-spacing: -.01em; margin-bottom: 16px; color: var(--ink); }
.contact-phone__num:hover { color: var(--ink); }
.contact-phone__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-phone__actions .btn { flex: 1; min-width: 140px; }
.contact-mail { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--border); transition: border-color .3s; }
.contact-mail:hover { border-color: var(--brand); color: inherit; }
.contact-mail__ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand-tint); flex: 0 0 auto; }
.contact-mail__ic .icon { width: 20px; height: 20px; color: var(--brand); }
.contact-mail small { display: block; font-size: 13px; color: var(--muted); }
.contact-mail b { font-size: 16px; font-family: var(--font-head); }
.contact-note { margin-top: 4px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.contact-note .icon { width: 16px; height: 16px; color: var(--wa-dark); }
.urgent-note {
  display: flex; align-items: center; gap: 12px; max-width: 460px;
  padding: 13px 16px; border-radius: 12px;
  background: var(--brand-tint); border: 1px solid #f4c4c8; color: var(--ink);
  font-size: 14.5px; line-height: 1.4;
}
.urgent-note .icon { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; }
.urgent-note strong { font-family: var(--font-head); font-weight: 700; }

/* form */
.form { padding: clamp(24px, 4vw, 34px); border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-70); margin-bottom: 7px; }
.field .req { color: var(--brand); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; background: #fff;
  border: 1px solid var(--border-3); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field select {
  width: 100%; padding: 13px 42px 13px 15px; border-radius: 10px; background: #fff;
  border: 1px solid var(--border-3); color: var(--ink); outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none; transition: border-color .2s, box-shadow .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235b636e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 18px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(216, 31, 42, .12); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6b7280; opacity: 1; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form__consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: 0 0 auto; }
.form__consent a { color: var(--brand); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 14px; font-size: 14px; font-weight: 600; }
.form__status.is-error { color: var(--brand); animation: statusIn .3s var(--ease); }
@keyframes statusIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.form-success { display: none; padding: 44px 32px; border-radius: 14px; background: #fff; border: 1px solid var(--wa-border); text-align: center; box-shadow: var(--shadow-soft); }
.form-success.is-visible { display: block; animation: successIn .45s var(--ease); }
@keyframes successIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.form-success__ic { width: 60px; height: 60px; border-radius: 50%; background: var(--wa-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.form-success__ic .icon { width: 30px; height: 30px; color: var(--wa-dark); }
.form-success h3 { font-weight: 800; font-size: 23px; margin-bottom: 10px; }
.form-success p { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #c3cad3; position: relative; z-index: 1; }
.site-footer__top {
  max-width: var(--maxw); margin-inline: auto; padding: clamp(48px, 6vw, 64px) var(--pad-x) clamp(28px, 4vw, 36px);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px 28px;
}
.site-footer__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { font-size: 14px; line-height: 1.6; color: var(--muted-3); max-width: 320px; }
.footer-col h4 { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col li { font-size: 14px; color: #9aa1ab; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; color: #ff6a72; flex: 0 0 auto; margin-top: 2px; }
.site-footer__bottom {
  border-top: 1px solid var(--border-dark);
  max-width: var(--maxw); margin-inline: auto; padding: 20px var(--pad-x) clamp(48px, 6vw, 60px);
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between;
}
.site-footer__bottom span { font-size: 13px; color: var(--muted-3); }
.site-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__legal a { font-size: 13px; color: var(--muted-3); }
.site-footer__legal a:hover { color: #fff; }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- FABs ---------- */
.fabs { position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 60; display: flex; flex-direction: column; gap: 12px; transition: opacity .22s var(--ease); }
body.nav-open .fabs, .fabs.is-hidden { opacity: 0; pointer-events: none; }
.fab { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 10px 26px rgba(20, 22, 26, .3); transition: transform .25s; }
.fab:hover { transform: scale(1.08); }
.fab .icon { width: 26px; height: 26px; }
.fab--wa { background: var(--wa); color: var(--wa-ink); }
.fab--wa:hover { color: var(--wa-ink); }
.fab--call { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(216, 31, 42, .38); }
.fab--call:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
/* Bewusst zurückhaltend: kurzer, sicherer Weg statt floaty Fade-up auf allem. */
[data-reveal] { opacity: 0; transform: translateY(13px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  /* Bild flacher halten, damit H1 + CTA über dem Fold bleiben */
  .hero__media img { height: clamp(240px, 38vw, 340px); }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .rating-badge { top: 10px; right: 10px; }
  .callout { flex-direction: column; align-items: flex-start; }
}

/* ---------- Sub-pages (Impressum / Datenschutz / Danke) ---------- */
.subpage-header {
  border-bottom: 1px solid var(--border); background: #fff;
  position: sticky; top: 0; z-index: 40;
}
.subpage-header__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.subpage-header .brand-logo img { height: 40px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-70); }
.back-link .icon { width: 18px; height: 18px; transform: rotate(180deg); }
.legal { max-width: 820px; margin-inline: auto; padding: clamp(48px, 8vw, 90px) var(--pad-x) clamp(60px, 8vw, 100px); }
.legal h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; margin-bottom: 12px; }
.legal > p.lead { color: var(--muted); margin-bottom: 40px; font-size: 16px; }
.legal h2 { font-size: clamp(19px, 2.6vw, 24px); margin: 36px 0 12px; letter-spacing: -.01em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-70); font-size: 15.5px; line-height: 1.75; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 20px; }
.legal a { color: var(--brand); text-decoration: underline; }
.danke { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 60px var(--pad-x); }
.danke__ic { width: 72px; height: 72px; border-radius: 50%; background: var(--wa-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.danke__ic .icon { width: 36px; height: 36px; color: var(--wa-dark); }
.danke h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 14px; }
.danke p { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 auto 28px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
