/* ==========================================================================
   CCAA design — Design System
   Monochrom, edel, minimalistisch
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --near-black: #141414;
  --charcoal: #1c1c1c;
  --gray-dark: #4a4a47;
  --gray-mid: #8a8a86;
  --gray-light: #c9c9c4;
  --off-white: #f5f5f3;
  --white: #ffffff;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-xxl: 11rem;

  --container-width: 1240px;
  --border-hair: 1px solid rgba(255, 255, 255, 0.14);
  --border-hair-dark: 1px solid rgba(10, 10, 10, 0.14);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--space-sm); }
}

.section { padding: var(--space-xl) 0; }
@media (max-width: 640px) {
  .section { padding: var(--space-lg) 0; }
}

.section-dark { background: var(--black); color: var(--off-white); }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: var(--space-sm);
}
.section-dark .eyebrow { color: var(--gray-light); }

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.lede {
  font-size: 1.15rem;
  color: var(--gray-dark);
  max-width: 46em;
}
.section-dark .lede { color: var(--gray-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--ease) 0.25s, color var(--ease) 0.25s;
}
.btn-primary {
  background: var(--black);
  color: var(--off-white);
  border-color: var(--black);
}
.btn-primary:hover { background: var(--off-white); color: var(--black); }
.section-dark .btn-primary {
  background: var(--off-white);
  color: var(--black);
  border-color: var(--off-white);
}
.section-dark .btn-primary:hover { background: transparent; color: var(--off-white); }

.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: currentColor; }
.btn-ghost:hover { color: var(--off-white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  transition: background var(--ease) 0.3s, border-color var(--ease) 0.3s;
}
.site-header.is-solid {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--border-hair);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { height: 34px; width: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--off-white);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

.main-nav ul { display: flex; align-items: center; gap: var(--space-md); }
.main-nav a:not(.btn) {
  color: var(--off-white);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.main-nav a:not(.btn):hover,
.main-nav a:not(.btn)[aria-current="page"] { border-color: currentColor; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    /* dvh beruecksichtigt die ein- und ausfahrende Adressleiste auf dem Handy */
    height: 100vh;
    height: 100dvh;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: opacity 0.3s var(--ease);
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; text-align: center; gap: var(--space-md); }
  .main-nav a { font-size: 1.4rem; }
  .site-header.nav-is-open .nav-toggle span { transform: rotate(45deg); }
  .site-header.nav-is-open .nav-toggle span::before { transform: rotate(90deg) translate(7px, 0); top: 0; }
  .site-header.nav-is-open .nav-toggle span::after { opacity: 0; }
}

/* header variant for standalone request wizard page */
.site-header.header-minimal .main-nav,
.site-header.header-minimal .nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--off-white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 45%, rgba(10,10,10,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xxl) 0 var(--space-xl);
  width: 100%;
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.98;
  max-width: 16em;
}
.hero-services {
  margin-top: var(--space-md);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--gray-light);
}
.hero-actions { margin-top: var(--space-md); display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ---------- Service / feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(0,0,0,0.1);
  border: var(--border-hair-dark);
}
.section-dark .card-grid { background: rgba(255,255,255,0.1); border-color: var(--border-hair); }

.service-card {
  background: var(--off-white);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: background 0.25s var(--ease);
}
.section-dark .service-card { background: var(--black); }
.service-card:hover { background: var(--black); color: var(--off-white); }
.service-card:hover .service-card-figure img { filter: grayscale(1) contrast(1.1) brightness(0.9); }

.service-card-figure { aspect-ratio: 4/3; overflow: hidden; }
.service-card-figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

.service-card h3 { font-size: 1.35rem; }
.service-card p { color: var(--gray-dark); }
.service-card:hover p { color: var(--gray-light); }

/* ---------- Portfolio grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--near-black);
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.5s var(--ease);
  aspect-ratio: 4/5;
}
.portfolio-item.is-wide img,
.portfolio-item.is-wide { aspect-ratio: auto; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-sm);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: var(--off-white);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.portfolio-item:hover .portfolio-caption { opacity: 1; }
.portfolio-caption .cat { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-light); }
.photo-count {
  position: absolute;
  top: var(--space-xs); right: var(--space-xs);
  padding: 0.3em 0.7em;
  background: rgba(10,10,10,0.65);
  color: var(--off-white);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.portfolio-filters { display: flex; gap: var(--space-xs); flex-wrap: wrap; margin-bottom: var(--space-md); }
.filter-btn {
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--gray-mid);
  font-size: 0.85rem;
  background: transparent;
  color: var(--black);
}
.filter-btn.is-active { background: var(--black); color: var(--off-white); border-color: var(--black); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,6,6,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: var(--space-md);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; }
.lightbox-caption { color: var(--gray-light); text-align: center; margin-top: var(--space-sm); }
.lightbox-counter { color: var(--gray-mid); text-align: center; margin-top: 0.3em; font-size: 0.82rem; letter-spacing: 0.06em; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--off-white);
  border-radius: 999px;
  width: 44px; height: 44px;
}
.lightbox-close { top: var(--space-md); right: var(--space-md); }
.lightbox-prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-md); top: 50%; transform: translateY(-50%); }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.testimonial {
  border-top: var(--border-hair-dark);
  padding-top: var(--space-sm);
}
.section-dark .testimonial { border-color: var(--border-hair); }
.testimonial blockquote { margin: 0 0 var(--space-sm); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.testimonial cite { font-style: normal; font-size: 0.85rem; color: var(--gray-dark); }
.section-dark .testimonial cite { color: var(--gray-light); }

/* ---------- CCAA history tile ---------- */
.history-tile {
  border: var(--border-hair-dark);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
}
.section-dark .history-tile { border-color: var(--border-hair); }
.history-tile .mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .history-tile { grid-template-columns: 1fr; padding: var(--space-md); }
}

/* ---------- Timeline / Werdegang ---------- */
.timeline {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
}
.timeline-item {
  position: relative;
  padding-left: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-left: var(--border-hair-dark);
}
.timeline-item:last-child { padding-bottom: 0; border-color: transparent; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px; top: 0.35em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--black);
}
.timeline-period {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--gray-mid);
  margin-bottom: 0.3em;
}
.timeline-item h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.timeline-item p { color: var(--gray-dark); font-size: 0.95rem; }
.section-dark .timeline-item { border-color: var(--border-hair); }
.section-dark .timeline-item::before { background: var(--off-white); }
.section-dark .timeline-item p { color: var(--gray-light); }
@media (max-width: 640px) {
  .timeline-item { padding-left: var(--space-md); padding-bottom: var(--space-md); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--gray-light);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: var(--border-hair);
}
.footer-grid img { height: 32px; margin-bottom: var(--space-sm); }
.footer-grid h4 { color: var(--off-white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.footer-grid li { margin-bottom: 0.5em; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  padding-top: var(--space-md);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs);
  font-size: 0.82rem; color: var(--gray-mid);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible { opacity: 1; transform: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--space-xxl) + var(--space-sm)) 0 var(--space-lg);
  background: var(--black);
  color: var(--off-white);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 14em; }

/* ---------- Map ---------- */
/* Karte ruht monochrom, wird bei Benutzung farbig — sonst sind Straßen, Wasser
   und Grünflächen beim Zoomen kaum unterscheidbar (gleiche Logik wie Grid/Lightbox). */
.map-embed {
  border: none;
  width: 100%;
  height: 380px;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.4s var(--ease);
}
.map-embed:hover,
.map-embed:focus-within { filter: none; }

/* Platzhalter vor dem Laden der Karte (Zwei-Klick-Lösung, siehe main.js) */
.map-consent {
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  background: var(--near-black);
  border: var(--border-hair);
}
.map-consent-inner { max-width: 32em; }
.map-consent-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--off-white);
  margin-bottom: 0.5em;
}
.map-consent-text {
  font-size: 0.88rem;
  color: var(--gray-light);
  margin-bottom: var(--space-sm);
}
.map-consent-text a,
.map-consent-alt a { color: var(--off-white); text-decoration: underline; text-underline-offset: 2px; }
.map-consent-alt { margin-top: var(--space-sm); font-size: 0.82rem; color: var(--gray-mid); }

/* ---------- Anfrage page (standalone, dark) ---------- */
body.anfrage-page { background: var(--black); color: var(--off-white); }
.anfrage-hero { padding: calc(var(--space-xxl) - 1rem) 0 var(--space-md); text-align: center; }
.anfrage-hero .eyebrow { color: var(--gray-light); }

/* ---------- Wizard (anfrage.html) ---------- */
.wizard-shell {
  max-width: 640px;
  margin: 0 auto;
}
.wizard-progress {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-lg);
}
.wizard-progress .dot {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  overflow: hidden;
}
.wizard-progress .dot::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: var(--off-white);
  transition: width 0.35s var(--ease);
}
.wizard-progress .dot.is-done::after,
.wizard-progress .dot.is-current::after { width: 100%; }

.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: step-in 0.4s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.wizard-step h2 { font-size: 1.8rem; margin-bottom: var(--space-xs); }
.wizard-step .step-hint { color: var(--gray-light); margin-bottom: var(--space-md); }

.field { margin-bottom: var(--space-sm); }
.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
  color: var(--gray-light);
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.9em 1em;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: var(--off-white);
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--off-white); }
.field textarea { resize: vertical; min-height: 6em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
}
.choice-chip {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.8em 1em;
  text-align: center;
  font-size: 0.88rem;
  color: var(--off-white);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chip:has(input:checked) { background: var(--off-white); color: var(--black); border-color: var(--off-white); }
/* Pflicht-Auswahlgruppe ohne Auswahl (siehe validateStep in wizard.js) */
.choice-grid.has-error .choice-chip { border-color: #e0645a; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: var(--space-lg); gap: var(--space-sm); }
.wizard-nav button { border-radius: 999px; padding: 0.9em 1.6em; font-size: 0.95rem; }
.btn-back { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--off-white); }
.btn-next, .btn-submit { background: var(--off-white); border: 1px solid var(--off-white); color: var(--black); }
.btn-back:disabled { opacity: 0; pointer-events: none; }

.summary-list dt { color: var(--gray-light); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; margin-top: var(--space-sm); }
.summary-list dd { margin: 0.2em 0 0; font-size: 1rem; }

/* Rechtlicher Hinweis am Ende des Anfrageformulars */
.form-hinweis {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--gray-light);
}
.form-hinweis strong { display: block; margin-bottom: 0.4em; color: var(--off-white); }
.form-hinweis a { color: var(--off-white); text-decoration: underline; text-underline-offset: 2px; }

.wizard-success { text-align: center; padding: var(--space-xl) 0; }
.wizard-success .mark-ok { font-size: 3rem; margin-bottom: var(--space-sm); }

/* ---------- Stellenangebote (bewerbung.html) ---------- */
.stellen-liste { margin-top: var(--space-md); }
.stelle {
  padding: var(--space-md) 0;
  border-top: var(--border-hair);
}
.stelle:last-child { border-bottom: var(--border-hair); }
.stelle h2 { font-size: 1.5rem; margin-bottom: var(--space-xs); }
.stelle p { color: var(--gray-light); }
.stelle-meta {
  margin-top: var(--space-xs);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ---------- Kennzeichnung von Platzhalterbildern ----------
   Wrapper .ist-platzhalter um ein Bild legen: dimmt das Bild und legt gut
   sichtbar "In Bearbeitung" darüber. Beim Ersetzen durch echte Fotos einfach
   die Klasse entfernen. */
.ist-platzhalter { position: relative; display: block; }
.ist-platzhalter > img { opacity: 0.45; }
.ist-platzhalter::after {
  content: "Platzhalter — kein eigenes Foto";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  padding: 0.5em 1.1em;
  background: rgba(10,10,10,0.82);
  color: var(--off-white);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
  max-width: 88%;
  pointer-events: none;
}
@media (max-width: 480px) {
  .ist-platzhalter::after { font-size: 0.6rem; letter-spacing: 0.04em; padding: 0.4em 0.6em; }
}

/* ---------- Rechtstexte (impressum.html) ---------- */
.legal-text { max-width: 46em; }
.legal-text h2 {
  font-size: 1.25rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}
.legal-text h2:first-child { margin-top: 0; }
.legal-text p {
  color: var(--gray-dark);
  margin-bottom: var(--space-sm);
}
.legal-text a { text-decoration: underline; text-underline-offset: 2px; }
.legal-text h3 {
  font-size: 1.05rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.legal-text h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-top: var(--space-sm);
  margin-bottom: 0.3em;
}
.legal-text ol,
.legal-text ul {
  color: var(--gray-dark);
  margin: 0 0 var(--space-sm);
  padding-left: 1.4em;
}
.legal-text ol { list-style: decimal; }
.legal-text ul { list-style: disc; margin-top: 0.4em; }
.legal-text li { margin-bottom: 0.5em; }

/* Grauer Hinweiskasten für Anwendungshinweise */
.legal-note {
  border-left: 2px solid var(--gray-mid);
  padding-left: var(--space-sm);
  font-size: 0.95rem;
}

/* Sprungmarken oben auf langen Rechtsseiten */
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-lg) 0;
}
.legal-toc a {
  padding: 0.5em 1.1em;
  border: 1px solid var(--gray-mid);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.legal-toc a:hover { background: var(--black); color: var(--off-white); border-color: var(--black); }

/* Ausfüllbares Muster-Widerrufsformular */
.widerruf-formular {
  border: var(--border-hair-dark);
  padding: var(--space-md);
  margin-top: var(--space-sm);
}
.widerruf-formular p { margin-bottom: 0.4em; }
.widerruf-formular .linie {
  border-bottom: 1px solid var(--gray-mid);
  height: 1.8em;
  margin-bottom: var(--space-sm);
}

/* Auffällige Markierung für noch fehlende Angaben — darf live nicht mehr vorkommen */
.legal-text .todo {
  background: #ffe8a3;
  color: #6b4e00;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-weight: 500;
}

/* ---------- Utility ---------- */
.grayscale { filter: grayscale(1); }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
