/* Elektro Hamann: Designsystem
   Palette aus dem Logo (Rot #B32F2D), warmes Papier, Tinte.
   Eine Radius-Regel: 4px auf Buttons, Felder und Karten. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('assets/fonts/work-sans-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #F4F2EE;
  --paper-2: #ECE8E0;
  --card: #FFFFFF;
  --ink: #16171A;
  --text: #3C3E43;
  --muted: #5B5D62;
  --line: #DAD5CB;
  --field-line: #8F8A80;
  --accent: #B32F2D;
  --accent-dark: #8F2422;
  --accent-soft: #F3DEDB;
  --on-dark: #EDEAE3;
  --on-dark-muted: #B9B5AC;
  --dark-line: #3A3B3F;
  --ok: #2F6B3F;
  --error: #A8231C;
  --r: 4px;
  --pad-x: clamp(20px, 4vw, 48px);
  --pad-y: clamp(72px, 9vw, 128px);
  --display: 'Bricolage Grotesque', 'Work Sans', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.on-dark :focus-visible, .about :focus-visible, .topbar :focus-visible, .footer :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--r);
  font-weight: 600; font-size: 16px; white-space: nowrap; line-height: 1;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2B2D31; color: #fff; }
.btn--ghost-dark { border-color: #6B6C71; color: #fff; }
.btn--ghost-dark:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.is-disabled { opacity: .5; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: 13.5px; }
.topbar__inner { max-width: 1240px; margin: 0 auto; padding: 9px var(--pad-x); display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: space-between; }
.topbar a { color: #fff; font-weight: 500; }
@media (max-width: 700px) { .topbar__inner > span:nth-child(2) { display: none; } }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.header { position: sticky; top: 0; z-index: 20; background: rgba(244, 242, 238, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header__inner { max-width: 1240px; margin: 0 auto; padding: 12px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; }
.logo img { height: clamp(42px, 5vw, 54px); width: auto; display: block; }
.nav-desktop { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-desktop a:not(.btn) { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s var(--ease), color .2s; }
.nav-desktop a:not(.btn):hover { border-bottom-color: var(--accent); color: var(--ink); }
.nav-desktop .btn { min-height: 44px; padding: 0 20px; font-size: 15px; background: var(--ink); color: #fff; }
.nav-desktop .btn:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; min-height: 44px; background: none; border: 1px solid var(--ink); border-radius: var(--r); padding: 0 16px; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav-mobile { display: flex; flex-direction: column; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; background: var(--paper); }
.nav-mobile a { padding: 17px 20px; border-bottom: 1px solid var(--line); }
.nav-mobile .nav-mobile__cta { background: var(--accent); color: #fff; font-weight: 600; border-bottom: 0; }
.nav-mobile .nav-mobile__cta:hover { color: #fff; }

@media (max-width: 859px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 860px) { .nav-mobile { display: none !important; } }

/* Kopfzeile der Rechtsseiten: Links bleiben auch ohne Hauptmenü sichtbar */
.nav-desktop.nav-legal { display: flex; }
@media (max-width: 600px) { .nav-legal a:not(.btn) { display: none; } }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.section-title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text); max-width: 60ch; text-wrap: pretty; }
.section-intro { margin-top: 18px; }
.label { font-size: 13.5px; font-weight: 500; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: clamp(42px, 6.6vw, 88px); line-height: .96; letter-spacing: -.04em; }
.hero h1 span { display: block; margin-top: 10px; color: var(--accent); font-weight: 500; font-size: .5em; line-height: 1.08; letter-spacing: -.025em; }
.hero__lead { margin-top: 28px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.contact-card { background: var(--ink); color: var(--on-dark); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 60px -30px rgba(22, 23, 26, .45); }
.status { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #7C7E83; flex: none; }
.status[data-state="open"]::before { background: #5BC27A; }
.contact-card__phone { font-family: var(--display); font-size: clamp(28px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.contact-card__phone:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 15px; border-top: 1px solid var(--dark-line); padding-top: 20px; }
.hours dt { color: var(--on-dark-muted); }
.hours dd { margin: 0; font-weight: 500; text-align: right; }
.contact-card__note { font-size: 14px; color: var(--on-dark-muted); line-height: 1.5; }

@media (prefers-reduced-motion: no-preference) {
  .hero > div:first-child > * { animation: rise .8s var(--ease) both; }
  .hero > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero .contact-card { animation: rise .9s var(--ease) .24s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 859px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.facts__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.facts__inner > div { padding: 26px 24px; border-right: 1px solid var(--line); }
.facts__inner > div:first-child { padding-left: 0; }
.facts__inner > div:last-child { padding-right: 0; border-right: 0; }
.facts__value { margin-top: 4px; font-weight: 600; line-height: 1.35; }
@media (max-width: 859px) {
  .facts__inner > div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .facts__inner > div:last-child { border-bottom: 0; }
}

/* ---------- Leistungen: asymmetrisches Raster ---------- */
.services { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 260px; padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(22, 23, 26, .35); border-color: #BDB6A8; }
.tile h3 { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.08; }
.tile p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text); max-width: 46ch; text-wrap: pretty; }
.tile__cta { align-self: flex-start; background: none; border: 0; border-bottom: 2px solid var(--accent); padding: 4px 0; font-weight: 600; font-size: 15px; color: var(--ink); transition: color .2s, padding-right .3s var(--ease); }
.tile__cta:hover { color: var(--accent); padding-right: 8px; }
.tile--1 { grid-column: span 7; background: var(--accent-soft); border-color: #E3C3BE; min-height: 300px; }
.tile--2 { grid-column: span 5; }
.tile--3 { grid-column: span 5; }
.tile--4 { grid-column: span 7; background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.tile--4 p { color: var(--on-dark-muted); }
.tile--4 .tile__cta { color: #fff; }
.tile--4 .tile__cta:hover { color: #fff; }
.tile--4:hover { border-color: var(--ink); }
.tile--5 { grid-column: span 6; }
.tile--6 { grid-column: span 6; background: var(--paper-2); }
@media (max-width: 859px) {
  .services { grid-template-columns: 1fr; }
  .tile { grid-column: auto !important; min-height: 0; }
}

/* ---------- Über uns ---------- */
.about { background: var(--ink); color: var(--on-dark); }
.about__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; }
.about__text { margin-top: 24px; font-size: 18px; line-height: 1.65; color: #CFCBC3; max-width: 56ch; text-wrap: pretty; }
.about__text + .about__text { margin-top: 16px; }
.about__points { display: grid; gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--r); overflow: hidden; }
.about__points > div { background: #1D1E21; padding: 24px clamp(20px, 3vw, 32px); display: grid; gap: 4px; }
.about__points strong { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; color: #fff; }
.about__points span { color: var(--on-dark-muted); font-size: 16px; line-height: 1.5; }
@media (max-width: 859px) { .about__inner { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */
.steps { margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; z-index: 1; top: -18px; left: 0; width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 600; border-radius: var(--r); }
.steps h3 { font-size: 24px; margin-top: 8px; }
.steps p { margin-top: 10px; color: var(--text); font-size: 16px; line-height: 1.6; max-width: 40ch; text-wrap: pretty; }
@media (max-width: 859px) { .steps { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Termin ---------- */
.termin { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking { margin-top: clamp(32px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.booking__tabs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.booking__tab { padding: 16px clamp(10px, 2vw, 24px); display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 600; border-bottom: 3px solid transparent; color: var(--muted); transition: color .2s, border-color .3s var(--ease); }
.booking__tab .no { font-family: var(--display); }
.booking__tab.is-active { border-bottom-color: var(--accent); color: var(--ink); }
.booking__body { padding: clamp(20px, 3.5vw, 40px); }
.step-title { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 20px; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.option { text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.option:hover { border-color: var(--ink); }
.option:active { transform: scale(.985); }
.option strong { font-weight: 600; font-size: 16px; line-height: 1.3; }
.option span { font-size: 14px; color: var(--muted); }
.option.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.option.is-on span { color: var(--on-dark-muted); }

.summary { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
.summary strong { font-weight: 600; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 500; }
.field--wide { grid-column: 1 / -1; }
.field .req { color: var(--accent); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field textarea { padding: 13px 14px; border: 1px solid var(--field-line); border-radius: var(--r); background: #fff; font-size: 16px; font-weight: 400; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 23, 26, .15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field textarea { resize: vertical; min-height: 96px; }
.field__error { color: var(--error); font-size: 14px; font-weight: 500; }
.field__error:empty { display: none; }
.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.choice__row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__item { position: relative; display: inline-flex; }
.choice__item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__item span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--field-line); border-radius: var(--r); background: #fff; font-weight: 600; font-size: 15px; transition: background-color .2s, border-color .2s, color .2s; }
.choice__item:hover span { border-color: var(--ink); }
.choice__item input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice__item input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.check input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--error); border-radius: var(--r); color: var(--error); background: #FBEDEB; font-size: 15px; font-weight: 500; }
.form-error a { text-decoration: underline; }

.booking__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px clamp(20px, 3.5vw, 40px); border-top: 1px solid var(--line); background: #FAF9F6; }
.booking__back { background: none; border: 0; min-height: 44px; padding: 0 4px; font-weight: 600; color: var(--ink); }
.booking__back:hover { color: var(--accent); }
.booking__back.is-hidden { visibility: hidden; }

.done { padding: clamp(8px, 2vw, 24px) 0; display: flex; flex-direction: column; gap: 14px; max-width: 580px; }
.done__icon { width: 48px; height: 48px; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; border-radius: var(--r); }
.done h3 { font-size: 30px; }
.done p { font-size: 17px; line-height: 1.6; color: var(--text); }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: 110px; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.8vw, 21px); letter-spacing: -.01em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--r); color: var(--accent); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; transition: background-size .45s var(--ease), background-color .25s, color .25s, border-color .25s; }
.faq summary:hover::after { border-color: var(--accent); }
.faq details[open]:not(.is-closing) summary::after { background-color: var(--accent); color: #fff; border-color: var(--accent); background-size: 12px 2px, 2px 0; }
.faq summary { transition: color .25s var(--ease); }
.faq summary:hover { color: var(--accent-dark); }
.faq__body { overflow: hidden; }
.faq details p { padding: 0 52px 24px 0; color: var(--text); line-height: 1.65; text-wrap: pretty; }
@media (max-width: 859px) { .faq__inner { grid-template-columns: 1fr; } .faq__intro { position: static; } .faq details p { padding-right: 0; } }

/* ---------- Einsatzgebiet ---------- */
.area { border-top: 1px solid var(--line); background: var(--card); }
.area__grid { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.area__item { padding-top: 18px; border-top: 2px solid var(--ink); }
.area__item h3 { font-size: 24px; }
.area__item p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
@media (max-width: 959px) { .area__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .area__grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact address { font-style: normal; margin-top: 28px; font-size: 18px; line-height: 1.7; }
.contact__lines { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.contact__lines a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.contact__lines span { color: var(--muted); font-size: 16px; }

.map { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.map__frame { aspect-ratio: 16 / 11; background: var(--paper); }
.map__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__consent { aspect-ratio: 16 / 11; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; gap: 14px; background: repeating-linear-gradient(135deg, #EAE6DD 0 12px, #F1EEE7 12px 24px); }
.map__consent h3 { font-size: 22px; }
.map__consent p { font-size: 14.5px; line-height: 1.55; color: var(--text); max-width: 52ch; }
.map__consent p a { text-decoration: underline; text-underline-offset: 3px; }
.map__consent .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map__consent .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.map__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.map__bar a { text-decoration: underline; text-underline-offset: 3px; }
.map__bar button { background: none; border: 0; padding: 0; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3.5vw, 40px); }
.contact-form h3 { font-size: 26px; }
.contact-sent { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; display: flex; flex-direction: column; gap: 10px; }
.contact-sent h3 { font-size: 26px; }
.contact-sent p { color: var(--text); line-height: 1.6; }
@media (max-width: 859px) { .contact__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); font-size: 15px; }
.footer__inner { max-width: 1240px; margin: 0 auto; padding: 44px var(--pad-x); display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.footer__brand img { height: 52px; width: auto; display: block; margin-bottom: 16px; }
.footer__brand p { max-width: 36ch; line-height: 1.55; }
.footer__title { font-size: 15px; color: #fff; margin-bottom: 12px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { max-width: 1240px; margin: 0 auto; padding: 18px var(--pad-x) 28px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
@media (max-width: 859px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .footer__legal { display: grid; grid-template-columns: 1fr auto 1fr; } .footer__credit { text-align: center; } .footer__legal > :last-child { justify-self: end; text-align: right; } }

/* ---------- Mobile Aktionsleiste ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(244, 242, 238, .97); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.callbar .btn { min-height: 50px; padding: 0 12px; }
@media (max-width: 859px) {
  .callbar { display: grid; }
  body { padding-bottom: 76px; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 112px); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 48px; line-height: 1.15; }
.legal h3 { font-size: 19px; margin-top: 28px; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.legal p, .legal li { color: var(--text); line-height: 1.7; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.legal address { font-style: normal; margin-top: 12px; line-height: 1.7; }
.legal .back { display: inline-block; margin-bottom: 28px; font-weight: 600; font-size: 15px; }
.legal .todo { background: #FFF1B8; color: #5B4500; padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.legal__meta { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Bewegung ----------
   Jede Bewegung hat einen Grund: Hierarchie (Reveal), Rückmeldung (Buttons, FAQ),
   Zustandswechsel (Schritte, Header) oder Live-Status (Punkt im Kontaktfeld). */
.sentinel { height: 1px; margin-bottom: -1px; pointer-events: none; }
.header { transition: box-shadow .35s var(--ease); }
.header.is-stuck { box-shadow: 0 14px 30px -24px rgba(22, 23, 26, .55); }

@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: none; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(91, 194, 122, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(91, 194, 122, 0); } }
@keyframes dock { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; }
  .js .reveal.is-in { opacity: 1; animation: reveal .85s var(--ease) var(--d, 0s) backwards; }

  .steps li::after { content: ''; position: absolute; z-index: 0; top: -2px; left: 0; right: 0; height: 2px; background: var(--ink); transform-origin: left; }
  .js .steps li { border-top-color: transparent; }
  .js .steps li::after { transform: scaleX(0); transition: transform 1s var(--ease) var(--d, 0s); }
  .js .steps li.is-in::after { transform: scaleX(1); }
  .js .steps li::before { opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease) calc(var(--d, 0s) + .25s), transform .5s var(--ease) calc(var(--d, 0s) + .25s); }
  .js .steps li.is-in::before { opacity: 1; transform: none; }

  .step-in { animation: stepIn .5s var(--ease) both; }
  .step-in .done__icon { animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
  .status[data-state="open"]::before { animation: live 2.2s ease-out infinite; }
  .consent { animation: dock .6s var(--ease) .2s backwards; }
  .option, .tile__cta { will-change: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Einwilligungshinweis ---------- */
.consent { position: fixed; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 40; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--card); border: 1px solid var(--ink); border-radius: var(--r); padding: 22px; box-shadow: 0 24px 60px -20px rgba(22, 23, 26, .45); }
.consent__title { font-size: 20px; line-height: 1.2; }
.consent__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text); }
.consent__link { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-weight: 500; }
.consent__actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent__btn { min-height: 46px; padding: 0 12px; font-size: 15px; }
.consent__more { grid-column: 1 / -1; background: none; border: 0; min-height: 40px; font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.consent__more:hover { color: var(--accent); }
.consent__settings { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.consent__row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent__row input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.consent__row strong { display: block; font-weight: 600; }
.consent__row small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 859px) { .consent { bottom: 86px; max-height: calc(100dvh - 100px); } }
@media (max-width: 420px) { .consent__actions { grid-template-columns: 1fr; } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linklike:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal .linklike { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); font-weight: 500; }
.legal .linklike:hover { color: var(--accent); }
