/* =========================================================
   Pflegeagentur Nordbaden – Stylesheet
   Klassische statische Website (HTML + CSS)
   Markenfarben laut claude.md:
     Rot  #c13a2a  · Gelb #fcd20d · Blau #2b7bba
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Markenfarben */
  --red: #c13a2a;
  --red-dark: #a32f21;
  --red-soft: #fbeae7;
  --yellow: #fcd20d;
  --yellow-soft: #fef6cf;
  --blue: #2b7bba;
  --blue-dark: #205e90;
  --blue-soft: #e7f1f9;

  /* Neutrale Flächen / Text */
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --surface-alt: #eef2f7;
  --text: #1e293b;
  --text-muted: #56657a;
  --border: #e2e8f0;
  --white: #ffffff;

  /* Typografie */
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Maße */
  --container: 1200px;
  --gutter: 1.5rem;
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.10);
  --section-gap: 4rem;
}

@media (min-width: 768px) {
  :root {
    --section-gap: 7.5rem;
    --gutter: 2rem;
  }
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-dark); }

/* ---------- Zugänglichkeit ---------- */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--blue-dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Ziel des Skip-Links: fokussierbar, aber ohne störenden Rahmen um den ganzen Inhalt */
#main:focus { outline: none; }
#main:focus-visible { outline: none; }

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

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

.section { padding-block: var(--section-gap); }
.section--muted { background: var(--surface-muted); }
.section--alt { background: var(--surface-alt); }


.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Rot = primäre CTA (Anfrage) */
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-dark); }

/* Blau = sekundäre Aktion */
.btn--secondary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--blue-dark); }

/* Outline */
.btn--outline { background: transparent; color: var(--blue-dark); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue-soft); }

.btn--light { background: #fff; color: var(--blue-dark); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--surface-alt); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 3rem; width: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:hover { color: var(--blue-dark); background: var(--blue-soft); }
.nav a[aria-current="page"] {
  color: var(--blue-dark);
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 0;
}

.header-cta { display: inline-flex; }

/* Burger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  color: var(--blue-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 1.75rem; height: 1.75rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile Navigation */
@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav {
    position: fixed;
    inset: 5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: #fff;
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav .nav-cta {
    margin-top: 0.5rem;
    background: var(--red);
    color: #fff;
    text-align: center;
  }
  .nav .nav-cta:hover { background: var(--red-dark); }
}

/* =========================================================
   CTA-Banner
   ========================================================= */
.cta-banner { background: var(--blue); color: #fff; }
.cta-banner .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding-block: 3rem;
}
@media (min-width: 760px) {
  .cta-banner .container { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-banner h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); margin-bottom: 0; max-width: 42rem; }
.cta-banner__text { flex: 1; }
/* Fokusring auf blauem Grund sichtbar machen (der globale blaue Ring würde untergehen) */
.cta-banner .btn:focus-visible { outline-color: #fff; }

/* =========================================================
   Page-Header (Unterseiten)
   ========================================================= */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem;
}
@media (min-width: 880px) { .page-hero { padding-block: 4.5rem; } }
.page-hero h1 { color: var(--text); margin-bottom: 0.75rem; max-width: 22ch; }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 46rem; }

/* Prose (Fließtext-Seiten) */
.prose { max-width: 48rem; margin-inline: auto; }
.prose p { font-size: 1.0625rem; color: var(--text); margin-bottom: 1.25rem; }
.prose p.lead { font-size: 1.25rem; color: var(--blue-dark); font-family: var(--font-head); font-weight: 600; }
.prose .signature { font-style: italic; color: var(--text-muted); }


/* =========================================================
   Kontakt / Formular
   ========================================================= */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

.contact-info { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item__icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: grid; place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.contact-item:hover .contact-item__icon { transform: translateY(-4px); background: var(--red-soft); color: var(--red); }
.contact-item__icon svg { width: 1.4rem; height: 1.4rem; }
.contact-item h3 { font-size: 1.0625rem; margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { color: var(--text-muted); margin: 0; text-decoration: none; }
.contact-item a:hover { color: var(--blue-dark); }

.contact-form {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.field .optional { color: var(--text-muted); font-weight: 400; font-size: 0.85em; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  min-height: 3rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field--check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.field--check input { width: 1.15rem; height: 1.15rem; min-height: 0; margin-top: 0.2rem; accent-color: var(--blue); }
.field--check label { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--text-muted); }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.form-note--privacy { line-height: 1.5; margin-bottom: 1rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-block: 3.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-brand img { height: 3rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }

.footer-col h4 { color: var(--text); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--blue-dark); }

.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.footer-contact svg { width: 1.1rem; height: 1.1rem; color: var(--blue-dark); flex-shrink: 0; margin-top: 0.2rem; }
.footer-contact a { color: var(--text-muted); }

.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  padding-block: 1.5rem;
}
@media (min-width: 640px) {
  .footer-bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a { color: var(--text-muted); font-size: 0.875rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--blue-dark); }

/* =========================================================
   Reveal-Animation (sanft, optional via JS)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   STARTSEITE – editoriale, inhaltsgetriebene Gestaltung
   (bewusst gegen generischen KI-Look: keine 3 gleichen Karten,
    keine Standard-Schatten/Gradienten, kaum Icons, asymmetrisch)
   ========================================================= */

/* ---- Hero: gemeinsame Bausteine (Kicker, Actions, Telefon) ---- */
.hp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hp-kicker::before { content: ""; width: 2.25rem; height: 2px; background: var(--red); }

.hp-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 2rem; }
.hp-phone { text-decoration: none; display: flex; flex-direction: column; line-height: 1.3; }
.hp-phone span {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hp-phone strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--blue-dark); }
.hp-phone:hover strong { color: var(--red); }

/* ---- Hero: vollflächiges Bild, Text direkt auf dem Bild ---- */
.hp-hero {
  position: relative;
  background: var(--text);
  overflow: hidden;
}
.hp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hp-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Scrim für lesbaren Text (links dunkel, rechts offen) */
.hp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.2) 100%);
}
.hp-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding-block: 3rem;
}
.hp-hero__text { max-width: 40rem; color: #fff; }
.hp-hero__text h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.7rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hp-hero__sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}
.hp-kicker--light { color: rgba(255, 255, 255, 0.85); }
.hp-phone--light span { color: rgba(255, 255, 255, 0.8); }
.hp-phone--light strong { color: #fff; }
.hp-phone--light:hover strong { color: var(--yellow); }

@media (min-width: 880px) {
  .hp-hero__inner { min-height: 620px; }
}

/* ---- Leistungen: typografische, nummerierte Liste (statt 3 Karten) ---- */
.hp-services .container { display: grid; gap: 2.5rem; }
@media (min-width: 880px) {
  .hp-services .container { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
  .hp-services__intro { position: sticky; top: 7rem; }
}
.hp-services__intro h2 { color: var(--text); }
.hp-services__intro p { color: var(--text-muted); font-size: 1.0625rem; margin-bottom: 0; }

.hp-service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.75rem;
  padding: 1.85rem 0;
  border-top: 1px solid var(--border);
  transition: transform 0.2s ease, border-top-color 0.2s ease;
}
.hp-service:last-child { border-bottom: 1px solid var(--border); }
.hp-service:hover { transform: translateY(-4px); border-top-color: var(--red); }
.hp-service__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.hp-service:hover .hp-service__num { color: var(--red); }
.hp-service__body h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.hp-service__body p { color: var(--text-muted); margin-bottom: 0.75rem; }
.hp-service__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--red);
  text-decoration: none;
}
.hp-service__link:hover { text-decoration: underline; }
.hp-service__link::after { content: " →"; }

/* ---- Vorteile: schlanke Spalten mit Akzent-Oberlinie (keine Boxen) ---- */
.hp-benefits { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .hp-benefits { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.hp-benefit {
  border-top: 3px solid var(--blue);
  padding-top: 1.25rem;
  transition: transform 0.2s ease, border-top-color 0.2s ease;
}
.hp-benefit:hover { transform: translateY(-4px); border-top-color: var(--red); }
.hp-benefit__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.hp-benefit:hover .hp-benefit__num { color: var(--red); }
.hp-benefit h3 { font-size: 1.2rem; margin: 0.35rem 0 0.5rem; }
.hp-benefit p { color: var(--text-muted); margin: 0; }

/* ---- Fairness & Sicherheit: prominenter Vorteil 04 (vollbreit) ---- */
.hp-fairness {
  margin-top: 2.5rem;
  background: var(--blue-surface-muted);
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue);
  border-radius: 2px;
  padding: 2.5rem;
  transition: transform 0.2s ease, border-left-color 0.2s ease;
}
.hp-fairness:hover { transform: translateY(-4px); border-left-color: var(--red); }
@media (min-width: 760px) { .hp-fairness { padding: 2.5rem 3rem; } }
.hp-fairness__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.hp-fairness__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.hp-fairness:hover .hp-fairness__num { color: var(--red); }
.hp-fairness__badge {
  display: inline-block;
  background: var(--yellow);
  color: #4a3c00;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}
.hp-fairness h3 { color: var(--blue-dark); font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-bottom: 0.5rem; }
.hp-fairness p { color: var(--text); font-size: 1.05rem; max-width: 100ch; margin: 0; }

/* ---- Asymmetrischer Text-Bild-Block (flach, versetzter Farbblock) ---- */
.hp-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) {
  .hp-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hp-split--reverse .hp-split__figure { order: -1; }
}
.hp-split__text h2 { color: var(--blue-dark); }
.hp-split__text p { color: var(--text-muted); font-size: 1.0625rem; }
.hp-split__figure { position: relative; }
.hp-split__figure img { position: relative; z-index: 1; width: 100%; border-radius: 2px; display: block; }
@media (min-width: 860px) {
  .hp-split__figure::before {
    content: "";
    position: absolute;
    left: -1.5rem; bottom: -1.5rem; width: 60%; height: 70%;
    background: var(--yellow-soft);
    z-index: 0;
  }
}

/* ---- Prozess: nummerierte Schritte, typografisch (keine Icons/Kreise) ---- */
.hp-steps { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .hp-steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.hp-step {
  padding-top: 1.25rem;
  border-top: 2px solid var(--border);
  transition: transform 0.2s ease, border-top-color 0.2s ease;
}
.hp-step:first-child { border-top-color: var(--red); }
.hp-steps:hover .hp-step:first-child:not(:hover) { border-top-color: var(--border); }
.hp-step:hover { transform: translateY(-4px); border-top-color: var(--red); }
.hp-step__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.hp-step:hover .hp-step__num { color: var(--red); }
.hp-step h3 { font-size: 1.05rem; }

/* ---- Dezenter Partner-Hinweis (BSC) ---- */
.hp-partner {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 3.5rem;
}
.hp-partner p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.hp-partner strong { color: var(--text); }

/* =========================================================
   Formular – Validierung: Fehler- und Erfolgszustände
   (Fehler werden NICHT nur über Farbe kommuniziert: zusätzlich
    Warn-Icon, Klartext, roter Rahmen und aria-invalid)
   ========================================================= */

/* Fehlerhaftes Feld */
.field--invalid input,
.field--invalid textarea {
  border-color: var(--red);
  background: #fdf6f5;
}
.field--invalid input:focus,
.field--invalid textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 58, 42, 0.18);
}
.field--invalid input[type="checkbox"] {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Fehlermeldung am Feld */
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  color: var(--red-dark);
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
}
.field-error[hidden] { display: none; }
.field-error::before {
  content: "";
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a32f21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Fehlermeldung in der Checkbox-Zeile korrekt umbrechen */
.field--check { flex-wrap: wrap; }
.field--check .field-error { flex-basis: 100%; }

/* Erfolgsmeldung (Live-Region) */
.form-feedback:empty { display: none; }
.form-feedback { margin-bottom: 0.5rem; }
.form-feedback:focus { outline: none; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.35rem;
  background: #ecf6ec;
  border: 1px solid #b7ddb7;
  border-left: 4px solid #2e7d32;
  border-radius: 2px;
}
.form-success__icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  color: #2e7d32;
}
.form-success h3 { font-size: 1.05rem; margin: 0 0 0.2rem; color: #1e5a22; }
.form-success p { margin: 0; color: var(--text); font-size: 0.95rem; }

/* Fehler-Meldebox (Serverfehler / Versand fehlgeschlagen) */
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.35rem;
  background: var(--red-soft);
  border: 1px solid #eab8b0;
  border-left: 4px solid var(--red);
  border-radius: 2px;
}
.form-error__icon { flex-shrink: 0; width: 1.6rem; height: 1.6rem; color: var(--red-dark); }
.form-error h3 { font-size: 1.05rem; margin: 0 0 0.2rem; color: var(--red-dark); }
.form-error p { margin: 0; color: var(--text); font-size: 0.95rem; }

/* Honeypot-Feld: für Menschen unsichtbar, aber für Bots ausfüllbar.
   Bewusst kein display:none (manche Bots meiden das) – stattdessen off-screen. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   Standort-Karte (Leaflet)
   ========================================================= */
.map-section { border-top: 1px solid var(--border); }
#map {
  height: 420px;
  width: 100%;
  background: var(--surface-alt);
  z-index: 0; /* unter dem stickenden Header halten */
}
@media (max-width: 600px) { #map { height: 320px; } }

/* eigener Marker ohne Leaflet-Standardkasten */
.map-pin { background: none; border: 0; }
.map-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.3)); }

/* Popup/Steuerung an die Website-Typografie angleichen */
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.5; }
.leaflet-bar a { color: var(--blue-dark); }
.leaflet-bar a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* =========================================================
   Rechtstexte (Impressum / Datenschutz)
   ========================================================= */
.prose h2 {
  margin-top: 2.75rem;
  color: var(--blue-dark);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.prose li { margin-bottom: 0.45rem; color: var(--text); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* Redaktioneller Hinweis auf Platzhalter */
.legal-note {
  background: var(--yellow-soft);
  border-left: 4px solid var(--yellow);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.legal-note strong { color: var(--text); }

/* =========================================================
   Semantik & Utilities
   ========================================================= */
/* Kontaktangaben in <address> ohne Kursivstellung */
address { font-style: normal; }

/* kleine, wiederverwendbare Abstands-/Text-Helfer
   (ersetzen vereinzelte Inline-Styles) */
.u-mb-lg { margin-bottom: 2.5rem; }
.u-mt-sm { margin-top: 0.5rem; }
.text-note { margin-top: 2.5rem; color: var(--text-muted); font-size: 0.95rem; }
.contact-lead { margin-bottom: 0.5rem; color: var(--text-muted); font-size: 1.0625rem; }
.map-noscript { padding: 1.5rem; text-align: center; color: var(--text-muted); }

/* Kontaktangaben-Gruppe (in <address>) mit gleichem Rhythmus wie zuvor */
.contact-address { display: grid; gap: 1.5rem; }
