/* ==========================================================================
   Sanitär- und Heizungstechnik Krapf — Design-System
   Konzept: „Wasser & Wärme" — Stahlblau (Sanitär/Technik) trifft
   Flammenorange (Heizung/Wärme). Signature-Element: Rohrleitungs-Motiv.
   Typografie: Archivo (Display, breit/technisch) + Inter (Fließtext).
   ========================================================================== */

/* ---------- Fonts (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben — Wasser & Wärme */
  --basalt: #0b1b26;        /* Dunkle Sektionen, Footer (Rhön-Basalt) */
  --basalt-karte: #11293a;  /* Karten auf dunklem Grund */
  --ink: #142430;           /* Fließtext */
  --ink-soft: #47606f;      /* Nebentext (AA auf Weiß & Nebel) */
  --stahl: #003399;         /* Primär: Stahlblau */
  --stahl-deep: #002577;
  --flamme: #e8590c;        /* Akzent: Flammenorange (dekorativ/groß) */
  --flamme-deep: #c2410c;   /* CTA-Flächen mit weißem Text (WCAG AA) */
  --flamme-darker: #9a3412;
  --nebel: #f1f6f9;         /* Heller Wechsel-Hintergrund */
  --linie: #d7e3ea;         /* Rahmen, Trennlinien */
  --weiss: #ffffff;
  --gruen: #1a7f4e;         /* Erfolg */
  --rot: #b91c1c;           /* Fehler */
  --dark-text: #eef4f8;     /* Text auf Basalt */
  --dark-muted: #9fb4c0;    /* Nebentext auf Basalt */

  /* Typografie */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1140px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 38, 0.06), 0 2px 8px rgba(11, 27, 38, 0.05);
  --shadow-md: 0 4px 20px rgba(11, 27, 38, 0.10);

  /* Abstände (4-px-Raster) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--basalt);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 780; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 740; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 680; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 650; line-height: 1.35; }

p {
  margin: 0 0 var(--s-4);
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

a {
  color: var(--stahl);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--flamme-deep);
}

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

::selection {
  background: var(--stahl);
  color: var(--weiss);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--basalt);
  color: var(--weiss);
  padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.bg-nebel { background: var(--nebel); }
.bg-basalt { background: var(--basalt); }

.bg-basalt h2,
.bg-basalt h3 {
  color: var(--dark-text);
}

.bg-basalt p {
  color: var(--dark-muted);
}

/* ---------- Eyebrow: kleines Label mit Leitungs-Punkt ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 640;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flamme-deep);
  margin-bottom: var(--s-3);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--flamme);
  border-radius: 1px;
}

.bg-basalt .eyebrow {
  color: var(--flamme);
}

/* ---------- Leitungs-Divider (Signature-Element) ---------- */
.leitung {
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='40' viewBox='0 0 560 40'%3E%3Cpath d='M0 20h190l14-10h60l14 10h282' fill='none' stroke='%23d7e3ea' stroke-width='2'/%3E%3Ccircle cx='190' cy='20' r='4' fill='%23003399'/%3E%3Ccircle cx='278' cy='10' r='4' fill='%23e8590c'/%3E%3Ccircle cx='372' cy='20' r='4' fill='%23003399'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 640;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  min-height: 48px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: var(--flamme-deep);
  color: var(--weiss);
}

.btn-primary:hover {
  background: var(--flamme-darker);
  color: var(--weiss);
}

.btn-secondary {
  background: transparent;
  color: var(--stahl);
  border-color: var(--stahl);
}

.btn-secondary:hover {
  background: var(--stahl);
  color: var(--weiss);
}

.btn-light {
  background: var(--weiss);
  color: var(--basalt);
}

.btn-light:hover {
  background: var(--nebel);
  color: var(--basalt);
}

.btn-ghost-light {
  background: transparent;
  color: var(--dark-text);
  border-color: rgba(238, 244, 248, 0.5);
}

.btn-ghost-light:hover {
  border-color: var(--weiss);
  color: var(--weiss);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--basalt);
  margin-right: auto;
}

.brand-logo {
  height: 38px;
  width: auto;
  flex: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.5rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--flamme-deep);
}

.main-nav a[aria-current="page"] {
  color: var(--stahl);
  border-bottom-color: var(--flamme);
  font-weight: 600;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 680;
  font-size: 1rem;
  color: var(--basalt);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--linie);
  border-radius: var(--radius);
}

.header-phone svg {
  color: var(--flamme-deep);
}

.header-phone:hover {
  border-color: var(--flamme-deep);
  color: var(--basalt);
}

.header-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--linie);
  border-radius: var(--radius);
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  color: var(--basalt);
  align-items: center;
  justify-content: center;
}

/* Mobile Navigation */
.mobile-only {
  display: none;
}

@media (max-width: 940px) {
  .mobile-only {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--shadow-md);
    padding: var(--s-4) clamp(1.25rem, 4vw, 2rem) var(--s-6);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--nebel);
  }

  .main-nav a[aria-current="page"] {
    border-bottom-color: var(--flamme);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-phone span {
    display: none;
  }

  .header-phone {
    border: none;
    padding: 0.55rem;
  }

  .brand-logo {
    height: 32px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(0, 51, 153, 0.09), transparent 60%),
    linear-gradient(180deg, var(--nebel) 0%, var(--weiss) 90%);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--s-5);
}

.hero h1 .accent {
  color: var(--flamme-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero-note {
  margin-top: var(--s-4);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-schema {
  min-width: 0;
}

.hero-schema svg {
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-schema {
    max-width: 560px;
  }
}

/* Animierter Fluss im Leitungsschema */
.flow-line {
  stroke-dasharray: 10 14;
  animation: flow 2.6s linear infinite;
}

.flow-line.flow-slow {
  animation-duration: 3.4s;
}

@keyframes flow {
  to {
    stroke-dashoffset: -24;
  }
}

/* ---------- Trust-Leiste ---------- */
.trust-strip {
  border-block: 1px solid var(--linie);
  background: var(--weiss);
  padding-block: var(--s-5);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-4) var(--s-6);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.trust-item svg {
  color: var(--flamme-deep);
  flex: none;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--basalt);
  line-height: 1.2;
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Karten-Raster ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}

@media (max-width: 940px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.card {
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--stahl);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--nebel);
  color: var(--stahl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}

.card h3 {
  margin-bottom: var(--s-2);
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 640;
  font-size: 0.95rem;
  color: var(--flamme-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--s-3);
}

.card:hover .card-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card ul {
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card ul li {
  padding: 0.3rem 0 0.3rem 1.6rem;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--flamme);
  border-radius: 1px;
}

/* Karten auf dunklem Grund */
.bg-basalt .card {
  background: var(--basalt-karte);
  border-color: rgba(215, 227, 234, 0.14);
}

.bg-basalt .card h3 {
  color: var(--dark-text);
}

.bg-basalt .card p,
.bg-basalt .card ul {
  color: var(--dark-muted);
}

/* ---------- Section-Header ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

/* ---------- Prozess (nummerierte Leitungs-Schritte) ---------- */
.process {
  counter-reset: schritt;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
}

@media (max-width: 1000px) {
  .process {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

.process-step {
  counter-increment: schritt;
  position: relative;
  padding-top: var(--s-5);
}

.process-step::before {
  content: counter(schritt, decimal-leading-zero);
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--weiss);
  background: var(--stahl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
}

.process-step::after {
  content: "";
  position: absolute;
  top: calc(var(--s-5) + 21px);
  left: 52px;
  right: -12px;
  height: 2px;
  background: var(--linie);
}

.process-step:last-child::after {
  display: none;
}

@media (max-width: 1000px) {
  .process-step::after {
    top: calc(var(--s-5) + 52px);
    left: 21px;
    right: auto;
    bottom: -28px;
    width: 2px;
    height: auto;
  }
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: var(--s-1);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Bild-Platzhalter ---------- */
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--linie);
  background: var(--nebel);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure.media-frame {
  margin: 0;
}

/* ---------- Stat-Zahlen ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s-5);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--flamme);
  line-height: 1;
  margin-bottom: var(--s-2);
}

.stat span {
  color: var(--dark-muted);
  font-size: 0.95rem;
}

/* ---------- FAQ / Accordion ---------- */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
}

details.faq-item {
  border: 1px solid var(--linie);
  border-radius: var(--radius-lg);
  background: var(--weiss);
  margin-bottom: var(--s-3);
  overflow: hidden;
}

details.faq-item[open] {
  border-color: var(--stahl);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 1.1rem 1.35rem;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--basalt);
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--stahl);
}

.faq-marker {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--flamme-deep);
  position: relative;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--flamme-deep);
  border-radius: 1px;
  transition: background-color 0.25s ease;
}

.faq-marker::before {
  width: 12px;
  height: 2px;
}

.faq-marker::after {
  width: 2px;
  height: 12px;
}

details[open] .faq-marker {
  transform: rotate(90deg);
  background: var(--flamme-deep);
}

details[open] .faq-marker::before,
details[open] .faq-marker::after {
  background: var(--weiss);
}

details[open] .faq-marker::after {
  display: none;
}

.faq-body {
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-soft);
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-body ol,
.faq-body ul {
  margin: 0 0 var(--s-3);
  padding-left: 1.4rem;
}

.faq-body li {
  margin-bottom: 0.35rem;
}

/* ---------- Notdienst- / Kontakt-Band ---------- */
.cta-band {
  background:
    radial-gradient(900px 420px at 12% 120%, rgba(232, 89, 12, 0.16), transparent 55%),
    var(--basalt);
  color: var(--dark-text);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.cta-band h2 {
  color: var(--dark-text);
  margin-bottom: var(--s-2);
}

.cta-band p {
  color: var(--dark-muted);
  margin: 0;
  max-width: 52ch;
}

.cta-band .phone-big {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 780;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--weiss);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.cta-band .phone-big svg {
  color: var(--flamme);
}

.cta-band .phone-big:hover {
  color: var(--flamme);
}

/* ---------- Formular ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-5);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--basalt);
}

.form-field .hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  border: 1.5px solid var(--linie);
  border-radius: var(--radius);
  background: var(--weiss);
  width: 100%;
  transition: border-color 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--stahl);
  box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.15);
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--rot);
}

.form-field input[type="file"] {
  padding: 0.55rem;
  cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: var(--weiss);
  background: var(--stahl);
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  margin-right: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.form-field input[type="file"]::file-selector-button:hover {
  background: var(--stahl-deep);
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.file-list:empty {
  display: none;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--basalt);
  background: var(--nebel);
  border: 1px solid var(--linie);
  border-radius: 99px;
  padding: 0.3rem 0.8rem;
}

.file-list .datei-groesse {
  color: var(--ink-soft);
}

.field-error {
  display: none;
  font-size: 0.85rem;
  color: var(--rot);
}

.form-field.has-error .field-error {
  display: block;
}

.form-status {
  display: none;
  margin-top: var(--s-4);
  padding: var(--s-4);
  border-radius: var(--radius);
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: #e7f5ee;
  color: var(--gruen);
  border: 1px solid #bfe3d0;
}

.form-status.error {
  display: block;
  background: #fdeeee;
  color: var(--rot);
  border: 1px solid #f2c4c4;
}

.form-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.form-consent input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--stahl);
}

/* ---------- Kontakt-Infokarten ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.contact-line {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-line svg {
  color: var(--flamme-deep);
  flex: none;
  margin-top: 0.2rem;
}

.contact-line strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 650;
  color: var(--basalt);
}

.contact-line a {
  color: var(--stahl);
}

.contact-line span,
.contact-line address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Timeline (Über uns — Leitungs-Verlauf) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 640px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--linie);
}

.timeline li {
  position: relative;
  padding: 0 0 var(--s-6) var(--s-7);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--weiss);
  border: 3px solid var(--flamme-deep);
}

.timeline .jahr {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 750;
  color: var(--stahl);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.2rem;
}

.timeline p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Themen-Navigation (Wissensseite) ---------- */
.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--s-5);
}

.topic-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 620;
  font-size: 0.92rem;
  color: var(--stahl);
  text-decoration: none;
  background: var(--weiss);
  border: 1.5px solid var(--linie);
  border-radius: 99px;
  padding: 0.5rem 1.1rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.topic-nav a:hover {
  border-color: var(--stahl);
  background: var(--nebel);
  color: var(--stahl);
}

.topic-nav .anzahl {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Tipp des Monats ---------- */
.tipp-monat {
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
  background: #fdf3ec;
  border: 1.5px solid var(--flamme);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.tipp-monat-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--flamme-deep);
  color: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tipp-monat-body {
  min-width: 0;
}

.tipp-monat-body h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: var(--s-3);
}

.tipp-monat-body p:last-child {
  margin-bottom: 0;
  color: var(--ink);
}

@media (max-width: 560px) {
  .tipp-monat {
    flex-direction: column;
    gap: var(--s-4);
  }
}

/* ---------- News ---------- */
.news-card {
  padding: var(--s-5) var(--s-6);
}

.news-card time {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flamme-deep);
  font-weight: 600;
  display: block;
  margin-bottom: var(--s-2);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stahl);
  background: var(--nebel);
  border: 1px solid var(--linie);
  border-radius: 99px;
  padding: 0.25rem 0.7rem;
  margin-bottom: var(--s-3);
  width: fit-content;
}

/* ---------- Referenzen-Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

@media (max-width: 940px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-figure {
  margin: 0;
}

.gallery-figure figcaption {
  padding-top: var(--s-3);
}

.gallery-figure figcaption strong {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 650;
  color: var(--basalt);
  display: block;
}

.gallery-figure figcaption span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Inhalts-Seiten (Impressum etc.) ---------- */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: var(--s-7);
}

.prose h3 {
  margin-top: var(--s-6);
}

.prose ul {
  color: var(--ink);
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* ---------- Page-Hero (Unterseiten) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--nebel) 0%, var(--weiss) 100%);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--linie);
}

.page-hero h1 {
  margin-bottom: var(--s-3);
}

.page-hero .lead {
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--flamme-deep);
}

.breadcrumb .sep {
  margin-inline: 0.4rem;
  color: var(--linie);
}

/* ---------- Leistungs-Detailblöcke ---------- */
.detail-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.detail-block + .detail-block {
  border-top: 1px solid var(--linie);
}

.detail-block.reverse .detail-media {
  order: -1;
}

@media (max-width: 820px) {
  .detail-block {
    grid-template-columns: 1fr;
  }

  .detail-block.reverse .detail-media {
    order: 0;
  }
}

.detail-block h3 {
  font-size: 1.45rem;
}

.detail-block p {
  color: var(--ink-soft);
}

.check-list {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding-block: 0.35rem;
  color: var(--ink);
}

.check-list svg {
  color: var(--gruen);
  flex: none;
  margin-top: 0.25rem;
}

/* ---------- Hinweis-Box (Förderung) ---------- */
.info-box {
  border: 1.5px solid var(--flamme);
  border-radius: var(--radius-lg);
  background: #fdf3ec;
  padding: var(--s-5) var(--s-6);
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}

.info-box svg {
  color: var(--flamme-deep);
  flex: none;
  margin-top: 0.15rem;
}

.info-box strong {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 680;
  color: var(--basalt);
  display: block;
  margin-bottom: 0.25rem;
}

.info-box p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.info-box .fine {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--basalt);
  color: var(--dark-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--s-6);
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(215, 227, 234, 0.15);
}

@media (max-width: 940px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  color: var(--dark-text);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: var(--dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--weiss);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand .brand-logo {
  height: 44px;
}

.footer-brand p {
  margin-top: var(--s-4);
  max-width: 34ch;
  color: var(--dark-muted);
}

.site-footer address {
  font-style: normal;
  line-height: 1.8;
}

.footer-hours {
  margin: var(--s-3) 0 0;
  color: var(--dark-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-5);
  font-size: 0.85rem;
}

.footer-bottom a {
  margin-left: var(--s-4);
}

/* ---------- Partner-Logos (dezent, Graustufen mit Farbe bei Hover) ---------- */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5) clamp(2rem, 4vw, 3.25rem);
  margin-top: var(--s-4);
}

.brand-logos a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logos img {
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.2s ease;
}

.brand-logos a:hover img,
.brand-logos a:focus-visible img {
  filter: none;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9db0bc;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-wordmark:hover {
  color: var(--stahl);
}

.brand-note {
  font-size: 0.7rem;
  color: #8aa0ad;
  margin: var(--s-5) 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-logos img {
    will-change: filter;
  }
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .flow-line {
    animation: none;
  }
}

/* ---------- Druck ---------- */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .nav-toggle,
  .hero-actions {
    display: none;
  }
}
