/* ── Self-hosted Fonts ──────────────────────────── */
@font-face { font-family: 'Big Shoulders Display'; font-weight: 700; font-display: swap; src: url('fonts/BigShoulders-700.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url('fonts/BigShoulders-800.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap; src: url('fonts/BigShoulders-900.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 400; font-display: swap; src: url('fonts/Archivo-400.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 500; font-display: swap; src: url('fonts/Archivo-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 600; font-display: swap; src: url('fonts/Archivo-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 700; font-display: swap; src: url('fonts/Archivo-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 800; font-display: swap; src: url('fonts/Archivo-800.woff2') format('woff2'); }

:root {
  --bg: #1B1D20;
  --surface: #232629;
  --surface-alt: #2A2D31;
  --led: #2FD0FF;
  --led-bright: #7FE8FF;
  --led-glow: rgba(47,208,255,0.35);
  --text: #ECEEF0;
  --text-muted: #A6ACB4;
  --text-faint: #6E747C;
  --border: rgba(236,238,240,0.08);
  --border-strong: rgba(236,238,240,0.18);
  --font-display: 'Big Shoulders Display', 'Archivo', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --rail-w: 74px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.08; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── LED-Kontur-Hover ─────────────────────────────── */
.led-frame { position: relative; isolation: isolate; }
.led-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--a,0deg), transparent 0%, var(--led) 8%, transparent 18%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 2;
  animation: rot 3.2s linear infinite paused;
}
.led-frame:hover::before, .led-frame:focus-within::before { opacity: 1; animation-play-state: running; }
@keyframes rot { to { --a: 360deg; } }
@property --a { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.1) 45%, rgba(127,232,255,.18) 50%, rgba(255,255,255,.1) 55%, transparent 100%);
  transform: translateX(-40%) rotate(8deg); transition: transform .9s cubic-bezier(.22,1,.36,1); pointer-events: none; z-index: 1;
}
.sheen:hover::after { transform: translateX(220%) rotate(8deg); }

@media (prefers-reduced-motion: reduce) {
  .led-frame::before { transition: none; animation: none !important; }
  .sheen::after { transition: none; }
}

/* ── Top bar: schmal, nur Logo + ein CTA ──────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 20px;
  background: rgba(27,29,32,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-logo img { height: 30px; }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--led); color: #0B1A20;
  padding: 10px 18px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  transition: background .2s ease, box-shadow .2s ease;
}
.topbar-cta:hover { background: var(--led-bright); box-shadow: 0 0 24px var(--led-glow); }

/* ── Side rail nav (desktop only) ─────────────────── */
.rail {
  display: none;
}

/* ── Banner ────────────────────────────────────────── */
.banner { background: var(--surface-alt); border-bottom: 1px solid var(--border); text-align: center; padding: 9px 16px; font-size: 0.78rem; color: var(--led-bright); font-weight: 600; }
.banner[hidden] { display: none; }

/* ── Mobile anchor chips (replace header nav on mobile) ── */
.anchor-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px; scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.anchor-chips::-webkit-scrollbar { display: none; }
.anchor-chips a {
  flex-shrink: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-muted);
}
.anchor-chips a:hover { color: var(--led-bright); border-color: var(--led); }

/* ── Hero: zweispaltig, kein Foto, Diagnose-Panel ─── */
.hero {
  position: relative;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 900px 500px at 85% 0%, rgba(47,208,255,0.10), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 64px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 32px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--led-bright);
  margin-bottom: 16px;
}
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px 2px var(--led-glow); }
.hero-title { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 18px; }
.hero-title .hl { color: var(--led); }
.hero-tagline { font-size: 1.02rem; color: var(--text-muted); max-width: 48ch; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--led); color: #0B1A20; }
.btn-primary:hover { background: var(--led-bright); box-shadow: 0 0 28px var(--led-glow); }
.btn-secondary { border: 1px solid var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--led); color: var(--led-bright); }

/* Diagnose-Panel: Bild + Kennzahlen als "Readout" */
.diagnose-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
}
.diagnose-img { position: relative; aspect-ratio: 21/9; overflow: hidden; }
.diagnose-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.08) brightness(0.65); }
.diagnose-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,38,41,0) 40%, var(--surface) 100%), linear-gradient(100deg, rgba(47,208,255,0.12), transparent 50%);
}
.diagnose-body { padding: 18px 22px 20px; }
.diagnose-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--border-strong);
}
.diagnose-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px 2px var(--led-glow); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.readout { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); }
.readout:last-child { border-bottom: none; padding-bottom: 0; }
.readout-label { font-size: 0.82rem; color: var(--text-muted); }
.readout-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.readout-value .unit { font-size: 1rem; color: var(--led); margin-left: 2px; }

@media (prefers-reduced-motion: reduce) { .diagnose-head .dot { animation: none; } }

/* ── Section shell ─────────────────────────────────── */
.section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 32px; max-width: 60ch; }
.section-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--led); margin-bottom: 10px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.3rem); }

/* ── Leistungen: Akkordeon statt Tabs+Karten ───────── */
.leistung-group {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.leistung-group:hover { border-color: var(--led-dim, var(--led)); }
.leistung-group.open { border-color: var(--led); }
.leistung-group-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--text);
}
.leistung-group-count { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: var(--text-faint); text-transform: none; margin-left: auto; margin-right: 14px; }
.leistung-group-icon {
  flex-shrink: 0; color: var(--led); transition: transform .3s ease;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-alt);
}
.leistung-group.open .leistung-group-icon { transform: rotate(45deg); background: var(--led); color: #0B1A20; }
.leistung-items { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.leistung-item { display: flex; justify-content: space-between; gap: 20px; padding: 16px 22px; border-top: 1px solid var(--border); }
.leistung-item-name { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.leistung-item-desc { font-size: 0.88rem; color: var(--text-muted); max-width: 52ch; }
.leistung-item-preis { flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--led-bright); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; padding-top: 2px; }

/* ── Referenzen: große abwechselnde Reihen ─────────── */
.referenz-row { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--border); cursor: pointer; }
.referenz-row:first-child { border-top: none; }
.referenz-row-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; }
.referenz-row-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.05) brightness(0.82); transition: filter .3s ease, transform .5s ease; }
.referenz-row:hover .referenz-row-img img { filter: grayscale(0) contrast(1.05) brightness(0.95); transform: scale(1.03); }
.referenz-row-kat { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--led); margin-bottom: 10px; }
.referenz-row-title { font-size: 1.3rem; margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.referenz-row-desc { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 14px; }
.referenz-row-more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--led-bright); text-transform: uppercase; }
.referenz-row-more svg { transition: transform .2s ease; }
.referenz-row:hover .referenz-row-more svg { transform: translateX(4px); }

.referenz-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.referenz-modal[hidden] { display: none; }
.referenz-modal-bg { position: absolute; inset: 0; background: rgba(10,11,12,0.84); backdrop-filter: blur(6px); opacity: 0; transition: opacity .28s ease; }
.referenz-modal.is-open .referenz-modal-bg { opacity: 1; }
.referenz-modal-panel {
  position: relative; z-index: 1; max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .28s ease, transform .28s ease;
}
.referenz-modal.is-open .referenz-modal-panel { opacity: 1; transform: translateY(0) scale(1); }
.referenz-modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(27,29,32,.7); }
.referenz-modal-close:hover { background: var(--led); color: #0B1A20; }
.referenz-modal-body img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.referenz-modal-content { padding: 26px 28px 30px; }
.referenz-modal-content h3 { font-size: 1.35rem; text-transform: none; letter-spacing: 0; margin: 8px 0 14px; }
.referenz-modal-content p { font-size: 0.95rem; color: var(--text-muted); }

/* ── Team: einfache Textliste mit Trennlinien ──────── */
.team-list { display: flex; flex-direction: column; }
.team-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--border); }
.team-row:first-child { border-top: none; }
.team-row-photo {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: var(--surface-alt); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--led);
  border: 1px solid var(--border-strong);
}
.team-row-name { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; color: var(--text); flex-shrink: 0; min-width: 180px; }
.team-row-role { font-size: 0.78rem; font-weight: 700; color: var(--led); text-transform: uppercase; letter-spacing: 0.03em; flex-shrink: 0; }
.team-row-text { font-size: 0.88rem; color: var(--text-muted); flex: 1; min-width: 200px; }

/* ── Bewertungen: einzelnes Zitat-Karussell ────────── */
.quote-carousel { position: relative; min-height: 180px; }
.quote-slide { display: none; }
.quote-slide.active { display: block; }
.quote-stars { color: var(--led); font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 18px; }
.quote-text { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.6rem); text-transform: none; font-weight: 700; letter-spacing: 0; line-height: 1.4; color: var(--text); margin-bottom: 20px; max-width: 62ch; }
.quote-meta { font-size: 0.82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; }
.quote-antwort { margin-top: 16px; padding: 12px 16px; border-left: 2px solid var(--led); background: var(--surface); font-size: 0.86rem; color: var(--text-muted); border-radius: 0 10px 10px 0; max-width: 60ch; }
.quote-nav { display: flex; gap: 10px; margin-top: 28px; }
.quote-dot { width: 24px; height: 3px; border-radius: 2px; background: var(--border-strong); transition: background .2s ease, width .2s ease; }
.quote-dot.active { background: var(--led); width: 40px; }

/* ── Info: Öffnungszeiten + Einzugsgebiet ──────────── */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.info-block h3 { font-size: 1rem; margin-bottom: 18px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; font-size: 0.9rem; border-top: 1px solid var(--border); color: var(--text-muted); }
.hours-table tr:first-child td { border-top: none; }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.hours-table tr.today td { color: var(--led-bright); font-weight: 700; }
.hours-table tr.today td:first-child { position: relative; padding-left: 16px; }
.hours-table tr.today td:first-child::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px 2px var(--led-glow); }
.einzugsgebiet-hinweis { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.einzugsgebiet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 13px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.78rem; color: var(--text-muted); }

/* ── FAQ ────────────────────────────────────────────── */
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 0.98rem; font-weight: 600; text-align: left; }
.faq-q-icon { flex-shrink: 0; color: var(--led); transition: transform .3s ease; }
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 0 18px; font-size: 0.9rem; color: var(--text-muted); max-width: 62ch; }

/* ── Kontakt: EIN großer Block, Formular integriert ── */
.kontakt-section { padding: 56px 0 0; }
.kontakt-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
.kontakt-direct { display: flex; flex-direction: column; gap: 18px; }
.kontakt-line { display: flex; align-items: center; gap: 14px; }
.kontakt-line svg { color: var(--led); flex-shrink: 0; }
.kontakt-line-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.kontakt-line-value { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.kontakt-line-value:hover { color: var(--led-bright); }

.kontakt-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint); }
.form-row input, .form-row textarea {
  padding: 13px 15px; background: transparent; border: none; border-bottom: 1.5px solid var(--border-strong);
  color: var(--text); font-size: 0.95rem; font-family: var(--font-body); resize: vertical;
  transition: border-color .2s ease;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--led); }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-faint); }
.form-hint { font-size: 0.78rem; color: var(--text-faint); }

/* ── Footer: minimal, eine Zeile ───────────────────── */
.footer { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo { opacity: 0.6; }
.footer-logo img { height: 22px; }
.footer-meta { display: flex; gap: 20px; align-items: center; font-size: 0.78rem; color: var(--text-faint); }
.footer-meta a:hover { color: var(--led-bright); }

/* ══════════════════════════════════════════════════
   DESKTOP (≥960px)
   ══════════════════════════════════════════════════ */
@media (min-width: 960px) {
  .anchor-chips { display: none; }

  .rail {
    display: flex; flex-direction: column; align-items: center; gap: 22px;
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 45;
    padding: 24px 0; background: rgba(27,29,32,0.92); backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
  }
  .rail-logo { margin-bottom: 12px; }
  .rail-logo img { height: 30px; width: 30px; }
  .rail-links { display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .rail a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 54px; padding: 10px 4px; border-radius: 12px; color: var(--text-faint);
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
    transition: color .2s ease, background .2s ease;
  }
  .rail a svg { width: 19px; height: 19px; }
  .rail a:hover { color: var(--led-bright); background: var(--surface); }
  .rail a.active { color: var(--led-bright); background: var(--surface-alt); }
  .rail-call { color: var(--led) !important; }

  body { padding-left: var(--rail-w); }
  .topbar { padding: 0 32px; }
  .topbar-logo { display: none; }

  .wrap { padding: 0 40px; }

  .hero { padding: 76px 0 84px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 44px; }

  .referenz-row { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
  .referenz-row:nth-child(even) .referenz-row-img { order: 2; }
  .referenz-row-body { max-width: 46ch; }

  .team-row { padding: 22px 0; }

  .info-grid { grid-template-columns: 1fr 1fr; gap: 64px; }

  .kontakt-layout { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }

  .footer { padding: 28px 0; }
}