/* ==========================================================================
   Seitenspezifische Bausteine
   ========================================================================== */

/* --- Hero (Startseite): vollflächiges Bild ------------------------------- */
.hero {
  position: relative;
  min-height: 92svh;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-height) + clamp(2rem, 6vh, 5rem));
  padding-bottom: clamp(2.5rem, 7vh, 5.5rem);
  background: var(--color-dark);
  color: var(--color-text-invert);
  overflow: hidden;
  isolation: isolate;
}

/* Bildebene ---------------------------------------------------------------- */
.hero__bg {
  position: absolute;
  inset: -2% 0 -6%;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide picture { display: block; width: 100%; height: 100%; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1200ms ease-out;
}
/* langsame Kamerafahrt auf dem aktiven Bild */
.hero__slide.is-active img {
  animation: heroPan 16s ease-out both;
}
@keyframes heroPan {
  from { transform: scale(1.02); }
  to   { transform: scale(1.11); }
}

/* Abdunklung: unten für den Text, rechts oben ein warmer Lichtschimmer ----- */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 13, 0.82) 0%, rgba(10, 10, 13, 0.28) 26%,
                    rgba(10, 10, 13, 0.34) 52%, rgba(10, 10, 13, 0.9) 100%),
    linear-gradient(96deg, rgba(10, 10, 13, 0.86) 0%, rgba(10, 10, 13, 0.52) 38%,
                    rgba(10, 10, 13, 0.08) 68%, rgba(10, 10, 13, 0.35) 100%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(58% 46% at 78% 14%, rgba(240, 192, 36, 0.22), transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}
/* feine Farbschichten am unteren Rand – wie aufgetragene Farbe */
.hero__edge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  z-index: 3;
  display: flex;
  pointer-events: none;
}
.hero__edge i { flex: 1; background: var(--edge); }

/* Inhalt ------------------------------------------------------------------- */
.hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.hero__content { max-width: 44rem; }

/* Großer Bildschirm: Text steht oberhalb der Mitte, Bildunterschrift und
   Punkte bleiben unten rechts */
@media (min-width: 1100px) {
  .hero {
    align-items: stretch;
    padding-top: calc(var(--header-height) + clamp(1.25rem, 3vh, 2.5rem));
  }
  .hero__content {
    align-self: center;
    margin-bottom: clamp(3rem, 14vh, 9rem);
  }
}
.hero .eyebrow { color: var(--color-accent); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65); }
.hero__facts li { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero__title {
  font-size: var(--fs-hero);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--color-text-invert);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}
.hero__title .accent { color: var(--color-accent); }
.hero__cta { margin-bottom: 2.25rem; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 243, 238, 0.2);
  list-style: none;
  margin: 0;
  padding-left: 0;
  max-width: 46rem;
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.86rem;
  color: rgba(246, 243, 238, 0.82);
}
.hero__facts li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}

/* Bildunterschrift und Steuerung ------------------------------------------ */
.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  text-align: right;
  padding-bottom: 0.35rem;
}
.hero__caption {
  min-height: 2.6em;
  max-width: 17rem;
}
.hero__caption strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-text-invert);
}
.hero__caption strong { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.hero__caption span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero__dots { display: flex; gap: 0.45rem; }
.hero__dot {
  position: relative;
  width: 54px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: block;
}
.hero__dot::before {
  content: "";
  position: absolute;
  inset: 18px 0;
  background: rgba(246, 243, 238, 0.35);
}
.hero__dot::after {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 0;
  background: var(--color-accent);
  transition: width 220ms linear;
}
.hero__dot:hover::before { background: rgba(246, 243, 238, 0.55); }
.hero__dot[aria-current="true"]::after { width: 100%; }
.hero__dot[data-timing="true"][aria-current="true"]::after {
  animation: heroProgress 6800ms linear both;
}
@keyframes heroProgress { from { width: 0; } to { width: 100%; } }

/* Scroll-Hinweis ----------------------------------------------------------- */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.55);
}
.hero__scroll i {
  display: block;
  width: 44px; height: 1px;
  background: rgba(246, 243, 238, 0.3);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--color-accent);
  animation: scrollHint 2.4s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(250%); }
  100% { transform: translateX(250%); }
}

/* Pinselzug beim Laden ----------------------------------------------------- */
.hero__sweep {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(240, 192, 36, 0) 0%, rgba(240, 192, 36, 0.9) 42%,
                              rgba(240, 192, 36, 0.98) 56%, rgba(240, 192, 36, 0) 100%);
  animation: brushSweep 1250ms cubic-bezier(0.6, 0.04, 0.24, 1) 180ms both;
}
.hero__curtain {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--color-dark);
  transform-origin: right center;
  animation: heroCurtain 1150ms cubic-bezier(0.62, 0.02, 0.2, 1) 260ms both;
  pointer-events: none;
}
@keyframes heroCurtain {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* --- Seitenkopf (Unterseiten) -------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--color-dark);
  color: var(--color-text-invert);
  padding-top: calc(var(--header-height) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(240, 192, 36, 0.14), transparent 60%),
    linear-gradient(180deg, #101014, #0e0e11);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.page-hero h1 { color: var(--color-text-invert); max-width: 15em; }
.page-hero p { color: rgba(246, 243, 238, 0.76); max-width: 52ch; }
.page-hero .breadcrumbs { padding-top: 0; margin-bottom: 1.5rem; }
.page-hero .breadcrumbs ol { color: rgba(246, 243, 238, 0.55); }
.page-hero .breadcrumbs a:hover { color: var(--color-accent); }

/* --- Signature-Sektion („Farbe mit Wirkung“) ----------------------------- */
.signature {
  position: relative;
  background: var(--color-dark);
  color: var(--color-text-invert);
  overflow: hidden;
}
.signature::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 192, 36, 0.5), transparent);
}
.signature__intro { max-width: 52ch; margin-inline: auto; text-align: center; }

/* --- Split-Bild/Text ----------------------------------------------------- */
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 3 / 4; }
.split__badge {
  position: absolute;
  right: 1rem; bottom: 1rem;
  background: rgba(14, 14, 17, 0.82);
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Leistungsliste (Unterseiten) ---------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin: 0;
  font-size: 0.96rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--color-accent-deep);
  border-bottom: 2px solid var(--color-accent-deep);
  transform: rotate(-45deg);
}
.on-dark .check-list li::before { border-color: var(--color-accent); }

/* --- Leistungsnavigation (Querverweise) ---------------------------------- */
.service-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.service-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 56px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.service-nav a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.service-nav a > span + span { flex: none; }
.service-nav a:hover { border-color: var(--color-accent); background: var(--color-surface); }
.service-nav a[aria-current="page"] {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-surface-alt);
}
.service-nav li { margin: 0; }

/* --- CTA-Band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  background: var(--color-accent);
  color: var(--color-brand-primary);
  overflow: hidden;
  isolation: isolate;
}
/* die goldene Fläche mit leichten Rollbahnen – wie frisch gerollt */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 38%,
                    rgba(122, 90, 12, 0.04) 70%, rgba(255, 255, 255, 0.03))
      0 0 / 210px 100% repeat-x,
    var(--color-accent);
}
/* Farbroller, der die Fläche aufträgt (nur während des Auftrags sichtbar) */
.cta-band__roller {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: clamp(70px, 8vw, 110px);
  aspect-ratio: 34 / 30;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cg fill='%2316161a'%3E%3Crect x='1' y='17' width='27' height='11' rx='3'/%3E%3Crect x='12.5' y='9' width='3' height='9' rx='1.5'/%3E%3Crect x='12.5' y='7.5' width='14' height='3' rx='1.5'/%3E%3Crect x='24' y='0' width='3.4' height='9' rx='1.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-40%, -50%) rotate(90deg);
  filter: drop-shadow(0 0 2px rgba(246, 243, 238, 0.9)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  opacity: 0;
  pointer-events: none;
}
/* Aufrollen beim Erscheinen (setzt animations.js) */
.cta-band.is-live { background: var(--color-dark); }
.cta-band.is-live::before { clip-path: inset(0 100% 0 0); }
.cta-band.is-live .cta-band__inner,
.cta-band.is-live .cta-band__mark { opacity: 0; }
.cta-band.is-rolled::before {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1300ms cubic-bezier(0.65, 0, 0.35, 1);
}
.cta-band.is-rolled .cta-band__roller { animation: ctaRoll 1300ms cubic-bezier(0.65, 0, 0.35, 1) both; }
.cta-band.is-rolled .cta-band__inner,
.cta-band.is-rolled .cta-band__mark { opacity: 1; transition: opacity 700ms ease 850ms; }
@keyframes ctaRoll {
  0%   { left: 0;    opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band.is-live { background: var(--color-accent); }
  .cta-band.is-live::before { clip-path: none; }
  .cta-band.is-live .cta-band__inner, .cta-band.is-live .cta-band__mark { opacity: 1; }
  .cta-band__roller { display: none; }
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.cta-band h2 { color: var(--color-brand-primary); max-width: 20ch; }
.cta-band p { color: rgba(22, 22, 26, 0.72); max-width: 46ch; margin-top: 0.8rem; }
.cta-band .btn { --btn-bg: var(--color-brand-primary); --btn-fg: var(--color-accent); }
.cta-band .btn::before { background: var(--color-surface-alt); }
.cta-band .btn:hover { color: var(--color-brand-primary); }
.cta-band .btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--color-brand-primary);
  border-color: rgba(22, 22, 26, 0.35);
}
.cta-band__mark {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 34vw, 480px);
  aspect-ratio: 525 / 336;
  /* das Logo-Zeichen als einfarbige Silhouette (Schriftzug bleibt unsichtbar) */
  color: transparent;
  font-size: 0;
  background: rgba(22, 22, 26, 0.075);
  -webkit-mask: url("../images/brand/mb-zeichen-dunkel.png") center / contain no-repeat;
          mask: url("../images/brand/mb-zeichen-dunkel.png") center / contain no-repeat;
  pointer-events: none;
  user-select: none;
}

/* --- Einsatzgebiet ------------------------------------------------------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.area-list li {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.area-list li span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-muted);
  margin-left: auto;
}
.radius-visual {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  min-height: 300px;
  margin-inline: auto;
  align-self: center;
  display: grid;
  place-items: center;
}
.radius-visual__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
}
.radius-visual__ring--1 { inset: 34%; border-color: var(--color-accent); }
.radius-visual__ring--2 { inset: 17%; border-style: dashed; }
.radius-visual__ring--3 { inset: 0; border-style: dashed; opacity: 0.6; }
.radius-visual__core {
  position: relative;
  z-index: 2;
  padding: 0.5rem;
  background: var(--color-brand-primary);
  color: var(--color-surface-alt);
  border-radius: 50%;
  width: 30%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}
.radius-visual__tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-surface-alt);
  padding: 0 0.4rem;
}
.radius-visual__tag--1 { top: 33%; left: 50%; transform: translate(-50%, -50%); color: var(--color-accent-ink); }
.radius-visual__tag--2 { top: 16%; left: 50%; transform: translate(-50%, -50%); }
.radius-visual__tag--3 { top: -1%; left: 50%; transform: translate(-50%, -50%); }

/* --- 404 ----------------------------------------------------------------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--color-dark);
  color: var(--color-text-invert);
  text-align: center;
  padding: calc(var(--header-height) + 3rem) var(--gutter) 5rem;
  position: relative;
  overflow: hidden;
}
.error-page__code {
  font-size: clamp(6rem, 22vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(246, 243, 238, 0.28);
  margin-bottom: 1.5rem;
}
.error-page__code span { color: var(--color-accent); -webkit-text-stroke: 0; }

/* --- Rechtstexte --------------------------------------------------------- */
.legal { max-width: 68ch; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-top: 2.6rem; margin-bottom: 0.9rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.8rem; margin-bottom: 0.5rem; }
.legal p, .legal li { font-size: 0.95rem; }
.legal address { font-style: normal; line-height: 1.7; }

/* --- Referenz-Detailkarte ------------------------------------------------ */
.ref-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--color-border);
  list-style: none;
  margin: 0 0 var(--space-md);
}
.ref-meta li { margin: 0; }
.ref-meta dt, .ref-meta__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}
.ref-meta__value { font-size: 0.95rem; font-weight: 500; }

/* ==========================================================================
   Einsatzgebiet – Umkreisgrafik
   ========================================================================== */
.areamap {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: clamp(0rem, 4vw, 3rem);
}
.areamap svg { width: 100%; height: auto; overflow: visible; }

.areamap__ring {
  fill: none;
  stroke: rgba(246, 243, 238, 0.16);
  stroke-width: 1;
  stroke-dasharray: 4 7;
}
.areamap__ring--main { stroke: rgba(240, 192, 36, 0.5); stroke-dasharray: none; }
.areamap__spoke { stroke: rgba(246, 243, 238, 0.08); stroke-width: 1; }
.areamap__link {
  stroke: rgba(240, 192, 36, 0.32);
  stroke-width: 1.2;
  fill: none;
}
.areamap__ringlabel {
  fill: rgba(246, 243, 238, 0.42);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-anchor: middle;
}

.areamap__place { cursor: default; }
.areamap__dot {
  fill: rgba(246, 243, 238, 0.62);
  transition: fill var(--transition-normal), r var(--transition-normal);
}
.areamap__place--major .areamap__dot { fill: var(--color-accent); }
.areamap__halo {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.2;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.areamap__label {
  fill: rgba(246, 243, 238, 0.78);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: fill var(--transition-normal);
}
.areamap__km {
  fill: rgba(240, 192, 36, 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
/* Nebenorte: Name erscheint erst beim Überfahren */
.areamap__label--soft { opacity: 0; transition: opacity var(--transition-normal); }
.areamap__place:hover .areamap__label--soft,
.areamap__place:focus-visible .areamap__label--soft,
.areamap__place.is-active .areamap__label--soft { opacity: 1; }
.areamap__place:hover .areamap__km,
.areamap__place:focus-visible .areamap__km,
.areamap__place.is-active .areamap__km { opacity: 1; }
.areamap__place:focus { outline: none; }
.areamap__place:focus-visible .areamap__halo { opacity: 1; stroke-width: 2; }
.areamap__place:hover .areamap__dot,
.areamap__place.is-active .areamap__dot { fill: var(--color-accent); }
.areamap__place:hover .areamap__label,
.areamap__place.is-active .areamap__label { fill: #fff; }
/* der ausgewählte Ort bekommt einen dunklen Rand, damit er über allem liegt */
.areamap__place.is-active .areamap__label,
.areamap__place.is-active .areamap__km {
  paint-order: stroke;
  stroke: var(--color-dark);
  stroke-width: 5px;
  stroke-linejoin: round;
}
/* Ringbeschriftung tritt zurück, solange ein Ort ausgewählt ist */
.areamap:has(.areamap__place.is-active) .areamap__ringlabel { opacity: 0.3; }
.areamap__place:hover .areamap__halo,
.areamap__place.is-active .areamap__halo { opacity: 0.8; }

.areamap__home { fill: var(--color-accent); }
.areamap__pulse {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  transform-origin: 400px 400px;
  animation: mapPulse 3.4s ease-out infinite;
}
@keyframes mapPulse {
  0%   { transform: scale(0.6); opacity: 0.85; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.areamap__homelabel {
  fill: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-anchor: middle;
}

/* Einblendung beim Scrollen */
.areamap__ring, .areamap__link { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.areamap__ring { stroke-dasharray: 4 7; stroke-dashoffset: 0; opacity: 0; transition: opacity 900ms ease; }
.areamap__ring--main { stroke-dasharray: 2100; stroke-dashoffset: 2100;
  transition: stroke-dashoffset 1600ms cubic-bezier(0.22, 0.61, 0.36, 1); opacity: 1; }
.areamap.is-visible .areamap__ring { opacity: 1; transition-delay: var(--d, 0ms); }
.areamap.is-visible .areamap__ring--main { stroke-dashoffset: 0; }
.areamap__link { transition: stroke-dashoffset 1200ms ease var(--d, 0ms); }
.areamap.is-visible .areamap__link { stroke-dashoffset: 0; }
.areamap__place {
  opacity: 0;
  transform: scale(0.7);
  transform-origin: var(--ox, 400px) var(--oy, 400px);
  transition: opacity 520ms ease var(--d, 0ms), transform 520ms cubic-bezier(0.16, 0.84, 0.44, 1) var(--d, 0ms);
}
.areamap.is-visible .areamap__place { opacity: 1; transform: scale(1); }

/* Ortsliste mit Verbindung zur Karte */
.area-list li[data-place] { cursor: default; transition: border-color var(--transition-fast),
  background var(--transition-fast), transform var(--transition-fast); }
.area-list li[data-place]:hover, .area-list li.is-active {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.on-dark .area-list li {
  background: rgba(246, 243, 238, 0.04);
  border-color: rgba(246, 243, 238, 0.14);
  color: rgba(246, 243, 238, 0.86);
}
.on-dark .area-list li span { color: rgba(246, 243, 238, 0.5); }
.on-dark .area-list li:hover { border-color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
  .areamap__pulse { animation: none !important; opacity: 0.35; }
  .areamap__place { opacity: 1 !important; transform: none !important; }
  .areamap__ring { opacity: 1 !important; }
  .areamap__ring--main, .areamap__link { stroke-dashoffset: 0 !important; }
}

/* --- Hero-Begrüßung: Farbroller streicht das Wort auf die Fläche -------- */
.hero__welcome {
  position: relative;
  display: inline-block;
  /* rechts etwas mehr Luft: die enge Laufweite zieht den letzten Buchstaben nach außen */
  padding-inline: 0.12em 0.18em;
  isolation: isolate;
  --roller-tool: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cg fill='%2316161a'%3E%3Crect x='1' y='17' width='27' height='11' rx='3'/%3E%3Crect x='12.5' y='9' width='3' height='9' rx='1.5'/%3E%3Crect x='12.5' y='7.5' width='14' height='3' rx='1.5'/%3E%3Crect x='24' y='0' width='3.4' height='9' rx='1.7'/%3E%3C/g%3E%3C/svg%3E");
}

/* der Farbstreifen läuft voraus */
.hero__welcome::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  /* deckt Ober- und Unterkante der Buchstaben vollständig ab */
  top: 0.01em; bottom: 0.01em;
  z-index: -1;
  background: var(--color-accent);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: welcomePaint 900ms cubic-bezier(0.58, 0.02, 0.24, 1) 900ms both;
}

/* die Schrift wird vom Roller freigelegt */
.hero__welcome > span {
  display: inline-block;
  color: var(--color-brand-primary);
  clip-path: inset(-0.2em 100% -0.2em -0.2em);
  animation: welcomeWipe 900ms cubic-bezier(0.58, 0.02, 0.24, 1) 960ms both;
}

/* der Roller fährt auf der Vorderkante mit */
.hero__welcome::after {
  content: "";
  position: absolute;
  left: 0;
  top: -0.38em;
  width: 0.56em;
  height: 0.7em;
  background: var(--roller-tool) center / contain no-repeat;
  /* heller Rand, damit die Walze auch über dem Foto sichtbar bleibt */
  filter: drop-shadow(0 0 1.6px rgba(246, 243, 238, 0.95))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  animation: welcomeRoller 900ms cubic-bezier(0.58, 0.02, 0.24, 1) 900ms both;
  pointer-events: none;
}

@keyframes welcomePaint {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* negative Werte oben, unten und rechts: fertig freigelegt wird nichts abgeschnitten */
@keyframes welcomeWipe {
  from { clip-path: inset(-0.2em 100% -0.2em -0.2em); }
  to   { clip-path: inset(-0.2em -0.3em -0.2em -0.2em); }
}
@keyframes welcomeRoller {
  0%   { left: 0;    opacity: 0; transform: translateX(-40%); }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: translateX(-40%); }
}

/* die weiteren Zeilen der Überschrift */
.hero__title-line {
  display: block;
  font-size: max(1.34rem, 0.4em);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: rgba(246, 243, 238, 0.94);
  margin-top: 0.22em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero__title-line .accent { color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
  .hero__welcome::before { animation: none !important; transform: scaleX(1) !important; }
  .hero__welcome > span { animation: none !important; clip-path: none !important; }
  .hero__welcome::after { display: none !important; }
}

/* --- Einsatzgebiet auf dunklem Grund ------------------------------------ */
.on-dark .radius-visual__ring { border-color: rgba(246, 243, 238, 0.2); }
.on-dark .radius-visual__ring--1 { border-color: var(--color-accent); }
.on-dark .radius-visual__ring--3 { opacity: 0.4; }
.on-dark .radius-visual__core {
  background: var(--color-accent);
  color: var(--color-brand-primary);
  box-shadow: 0 0 0 10px rgba(240, 192, 36, 0.08);
  transition: background 400ms ease, box-shadow 400ms ease;
}
.on-dark .radius-visual__tag {
  color: rgba(246, 243, 238, 0.55);
  background: var(--color-dark);
}
.on-dark .radius-visual__tag--1 { color: var(--color-accent); }

/* der angetippte Ring leuchtet kurz auf */
.radius-visual__ring.is-hit {
  animation: ringHit 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes ringHit {
  0%   { border-color: var(--color-accent); box-shadow: 0 0 0 0 rgba(240, 192, 36, 0.35); }
  60%  { box-shadow: 0 0 0 18px rgba(240, 192, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 192, 36, 0); }
}
.radius-visual__core.is-hit { animation: coreHit 620ms cubic-bezier(0.16, 0.84, 0.44, 1); }
@keyframes coreHit {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.09); }
  100% { transform: scale(1); }
}
.radius-visual__core strong { display: block; font-size: 1.05em; }
.radius-visual__core span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-top: 0.15rem;
}

/* --- Ortskacheln zum Antippen ------------------------------------------- */
.area-list li[data-place] {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.area-list li[data-place]:active { transform: scale(0.97); }
.area-list li[data-place].is-active {
  border-color: var(--color-accent);
  background: rgba(240, 192, 36, 0.1);
}
.on-dark .area-list li.is-active { background: rgba(240, 192, 36, 0.14); color: #fff; }
.on-dark .area-list li.is-active span { color: var(--color-accent); }

/* Welle vom Druckpunkt */
.tap-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 192, 36, 0.55), rgba(240, 192, 36, 0));
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: tapRipple 620ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes tapRipple {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* --- Anzeige unter der Karte -------------------------------------------- */
.areamap__readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  min-height: 2.4rem;
  text-align: center;
}
.areamap__readout strong {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
  color: var(--color-text-invert);
}
.areamap__readout span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.areamap__readout.is-updating { animation: readoutIn 480ms cubic-bezier(0.16, 0.84, 0.44, 1); }
@keyframes readoutIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Marker springt beim Antippen kurz an */
.areamap__place.is-hit .areamap__dot { animation: dotHit 620ms cubic-bezier(0.16, 0.84, 0.44, 1); }
@keyframes dotHit {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.8); }
  100% { transform: scale(1); }
}
.areamap__place { transform-box: fill-box; transform-origin: center; }
.areamap__place .areamap__dot { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .tap-ripple { display: none !important; }
  .radius-visual__ring.is-hit, .radius-visual__core.is-hit,
  .areamap__place.is-hit .areamap__dot, .areamap__readout.is-updating {
    animation: none !important;
  }
  .area-list li[data-place]:active { transform: none !important; }
}

/* --- Über uns: Überschrift des Inhaber-Bereichs ist die Seitenüberschrift -- */
.ueber__title { font-size: var(--fs-h2); line-height: 1.05; }

/* --- Häufige Fragen (Startseite): warmer Grund mit MB-Zeichen ------------- */
.faq-home {
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(240, 192, 36, 0.09), rgba(240, 192, 36, 0) 60%),
    linear-gradient(180deg, var(--color-surface-alt) 0%, #efe8dc 100%);
}
/* großes, angeschnittenes MB-Zeichen hinter der Überschrift */
.faq-home::before {
  content: "";
  position: absolute;
  left: -6%;
  bottom: -14%;
  z-index: -1;
  width: min(62vw, 720px);
  aspect-ratio: 525 / 336;
  background: linear-gradient(135deg, rgba(22, 22, 26, 0.07), rgba(200, 149, 26, 0.16));
  -webkit-mask: url("../images/brand/mb-zeichen-dunkel.png") center / contain no-repeat;
          mask: url("../images/brand/mb-zeichen-dunkel.png") center / contain no-repeat;
  pointer-events: none;
}
/* die Fragen liegen auf einer hellen, leicht erhabenen Fläche */
.faq-home .faq {
  border-top: 0;
  padding: 0.35rem clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 34px 70px -44px rgba(22, 22, 26, 0.45);
}
.faq-home .faq__item:last-child { border-bottom: 0; }
.faq-home .faq__item:last-child::after { display: none; }
@media (max-width: 900px) {
  .faq-home::before { left: auto; right: -18%; top: -2%; bottom: auto; width: 92vw; }
}
