/* =========================================================
   Polster & Dörr – Malermeisterbetrieb
   Farben: Hellblau #65A5DD (Fläche/Akzent), Aktion #2F6CA8
   (#4E8AC6 aus dem Briefing erreicht auf Weiß nur 3,6:1)
   ========================================================= */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #65A5DD;
  --action: #2F6CA8;
  --action-hover: #245A8E;
  --text: #222222;
  --text-soft: #4A5562;
  --bg: #FFFFFF;
  --tint: #F2F7FC;
  --line: #D8E5F2;

  --dot-1: #392E8C;
  --dot-2: #E4E911;
  --dot-3: #BF342F;

  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;          /* 18px */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--action); text-underline-offset: .18em; }
:where(a:hover) { color: var(--action-hover); }   /* Spezifität 0: Buttons behalten ihre Hover-Farbe */

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

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

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--action);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus, .skip-link:hover { top: 1rem; color: #fff; }

.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--large { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.15rem; }
.btn--block { display: flex; width: 100%; }

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

.btn--secondary { background: #fff; color: var(--action); border-color: var(--action); }
.btn--secondary:hover { background: var(--tint); color: var(--action-hover); border-color: var(--action-hover); }


/* ---------- Kontaktleiste ---------- */
.topbar {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.75rem;
  min-height: 44px;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--text);
  text-decoration: none;
  padding-block: .35rem;
}
a.topbar__item:hover { color: var(--action); text-decoration: underline; }
.topbar__item .icon { color: var(--action); }
.topbar__mail, .topbar__hours { display: none; }
@media (min-width: 760px) { .topbar__hours { display: inline-flex; margin-left: auto; } }
@media (min-width: 980px) { .topbar__mail { display: inline-flex; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  text-decoration: none;
}
/* Logo „Der Maler ist da“ (Nachbau der Visitenkarte, assets/img/logo.svg) */
.logo { flex-direction: column; align-items: flex-start; gap: .15rem; padding-block: .6rem; min-width: 0; }
.logo__bild { display: block; height: 52px; width: auto; }
.logo__sub { font-size: .95rem; font-weight: 600; color: var(--action); line-height: 1.1; white-space: nowrap; padding-left: 2px; }
.nav-toggle { flex: none; }
@media (max-width: 420px) {
  .logo__bild { height: 30px; }
  .logo__sub { font-size: .7rem; }
}

/* Burger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .5rem .9rem;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
  display: block;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:not(.btn):hover { color: var(--action); }
.main-nav a[aria-current="page"] { color: var(--action); }

/* Mobil: Menü klappt unter dem Header auf */
@media (max-width: 899px) {
  .js .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: 0 12px 24px rgba(34, 34, 34, .08);
  }
  .js .main-nav.is-open { display: block; }
  .main-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
  .main-nav__call { margin-top: 1rem; width: 100%; min-height: 56px; }
  .site-header__inner { position: relative; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 2rem; }
  .main-nav ul { display: flex; gap: 1.75rem; }
  .main-nav a:not(.btn) { padding: .5rem 0; border-bottom: 3px solid transparent; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
}

/* ---------- Bilder mit Hinweis „Symbolbild“ ---------- */
.media { position: relative; margin: 0; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.symbolbild {
  position: absolute;
  right: .5rem; bottom: .5rem;
  padding: .1rem .45rem;
  font-size: .75rem;
  line-height: 1.4;
  color: #fff;
  background: rgba(20, 30, 40, .78);   /* ≥ 7:1 auch auf weißen Bildstellen */
  border-radius: 4px;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero__lead { font-size: 1.2rem; max-width: 34em; color: var(--text-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 1.25rem; }
.hero__call { margin: 0; color: var(--text-soft); }
.hero__call a { font-weight: 700; white-space: nowrap; }

/* Bild mit „Farbmuster“-Fläche dahinter */
.hero__media {
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  overflow: visible;
}
.hero__media img { border-radius: var(--radius-lg); position: relative; z-index: 1; }
.hero__media::before {
  content: "";
  position: absolute;
  left: -14px; bottom: -14px;
  width: 46%; height: 52%;
  background: var(--blue);
  border-radius: var(--radius-lg);
}
.hero__media .symbolbild { z-index: 2; }

@media (max-width: 559px) {
  .hero__actions .btn { width: 100%; }
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 4vw, 3.5rem); }
  .hero__media::before { left: -22px; bottom: -22px; }
}

/* ---------- Vertrauensleiste ---------- */
.trust { background: var(--tint); border-block: 1px solid var(--line); }
.trust__list {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  padding-block: 1.6rem;
}
.trust__list li { display: flex; align-items: center; gap: .75rem; line-height: 1.3; }
.trust__list strong { display: block; font-size: 1.15rem; }
.icon--trust {
  width: 2.6rem; height: 2.6rem;
  padding: .55rem;
  color: var(--action);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}
@media (max-width: 479px) { .trust__list { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section__head { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head p { color: var(--text-soft); font-size: 1.2rem; margin: 0; }

/* Kurzvorstellung */
.intro__inner { display: grid; gap: 1rem 4rem; }
.intro__text { max-width: 38rem; }
.intro__text p:first-child { font-size: 1.25rem; }
@media (min-width: 900px) {
  .intro__inner { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

/* ---------- Leistungen als Farbfächer ---------- */
.fan {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.fan__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Farbstreifen oben: jede Karte eine Stufe dunkler, wie ein Farbfächer */
.fan__card::before {
  content: "";
  display: block;
  height: 14px;
  background: var(--chip);
}
.fan__card .media { aspect-ratio: 4 / 3; }
.fan__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.35rem; }
.fan__body h3 { margin-bottom: .4rem; }
.fan__body p { color: var(--text-soft); flex: 1; }
.fan__link {
  align-self: flex-start;
  font-weight: 700;
  padding-block: .35rem;
}
/* ganze Karte klickbar, Link bleibt das Fokusziel */
.fan__link::after { content: ""; position: absolute; inset: 0; }
.fan__card:hover { border-color: var(--blue); }
.fan__card:hover .fan__link { color: var(--action-hover); }
.fan__card:focus-within { outline: 3px solid var(--action); outline-offset: 2px; }
.fan__link:focus-visible { outline: none; }

@media (min-width: 560px) { .fan { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fan { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Warum wir ---------- */
.why__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 2rem 3rem;
}
.why__list li { padding-left: 3.6rem; position: relative; max-width: 32rem; }
.why__list p { color: var(--text-soft); margin: 0; }
.why__list h3 { margin-bottom: .35rem; }
.icon--why {
  position: absolute;
  left: 0; top: -.2rem;
  width: 2.6rem; height: 2.6rem;
  padding: .55rem;
  color: var(--text);
  background: var(--blue);
  border-radius: 50%;
}
@media (min-width: 760px) { .why__list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Ablauf ---------- */
.steps__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}
.steps__list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
}
.steps__list p { color: var(--text-soft); margin: 0; }
.steps__num {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  margin-bottom: .9rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: var(--action);
  border-radius: 50%;
}
@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .steps__list li { position: relative; }
  /* Verbindungslinie zwischen den Schritten */
  .steps__list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.9rem; right: -1.25rem;
    width: 1.25rem; height: 3px;
    background: var(--blue);
  }
}

/* ---------- Kontakt + Formular ---------- */
.contact__inner { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 960px) { .contact__inner { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.form { margin-top: 1.5rem; }
.form__note { font-size: 1rem; color: var(--text-soft); }
.form__row { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .form__row--two { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 2px solid #9AAFC4;
  border-radius: 8px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--action); outline: 3px solid rgba(47, 108, 168, .25); outline-offset: 0; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #B3261E; }
.field__error { margin: .4rem 0 0; color: #B3261E; font-weight: 600; font-size: 1rem; }

.field--check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field--check input { width: 1.5rem; height: 1.5rem; margin: .15rem 0 0; accent-color: var(--action); }
.field--check label { font-weight: 400; margin: 0; }
.field--check .field__error { grid-column: 1 / -1; }

/* Honeypot: aus dem Sichtfeld, aber nicht display:none */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact__aside {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.contact__aside .btn { margin-bottom: .85rem; }
.contact__address { font-style: normal; margin: 1.25rem 0 .75rem; }
.contact__hours { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1E2A36;
  color: #E6EDF4;
  padding-top: 3rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #BFDCF5; }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer__title { font-size: 1.15rem; margin-bottom: .75rem; color: #fff; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-block: 1.25rem;
  font-size: 1rem;
}
.site-footer__bottom p { margin: 0; color: #C9D4DF; }

/* ---------- Schwebende Anruf-Leiste (mobil) ---------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(34, 34, 34, .08);
}
.callbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}
.callbar__btn--call { background: var(--action); }
.callbar__btn--anfrage { background: #fff; color: var(--action); box-shadow: inset 0 0 0 2px var(--action); }
.callbar__btn--anfrage:hover { color: var(--action-hover, #245A8E); }
.callbar__btn--call:hover { color: #fff; }
body { padding-bottom: 76px; }
@media (min-width: 900px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* =========================================================
   Unterseiten
   ========================================================= */

/* Seitenkopf der Unterseiten */
.page-head {
  background: var(--tint);
  padding-block: clamp(2.25rem, 6vw, 4rem);
}
.page-head__inner { display: grid; gap: 2rem 4rem; align-items: center; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: .4em; }
.page-head p { font-size: 1.2rem; color: var(--text-soft); max-width: 36em; margin-bottom: 0; }
.page-head .media { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; }
@media (min-width: 960px) { .page-head__inner--media { grid-template-columns: 1.1fr 1fr; } }

/* Fließtext-Abschnitte */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.75em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

.split { display: grid; gap: 2.5rem 4rem; align-items: center; }
.split .media { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* Werte / Fakten */
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.facts li { background: #fff; border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.facts strong { display: block; font-size: 1.75rem; line-height: 1.1; color: var(--action); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 3rem; }
/* kleiner Farbstreifen über jedem Wert, wie bei den Leistungen (Farbfächer-Motiv) */
.values li::before {
  content: ""; display: block;
  width: 3.5rem; height: 10px; border-radius: 5px;
  background: var(--blue); margin-bottom: .9rem;
}
.values h3 { margin-bottom: .3rem; }
.values p { margin: 0; color: var(--text-soft); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }

.places { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.places li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; }

.callout {
  background: var(--action);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  display: grid; gap: 1.25rem 3rem; align-items: center;
}
.callout h2 { color: #fff; margin-bottom: .35em; }
.callout p { margin: 0; color: #EAF2FA; }
.callout .btn--secondary { border-color: #fff; }
@media (min-width: 860px) { .callout { grid-template-columns: 1fr auto; } }

/* Leistungen: Sprungnavigation */
.jumpnav { position: sticky; top: 76px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.jumpnav ul {
  list-style: none; margin: 0; padding: .6rem 0;
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin;
}
.jumpnav a {
  display: block; white-space: nowrap;
  padding: .45rem .9rem; border-radius: 999px;
  background: var(--tint); color: var(--text); font-weight: 600; text-decoration: none;
}
.jumpnav a:hover { background: var(--blue); color: var(--text); }
@media (min-width: 1100px) { .jumpnav ul { flex-wrap: wrap; overflow: visible; } }

/* Leistungen: einzelne Leistung */
.service { padding-block: clamp(2.75rem, 6vw, 4.5rem); scroll-margin-top: 40px;   /* + scroll-padding-top 100px = Header + Sprungleiste */ }
.service + .service { border-top: 1px solid var(--line); }
.service__inner { display: grid; gap: 2rem 4rem; align-items: start; }
.service .media { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.service__chip { display: block; width: 3.5rem; height: 10px; border-radius: 5px; background: var(--chip); margin-bottom: 1rem; }
.service h2 { margin-bottom: .5em; }
.service ul { padding-left: 0; list-style: none; margin: 1.25rem 0 1.75rem; display: grid; gap: .5rem; }
.service li { position: relative; padding-left: 1.9rem; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23222' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L21.1 7.4 19.7 6z'/%3E%3C/svg%3E") center / 75% no-repeat;
}
@media (min-width: 960px) {
  .service__inner { grid-template-columns: 1fr 1.15fr; }
  .service:nth-of-type(even) .service__inner > .media { order: 2; }
}

/* Kontakt: Karte als Platzhalter (keine Einbettung, DSGVO) */
.map {
  position: relative; display: block;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--tint); border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.map svg { width: 100%; height: 100%; display: block; }
.map__label {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: #fff; border-radius: var(--radius); padding: .8rem 1rem;
  box-shadow: 0 6px 18px rgba(34, 34, 34, .1);
}
.map__label strong { display: block; }

.hours { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { font-weight: 600; padding-right: 1rem; }

/* Formular-Meldungen */
.alert { border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; font-weight: 600; }
.alert--error { background: #FCEBEA; color: #8A1C15; border: 2px solid #E3A29D; }
.alert--ok { background: #E8F4EC; color: #14532D; border: 2px solid #9FD0B0; }
.alert[hidden] { display: none; }

/* Rechtstexte */
.legal > * { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.25em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.5em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.placeholder {
  background: #FFF6CC;
  border-bottom: 2px dashed #B38F00;
  padding: 0 .2em;
}
.legal-note {
  background: #FFF6CC; border: 2px dashed #B38F00;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* Danke-Seite */
.thanks > * { max-width: 40rem; }
.thanks__icon {
  width: 4rem; height: 4rem; padding: .9rem; border-radius: 50%;
  background: var(--blue); color: var(--text); margin-bottom: 1.25rem;
}
.thanks .btn { margin: .35rem .5rem .35rem 0; }
.places__more { margin-top: 1.25rem; }
.map__hint { font-size: 1rem; color: var(--text-soft); margin-top: .75rem; }
.contact__aside h3 + p { margin-top: 0; }
.contact__aside h3:not(:first-child) { margin-top: 1.75rem; }
.map__label { color: var(--text); }
.map:hover .map__label strong { color: var(--action-hover); text-decoration: underline; }

/* =========================================================
   Korrekturen aus dem Review
   ========================================================= */
/* Sprungziele nicht unter Header (oben) bzw. Anruf-Leiste (unten, mobil) verstecken */
html { scroll-padding-top: 100px; }
@media (max-width: 899px) { html { scroll-padding-bottom: 96px; } }

/* Fokusring auf blauen und dunklen Flächen sichtbar halten */
.callout :focus-visible { outline-color: #fff; }
.site-footer :focus-visible { outline-color: #BFDCF5; }

/* Feldränder mit ≥ 3:1 Kontrast */
.field input:not([type="checkbox"]),
.field select,
.field textarea { border-color: #6E8196; }

/* iPhone: Platz für Anruf-Leiste inkl. Home-Balken */
@media (max-width: 899px) { body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* Ohne JavaScript: kein toter Menü-Knopf, Menü bricht sauber um */
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 899px) {
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: .5rem; }
  html:not(.js) .main-nav { width: 100%; }
  html:not(.js) .main-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  html:not(.js) .main-nav a:not(.btn) { border-bottom: 0; padding: .5rem 0; }
}

/* „Symbolbild“ etwas größer für ältere Augen */
.symbolbild { font-size: .875rem; }

/* Ein dezenter Hinweis statt Etikett auf jedem Bild */
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; }
.site-footer__note { font-size: .9375rem; color: #AEBBC8; }

/* =========================================================
   Häufige Fragen (native <details>, ohne JavaScript bedienbar)
   ========================================================= */
.faq + .contact { border-top: 1px solid var(--line); }
.faq__inner { display: grid; gap: 2rem 4rem; align-items: start; }
.faq__intro p { color: var(--text-soft); font-size: 1.2rem; }
@media (min-width: 960px) {
  .faq__inner { grid-template-columns: 1fr 1.7fr; }
  .faq__intro { position: sticky; top: 110px; }
}

.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.25rem 1.15rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--action); }
/* Plus, das beim Öffnen zum Minus wird */
.faq__list summary::before,
.faq__list summary::after {
  content: "";
  position: absolute;
  right: .6rem; top: 50%;
  width: 18px; height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--action);
  transition: transform .2s ease;
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }
.faq__list details p {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  color: var(--text-soft);
}

/* 404-Seite */
.notfound__code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--action);
  margin-bottom: .5rem;
}
