@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* Das hidden-Attribut muss immer stechen. Ohne diese Regel setzt jede Klasse
   mit eigenem display (z. B. .btn { display:inline-block }) es still außer
   Kraft — ein verstecktes Element bleibt dann sichtbar. Ersetzt die früheren
   Einzelfall-Regeln je Selektor. */
[hidden] { display: none !important; }

:root {
  --bg: #14161c;
  --bg-panel: #1b1f27;
  --bg-panel-2: #232833;
  --line: #2c313c;
  --text: #f0ede6;
  --muted: #a8a49a;
  --gold: #c9a45c;
  --gold-dark: #a9853f;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .4rem; }

.kicker {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .9rem;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(20, 22, 28, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1180px; margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.brand { font-family: var(--serif); font-size: 1.4rem; color: var(--text); letter-spacing: .04em; display: flex; align-items: center; gap: .7rem; transition: opacity .3s ease; }
.brand-logo { height: 42px; width: auto; display: block; }
/* Startseite: Header-Logo weicht dem großen Hero-Logo, bis gescrollt wird */
body.hero-top .site-header .brand { opacity: 0; visibility: hidden; }
.brand-dot { color: var(--gold); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.aktiv { color: var(--text); }
.nav-links a.aktiv::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none; width: 30px; height: 24px; position: relative;
  background: none; border: none; cursor: pointer; padding: 0; margin-left: auto;
}
.nav-toggle span {
  position: absolute; left: 0; height: 2px; width: 100%; background: var(--text);
  border-radius: 2px; transition: transform .28s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 3px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 19px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.7rem; font-size: .95rem;
  border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: all .2s; font-family: var(--sans);
}
.btn-gold { background: var(--gold); color: #14161c; font-weight: 600; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: rgba(201, 164, 92, .12); }
.nav-cta { padding: .55rem 1.2rem; font-size: .88rem; }
.textlink { font-size: .95rem; }
.textlink:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('../assets/img/hero-gesangskabine.jpg') center 30% / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,22,28,.93) 30%, rgba(20,22,28,.55) 65%, rgba(20,22,28,.35) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.hero-logo { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2.2rem; }
.hero-logo img { height: clamp(64px, 9vw, 96px); width: auto; display: block; }
.hero-logo .hl-name { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--text); letter-spacing: .04em; line-height: 1; display: block; }
.hero-logo .hl-dot { color: var(--gold); }
.hero-logo .hl-tag { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-top: .45rem; }
.hero-sub { max-width: 540px; color: var(--muted); margin: 1.4rem 0 2.2rem; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust { margin-top: 2.6rem; font-size: .85rem; color: var(--muted); letter-spacing: .03em; }

/* Sections */
.section { max-width: 1180px; margin: 0 auto; padding: 5.5rem 1.5rem; }
.section.alt { max-width: none; background: var(--bg-panel); }
.section.alt .split { max-width: 1180px; margin: 0 auto; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card h3, .card p, .card .textlink { padding: 0 1.4rem; }
.card h3 { margin-top: 1.3rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; margin: .5rem 0 1rem; }
.card .textlink { padding-bottom: 1.4rem; }

.also { display: flex; gap: 1.2rem; align-items: baseline; margin-top: 2.5rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.also span { color: var(--gold); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.also ul { display: flex; gap: 1.8rem; list-style: none; flex-wrap: wrap; }
.also li::before { content: '·'; color: var(--gold); margin-right: .6rem; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse .split-img { order: 2; }
.split-img img { border-radius: 4px; border: 1px solid var(--line); }
.split-text p { color: var(--muted); margin-bottom: 1.2rem; }
.split-text .btn { margin-top: .6rem; }
.small { font-size: .85rem; }

/* Pricelist */
.pricelist { list-style: none; margin: 1.4rem 0; border-top: 1px solid var(--line); }
.pricelist li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.pricelist .price { color: var(--gold); white-space: nowrap; font-family: var(--serif); }

/* Offers */
.offer { margin-bottom: 1.5rem; }
.offer p { margin-bottom: 0; font-size: .95rem; }
.tag {
  display: inline-block; background: var(--gold); color: #14161c;
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .15rem .55rem; border-radius: 2px; vertical-align: middle; margin-left: .5rem;
}
.tag-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }

/* Banner */
.banner {
  background: linear-gradient(120deg, var(--bg-panel) 0%, var(--bg-panel-2) 100%);
  border: 1px solid var(--line); border-radius: 4px; padding: 3.5rem;
}
.banner p { color: var(--muted); max-width: 640px; margin-bottom: 1.6rem; }

/* Referenzen */
.ref-list { color: var(--muted); max-width: 760px; font-family: var(--serif); font-size: 1.1rem; line-height: 2; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-list { list-style: none; margin-top: 1.5rem; color: var(--muted); }
.contact-list li { padding: .3rem 0; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 2rem; }
.contact-form label { font-size: .85rem; color: var(--muted); display: flex; flex-direction: column; gap: .4rem; }
.contact-form input, .contact-form textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: .7rem .9rem; color: var(--text); font-family: var(--sans); font-size: .95rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.contact-form .btn { align-self: flex-start; }

/* Vollbreiter Kontaktabschnitt (Startseite) */
.contact-full { background: var(--bg-panel); border-top: 1px solid var(--line); padding: 5.5rem 1.5rem; }
.contact-inner { max-width: 1180px; margin: 0 auto; }
.kontakt-kopf { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: 2.6rem; }
.kontakt-kopf .contact-list { margin-top: 0; }
/* Formular über die volle Breite: kurze Felder paarweise nebeneinander,
   Text und Sprachnachricht gleichrangig in zwei Spalten. */
.contact-form-breit { background: none; border: none; padding: 0; gap: 1.4rem; }
.contact-form-breit .form-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; align-items: start; }
.contact-form-breit .form-zeile > label,
.contact-form-breit .form-zeile > .feld { margin: 0; }
/* Text und Sprachnachricht gleich hoch nebeneinander. */
.contact-form-breit .form-zeile-nachricht { align-items: stretch; }
.contact-form-breit .form-zeile-nachricht > label { display: flex; flex-direction: column; }
.contact-form-breit .form-zeile-nachricht textarea { flex: 1; }
/* Das Sprachfeld als eigene, ruhige Karte — hebt das Besondere hervor. */
.contact-form-breit .sprach-feld { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.2rem; justify-content: center; }
/* Fehlt das Mikrofon (Sprachfeld ausgeblendet), nimmt das Textfeld die ganze Zeile. */
.contact-form-breit .form-zeile-nachricht:has(.sprach-feld[hidden]) { grid-template-columns: 1fr; }
.contact-form-breit textarea { min-height: 170px; }

/* Kontaktformular: Felder, Anliegen-Chips, Sprachaufnahme, Danke */
/* display:flex überschreibt sonst das hidden-Attribut — explizit zurücknehmen. */
.contact-form .feld[hidden], .rec-fertig[hidden], .danke-audio[hidden], .kontakt-danke[hidden] { display: none; }
.contact-form .feld { display: flex; flex-direction: column; gap: .55rem; }
.feld-label { font-size: .85rem; color: var(--muted); }
.contact-form .feld-optional { color: var(--muted); font-weight: 400; opacity: .8; }
.anliegen-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem .95rem; color: var(--muted); font-family: var(--sans); font-size: .88rem;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip.aktiv { border-color: var(--gold); color: #14161c; background: var(--gold); }
.chip-hinweis { font-size: .82rem; color: var(--gold); margin: 0; }
.datei-feld input[type="file"] { font-size: .85rem; color: var(--muted); }
.datei-feld input[type="file"]::file-selector-button {
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: .5rem .8rem; color: var(--text); font-family: var(--sans); margin-right: .8rem; cursor: pointer;
}

/* Sprachaufnahme */
.rec { display: flex; align-items: center; gap: .9rem; }
.rec-btn {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: border-color .15s;
}
.rec-btn:hover { border-color: var(--gold); }
.rec-icon { width: 16px; height: 16px; border-radius: 50%; background: #c0402a; transition: all .15s; }
.rec-btn.aktiv { border-color: #c0402a; }
.rec-btn.aktiv .rec-icon { width: 14px; height: 14px; border-radius: 3px; }
.rec-wave { flex: 1; height: 40px; min-width: 0; }
.rec-zeit { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; min-width: 2.6rem; text-align: right; }
.rec-fertig { display: flex; align-items: center; gap: .8rem; margin-top: .7rem; }
.rec-wave-fertig { height: 34px; }
.rec-play {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold); color: var(--gold);
  cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center;
}
.rec-loeschen { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.rec-loeschen:hover { color: #c0402a; }

/* Danke nach dem Absenden */
.kontakt-danke { border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: .3rem; }
.danke-titel { color: var(--gold); font-family: var(--serif); font-size: 1.3rem; margin-bottom: .4rem; }
.danke-audio { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 2rem 1.5rem; max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: .85rem;
}
.site-footer ul { display: flex; gap: 1.5rem; list-style: none; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Shop & Klangarchiv */
.demo-note { margin-top: 1.2rem; font-size: .85rem; color: var(--gold); border: 1px dashed var(--gold); display: inline-block; padding: .4rem .9rem; border-radius: 2px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.product { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.product-genre { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.product-composer { color: var(--muted); font-size: .9rem; }
.product .tag { align-self: flex-start; margin: .3rem 0 .8rem; }
.product-buy { display: flex; flex-direction: column; gap: .5rem; margin-top: auto; }
/* Ausführung wählen (CD / MP3) direkt auf der Shopkachel — nur bei Titeln,
   die es in beiden Fassungen gibt. Bewusst schmal, damit der Kaufknopf die
   Hauptsache bleibt. */
.var-wahl { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; align-self: flex-start; }
.var-opt {
  background: none; border: none; cursor: pointer; border-radius: 999px;
  padding: .3rem .8rem; color: var(--muted);
  font-family: var(--sans); font-size: .78rem; letter-spacing: .04em;
}
.var-opt:hover { color: var(--text); }
.var-opt.aktiv { background: var(--gold); color: #1a1a1a; font-weight: 600; }
.product-buy .btn { font-size: .88rem; padding: .65rem 1rem; }
.product-preview { background: none; border: none; cursor: pointer; margin-top: .6rem; text-align: left; font-family: var(--sans); }

.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg-panel); border-left: 1px solid var(--line); z-index: 100; overflow-y: auto; }
.cart-inner { padding: 2rem 1.5rem; }
/* Kopfzeile mit Schließkreuz — muss in jedem Schritt erreichbar bleiben,
   sonst sitzt der Kunde in der Kasse fest (auf dem Handy gibt es keinen
   Warenkorb-Knopf in der Navigation). */
.cart-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cart-x {
  background: none; border: 1px solid var(--line); border-radius: 4px;
  width: 34px; height: 34px; flex: 0 0 auto; cursor: pointer;
  color: var(--muted); font-size: 1.3rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-x:hover { border-color: var(--gold); color: var(--gold); }
/* Weg zurück aus dem Bestellformular in den Warenkorb */
.cart-zurueck {
  background: none; border: none; padding: 0 0 1rem; cursor: pointer;
  color: var(--muted); font-family: var(--sans); font-size: .85rem;
}
.cart-zurueck:hover { color: var(--gold); }
/* Pflichtfeld-Kennzeichnung */
.pflicht { color: var(--gold); font-weight: 600; }
.pflicht-legende { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }

/* Schwebendes Warenkorb-Symbol: der einzige Zugang zum Korb, sobald die
   Navigations-Schaltfläche ausgeblendet ist (siehe .nav-cta im Media Query). */
.cart-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: #1a1a1a; border: none;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.cart-fab[hidden] { display: none; }
.cart-fab:hover { filter: brightness(1.08); }
.cart-fab-icon { font-size: 1.1rem; line-height: 1; }
.cart-fab-zahl { font-variant-numeric: tabular-nums; }
.cart-items { list-style: none; margin: 1.2rem 0; }
.cart-items li { display: flex; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cart-lizenz { color: var(--muted); }
.cart-line-right { white-space: nowrap; color: var(--gold); }
.cart-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; margin-left: .4rem; }
.cart-empty { color: var(--muted); border: none !important; }
.cart-hint { color: var(--gold); font-size: .82rem; border: none !important; justify-content: flex-start !important; }
/* Mengen-Stepper (nur CDs) */
.cart-qty { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; }
.qty-btn { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); background: var(--bg-panel-2); color: var(--text); border-radius: 3px; cursor: pointer; font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-num { min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; color: var(--text); }
.cart-total { text-align: right; margin: 1rem 0 1.4rem; }
.cart-total strong { color: var(--gold); font-size: 1.2rem; }
.turnstile-feld { margin: 1rem 0; }

/* Bestellübersicht in Checkout-Schritt 2 (Pflichtangaben vor dem Bestellbutton) */
.checkout-summary { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 1rem 1.1rem; margin-bottom: 1.4rem; }
.checkout-summary .field-label { margin-top: 0; }
.checkout-summary-list { list-style: none; margin: 0 0 .6rem; }
.checkout-summary-list li { display: flex; justify-content: space-between; gap: .8rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.checkout-summary-list li:last-child { border-bottom: none; }
/* Betrag nie zwischen Zahl und Währungszeichen umbrechen (fiel mobil auf) */
.checkout-summary-list li span:last-child, .checkout-summary-total span:last-child { white-space: nowrap; }
.checkout-summary-total { display: flex; justify-content: space-between; gap: .8rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: 1rem; }
.checkout-summary-total span:last-child { color: var(--gold); font-weight: 600; }

/* Widerrufs-Zustimmung (§ 356 Abs. 4/5 BGB) vor Checkout- und Auftrags-Buttons */
.feld-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 1.2rem 0; line-height: 1.5; }
.feld-check input { margin-top: .2rem; flex: none; accent-color: var(--gold); }
.feld-check.fehlt { color: var(--gold); }

/* Digitaler Widerrufsbutton (§ 356a BGB) — Stufe-1/2-Box auf widerruf.html */
.widerruf-box { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 1.6rem; margin: 1.6rem 0 2.4rem; }
.widerruf-box .field { margin-bottom: 1rem; }

/* Sitweiter Footer-Button — bewusst optisch abgesetzt von den reinen Textlinks
   (Impressum/Datenschutz/AGB), wie es § 356a BGB für den Widerrufsbutton verlangt. */
.footer-widerruf-btn { display: inline-block; margin-top: 1rem; padding: .5rem 1.1rem; border: 1px solid var(--gold); border-radius: 3px; color: var(--gold) !important; font-size: .85rem; text-decoration: none; }
.footer-widerruf-btn:hover { background: var(--gold); color: var(--bg) !important; }

.download-list { list-style: none; margin-top: 1rem; }
.download-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--gold); font-size: .92rem; }

.field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.field input, .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: .7rem .9rem; color: var(--text); font-family: var(--sans); }
.field input:focus, .field textarea:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.field textarea { resize: vertical; }
.field-label { font-size: .85rem; color: var(--muted); margin: 1.2rem 0 .5rem; }
.feld-optional { opacity: .65; font-style: italic; }
.pay-options { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.4rem; }
.pay-option { display: flex; gap: .7rem; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: .75rem 1rem; font-size: .92rem; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--gold); }
.pay-option input { accent-color: var(--gold); }

.steps { counter-reset: schritt; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.steps li { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 1.2rem; font-size: .9rem; color: var(--muted); }
.steps li::before { counter-increment: schritt; content: counter(schritt); display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #14161c; font-weight: 700; text-align: center; line-height: 30px; margin-bottom: .8rem; }
.steps strong { color: var(--text); }

.rechner-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; margin-top: 1.5rem; align-items: start; }
/* Grid-Kinder dürfen nicht auf die Mindestbreite der Tabelle aufblähen,
   sonst greift das overflow-x des Wrappers nie und die Seite scrollt seitwärts. */
.rechner-grid > * { min-width: 0; }
.rechner-wrap { overflow-x: auto; min-width: 0; }
.rechner { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rechner th, .rechner td { padding: .85rem 1rem; vertical-align: middle; }
.rechner th:first-child, .rechner td:first-child { padding-left: 0; }
.rechner th:last-child, .rechner td:last-child { padding-right: 0; }
.rechner th {
  text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
  vertical-align: bottom; line-height: 1.45; padding-bottom: .6rem;
}
.rechner td { border-bottom: 1px solid var(--line); }
/* Spaltenbreiten + Ausrichtung: Medium | Preis | Anzahl | Restauration */
.rechner th:nth-child(1) { width: 36%; }
.rechner th:nth-child(2) { width: 22%; text-align: right; }
.rechner th:nth-child(3) { width: 21%; text-align: center; }
.rechner th:nth-child(4) { width: 21%; text-align: right; }
.rechner td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
.rechner td:nth-child(3) { text-align: center; }
.rechner td:nth-child(4) { text-align: right; }

.stepper { white-space: nowrap; }
.stepper button { width: 30px; height: 30px; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 2px; cursor: pointer; font-size: 1rem; }
.stepper button:hover { border-color: var(--gold); color: var(--gold); }
.stepper span { display: inline-block; min-width: 2.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.restauration-zelle { white-space: nowrap; }
.restauration-check { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
.restauration-check input { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.summary { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; position: sticky; top: 90px; }
.summary ul { list-style: none; margin-top: 1rem; }
.summary li { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.bestellung { margin-top: 3.5rem; max-width: 720px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin-top: 1.2rem; }
/* Eingabefelder dürfen das Grid nicht sprengen (Standard ist min-width:auto) */
.form-grid > * { min-width: 0; }
.field input { min-width: 0; max-width: 100%; }

/* Mix & Mastering: direkt buchbare Paket-Karten */
.mm-paket { padding: 1.6rem; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.mm-paket:hover { border-color: var(--gold); }
.mm-paket.aktiv { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.mm-paket h3, .mm-paket p { padding: 0; }
.mm-paket h3 { margin-top: .7rem; }
.mm-paket-sel { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.mm-paket-sel input { accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
.mm-paket-sel .tag { margin-left: 0; }
.mm-buchen { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.mm-titel-feld { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
.mm-titel-feld input { width: 4.2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: .5rem .55rem; color: var(--text); font-family: var(--sans); font-variant-numeric: tabular-nums; }
.mm-titel-feld input:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.mm-dauer-feld { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
.mm-dauer-feld select { background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: .5rem .55rem; color: var(--text); font-family: var(--sans); cursor: pointer; max-width: 100%; }
.mm-dauer-feld select:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.mm-spuren-feld { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
.mm-spuren-feld select { background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: .5rem .55rem; color: var(--text); font-family: var(--sans); cursor: pointer; max-width: 100%; }
.mm-spuren-feld select:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.mm-preis { color: var(--gold); font-family: var(--serif); font-size: 1.15rem; white-space: nowrap; }

/* Hero-Klangwelle */
#hero-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-inner { z-index: 2; }

/* A/B-Hörvergleich */
.ab { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 2rem; margin-top: 3.5rem; }
.ab-konsole { display: flex; gap: 1.6rem; align-items: center; margin-top: 1.6rem; }
.ab-play {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: #14161c; border: none;
  font-size: 1.25rem; cursor: pointer; transition: background .2s, transform .1s;
}
.ab-play:hover { background: var(--gold-dark); }
.ab-play:active { transform: scale(.96); }
.ab-fader-block { flex: 1; }
.ab-labels {
  display: flex; justify-content: space-between; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.ab-labels .aktiv { color: var(--gold); }

/* Studio-Fader */
input.fader { -webkit-appearance: none; appearance: none; width: 100%; height: 38px; background: transparent; cursor: ew-resize; }
input.fader::-webkit-slider-runnable-track { height: 6px; background: var(--line); border-radius: 3px; }
input.fader::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 34px; margin-top: -14px;
  background: linear-gradient(180deg, #333947, #232833 40%, #2c313c);
  background-color: #2c313c; border: 1px solid var(--gold); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
  background-image: linear-gradient(90deg, transparent 46%, var(--gold) 46%, var(--gold) 54%, transparent 54%);
}
input.fader::-moz-range-track { height: 6px; background: var(--line); border-radius: 3px; }
input.fader::-moz-range-thumb {
  width: 28px; height: 34px; background: #2c313c; border: 1px solid var(--gold); border-radius: 3px;
  background-image: linear-gradient(90deg, transparent 46%, var(--gold) 46%, var(--gold) 54%, transparent 54%);
}

/* Waveform-Hörproben */
.wave-player { display: flex; align-items: center; gap: .8rem; margin-top: .9rem; }
.wave-player canvas { flex: 1; height: 44px; cursor: pointer; display: block; }
.wave-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  cursor: pointer; font-size: .85rem; transition: background .2s;
}
.wave-btn:hover { background: rgba(201, 164, 92, .12); }

/* LED-Optionen (Studio-Look) */
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #3a4150; flex-shrink: 0; transition: background .15s, box-shadow .15s;
}
.pay-option:has(input:checked)::before {
  background: var(--gold); box-shadow: 0 0 10px rgba(201, 164, 92, .8);
}
.pay-option:has(input:focus-visible) { outline: 1px solid var(--gold); }

/* Zahlungsarten-Leiste (offizielle Mollie-Icons) */
.pay-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1rem 0 .3rem; }
.pay-strip-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); width: 100%; margin-bottom: .1rem; }
.pay-strip img { height: 28px; width: auto; display: block; }

/* Hörgalerie / Referenzen */
.zdf-badge {
  display: flex; align-items: center; gap: .9rem; margin: 2rem 0 2.5rem;
  background: var(--bg-panel); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 4px; padding: 1rem 1.3rem; color: var(--muted); max-width: 640px; font-size: .95rem;
}
.zdf-badge svg { color: var(--gold); flex-shrink: 0; }
.zdf-badge strong { color: var(--text); }

.ref-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.ref-chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: .5rem 1.1rem; border-radius: 40px; cursor: pointer; font-size: .9rem;
  font-family: var(--sans); transition: all .18s;
}
.ref-chip:hover { border-color: var(--gold); color: var(--text); }
.ref-chip.aktiv { background: var(--gold); border-color: var(--gold); color: #14161c; font-weight: 500; }

.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.ref-card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.5rem; display: flex; flex-direction: column;
}
.ref-card h3 { margin: .3rem 0; }
.ref-stueck { font-family: var(--serif); color: var(--gold); font-size: 1.05rem; margin-bottom: .5rem; }
.ref-text { color: var(--muted); font-size: .92rem; flex: 1; }

.ref-cta { text-align: center; margin-top: 4rem; padding: 3rem 1.5rem; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; }
.ref-cta h2 { margin-bottom: .5rem; }
.ref-cta .btn { margin-top: 1.4rem; }

/* Legal-Seiten */
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.legal p { color: var(--muted); margin-bottom: .8rem; }
.legal a { text-decoration: underline; }

/* Zitat (Über uns) */
.zitat {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4;
  color: var(--text); border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.6rem;
  margin: 2rem 0; max-width: 720px;
}

/* Technik-Raster */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.tech-grid > div { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 4px; padding: 1.3rem; }
.tech-grid h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.tech-grid p { color: var(--muted); font-size: .92rem; }

/* Shop-Reiter & CD-Karten */
.shop-tabs { display: flex; gap: .5rem; margin: 2rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.shop-tab {
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); padding: .7rem 1.2rem; cursor: pointer; font-size: 1rem;
  font-family: var(--sans); margin-bottom: -1px; transition: color .18s;
}
.shop-tab:hover { color: var(--text); }
.shop-tab.aktiv { color: var(--gold); border-bottom-color: var(--gold); }

.cd-card { padding-top: 0; overflow: hidden; }
.cd-cover { margin: -1.5rem -1.5rem 1rem; aspect-ratio: 1; background: #0e1014; overflow: hidden; }
.cd-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Produkt-Detailseite */
.produkt-kopf { display: grid; grid-template-columns: 380px 1fr; gap: 2.5rem; align-items: start; }
.produkt-cover { background: #0e1014; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.produkt-cover img { width: 100%; display: block; }
.produkt-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.track-liste { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.2rem; }
.track {
  display: flex; align-items: center; gap: 1rem; background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1.1rem;
}
.track-info { flex: 1; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.track-titel { font-size: .95rem; }
.track-info canvas { width: 100%; height: 34px; cursor: pointer; display: block; }

.cd-card .cd-cover, .cd-card h3, .cd-card .product-composer { cursor: pointer; }
.cd-card a.cd-link { color: inherit; text-decoration: none; display: block; }
.cd-card a.cd-link:hover h3 { color: var(--gold); }

@media (max-width: 700px) {
  .produkt-kopf { grid-template-columns: 1fr; }
  .produkt-cover { max-width: 320px; }
}

/* Referenz-Detailseite */
.ref-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; margin-top: 2rem; }
.ref-detail-haupt { margin: 0; }
.ref-detail-haupt img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
.ref-detail-grid figcaption, .foto-galerie figcaption { font-size: .82rem; color: var(--text-muted, #a8a49a); margin-top: .5rem; }
/* Eingebettete Fremdinhalte (Video, SoundCloud) auf Referenz-Detailseiten.
   Der Player wird erst auf Klick eingesetzt (siehe js/referenz.js) — bis dahin
   liegt hier nur ein eigenes Vorschaubild, es geht also keine Anfrage an den
   Anbieter und die Seite bleibt ohne Cookie-Banner. */
.einbett-rahmen { position: relative; aspect-ratio: 16/9; margin-top: 1.2rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-panel); }
/* Der SoundCloud-Player ist eine Liste, kein Bild — feste Höhe statt 16:9. */
.einbett-rahmen.einbett-audio { aspect-ratio: auto; height: 420px; }
.einbett-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.einbett-start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: none; background: none; cursor: pointer; display: block; }
.einbett-start img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .25s; }
.einbett-start:hover img { opacity: .75; }
.einbett-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; background: var(--gold); color: #1a1a1a;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding-left: .2rem;
}
.einbett-start:hover .einbett-play { filter: brightness(1.1); }
.einbett-hinweis {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  color: var(--text); font-family: var(--sans); font-size: .9rem; text-align: left;
}
.einbett-hinweis .small { color: var(--muted); }

.foto-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.foto-galerie figure { margin: 0; }
.foto-galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }

@media (max-width: 800px) {
  .ref-detail-grid { grid-template-columns: 1fr; }
}

/* Produkt-Varianten & Titelliste */
.variante { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.4rem; }
.variante-opt {
  display: flex; gap: .8rem; align-items: flex-start; background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1.1rem; cursor: pointer;
}
.variante-opt:has(input:checked) { border-color: var(--gold); }
.variante-opt input { accent-color: var(--gold); margin-top: .3rem; }
.tracklist { margin: 1.2rem 0 0; padding-left: 1.6rem; columns: 2; column-gap: 2.5rem; }
.tracklist li { color: var(--muted); font-size: .92rem; padding: .25rem 0; break-inside: avoid; }
@media (max-width: 700px) { .tracklist { columns: 1; } }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }

/* Navigations-Pegel */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold) 0%, #d0803a 55%, #c0402a 100%);
  transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .kontakt-kopf { grid-template-columns: 1fr; align-items: start; }
  .contact-form-breit .form-zeile { grid-template-columns: 1fr; }
  .contact-full { padding: 4rem 1.5rem; }
  .split.reverse .split-img { order: 0; }
  .rechner-grid { grid-template-columns: 1fr; gap: 2rem; }
  .summary { position: static; }
  /* Mix & Mastering: Formular und Zusammenfassung liegen (anders als bei der
     Tonrestauration, wo die Zusammenfassung ein eigener, vorangestellter
     Block ist) im selben Grid — Formular zuerst im Markup. Gestapelt auf dem
     Handy soll die Zusammenfassung trotzdem zuerst erscheinen, damit der
     Kunde Preis und Leistung kennt, bevor er seine Adresse einträgt. */
  .rechner-grid-mm .summary { order: -1; }
  .rechner th, .rechner td { padding: .75rem .55rem; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: rgba(20, 22, 28, .98);
    backdrop-filter: blur(10px); padding: .5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line); gap: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .32s ease, opacity .25s ease, padding .32s ease;
    pointer-events: none;
  }
  .nav-links.open { max-height: 80vh; opacity: 1; pointer-events: auto; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .banner { padding: 2rem 1.5rem; }
  .hero { min-height: 80vh; }
}

/* ============ Cockpit (interner Bereich) ============ */
.cockpit-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.8rem; }
.cockpit-stat { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.2rem 1.3rem; }
.cockpit-stat-val { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.cockpit-stat-lbl { display: block; margin-top: .5rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cockpit-head { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: 1rem; }
.cockpit-head h2 { font-size: 1.35rem; }
.cockpit-count { color: var(--muted); font-size: .85rem; }
.cockpit-table-wrap { overflow-x: auto; min-width: 0; }
.cockpit-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.cockpit-table th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .6rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cockpit-table td { padding: .8rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cockpit-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cockpit-table tr:hover td { background: rgba(255,255,255,.02); }
.cockpit-muted { color: var(--muted); font-size: .85rem; text-decoration: none; }
.cockpit-badge { display: inline-block; font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.cockpit-badge.ok { color: #7ec98a; border-color: rgba(126,201,138,.4); background: rgba(126,201,138,.08); }
.cockpit-badge.warn { color: var(--gold); border-color: rgba(201,164,92,.4); background: rgba(201,164,92,.08); }
.cockpit-badge.info { color: #7aa7d0; border-color: rgba(122,167,208,.4); background: rgba(122,167,208,.08); }
.cockpit-badge.bad { color: #d08a80; border-color: rgba(208,138,128,.4); background: rgba(208,138,128,.08); }
.cockpit-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cockpit-link { background: none; border: none; padding: 0; color: var(--gold); cursor: pointer; font-size: .85rem; font-family: var(--sans); text-decoration: none; border-bottom: 1px solid transparent; }
.cockpit-link:hover { border-bottom-color: var(--gold); }
.cockpit-link.gold { font-weight: 600; }
.cockpit-panel { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.3rem 1.5rem; }
.cockpit-soon { border-style: dashed; }
.cockpit-soon p { color: var(--muted); }
.cockpit-soon strong { color: var(--text); }
.cockpit-modal[hidden] { display: none; }
.cockpit-modal { position: fixed; inset: 0; background: rgba(10,11,15,.7); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1.5rem; }
.cockpit-modal-inner { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 8px; padding: 1.8rem; max-width: 460px; width: 100%; }
.cockpit-modal-inner h3 { margin-bottom: .5rem; }
@media (max-width: 760px) {
  .cockpit-stats { grid-template-columns: repeat(2, 1fr); }
}

.cockpit-stat-klickbar { cursor: pointer; transition: border-color .15s, background .15s; }
.cockpit-stat-klickbar:hover { border-color: var(--gold); }
.cockpit-stat.aktiv { border-color: var(--gold); background: rgba(201,164,92,.08); }
.cockpit-row-klickbar { cursor: pointer; }

/* ============ Cockpit: Detail-Drawer ============ */
.cockpit-drawer-backdrop[hidden], .cockpit-drawer[hidden] { display: none; }
.cockpit-drawer-backdrop { position: fixed; inset: 0; background: rgba(10,11,15,.6); backdrop-filter: blur(2px); z-index: 90; }
.cockpit-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw);
  background: var(--bg-panel); border-left: 1px solid var(--line);
  z-index: 91; overflow-y: auto; padding: 3.2rem 1.6rem 2rem;
}
.cockpit-drawer-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: .4rem;
}
.cockpit-drawer-close:hover { color: var(--gold); }
.cockpit-detail-block { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.cockpit-detail-block:first-of-type { border-top: none; padding-top: 0; }
.cockpit-detail-block strong { display: block; margin-bottom: .4rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cockpit-detail-liste { margin: 0; padding-left: 1.2rem; }
.cockpit-detail-liste li { margin-bottom: .2rem; }
.cockpit-detail-block .field { margin-top: .6rem; }
.cockpit-detail-block .field:first-of-type { margin-top: 0; }

/* ============ Cockpit: Marken-Formular ============ */
.cockpit-marke-form { margin-top: .6rem; }
.cockpit-marke-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; }
@media (max-width: 760px) {
  .cockpit-drawer { width: 100vw; }
}

/* ============ Upload-Seite ============ */
.upload-drop { display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 130px; border: 2px dashed var(--line); border-radius: 8px; cursor: pointer;
  color: var(--muted); transition: border-color .2s, background .2s; padding: 1.5rem; }
.upload-drop:hover, .upload-drop.aktiv { border-color: var(--gold); background: rgba(201,164,92,.06); color: var(--text); }
.upload-liste { list-style: none; margin: 1rem 0 0; }
.upload-liste li { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.upload-liste .upload-groesse { color: var(--muted); font-size: .82rem; margin-left: auto; font-variant-numeric: tabular-nums; }
.upload-liste button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.upload-liste button:hover { color: var(--gold); }
.upload-progress { flex: 1 1 100%; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.upload-progress > span { display: block; height: 100%; width: 0%; background: var(--gold); transition: width .15s; }
.upload-progress.fehler > span { background: #c0402a; }
.upload-status { flex: 1 1 100%; font-size: .78rem; color: var(--muted); }

/* ============ Cockpit: Kunden-Uploads ============ */
.cockpit-kontakte { display: grid; gap: .9rem; }
.kontakt-karte { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem; }
.kontakt-karte.erledigt { opacity: .6; }
.kontakt-karte .kontakt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.kontakt-kunde { margin-top: .5rem; font-size: .92rem; }
.kontakt-text { margin-top: .6rem; white-space: pre-wrap; color: var(--text); font-size: .92rem; line-height: 1.5; }
.kontakt-dateien { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: .8rem; }
.kontakt-audio { display: flex; align-items: center; gap: .5rem; }
.kontakt-audio audio { height: 34px; max-width: 260px; }

.cockpit-uploads { display: grid; gap: .8rem; }
.cockpit-upload-gruppe { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem; }
.cockpit-upload-gruppe h4 { font-family: var(--sans); font-size: .9rem; font-weight: 600; margin-bottom: .5rem; }
.cockpit-upload-gruppe h4 .cockpit-muted { font-weight: 400; }
.cockpit-datei { display: flex; align-items: center; gap: .8rem; padding: .35rem 0; font-size: .88rem; border-top: 1px solid var(--line); }
.cockpit-datei:first-of-type { border-top: none; }
.cockpit-datei .cockpit-groesse { color: var(--muted); font-size: .8rem; margin-left: auto; font-variant-numeric: tabular-nums; }
