/* ==========================================================
   Kerno Service – Stylesheet
   Farben: Kerno-Türkis · edles Warmweiß · Anthrazit
   ========================================================== */

:root {
  --brand: #03b8ca;        /* Logo-Farbe */
  --brand-dark: #0296a5;   /* für Text/Links (besser lesbar) */
  --brand-soft: #e3f6f8;
  --anth: #2b2f33;         /* Anthrazit: Schrift, dunkle Flächen */
  --anth-2: #41464b;
  --text-2: #6c7074;       /* Nebentexte */
  --bg: #fbfaf7;           /* edles Warmweiß */
  --bg-alt: #f3f1ec;
  --surface: #ffffff;
  --line: #e4e0d8;
  --radius: 22px;
  --max: 1080px;
  --shadow: 0 1px 2px rgba(43,47,51,.04), 0 8px 28px rgba(43,47,51,.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--anth); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; height: 56px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--anth); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; font-weight: 400; color: var(--text-2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--anth); font-size: 14px; opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-cta { background: var(--anth); color: #fff !important; opacity: 1 !important; padding: 7px 16px; border-radius: 980px; }
.nav-cta:hover { background: var(--anth-2); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--anth); transition: transform .3s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 17px; border: 0; cursor: pointer; padding: 13px 26px; border-radius: 980px; transition: background .2s, transform .1s, opacity .2s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--brand); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--anth); color: #fff; }
.btn-dark:hover { background: var(--anth-2); }
.btn-link { background: none; color: var(--brand-dark); padding-left: 8px; padding-right: 8px; }
.btn-link:hover { text-decoration: underline; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 96px 20px 72px; text-align: center; }
.eyebrow { color: var(--brand-dark); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(46px, 9vw, 92px); font-weight: 700; color: var(--anth); }
.accent { color: var(--brand); }
.lead { max-width: 620px; margin: 24px auto 0; font-size: clamp(19px, 2.4vw, 24px); color: var(--text-2); line-height: 1.4; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-visual { margin: 72px auto 0; width: min(200px, 46vw); }
.hero-visual img { width: 100%; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 20px; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: calc(var(--max) - 40px); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; }
.section-head p { margin-top: 12px; font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); }

/* Leistungskarten */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s; }
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 23px; margin: 22px 0 10px; }
.card p { color: var(--text-2); }
.card .price { margin-top: auto; padding-top: 18px; font-size: 15px; color: var(--anth); font-weight: 500; }
.card .card-link { margin-top: 14px; font-size: 16px; font-weight: 500; }
.card-soon { background: transparent; box-shadow: none; border: 1px solid var(--line); }
.card-soon:hover { transform: none; }
.card-soon h3, .card-soon .icon { opacity: .55; }
.icon { width: 50px; height: 50px; border-radius: 15px; background: var(--brand); display: grid; place-items: center; flex: none; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-soon .icon { background: var(--anth); }
.badge { position: absolute; top: 26px; right: 24px; font-size: 12px; font-weight: 600; color: var(--anth); background: var(--bg-alt); padding: 5px 11px; border-radius: 980px; }

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 36px 28px; text-align: center; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--anth); color: #fff; font-weight: 600; margin-bottom: 18px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--text-2); }

/* Vorteile */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature { border-top: 2px solid var(--anth); padding-top: 20px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 16px; }

/* ---------- Buchung ---------- */
.booker { max-width: 720px !important; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 36px; }
.progress { list-style: none; margin: 0 0 32px !important; padding: 0; display: flex; gap: 8px; }
.progress li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); padding-bottom: 12px; border-bottom: 2px solid var(--line); transition: color .3s, border-color .3s; }
.progress li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-alt); font-size: 12px; font-weight: 700; flex: none; transition: background .3s, color .3s; }
.progress li.on { color: var(--anth); border-bottom-color: var(--brand); font-weight: 600; }
.progress li.on span { background: var(--brand); color: #fff; }
.progress li.past { color: var(--anth); border-bottom-color: var(--anth); }
.progress li.past span { background: var(--anth); color: #fff; }
.pane { animation: paneIn .35s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }
.pane-title { font-size: 24px; margin-bottom: 22px; }
.pane-foot { margin-top: 18px; }
.pane-foot .btn-link { padding-left: 0; }

/* Leistung wählen */
.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; font: inherit; color: var(--anth); background: var(--bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 18px; cursor: pointer; transition: border-color .2s, background .2s, transform .1s; }
.option:hover:not(:disabled) { border-color: var(--brand); }
.option:active:not(:disabled) { transform: scale(.99); }
.option .icon { width: 44px; height: 44px; border-radius: 13px; }
.option .icon svg { width: 22px; height: 22px; }
.option strong { display: block; font-size: 17px; }
.option small { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.option .chev { margin-left: auto; color: var(--text-2); font-size: 22px; }
.option:disabled { cursor: default; background: transparent; border-style: dashed; }
.option:disabled strong, .option:disabled .icon { opacity: .5; }
.option:disabled .icon { background: var(--anth); }
.option .soon { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--bg-alt); padding: 4px 10px; border-radius: 980px; white-space: nowrap; }

/* Kalender */
.cal { background: var(--bg); border-radius: 20px; padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-size: 18px; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); font-size: 22px; line-height: 1; color: var(--anth); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-week span { font-size: 12px; color: var(--text-2); padding: 4px 0; font-weight: 600; }
.day { aspect-ratio: 1; max-height: 52px; width: 100%; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 16px; color: #b9b5ad; cursor: default; display: grid; place-items: center; }
.day.free { color: var(--anth); font-weight: 600; cursor: pointer; background: var(--surface); }
.day.free:hover { background: var(--brand-soft); }
.day.sel { background: var(--brand) !important; color: #fff; }
.day.today { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal.loading .cal-days { opacity: .4; }
.cal-hint { grid-column: 1 / -1; padding: 16px 0 4px; color: var(--text-2); font-size: 15px; }
.times { margin-top: 20px; }
.times-label { font-weight: 600; margin-bottom: 12px; }
.time-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.chip { font: inherit; font-size: 16px; padding: 12px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--anth); cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--brand); }

/* Formular */
.summary { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 16px; padding: 14px 16px; margin-bottom: 22px; }
.summary .icon { width: 42px; height: 42px; border-radius: 12px; }
.summary .icon svg { width: 21px; height: 21px; }
.summary strong { display: block; }
.summary span { color: var(--text-2); font-size: 15px; }
.summary button { margin-left: auto; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.zip { grid-template-columns: 1fr 2fr; }
.field label { font-size: 14px; color: var(--text-2); }
.opt { color: #a3a09a; }
input, select, textarea { font: inherit; font-size: 17px; color: var(--anth); background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; width: 100%; appearance: none; -webkit-appearance: none; transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(3,184,202,.16); }
input.invalid { border-color: #d0453c; }
textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin: 6px 0 20px; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 0; padding: 0; border-radius: 7px; cursor: pointer; background: var(--surface); }
.consent input:checked { background: var(--anth) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.2'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--anth); }
.form-error { color: #b3261e; background: #fbeceb; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 14px; }
.form-note { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 12px; }

/* Erfolg */
.done { text-align: center; padding: 20px 0 8px; }
.done h3 { font-size: 30px; margin: 20px 0 10px; }
.done p { color: var(--text-2); max-width: 420px; margin: 0 auto 16px; }
.check { width: 72px; height: 72px; margin: 0 auto; }
.check svg { width: 100%; height: 100%; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke: var(--brand); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s ease forwards; }
.check path { stroke: var(--brand); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.offline { text-align: center; padding: 12px 0; }
.offline h3 { font-size: 22px; margin-bottom: 8px; }
.offline p { color: var(--text-2); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: 18px; padding: 22px 22px; color: var(--anth); box-shadow: var(--shadow); transition: transform .2s; }
a.contact-item:hover { text-decoration: none; transform: translateY(-3px); }
.ci-label { font-size: 13px; color: var(--text-2); }
.ci-value { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
a.contact-item .ci-value { color: var(--brand-dark); }

/* ---------- Footer (Anthrazit) ---------- */
.footer { background: var(--anth); color: #d7d9db; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 44px 20px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { display: block; color: #fff; font-size: 17px; }
.footer-brand span { font-size: 14px; color: #a7abaf; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { color: #d7d9db; }
.copy { grid-column: 1 / -1; font-size: 12px; color: #8d9195; border-top: 1px solid #41464b; padding-top: 18px; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 20px 96px; }
.legal.narrow { max-width: 520px; }
.legal h1 { font-size: clamp(36px, 6vw, 48px); margin-bottom: 30px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 10px; }
.legal strong { color: var(--anth); }
.legal form { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 24px; font-size: 15px; }

/* ---------- Animationen ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual img, .pane { animation: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features, .contact { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 56px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links a.nav-cta { margin-top: 18px; text-align: center; border: 0; font-size: 17px; padding: 14px; }

  .hero { padding: 64px 20px 48px; }
  .hero-visual { margin-top: 48px; }
  .section { padding: 72px 20px; }
  .section-alt > * { max-width: none; }
  .section-head { margin-bottom: 36px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 28px 24px; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; gap: 10px; }

  .booker { padding: 24px 16px; border-radius: 24px; }
  .option { padding: 14px; gap: 12px; }
  .option .soon { display: none; }
  .option small { font-size: 13px; }
  .progress li { font-size: 13px; }
  .pane-title { font-size: 21px; }
  .cal { padding: 12px 8px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row.zip { grid-template-columns: 1fr 2fr; gap: 10px; }

  .footer-inner { grid-template-columns: 1fr; }
}
