/* Gemeinsame Bausteine für alle Kunden-Demos. Farben und Schriften setzt jede Seite über die Variablen in :root. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.soft { background: var(--bg-soft); }
[hidden] { display: none !important; }

.demo-banner { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: 13.5px; font-weight: 600; padding: 7px 16px; }

/* Header */
header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); color: var(--header-ink); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 22px; text-decoration: none; white-space: nowrap; }
.logo em { font-style: normal; color: var(--accent); }
.nav ul { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .8; }
.nav ul a:hover, .nav ul a.active { opacity: 1; color: var(--accent); }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); padding: 9px 18px; border-radius: 999px; opacity: 1; font-weight: 600; }
.nav .nav-cta:hover, .nav .nav-cta.active { color: var(--accent-ink); filter: brightness(1.05); }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; color: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, filter .2s, background .2s, color .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-outline { border: 1.5px solid currentColor; background: transparent; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* Abschnitte */
section { padding: 92px 0; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 2.5px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-title h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 8px; }
.section-title p { color: var(--muted); margin-top: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 25px; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.checks { list-style: none; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; display: grid; place-items: center; }

/* Geöffnet-Anzeige */
.open-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.open-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3ab; }
.open-badge.is-open::before { background: #3ecf6e; box-shadow: 0 0 0 4px rgba(62,207,110,.25); }
.open-badge.is-closed::before { background: #e5604f; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 500; }
.hours-table tr.today td { font-weight: 700; color: var(--accent); }

/* Tabs */
.tab-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.tab-buttons button { font: inherit; font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tab-buttons button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 66px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--accent-soft); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 66px; right: -4px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* Vorher / Nachher */
.ba { --pos: 50%; position: relative; aspect-ratio: 16/7; border-radius: var(--radius); overflow: hidden; user-select: none; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.ba-layer { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; }
.ba-after { justify-content: flex-end; clip-path: inset(0 0 0 var(--pos)); }
.ba-label { background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); background: #fff; color: var(--primary); border-radius: 50%; display: grid; place-items: center; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }

/* Formular-Bausteine (Rechner, Reservierung, Terminanfrage) */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel-dark { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.field { margin-bottom: 22px; }
.field-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.field-label output { color: var(--accent); }
.field input[type=range] { width: 100%; accent-color: var(--accent); }
.field input[type=date], .field input[type=time], .field input[type=number], .field select, .field textarea, .field input[type=text] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option span { display: grid; place-items: center; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; background: var(--card); }
.option input:checked + span { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.big-price { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; color: var(--accent); line-height: 1.2; margin: 4px 0; }
.panel-dark small { opacity: .65; font-size: 12.5px; text-align: center; margin-top: 12px; }
.panel-dark .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--muted); }

/* Karte mit Zustimmung */
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; display: grid; place-items: center; padding: 32px 16px; background: #2f3a44; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-preview { position: absolute; inset: 0; filter: blur(1.5px); }
.map-preview svg { width: 100%; height: 100%; display: block; }
.map-pin { position: absolute; left: 86%; top: 72%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.map-pin::before, .map-pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: pin-pulse 2.4s ease-out infinite; }
.map-pin::after { animation-delay: 1.2s; }
@keyframes pin-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }
.map-consent { position: relative; z-index: 1; width: min(520px, 100%); background: rgba(20,24,28,.84); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px 26px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.map-consent h3 { font-size: 24px; margin: 10px 0 4px; }
.map-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 22px; }
.map-facts li { font-size: 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; }
.map-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.map-remember { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; cursor: pointer; opacity: .9; }
.map-remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.map-note { font-size: 12.5px; opacity: .65; margin-top: 10px; }
.map.map-loaded { padding: 0; }
.map.map-loaded > :not(iframe) { display: none; }

/* Schnellzugriff */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.call-bar { display: none; }

footer { background: var(--footer-bg); color: var(--footer-ink); padding: 30px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; margin-left: 18px; }
footer a:hover { color: #fff; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 0 16px; background: var(--menu-bg); border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav ul li { width: 100%; text-align: center; }
  .nav ul a { display: block; padding: 12px 16px; }
  .nav .nav-cta { display: inline-block; margin-top: 6px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .step::after { display: none; }
  .ba { aspect-ratio: 4/3; }
  section { padding: 68px 0; }
  .call-bar { display: block; position: fixed; left: 16px; right: 80px; bottom: 18px; z-index: 30; background: var(--accent); color: var(--accent-ink); text-align: center; font-weight: 700; text-decoration: none; padding: 13px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
  footer { padding-bottom: 90px; }
  footer a { margin: 0 18px 0 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .panel, .panel-dark { padding: 24px 20px; }
}
