/* ==========================================================================
   Koser Facility Management – Stylesheet
   Farbwelt abgeleitet aus dem Firmenlogo: Signalrot #CA102B, Schwarz, Weiß.
   Alle Schriften werden LOKAL geladen. Es besteht keinerlei Verbindung zu
   Google Fonts, CDNs oder sonstigen Drittanbietern (DSGVO-konform).
   ========================================================================== */

/* ------------------------------------------------------- lokale Schriften */
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-latin.woff') format('woff'),
       url('../fonts/lora-latin.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PoppinsLocal';
  src: url('../fonts/poppins-medium-latin.woff') format('woff'),
       url('../fonts/poppins-medium-latin.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- Variablen */
:root {
  /* Markenfarben aus dem Firmenlogo */
  --red:       #CA102B;
  --red-700:   #A20D22;
  --red-300:   #F0B7C0;
  --red-50:    #FDF3F5;

  --deep:      #101214;   /* dunkle Flächen: Hero, Footer, Topbar */
  --graphite:  #1C2024;
  --ink:       #14171A;   /* Fließtext */
  --muted:     #5B6266;
  --line:      #E3E5E7;
  --grey-50:   #F5F6F7;
  --grey-100:  #EDEFF1;
  --white:     #FFFFFF;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16,18,20,.06), 0 4px 14px rgba(16,18,20,.05);
  --shadow-md: 0 10px 34px rgba(16,18,20,.12);
  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.25rem);

  --sans: 'PoppinsLocal', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.72;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--deep); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); margin-top: 0; }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { color: var(--deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------- Hilfsklassen */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tint { background: var(--grey-50); }
.section--sand { background: var(--grey-100); }
.section--deep { background: var(--deep); color: #D8DBDD; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep a { color: #F5A6B1; }
.lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.section--deep .lead { color: #B9BFC3; }
.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .13em;
  text-transform: uppercase; color: var(--red); margin: 0 0 .9rem;
}
.center { text-align: center; }
.narrow { max-width: 74ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 500; font-size: 1rem;
  padding: .95rem 1.6rem; border-radius: var(--radius-sm);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  min-height: 50px; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--deep); border-color: #C9CDD0; }
.btn--ghost:hover { background: var(--grey-50); color: var(--deep); border-color: var(--red); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--grey-100); color: var(--deep); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.13); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.cta-note { font-size: .92rem; color: var(--muted); margin-top: .9rem; }
.section--deep .cta-note { color: #A4ABAF; }

/* ------------------------------------------------------------------- Header */
.topbar {
  background: var(--deep); color: #B7BDC1; font-size: .87rem;
  padding: .5rem 0; border-bottom: 3px solid var(--red);
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; align-items: center; justify-content: space-between; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__badges { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a, .nav > .has-sub > button {
  font-family: var(--sans); font-size: .94rem; color: var(--deep); text-decoration: none;
  padding: .6rem .7rem; border-radius: 6px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
}
.nav a:hover, .nav > .has-sub > button:hover { background: var(--grey-50); color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.has-sub { position: relative; }
.subnav {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .5rem;
  display: none; flex-direction: column;
}
.has-sub[data-open="true"] .subnav { display: flex; }
.subnav a { padding: .6rem .8rem; border-radius: 6px; font-size: .93rem; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; background: var(--red); color: #fff;
    border: 0; border-radius: 6px; padding: .7rem 1rem; font-family: var(--sans); cursor: pointer;
    min-height: 46px;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.5rem;
    border-bottom: 3px solid var(--red); box-shadow: var(--shadow-md); max-height: 78vh; overflow-y: auto;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a, .nav > .has-sub > button { width: 100%; justify-content: space-between; padding: .8rem .5rem; }
  .subnav { position: static; display: flex; box-shadow: none; border: 0; border-left: 2px solid var(--red-300);
            border-radius: 0; margin: 0 0 .5rem .5rem; padding: 0 0 0 .5rem; }
  .header__cta { display: none; }
  .logo img { height: 46px; }
}

/* --------------------------------------------------------------------- Hero */
.hero { position: relative; background: linear-gradient(155deg, #000 0%, #16191C 52%, #24282C 100%); color: #DDE0E2; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: radial-gradient(circle at 88% 12%, rgba(202,16,43,.40), transparent 46%),
                    radial-gradient(circle at 4% 92%, rgba(202,16,43,.18), transparent 45%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--gap); padding: clamp(2.75rem, 6vw, 5rem) 0; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; } }
.hero h1 { color: #fff; }
.hero p { color: #C7CBCE; max-width: 58ch; }
.hero .kicker { color: #FF8395; }
.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-top: 3px solid var(--red);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; backdrop-filter: blur(4px);
}
.hero__card h2 { font-size: 1.15rem; color: #fff; margin-bottom: .9rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; font-size: .97rem; }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: .22em; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ------------------------------------------------------------------- Karten */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid--usp { gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--red-300); }
a.card .more { margin-top: auto; padding-top: .9rem; font-family: var(--sans); font-size: .92rem; color: var(--red); }
.card__icon { width: 44px; height: 44px; margin-bottom: .9rem; color: var(--red); }
.card--usp { border-top: 3px solid var(--red); padding: 1.4rem; }
.card--usp h3 { font-size: 1.08rem; }
.card--usp p { font-size: .94rem; color: var(--muted); }

/* --------------------------------------------------------------- Prozess */
.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; position: relative; }
.steps li::before {
  content: counter(step); font-family: var(--serif); font-weight: 700; font-size: 1rem;
  width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; margin-bottom: .8rem;
}
.steps h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.steps p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------- Vorher-Nachher-Komponente */
.ba-intro { border-left: 3px solid var(--red); padding-left: 1.1rem; margin-bottom: 2rem; }
.ba-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.ba {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.ba__stage { position: relative; aspect-ratio: 3 / 2; background: var(--grey-100); overflow: hidden; touch-action: pan-y; }
.ba__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff;
  box-shadow: 0 0 0 1px rgba(16,18,20,.3); transform: translateX(-50%); pointer-events: none;
}
.ba__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--red);
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 700; box-shadow: var(--shadow-md);
}
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.ba__tag {
  position: absolute; top: .75rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; background: rgba(16,18,20,.85); color: #fff; padding: .3rem .7rem; border-radius: 99px;
  pointer-events: none;
}
.ba__tag--before { left: .75rem; }
.ba__tag--after { right: .75rem; background: var(--red); }
.ba__caption { padding: 1rem 1.2rem 1.2rem; }
.ba__caption p { font-size: .95rem; color: var(--muted); margin: 0 0 .6rem; }
.ba__alt {
  font-size: .8rem; color: #6B7276; background: var(--grey-50); border-radius: var(--radius-sm);
  padding: .7rem .85rem; margin: 0; line-height: 1.55;
}
.ba__alt code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; color: var(--red-700); word-break: break-all; }
.ba__alt b { color: var(--deep); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.ba__alt summary { cursor: pointer; list-style: none; color: var(--red-700); }
.ba__alt summary::-webkit-details-marker { display: none; }
.ba__alt summary::before { content: "▸ "; }
.ba__alt[open] summary::before { content: "▾ "; }
.ba__alt[open] summary { margin-bottom: .5rem; }
.ba__alt p { margin: 0 0 .5rem; }

/* --------------------------------------------------------------------- FAQ */
.faq { max-width: 82ch; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; background: #fff;
}
.faq details[open] { border-color: var(--red-300); }
.faq summary {
  cursor: pointer; padding: 1.05rem 1.3rem; font-family: var(--serif); font-weight: 600;
  font-size: 1.06rem; color: var(--deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Formular */
.form-layout { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 940px) { .form-layout { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.form-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--sans); font-size: .93rem; color: var(--deep); margin-bottom: .4rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #C9CDD0; border-radius: var(--radius-sm); background: #fff; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: 2px solid var(--red-300); outline-offset: 0; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -9999px !important; }
.consent { display: flex; gap: .75rem; align-items: flex-start; background: var(--grey-50); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.consent input { margin-top: .3rem; width: 20px; height: 20px; flex: none; accent-color: var(--red); }
.consent label { font-size: .92rem; line-height: 1.6; color: var(--muted); }
.form-hint { font-size: .87rem; color: var(--muted); }
.contact-aside { display: grid; gap: 1rem; }
.contact-block { background: var(--grey-50); border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.5rem; }
.contact-block h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.contact-block p { margin-bottom: .5rem; font-size: .97rem; }
.contact-block a { font-weight: 600; }

/* ------------------------------------------------------------ Bezirks-Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .4rem .95rem; font-size: .9rem; color: var(--muted); }
.chips li.is-primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.chips a { text-decoration: none; color: inherit; }

/* --------------------------------------------------------------- Meister-Box */
.seal {
  display: grid; gap: 1.5rem; align-items: center; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: 1fr; box-shadow: var(--shadow-sm);
}
@media (min-width: 780px) { .seal { grid-template-columns: 116px 1fr; } }
.seal__badge { width: 116px; height: 116px; }
.seal h3 { margin-bottom: .4rem; }
.seal p:last-child { margin-bottom: 0; }
.qual-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.qual-list li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.1rem 1.3rem; }
.qual-list strong { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: .3rem; }
.qual-list span { color: var(--muted); font-size: .96rem; }

/* ------------------------------------------------- Qualitätsmess-Komponente */
.qm { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .qm { grid-template-columns: 1.25fr .75fr; } }
.qm-cert {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
  border-top: 3px solid var(--red); border-radius: var(--radius); padding: 1.3rem;
}
.qm-cert img { border-radius: 6px; box-shadow: var(--shadow-md); width: 100%; }
.qm-cert p { font-size: .88rem; color: #A9AFB3; margin: .9rem 0 0; }
.qm-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); margin-top: 1.8rem; }
.qm-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.qm-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.qm-card p { font-size: .92rem; margin: 0; color: #B9BFC3; }
.qm-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: #FF8395; display: block; line-height: 1; margin-bottom: .45rem; }
.qm-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--red); color: #fff;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 99px; margin-bottom: 1rem;
}

/* ---------------------------------------------------------- Breadcrumb etc. */
.breadcrumb { font-size: .87rem; color: var(--muted); padding: .9rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: #A4ABAF; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }

.page-head { background: var(--grey-50); border-bottom: 1px solid var(--line); padding: clamp(2rem, 4vw, 3.4rem) 0; }
.page-head h1 { margin-bottom: .5rem; }

/* --------------------------------------------------------------- Rechtstexte */
.legal { max-width: 82ch; }
.legal h2 { font-size: 1.4rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.12rem; margin-top: 1.8rem; }
.legal p, .legal li { font-size: .99rem; }
.legal-note { background: var(--red-50); border-left: 3px solid var(--red); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem !important; color: #6E2029; }
.legal-note-list { background: var(--red-50); border-left: 3px solid var(--red); padding: 1rem 1.2rem 1rem 2.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; color: #6E2029; }
.ph { background: #FFE1A8; border-bottom: 1px dashed #B5811F; padding: 0 .25rem; font-weight: 600; color: #6B4A0F; }
.legal code { background: var(--grey-100); padding: .1rem .35rem; border-radius: 4px; font-size: .92em; }

/* ------------------------------------------------------------------- Footer */
.site-footer { background: var(--deep); color: #A8AEB2; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: .95rem; border-top: 4px solid var(--red); }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: .9rem; }
.site-footer a { color: #D3D7D9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { margin-bottom: 1.1rem; display: inline-block; }
.footer-logo img { height: 56px; width: auto; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .88rem;
}
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ------------------------------------------------------------ mobile CTA-Bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 90; background: rgba(255,255,255,.97); border-top: 3px solid var(--red);
    padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(16,18,20,.12);
  }
  .mobile-bar .btn { padding: .8rem .6rem; font-size: .94rem; min-height: 48px; }
  body { padding-bottom: 74px; }
}

/* ------------------------------------------------------------------ Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--sans); color: #fff; background: var(--deep); }

/* ----------------------------------------------- Feinschliff / Mobil-Fixes */
div:has(> .breadcrumb) + .section { padding-top: clamp(1.5rem, 3vw, 2.6rem); }

@media (max-width: 760px) {
  .topbar__badges { display: none; }
  .topbar__inner { justify-content: center; }
}
@media (max-width: 540px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .hero__inner { padding-bottom: 2rem; }
  .ba__caption { padding: .9rem 1rem 1.1rem; }
  .logo img { height: 40px; }
}

/* Redaktionelle Alt-Text-Hinweise im Livebetrieb ausblenden:
   .ba__alt { display: none; } */

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

/* -------------------------------------------------------------------- Print */
@media print {
  .site-header, .topbar, .mobile-bar, .site-footer, .btn-row, .nav-toggle { display: none !important; }
  body { color: #000; }
}

/* Fettungen auf dunklen Flächen sichtbar halten */
.section--deep strong, .hero strong, .hero__card strong, .site-footer strong { color: #fff; }

/* ------------------------------------------------- Urkunden / Zertifikate */
.cert { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
        border-top: 3px solid var(--red); border-radius: var(--radius); padding: 1.3rem; }
.cert img { border-radius: 6px; box-shadow: var(--shadow-md); width: 100%; }
.cert p { font-size: .88rem; color: #A9AFB3; margin: .9rem 0 0; }
.cert-split { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .cert-split { grid-template-columns: .82fr 1.18fr; } }
/* Urkunde auf heller Fläche */
.section--sand .cert, .section:not(.section--deep) .cert {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
}
.section--sand .cert p, .section:not(.section--deep) .cert p { color: var(--muted); }

/* ==========================================================================
   DESIGN-AUFFRISCHUNG – hell, luftig, Logofarben statt Schwarzflächen
   ========================================================================== */

/* -------------------------------------------------------------- Topbar rot */
.topbar { background: var(--red); color: #FFE3E8; border-bottom: 0; }
.topbar a { color: #fff; }

/* --------------------------------------------------------------- Heller Hero */
.hero {
  background: linear-gradient(168deg, #FFFFFF 0%, #FDF4F5 46%, #F7F8F9 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  opacity: 1;
  background-image:
    radial-gradient(circle at 86% 8%, rgba(202,16,43,.14), transparent 46%),
    radial-gradient(circle at 2% 96%, rgba(202,16,43,.07), transparent 42%);
}
.hero h1 { color: var(--deep); }
.hero p { color: var(--muted); }
.hero .kicker { color: var(--red); }
.hero .cta-note { color: var(--muted); }
.hero strong { color: var(--deep); }
.hero__card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-md);
  backdrop-filter: none;
}
.hero__card h2 { color: var(--deep); }
.hero__card { color: var(--ink); }
.checklist li { color: var(--ink); }

/* ------------------------------------------- Akzentfläche statt Schwarzfläche */
.section--accent {
  background:
    radial-gradient(circle at 92% 4%, rgba(202,16,43,.10), transparent 44%),
    linear-gradient(180deg, #FDF4F5 0%, #FBFBFC 100%);
  border-block: 1px solid var(--line);
  color: var(--ink);
}
.section--accent h2, .section--accent h3 { color: var(--deep); }
.section--accent .lead { color: var(--muted); }
.section--accent a { color: var(--red-700); }
.section--accent strong { color: var(--deep); }

/* --------------------------------------------------------- CTA-Band in Rot */
.section--red {
  background: linear-gradient(140deg, var(--red) 0%, #B00E25 100%);
  color: #FFE8EC;
}
.section--red h2, .section--red h3, .section--red strong { color: #fff; }
.section--red .cta-note { color: #FFD3DA; }
.section--red a { color: #fff; }
.section--red .btn--light { background: #fff; color: var(--red-700); }
.section--red .btn--light:hover { background: #FFF0F2; color: var(--red-700); }

/* ------------------------------------------------ Urkunden auf hellem Grund */
.cert { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); }
.cert p { color: var(--muted); }
.qm-card {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.qm-card h3 { color: var(--deep); }
.qm-card p { color: var(--muted); }
.qm-num { color: var(--red); }
.section--accent .qm-num { color: var(--red); }

/* ------------------------------------------------------- Kernleistungs-Tag */
.tag {
  display: inline-block; font-family: var(--sans); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); border: 1px solid var(--red-300);
  background: var(--red-50); padding: .12rem .45rem; border-radius: 99px; vertical-align: middle;
}
.tag--solid {
  background: var(--red); border-color: var(--red); color: #fff;
  font-size: .7rem; padding: .28rem .7rem; margin-bottom: .85rem;
}
.card--core {
  border-top: 3px solid var(--red);
  background: linear-gradient(180deg, #FFF7F8 0%, #FFFFFF 42%);
}
.card--core h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }
.subnav a .tag { margin-left: .4rem; }
.subnav--wide { min-width: min(560px, 84vw); }
.subnav__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .4rem; }
@media (max-width: 1080px) { .subnav__cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- Bezirks-Chips */
.chips li.is-current { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 600; }
.chips li:hover { border-color: var(--red); }

/* ------------------------------------------------------- Footer entschärft */
.site-footer { background: #1A1E22; }

/* ---------------------------------------------------- Abschnittswechsel weich */
.section--tint { background: linear-gradient(180deg, #FAFBFB 0%, #F4F6F7 100%); }
.section--sand { background: #FFF8F9; }

/* Footer-Spaltenüberschriften (semantisch h2, optisch wie zuvor) */
.site-footer .footer-h {
  color: #fff; font-size: 1.02rem; margin: 0 0 .9rem;
  font-family: var(--serif); font-weight: 600; line-height: 1.2;
}

/* ==========================================================================
   BARRIEREFREIHEIT – WCAG 1.4.10 (Reflow): kein horizontales Scrollen
   bis hinunter zu 320 px Viewport-Breite bzw. 400 % Zoom.
   ========================================================================== */
.grid        { grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr)); }
.grid--2     { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.grid--usp   { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.ba-grid     { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.steps       { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }
.qm-grid     { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }

/* Lange Wörter, URLs und Dateinamen dürfen umbrechen */
body { overflow-wrap: break-word; }
.legal a, .cert a, .contact-block a { overflow-wrap: anywhere; }

/* Honeypot vollständig aus dem Layout nehmen */
.hp { position: absolute !important; left: -9999px !important; width: 1px !important;
      height: 1px !important; overflow: hidden !important; }

/* Tabellen scrollen innerhalb ihres Containers statt die Seite zu verbreitern */
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 34rem; }

/* Fokus auch auf dunklem Grund deutlich sichtbar */
.section--red :focus-visible, .site-footer :focus-visible, .topbar :focus-visible {
  outline: 3px solid #fff; outline-offset: 3px;
}

/* ------------------------------------------------------------- Social-Links */
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.social__link {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  padding: .5rem .9rem; border-radius: 99px; border: 1px solid var(--line);
  font-family: var(--sans); font-size: .9rem; color: var(--ink); background: #fff;
  min-height: 44px; transition: border-color .15s ease, transform .15s ease;
}
.social__link:hover { border-color: var(--red); color: var(--red-700); transform: translateY(-1px); }
.social__link svg { flex: none; color: var(--red); }
.social--col { flex-direction: column; align-items: flex-start; }
.social--big { justify-content: center; margin-top: 1.6rem; }
.social--big .social__link { padding: .8rem 1.4rem; font-size: 1rem; min-height: 52px; }
/* im dunklen Footer */
.site-footer .social__link {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #E4E7E9;
}
.site-footer .social__link:hover { border-color: var(--red); color: #fff; background: rgba(202,16,43,.18); }
.site-footer .social__link svg { color: #FF8395; }

/* ------------------------------------------------------- Einzelbild-Galerie */
.shot-grid {
  display: grid; gap: 1.25rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.shot {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.shot img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.shot figcaption { padding: .9rem 1.1rem 1.1rem; font-size: .95rem; color: var(--muted); }
.shot figcaption .ba__alt { margin-top: .7rem; }
