/* ==========================================================================
   Alt-Sachs Repair – Stylesheet
   Farben, Schrift und Abstände sind oben als Variablen definiert.
   ========================================================================== */

/* Schrift: Poppins, lokal eingebunden (keine Verbindung zu Google, DSGVO-freundlich) */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --ink: #0e2233;          /* Text, dunkle Flächen */
  --ink-soft: #3d5263;     /* Fließtext gedämpft */
  --ink-mute: #5f7383;     /* Hinweise */
  --blue: #1667a0;         /* Buttons, Links (Werkstattblau) */
  --blue-dark: #0f4f7c;
  --sky: #5aaee0;          /* Markenblau aus dem Flyer */
  --mat: #e6f2fa;          /* Reparaturmatte */
  --mat-line: #cfe3f1;
  --mat-line-strong: #b5d5ec;
  --mist: #f3f8fc;         /* helle Abschnitte */
  --paper: #ffffff;
  --line: #d7e4ee;
  --lime: #cde46a;         /* Aktion */
  --open: #157a46;
  --closed: #b23a2b;
  --focus: #f2a516;

  /* Typografie */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-xl: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --fs-hero: clamp(2.2rem, 1.5rem + 2.6vw, 3.3rem);

  /* Abstände & Formen */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(14, 34, 51, 0.06), 0 8px 24px -8px rgba(14, 34, 51, 0.18);
  --header-h: 88px;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture { display: block; max-width: 100%; }

img { height: auto; }

/* Bildrahmen: Bild füllt den Rahmen vollständig */
.hero__photo picture,
.services__photo picture,
.why__photo picture { height: 100%; }

.nowrap { white-space: nowrap; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn .icon { width: 20px; height: 20px; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mat); color: var(--ink); }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(14, 34, 51, 0.25); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: block; flex: none; }
.brand img { width: auto; height: 70px; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.975rem;
  text-decoration: none;
}
.nav__link:hover { background: var(--mist); color: var(--ink); }

.header-call { flex: none; min-height: 46px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { margin: auto; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 54px; }
  .nav-toggle { display: grid; }
  .header-call { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(14, 34, 51, 0.3);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav__cta { margin-top: 10px; }
  .nav__cta .btn { width: 100%; }
}
@media (min-width: 961px) {
  .nav__cta { display: none; }
}

/* ---------- Öffnungsstatus ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}
.status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-mute);
  flex: none;
}
.status.is-open .status__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(21, 122, 70, 0.16); }
.status.is-closed .status__dot { background: var(--closed); }

/* ---------- Hero (Reparaturmatte) ---------- */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-hero);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 0.4em;
}

.hero__lead {
  max-width: 31em;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.hero__address .icon { width: 18px; height: 18px; color: var(--blue); }

.hero__visual { position: relative; }

.hero__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: #c9d9e4;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Geräteauswahl */
.picker {
  position: relative;
  margin: -56px 0 0 clamp(0px, 2vw, 28px);
  padding: 20px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.picker__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.picker__hint { margin: 0 0 16px; font-size: var(--fs-sm); color: var(--ink-mute); }

.picker__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.picker__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 92px;
  padding: 12px 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font: 500 0.82rem/1.25 var(--font);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.picker__btn .icon { width: 28px; height: 28px; color: var(--blue); }
.picker__btn:hover { border-color: var(--blue); background: var(--mist); }
.picker__btn[aria-pressed="true"] { border-color: var(--blue); background: var(--mat); }

.picker__more {
  margin: 14px 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 21 / 9; }
  .picker { margin: -40px 12px 0; }
}
@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__photo { display: none; }
  .picker { margin: 0; padding: 18px; }
  .picker__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker__btn {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 58px;
    padding: 10px 12px;
    text-align: left;
  }
  .picker__btn .icon { width: 24px; height: 24px; }
}

/* ---------- Vertrauensleiste ---------- */
.trust {
  background: var(--ink);
  color: #fff;
}
.trust__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  padding-block: 22px;
  list-style: none;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}
.trust__item .icon { color: var(--sky); }

@media (max-width: 1060px) {
  .trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .trust__list { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .trust__item { font-size: 0.875rem; }
}

/* ---------- Abschnitte ---------- */
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }

.section__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__title { font-size: var(--fs-xl); }
.section__intro { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.services__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.services__aside .section__head { margin-bottom: 28px; }

.services__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 31 / 27;
  box-shadow: var(--shadow);
}
.services__photo img { width: 100%; height: 100%; object-fit: cover; }

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--mat);
  color: var(--blue);
}
.service__icon .icon { width: 26px; height: 26px; }

.service__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 4px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.service__text { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.service__link {
  align-self: center;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 500 0.875rem/1.2 var(--font);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.service__link:hover { border-color: var(--blue); color: var(--blue); }

.service--featured .service__icon { background: var(--ink); color: #fff; }

.services__note {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--mist);
  color: var(--ink-soft);
}
.services__note strong { color: var(--ink); }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
  .services__aside { position: static; }
  .services__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 44px minmax(0, 1fr); }
  .service__icon { width: 44px; height: 44px; border-radius: 12px; }
  .service__link { grid-column: 2; justify-self: start; margin-top: 10px; }
}

/* ---------- Aktion ---------- */
.promo { background: var(--lime); color: var(--ink); }
.promo__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding-block: clamp(28px, 4vw, 40px);
}
.promo__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
}
.promo__icon .icon { width: 36px; height: 36px; }
.promo__title { margin: 0 0 4px; font-size: var(--fs-lg); }
.promo__text { margin: 0; font-weight: 500; }
.promo__cta { margin-left: auto; flex: none; }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1c3a52; color: #fff; }

@media (max-width: 760px) {
  .promo__inner { flex-wrap: wrap; }
  .promo__icon { width: 56px; height: 56px; }
  .promo__icon .icon { width: 28px; height: 28px; }
  .promo__body { flex: 1 1 calc(100% - 80px); }
  .promo__cta { margin-left: 0; width: 100%; }
}

/* ---------- Ablauf ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 24px 0 0;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--mist);
}
.step::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 56px;
  right: 0;
  border-top: 2px dashed var(--mat-line-strong);
}
.step:last-child::after { display: none; }

.step__title { font-size: 1.15rem; margin-bottom: 0.35em; letter-spacing: -0.01em; }
.step__text { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 20px;
    padding: 0 0 32px;
  }
  .step::before { grid-row: span 2; margin: 0; }
  .step::after {
    top: 56px;
    bottom: 0;
    left: 27px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--mat-line-strong);
  }
  .step__title { margin-top: 12px; }
}

/* ---------- Warum wir ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.why__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 60 / 43;
  box-shadow: var(--shadow);
}
.why__photo img { width: 100%; height: 100%; object-fit: cover; }

.why__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.why__item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; align-content: start; }
.why__item .icon { grid-row: span 2; margin-top: 2px; color: var(--blue); }
.why__item h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.why__item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.why__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.why__proof p { margin: 0; font-weight: 500; }
.why__proof a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .why { grid-template-columns: 1fr; }
  .why__photo { order: 2; }
}
@media (max-width: 560px) {
  .why__list { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq { max-width: 820px; }

.ask {
  padding: 26px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.ask h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ask p { color: var(--ink-soft); font-size: 0.95rem; }
.ask .btn { width: 100%; }
.ask .btn + .btn { margin-top: 10px; }

@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 1fr; }
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { color: var(--blue); transition: transform 0.2s ease; }
.faq__item[open] .faq__q .icon { transform: rotate(180deg); }
.faq__a { padding: 0 48px 22px 0; color: var(--ink-soft); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* Formular im Stil eines Reparaturauftrags */
.ticket {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.ticket__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 22px clamp(20px, 3vw, 32px);
  border-bottom: 2px dashed var(--line);
}
.ticket__head h3 { margin: 0; font-size: 1.2rem; }
.ticket__head p { margin: 0; font-size: var(--fs-sm); color: var(--ink-mute); }

.ticket__body { padding: clamp(20px, 3vw, 32px); }

.fieldset {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.fieldset + .fieldset {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px dashed var(--line);
}
.fieldset__legend {
  margin-bottom: 14px;
  padding: 0;
  font-weight: 700;
  font-size: 1rem;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label,
.field .label {
  font-size: 0.92rem;
  font-weight: 500;
}
.field .optional { font-weight: 400; color: var(--ink-mute); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #c5d6e3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: #8a9cab; }
.input:hover { border-color: #9fb7c9; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 103, 160, 0.16); }
textarea.input { min-height: 132px; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2233' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.input[aria-invalid="true"] { border-color: var(--closed); }

.field__error {
  display: none;
  font-size: 0.85rem;
  color: var(--closed);
}
.field__error.is-visible { display: block; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1.5px solid #c5d6e3;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}
.choice input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--mist); }

.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }

.form-extra { display: grid; gap: 14px; margin-top: 22px; }

/* Honeypot – für Menschen unsichtbar */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-submit { margin-top: 24px; }
.form-submit .btn { min-width: 220px; }
.form-submit .btn[disabled] { opacity: 0.65; cursor: progress; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 500;
}
.form-status.is-success { display: block; background: #e5f4ec; color: #0e5a33; border: 1px solid #b3dcc5; }
.form-status.is-error { display: block; background: #fbeceA; color: #8a2a1e; border: 1px solid #efc2bb; }

@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .form-submit .btn { width: 100%; }
}

/* Info-Karte */
.info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
}
.info a:not(.btn) { color: #fff; }
.info a:not(.btn):hover { color: var(--sky); }
.info__title { font-size: 1.2rem; margin-bottom: 18px; }

.info__list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 16px; }
.info__row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; }
.info__row .icon { color: var(--sky); margin-top: 2px; }
.info__row a { text-decoration: none; font-weight: 500; }
.info__row a:hover { text-decoration: underline; }
.info__row small { display: block; color: #a9bccb; font-size: 0.85rem; }

.hours {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 8px;
}
.hours th,
.hours td {
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  font-weight: 400;
}
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th,
.hours tr.is-today td { background: rgba(90, 174, 224, 0.18); font-weight: 500; }
.hours tr.is-today th { border-radius: 8px 0 0 8px; }
.hours tr.is-today td { border-radius: 0 8px 8px 0; }

.info .status { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; margin-bottom: 18px; }

.info__actions { display: grid; gap: 10px; }

.info__note { margin: 18px 0 0; font-size: 0.82rem; color: #a9bccb; }

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
  .info { position: static; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9d7e2;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 64px 40px;
}
.footer__logo { width: 220px; margin-bottom: 16px; }
.footer__title { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.footer__legal { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile Schnellleiste ---------- */
.quickbar { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .quickbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(14, 34, 51, 0.35);
  }
  .quickbar .btn { min-height: 50px; padding: 10px 12px; font-size: 0.95rem; }
}

/* ---------- Rechtstexte / Unterseiten ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px);
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.page-hero h1 { font-size: var(--fs-xl); margin: 0; }
.page-hero p { margin: 10px 0 0; color: var(--ink-soft); }

.legal {
  max-width: 760px;
  padding-block: clamp(36px, 5vw, 64px) var(--section);
}
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal address { font-style: normal; margin-bottom: 1em; }

/* Platzhalter, die vor Veröffentlichung ersetzt werden müssen */
.todo {
  background: #fff3b0;
  outline: 1px dashed #c9a400;
  padding: 0 4px;
  border-radius: 3px;
}

.notice {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff8d6;
  border: 1px solid #ecd77a;
  font-size: 0.95rem;
}

.center-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--section) var(--gutter);
}
.center-page__inner { max-width: 560px; }
.center-page__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--mat);
  color: var(--blue);
}
.center-page__icon .icon { width: 36px; height: 36px; }
.center-page h1 { font-size: var(--fs-xl); }
.center-page p { color: var(--ink-soft); }
.center-page .hero__actions { justify-content: center; margin-top: 24px; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .quickbar, .nav-toggle, .picker, .ticket { display: none !important; }
  body { padding: 0; }
}

/* Feinschliff Geräteauswahl auf mittleren Bildschirmen */
@media (min-width: 961px) and (max-width: 1140px) {
  .picker__btn { font-size: 0.76rem; padding-inline: 4px; }
}

/* Lange deutsche Wörter auf sehr schmalen Bildschirmen umbrechen */
body { overflow-wrap: break-word; }
@media (max-width: 420px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
}

/* Ausreichend große Tippflächen auf dem Handy */
.service__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px;
}

/* ---------- WordPress ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.legal img { max-width: 100%; height: auto; }
.legal .notice { margin-top: 0; }
.legal > *:first-child { margin-top: 0; }
