/* Gemeinsames Stylesheet aller Kunden-Websites.
   Farben kommen pro Kunde über --primaer und --akzent (siehe site.json → farben). */

:root {
  --text: #1c1f1d;
  --text-weich: #4a524d;
  --hg: #fbfaf7;
  --hg-alt: #f1efe9;
  --karte: #ffffff;
  --linie: #e2ded4;
  --radius: 14px;
  --schatten: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 24px rgb(0 0 0 / 0.06);
  --breite: 1080px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--hg); color: var(--text); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primaer); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--breite)); margin-inline: auto; }
.narrow { max-width: 720px; }

/* Demo-Hinweis */
.demo-banner { background: #2b2b2b; color: #fff; text-align: center; font-size: 0.85rem; padding: 6px 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--hg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
nav { display: flex; align-items: center; gap: 20px; }
nav a { color: var(--text-weich); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--primaer); }
@media (max-width: 640px) { nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--primaer); color: #fff; padding: 0.8em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--primaer); transition: transform 0.15s ease, filter 0.15s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-small { padding: 0.45em 1em; font-size: 0.95rem; color: #fff !important; }
.btn-ghost { background: transparent; color: var(--primaer); }

/* Hero */
.hero { padding: clamp(56px, 10vw, 120px) 0; background:
  radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--akzent) 22%, transparent), transparent),
  linear-gradient(180deg, color-mix(in srgb, var(--primaer) 7%, var(--hg)), var(--hg)); }
.hero-bild { background: linear-gradient(90deg, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.25)), var(--hero-bild) center / cover; color: #fff; }
.hero-bild .lead, .hero-bild .oberzeile { color: rgb(255 255 255 / 0.9); }
.hero-bild .btn-ghost { color: #fff; border-color: #fff; }
.hero-dunkel { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--akzent) 28%, transparent), transparent 55%), var(--primaer); color: #fff; }
.hero-dunkel .lead { color: rgb(255 255 255 / 0.85); }
.hero-dunkel .oberzeile { color: var(--akzent); }
.hero-dunkel .btn { background: var(--akzent); border-color: var(--akzent); color: var(--primaer); }
.hero-dunkel .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.7); }
.oberzeile { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--primaer); margin-bottom: 0.8em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-weich); max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Abschnitte */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--hg-alt); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.5em; }
.card { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; box-shadow: var(--schatten); }
.card p:last-child { margin-bottom: 0; }
.preis { font-weight: 700; color: var(--primaer); }
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: 1.2fr 1fr; } }
.rounded { border-radius: var(--radius); }

.ref img { border-radius: 10px; margin-bottom: 14px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.ref img { object-position: top; border: 1px solid var(--linie); }
.ref-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primaer); background: color-mix(in srgb, var(--akzent) 25%, transparent); padding: 0.2em 0.7em; border-radius: 999px; margin-bottom: 0.6em; }
.ref-vergleich { display: grid; grid-template-columns: auto 1fr; gap: 0.3em 0.8em; margin: 0 0 1em; }
.ref-vergleich dt { font-weight: 700; }
.ref-vergleich dd { margin: 0; }
.ref blockquote { margin: 0 0 1em; padding-left: 0.9em; border-left: 3px solid var(--akzent); font-style: italic; }
.ref blockquote cite { display: block; font-style: normal; font-size: 0.9rem; margin-top: 0.3em; }
.ref-cta { display: flex; flex-direction: column; justify-content: center; border-style: dashed; border-width: 2px; box-shadow: none; }

.schritte { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.schritte li { display: flex; gap: 14px; }
.nr { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent); color: #1c1f1d; font-weight: 700; }

.quote blockquote { margin: 0 0 0.8em; font-size: 1.05rem; }
.quote figcaption { color: var(--text-weich); font-weight: 600; }

details { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.8em 0 0; color: var(--text-weich); }

.kontakt-liste { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; font-size: 1.05rem; }
.kontakt-liste a { text-decoration: none; font-weight: 600; }
.zeiten { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; }
.zeiten dt { font-weight: 600; }
.zeiten dd { margin: 0; color: var(--text-weich); }

/* Rechtstexte */
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.hinweis { background: #fff4d6; border: 1px solid #f0d48a; padding: 10px 14px; border-radius: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--linie); padding: 28px 0 90px; color: var(--text-weich); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-inner p { margin: 0; }
.credit { opacity: 0.7; }

/* Anruf-Button auf dem Handy */
.call-fab { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--primaer); color: #fff; display: none; place-items: center; font-size: 1.5rem; text-decoration: none; box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); }
@media (max-width: 640px) { .call-fab { display: grid; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
