/* KASKADE 1.6: Komponenten. Zustände: default / hover / focus-visible / active / disabled / selected. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 52px; padding: 0 var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-2);
  font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; text-align: left;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (min-width: 768px) { .btn { min-height: 56px; } }
.btn .pfeil-icon { flex: none; width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .pfeil-icon { transform: translateX(3px); }
.btn--primary { background: var(--akzent-fill); color: var(--akzent-on); }
.btn--primary:hover { background: color-mix(in srgb, var(--akzent-fill) 88%, #000); }
.btn--primary:active { background: color-mix(in srgb, var(--akzent-fill) 78%, #000); }
.btn--secondary { border-color: currentColor; background: transparent; }
.flaeche-dunkel .btn--secondary { color: var(--text-hell); border-color: var(--linie-dunkel); border-color: rgba(243, 240, 234, .38); }
.btn--secondary:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row .btn { flex: 1 1 260px; }
@media (min-width: 768px) { .btn-row .btn { flex: 0 1 auto; } }

.textlink { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.textlink:hover { color: var(--akzent-text); }

/* ---------- Label-Elemente ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-1);
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
}
.badge--fill { background: var(--graphit); color: var(--text-hell); border-color: var(--graphit); }
.badge--akzent { background: var(--akzent-fill); color: var(--akzent-on); border-color: var(--akzent-fill); }
.meta-zeile { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted-text); }
.meta-zeile span + span::before { content: "·"; margin-right: 12px; }

.nummer { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--akzent-text); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-1); background: transparent;
  font-size: var(--fs-small); font-weight: 500;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { border-color: currentColor; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--graphit); border-color: var(--graphit); color: var(--text-hell); }
.flaeche-dunkel .chip[aria-pressed="true"] { background: var(--akzent-fill); border-color: var(--akzent-fill); color: var(--akzent-on); }
.chip .chip-count { font-family: var(--font-mono); font-size: var(--fs-label); opacity: .7; }

/* ---------- Media (KASKADE 1.5) ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-2); background: var(--block); margin: 0; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.media[data-ratio="21:9"] { aspect-ratio: 21 / 9; }
.media[data-ratio="16:9"] { aspect-ratio: 16 / 9; }
.media[data-ratio="3:2"]  { aspect-ratio: 3 / 2; }
.media[data-ratio="4:3"]  { aspect-ratio: 4 / 3; }
.media[data-ratio="4:5"]  { aspect-ratio: 4 / 5; }
.media[data-ratio="1:1"]  { aspect-ratio: 1 / 1; }
.media[data-ratio="fill"] { height: 100%; min-height: 320px; }
.media picture { display: contents; }
.caption { margin-top: var(--s-2); color: var(--muted-text); }
.media .caption--ecke {
  position: absolute; left: 0; bottom: 0; margin: 0; padding: 6px 10px;
  background: rgba(22, 23, 26, .82); color: var(--text-hell); border-top-right-radius: var(--r-1);
}

/* Foto-Platzhalter in Fahrzeugfarbe (MVP) */
.foto-folgt {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: var(--farbe, #888); color: var(--farbe-text, #fff); border-radius: var(--r-2);
  overflow: hidden;
}
.foto-folgt::after { /* zweite Farbe bei Zweifarblackierung */
  content: ""; position: absolute; inset: 0; background: var(--farbe-2, transparent);
  clip-path: polygon(0 62%, 100% 48%, 100% 100%, 0 100%);
}
.foto-folgt svg { width: 46%; height: auto; opacity: .22; position: relative; z-index: 1; }
.foto-folgt .label { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 4px 8px; background: rgba(22,23,26,.85); color: var(--text-hell); border-radius: var(--r-1); }

/* ---------- Fahrzeug-Karte (dunkel, Referenz Job-Card): Fahrzeugfarbe leuchtet oben und läuft in Schwarz aus ---------- */
.karte {
  --karte-bg: #0E0F11; --karte-linie: rgba(243, 240, 234, .12);
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: 20px; overflow: hidden; color: var(--text-hell);
  background:
    radial-gradient(rgba(243, 240, 234, .07) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(to bottom, color-mix(in srgb, var(--farbe) 22%, var(--karte-bg)) 0%, var(--karte-bg) 55%);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* Bild/Platzhalter: unten Abdunklung in den Kartengrund */
.karte__media { position: relative; aspect-ratio: 16 / 10; }
.karte__media .media, .karte__media .foto-folgt { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
/* Abdunklung per Maske: Foto/Leuchten läuft in den Kartengrund (mit Punktraster) aus, ohne Kante */
.karte__media > :not(.karte__striche) { -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
/* Galerie (galerie.js): Fotos übereinander, Mausposition wählt das Bild; Striche oben zeigen die Position */
.karte__galerie { position: absolute; inset: 0; }
.karte__galerie .karte__bild { opacity: 0; transition: opacity 160ms var(--ease); }
.karte__galerie .karte__bild.is-aktiv { opacity: 1; }
.karte__striche { position: absolute; top: 10px; left: 16px; right: 16px; z-index: 3; display: flex; gap: 4px; pointer-events: none; opacity: 0; transition: opacity var(--dur) var(--ease); }
.karte__striche span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); transition: background-color 160ms var(--ease); }
.karte__striche span.is-aktiv { background: #fff; }
.karte__media:hover .karte__striche { opacity: 1; }
@media (hover: none) { .karte__striche { opacity: 1; } .karte__media { touch-action: pan-y; } }
.karte .foto-folgt {
  --glow: color-mix(in srgb, var(--farbe) 82%, #fff);
  background: radial-gradient(ellipse 75% 85% at 50% 38%, color-mix(in srgb, var(--glow) 70%, transparent) 0%, color-mix(in srgb, var(--farbe) 30%, transparent) 45%, transparent 75%);
  color: var(--glow);
}
.karte .foto-folgt::after { clip-path: none; background: radial-gradient(ellipse 45% 55% at 82% 30%, color-mix(in srgb, var(--farbe-2, transparent) 70%, transparent), transparent 70%); }
.karte .foto-folgt svg { width: 52%; opacity: .5; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.karte .foto-folgt .label { left: 50%; bottom: auto; top: 72%; transform: translateX(-50%); padding: 0; background: none; color: rgba(243, 240, 234, .55); font-size: 10px; white-space: nowrap; }

/* Kopfzeile über dem Bild: CWT links, Status rechts */
.karte__kopf { position: absolute; top: 22px; left: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.karte__nr, .karte__status { padding: 6px 10px; border-radius: 8px; background: rgba(14, 15, 17, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.karte__nr { color: #fff; }
.karte__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.karte__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4CC37A; }
.karte__status[data-status="reserviert"]::before { background: var(--akzent); }
.karte__status[data-status="verkauft"]::before { background: var(--error); }

.karte__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s-3); flex: 1; padding: 0 var(--s-5) var(--s-5); margin-top: calc(-1 * var(--s-6)); }
.karte__kategorie { margin: 0; color: rgba(243, 240, 234, .6); }
.karte__titel { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.015em; }
.karte__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.karte__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(243, 240, 234, .09); font-size: 12px; font-weight: 500; line-height: 1.2; }
.karte__chip .swatch { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.karte__claim { margin: var(--s-1) 0 0; color: rgba(243, 240, 234, .82); }
.karte .fakten { border-top: 1px solid var(--karte-linie); }
.karte .fakten li { padding: 9px 0; border-bottom: 1px solid var(--karte-linie); color: rgba(243, 240, 234, .68); font-size: 13px; }
.karte .fakten li:last-child { border-bottom: 0; }
.karte mark.ph { color: inherit; }

/* Fuß: Trennlinie, Preis links, Button rechts */
.karte__fuss { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding-top: var(--s-5); border-top: 1px solid rgba(243, 240, 234, .22); }
.karte__preis { display: flex; flex-direction: column; gap: 4px; }
.karte__preis .small { color: rgba(243, 240, 234, .6); font-size: 12px; }
.preis { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-price); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.karte__btn { min-height: 46px; padding: 0 20px; gap: 10px; justify-content: center; white-space: nowrap; border-radius: 10px; background: #fff; color: var(--text-dunkel); font-size: 15px; transition: background-color var(--dur) var(--ease); }
.karte__btn:hover { background: var(--akzent-fill); color: var(--akzent-on); }
.karte__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 479px) { .karte__btn { flex: 1 1 100%; justify-content: center; } }
.karte .preis { font-size: clamp(1.5rem, 1.2rem + 0.6vw, 1.875rem); }
.karte__envkv { color: rgba(243, 240, 234, .6); }
.karte[data-status="reserviert"], .karte[data-status="verkauft"] { opacity: .55; }
.karte[hidden] { display: none; }

/* Spitzenmodell quer (Desktop): Bild links, Abdunklung nach rechts */
@media (min-width: 1024px) {
  .karte--quer { flex-direction: row; background: radial-gradient(rgba(243, 240, 234, .07) 1px, transparent 1.4px) 0 0 / 18px 18px, linear-gradient(to right, color-mix(in srgb, var(--farbe) 22%, var(--karte-bg)) 0%, var(--karte-bg) 60%); }
  .karte--quer .karte__media { flex: 0 0 calc((100% + var(--gutter)) * 7 / 12 - var(--gutter)); aspect-ratio: auto; min-height: 460px; }
  .karte--quer .karte__media > :not(.karte__striche) { -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%); mask-image: linear-gradient(to right, #000 55%, transparent 100%); }
  .karte--quer .karte__body { margin-top: 0; padding: var(--s-7) var(--s-7) var(--s-6) var(--s-4); justify-content: center; }
  .karte--quer .karte__striche { right: calc(45% + 16px); }
  .karte--quer .karte__kopf { right: auto; width: calc((100% + var(--gutter)) * 7 / 12 - var(--gutter) - 32px); }
}

/* ---------- Schnellauswahl über den Karten (Referenz DJI-Kategorien) ---------- */
.filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin-bottom: var(--s-6); }
.filter-kachel {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 14px;
  border: 1px solid var(--linie-hell); border-radius: 16px; background: #fff; color: var(--text-dunkel); text-align: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.filter-kachel:hover { border-color: var(--text-dunkel); }
.filter-kachel[aria-pressed="true"] { background: var(--graphit); border-color: var(--graphit); color: var(--text-hell); }
.filter-kachel__bild { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 6px; border-radius: 10px; overflow: hidden; background: var(--papier-2); }
.filter-kachel__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.filter-kachel:hover .filter-kachel__bild img { transform: scale(1.05); }
.filter-kachel__name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.filter-kachel__info { font-size: 11px; line-height: 1.3; opacity: .65; font-variant-numeric: tabular-nums; }
.filter-kachel__zahl { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--text-dunkel); }
.filter-kachel--alle .filter-kachel__bild { display: flex; justify-content: center; align-items: center; gap: 12px; }
.filter-kachel__pfeil { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--graphit); color: #fff; }
.filter-kachel__pfeil svg { width: 15px; height: 15px; }
.filter-kachel[aria-pressed="true"] .filter-kachel__bild { background: rgba(243, 240, 234, .08); }
.filter-kachel[aria-pressed="true"] .filter-kachel__zahl { color: var(--text-hell); }
.filter-kachel--alle[aria-pressed="true"] .filter-kachel__pfeil { background: var(--akzent-fill); color: var(--akzent-on); }
@media (min-width: 768px) {
  .filter { grid-template-columns: repeat(3, 220px); gap: var(--s-3); }
  .filter-kachel { padding: 12px 12px 16px; }
  .filter-kachel__name { font-size: 15px; }
  .filter-kachel__info { font-size: 12px; }
}

/* ---------- Stat / Fact-Strip ---------- */
.fact-strip { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.fact-strip > li { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--line); }
.fact-strip > li:nth-child(2n) { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.fact-strip > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .fact-strip { grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
  .fact-strip > li, .fact-strip > li:nth-child(2n) { padding: var(--s-5) var(--s-5) var(--s-5) var(--s-5); border-bottom: 0; border-left: 1px solid var(--line); }
  .fact-strip > li:first-child { border-left: 0; padding-left: 0; }
  .fact-strip > li:last-child:nth-child(odd) { grid-column: auto; }
}
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact__wert { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-h3); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-stat); line-height: .95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- Status-Marke (Fahrzeugliste, Karten) ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--success); }
.status[data-status="reserviert"]::before { background: #C9A227; }
.status[data-status="verkauft"]::before { background: var(--error); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  padding: var(--s-5) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.3;
}
.faq summary { transition: color var(--dur) var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
/* Plus aus zwei Balken (Hintergründe): beim Öffnen fällt der senkrechte zusammen und das Kästchen dreht sich → „−“ */
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-2);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 480ms cubic-bezier(.4, 0, .2, 1), background-size 480ms cubic-bezier(.4, 0, .2, 1), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq details[open]:not(.is-schliessend) summary::after {
  color: var(--akzent-text); border-color: var(--akzent-text); transform: rotate(180deg);
  background-size: 12px 1.5px, 1.5px 0;
}
.faq summary:hover { color: var(--akzent-text); }
.faq summary:hover::after { border-color: var(--akzent-text); }
.faq .faq__antwort { padding: 0 0 var(--s-5); max-width: 68ch; color: color-mix(in srgb, currentColor 82%, transparent); }
/* Antwort blendet beim Öffnen weich ein; die Höhe animiert main.js (Web Animations), ohne JS klappt <details> sofort */
.faq details[open]:not(.is-schliessend) .faq__antwort { animation: faq-rein 520ms cubic-bezier(.4, 0, .2, 1) 60ms both; }
.faq details.is-schliessend .faq__antwort { opacity: 0; transform: translateY(-4px); transition: opacity 240ms cubic-bezier(.4, 0, .2, 1), transform 240ms cubic-bezier(.4, 0, .2, 1); }
@keyframes faq-rein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after, .faq details.is-schliessend .faq__antwort { transition: none; }
  .faq details[open] .faq__antwort { animation: none; }
}

/* ---------- Testimonial ---------- */
.zitat { margin: 0; padding-left: var(--s-5); border-left: 2px solid var(--akzent-text); }
.zitat blockquote { margin: 0 0 var(--s-4); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; text-wrap: pretty; }
.zitat figcaption { color: var(--muted-text); }

/* ---------- Video-Facade ---------- */
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--graphit); border-radius: var(--r-2); overflow: hidden; aspect-ratio: 16 / 9; color: var(--text-hell); }
.video-facade img, .video-facade video { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.video-facade__play {
  position: absolute; left: var(--s-5); bottom: var(--s-5); display: flex; align-items: center; gap: var(--s-4);
}
.video-facade__play span:first-child {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--r-2);
  background: var(--akzent-fill); color: var(--akzent-on); transition: transform var(--dur) var(--ease);
}
.video-facade:hover .video-facade__play span:first-child { transform: scale(1.04); }
.video-facade__play .label { background: rgba(22,23,26,.85); padding: 6px 10px; border-radius: var(--r-1); }

/* ---------- Header (Referenz Hyundai): in Ruhe transparent über dem Hero, beim Scrollen weiß (.is-hell, main.js) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  background: transparent; color: #fff; border-bottom: 1px solid transparent;
  --header-linie: rgba(255, 255, 255, .32);
  transition: background-color 280ms var(--ease), color 280ms var(--ease), border-color 280ms var(--ease);
}
.site-header.is-hell { background: #fff; color: var(--text-dunkel); border-bottom-color: var(--linie-hell); --header-linie: var(--linie-hell); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
/* Logo: helle Variante über dem Foto, Original auf Weiß; beide in einer Rasterzelle, Wechsel per Überblendung */
.logo { display: grid; flex: none; text-decoration: none; }
.logo picture { grid-area: 1 / 1; transition: opacity 280ms var(--ease); }
.logo img { height: 36px; width: auto; }
.logo__dunkel { opacity: 0; }
.site-header.is-hell .logo__hell { opacity: 0; }
.site-header.is-hell .logo__dunkel { opacity: 1; }
@media (min-width: 1024px) { .logo img { height: 52px; } }
.nav { display: none; }
/* Header-Texte in der Seitenschrift (Montserrat wie Buttons und Fließtext) statt Mono-Label */
.site-header .label { font-family: var(--font-text); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; text-transform: none; }
.nav ul { display: flex; gap: var(--s-6); }
.nav a { text-decoration: none; color: inherit; opacity: .8; padding: 8px 0; border-bottom: 1px solid transparent; transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { opacity: 1; }
.nav a[aria-current="true"] { border-bottom-color: currentColor; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.tel-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.tel-link svg { width: 18px; height: 18px; flex: none; }
.tel-link .tel-nummer { display: none; }
.site-header .btn { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.site-header .tel-link { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--header-linie); border-radius: var(--r-2); transition: border-color 280ms var(--ease); }
.site-header :focus-visible { outline-color: currentColor; }
@media (min-width: 1024px) {
  /* Logo links, Navigation mittig, Kontakt + CTA rechts */
  .site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { display: block; }
  .header-actions { justify-self: end; margin-left: 0; }
  .site-header .tel-link { width: auto; border: 0; border-left: 1px solid var(--header-linie); border-radius: 0; padding-left: var(--s-4); }
}
@media (min-width: 1280px) {
  .site-header .tel-link .tel-nummer { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
  .tel-nummer .label { font-size: 12px; opacity: .72; }
}

/* ---------- Sticky-CTA (mobil, D9) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--rand) calc(12px + env(safe-area-inset-bottom));
  background: var(--graphit); border-top: 1px solid var(--linie-dunkel);
  transform: translateY(110%); transition: transform 250ms var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Platzhalter-Marker (MVP, ?clean blendet aus) ---------- */
mark.ph, .ph-block {
  overflow-wrap: anywhere;
  display: inline; background: color-mix(in srgb, var(--akzent) 12%, transparent); color: inherit;
  outline: 1px dashed var(--akzent); outline-offset: 2px; padding: 0 2px;
}
mark.ph::before, .ph-flag::before {
  content: "PLATZHALTER " attr(data-ph) " · " attr(data-r);
  display: inline-block; margin-right: 6px; padding: 1px 5px; border-radius: var(--r-1);
  background: var(--akzent-strong); color: #fff;
  font: 500 10px/1.4 var(--font-mono); letter-spacing: .06em; vertical-align: 2px;
}
.ph-flag {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px 6px;
  border: 1px dashed var(--akzent); border-radius: var(--r-1);
  font: 500 11px/1.4 var(--font-mono); color: var(--akzent-text);
}
.ph-flag::before { content: "OFFEN " attr(data-r); margin: 0; }
.ph-flag--abs { position: absolute; top: 10px; right: 10px; z-index: 3; background: var(--papier); }
html.is-clean mark.ph, html.is-clean .ph-flag, html.is-clean .vorschau-hinweis, html.is-clean .ph-optional { display: none !important; }

/* Header mobil einzeilig */
.site-header .btn { white-space: nowrap; }
@media (max-width: 400px) {
  .site-header .container { gap: var(--s-3); }
  .site-header .btn { padding: 0 12px; }
}
@media (max-width: 359px) {
  .logo img { height: 28px; }
  .site-header .container { gap: var(--s-2); }
  .header-actions { gap: var(--s-2); }
  .site-header .btn { padding: 0 10px; font-size: 13px; }
  .site-header .tel-link { width: 36px; height: 36px; }
}
