/* Rescue Berlin – Website erstellt von Plutoz (https://plutoz.de). © Plutoz. Alle Rechte vorbehalten. */
/* ==========================================================================
   Rescue Berlin – Stylesheet
   Farbsystem aus dem Rescue-Berlin-Logo: Schwarz, Rot, Weiß
   (Schrift: Poppins, abgerundete Karten)
   ========================================================================== */

:root {
  /* Helles Theme: --color-white = Flächenfarbe, --color-dark-2 = Überschriften-/Betonungsfarbe (fast schwarz) */
  --color-text: #3a3a42;
  --color-text-light: #6b6b75;
  --color-dark: #1c1c1f;
  --color-dark-2: #111114;
  --color-primary: #c8102e;
  --color-primary-dark: #9e0c24;
  --color-bg-light: #f5f5f7;
  --color-white: #ffffff;
  --color-border: #e4e4e8;
  --shadow-card: 0 12px 30px rgba(17, 17, 20, 0.08);
  --shadow-btn: 0 9px 20px rgba(200, 16, 46, 0.25);
  --color-primary-on-dark: #c8102e;
  --color-page: #ffffff;
  --color-deep: #f5f5f7;
  --nav-height: 168px;
  --radius: 10px;
  --radius-lg: 20px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--color-white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; line-height: 1.25; margin: 0 0 16px; color: var(--color-dark-2); }
h1 { font-size: 42px; font-weight: 700; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; color: var(--color-text); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section { padding: 80px 0; }
.section--light { background: var(--color-bg-light); }
.section--dark { background: var(--color-dark-2); color: #d4d4d8; }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: #b4b4ba; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--color-text-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary { background: var(--color-primary); color: var(--color-white); box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--color-white); }
.btn--outline:hover { border-color: var(--color-white); }
.btn--dark { background: var(--color-dark-2); color: var(--color-white); }
.btn--dark:hover { background: var(--color-dark); }

/* Only the arrow icon animates on hover, not the whole button. */
.btn .icon { transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(4px); }

/* Topbar */
.topbar {
  background: var(--color-dark-2);
  color: #d4d4d8;
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item:hover { color: var(--color-white); }
.topbar__item--right { display: flex; align-items: center; gap: 20px; }

/* Floating nav wrapper (topbar + header), hides on scroll-down.
   Rounded corners live on the topbar/header themselves (not this wrapper) so
   dropdown menus, which overflow below .site-header, are not clipped. */
.site-nav {
  position: fixed; top: 16px; left: 50%; z-index: 200;
  width: calc(100% - 32px); max-width: 1320px;
  transform: translateX(-50%);
  box-shadow: 0 16px 40px rgb(14 14 16 / 5%);
  border-radius: 16px;
  transition: transform 0.35s ease;
}
.site-nav .topbar { border-radius: 16px 16px 0 0; }
.site-nav .site-header { border-radius: 0 0 16px 16px; }

/* In-page anchor targets (e.g. #leistungen) must clear the floating nav. */
[id] { scroll-margin-top: 150px; }
.site-nav.is-hidden { transform: translateX(-50%) translateY(-140%); }
@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
}

/* Header */
.site-header {
  background: var(--color-white);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--color-dark-2); }
.logo__img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.logo__text-sub { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-light); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav__close { display: none; }
.main-nav__list { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav__list a { font-weight: 500; font-size: 15px; color: var(--color-text); }
.main-nav__list a:hover { color: var(--color-primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--color-dark-2); }

/* Dropdown / mega-menu navigation */
.main-nav__list > li { position: relative; display: flex; align-items: center; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.chevron {
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}
.dropdown-toggle { display: none; }

/* The 50px top padding is deliberate visual spacing below the nav item. It lives
   as padding (not margin) so the whole box - including that empty top strip -
   stays part of the same hoverable element; a margin-based gap would sit outside
   the box and break :hover as the pointer crosses it, closing the menu early.
   The white card itself is a ::before starting after the padding, so the empty
   strip has no visible border/shadow of its own. */
.dropdown {
  list-style: none;
  margin: 0;
  padding: 58px 10px 10px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  z-index: -1;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown:hover > a > .chevron,
.has-dropdown:focus-within > a > .chevron { transform: rotate(225deg); margin-top: 3px; }

.dropdown li { position: relative; }
.dropdown li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}
.dropdown li > a:hover { background: var(--color-bg-light); color: var(--color-primary); }

/* Leistungen mega-menu: image + label per service, no list markup. */
.dropdown--mega { display: flex; gap: 16px; padding: 50px 20px 20px; }
.dropdown-mega__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 140px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.dropdown-mega__item:hover { color: var(--color-primary); }
.dropdown-mega__img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(14, 14, 16, 0.12);
  transition: transform 0.2s ease;
}
.dropdown-mega__item:hover .dropdown-mega__img { transform: scale(1.04); }

/* Hero */
.hero {
  position: relative;
  background-color: var(--color-dark-2);
  background-image:
    linear-gradient(135deg, rgba(14,14,16,0.92) 0%, rgba(20,20,22,0.88) 55%, rgba(40,10,16,0.84) 100%);
  background-size: cover;
  background-position: center;
  background-blend-mode: normal;
  padding-top: calc(var(--nav-height, 220px));
  padding-bottom: 100px;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--color-white);
}
.hero .container { position: relative; z-index: 1; width: 100%; }

.hero__inner { max-width: 720px; position: relative; z-index: 1; }
.hero h1 { color: var(--color-white); }
.hero p.lead { font-size: 18px; color: #d4d4d8; max-width: 620px; }
.hero__actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* Split hero with embedded request form (right panel).
   Only overrides padding-bottom - padding-top must stay governed by
   .hero's --nav-height calc so the floating nav never covers the headline. */

.hero__grid { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: start; }

.hero__form-panel {
  background: var(--color-white); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); color: var(--color-text);
}
.hero__form-panel h3 { color: var(--color-dark-2); margin-bottom: 2px; }
.hero__form-panel > p { color: var(--color-text-light); font-size: 14px; margin-bottom: 10px; }
/* Compact spacing for the form embedded in the hero, so the panel stays short
   enough for the trust-strip stats below to remain visible without scrolling
   on common laptop screen heights. The standalone request-form page keeps its
   normal, more generous spacing (.contact-form / .multistep-progress unscoped). */
.hero__form-panel .contact-form { gap: 18px; }
.hero__form-panel .form-field { gap: 6px; }
.hero__form-panel .form-field input,
.hero__form-panel .form-field select,
.hero__form-panel .form-field textarea { padding: 9px 14px; line-height: 1.3; }
.hero__form-panel .multistep-progress { margin-bottom: 10px; }
.hero__form-panel .multistep-progress__step { padding: 8px; }
/* Compact spacing for the text column too, so it doesn't become the taller
   of the two hero__grid columns and push the trust-strip further down. */

@media (max-width: 960px) {
  
  .hero__grid { grid-template-columns: 1fr; }
  .hero__form-panel { margin-top: 8px; }
}

/* Trust strip (honest facts only - no invented certificates or headcounts) */
.trust-strip { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 32px 0; }

/* Services / icon boxes */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(14,14,16,0.14); }
.card__icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: rgba(200,16,46,0.1); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.card ul { margin: 0; padding-left: 18px; }
.card ul li { margin-bottom: 6px; }

/* Leistungen: tab list (left) + swappable image/text panel (right) */

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step__num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; margin: 0 auto 16px;
  box-shadow: var(--shadow-btn);
}
.step p { font-weight: 600; color: var(--color-dark-2); margin: 0; font-size: 15px; }
.step:not(:last-child)::after {
  content: "";
  position: absolute; top: 26px; left: calc(50% + 40px); width: calc(100% - 56px);
  height: 2px; background: var(--color-border);
}

/* Why us */

.benefits-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.benefits-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--color-white); }
.benefits-list .check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-white);
  display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 2px;
}

/* Pre-footer contact teaser */
.footer-teaser { background: linear-gradient(180deg, #ffffff 0%, #efeff1 100%); padding: 40px 0px; }
.footer-teaser__grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-teaser h2 { max-width: 380px; margin: 0; }
.footer-teaser__card {
  background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 22px 26px; max-width: 560px; width: 100%;
}
.footer-teaser__person { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-teaser__person-info { display: flex; align-items: center; gap: 14px; }
.footer-teaser__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 12%; flex: none; }
.footer-teaser__name { font-weight: 700; color: var(--color-dark-2); display: block; }
.footer-teaser__role { font-size: 13.5px; color: var(--color-text-light); }
.footer-teaser__urgent {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--color-border);
  font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--color-text-light);
}
.footer-teaser__urgent a { color: var(--color-dark-2); font-weight: 600; text-decoration: underline; }
.footer-teaser__urgent .icon { color: var(--color-primary); flex: none; }
@media (max-width: 700px) {
  .footer-teaser__person { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-teaser__person-info { justify-content: center; }
}

/* Footer */
.site-footer { background: var(--color-dark-2); color: #a1a1a8; padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: var(--color-primary); font-size: 15px; margin-bottom: 18px; }
.site-footer a:hover { color: var(--color-white); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--color-white); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-claim { color: #a1a1a8; margin-bottom: 14px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px;
}

.footer-bottom .btn { font-size: 13.5px; padding: 10px 20px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0 20px;
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px;
}
.footer-legal a, .footer-legal button { color: #a1a1a8; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--color-white); }
.footer-legal span { color: rgba(255, 255, 255, 0.25); }

/* Legal pages */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; font-size: 22px; }
.legal-content h2:first-child { margin-top: 0; }
.page-header {
  background: linear-gradient(180deg, #efeff1 0%, #ffffff 100%);
  color: var(--color-dark-2);
  padding-top: 16px;
  padding-bottom: 48px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 { color: var(--color-dark-2); margin: 0; }
.page-header--center { text-align: center; }
.section--dark .eyebrow { color: var(--color-primary-on-dark); }

/* Responsive */
@media (max-width: 960px) {
  
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  /* Mobile: .site-nav is centred with left/right instead of transform, and the
     header has no backdrop-filter. Both (transform, backdrop-filter) would turn
     them into the containing block of the position:fixed slide-in menu, which
     then no longer sits relative to the viewport and widens the page. */
  :root { --nav-height: 132px; }
  .site-nav { top: 8px; left: 8px; right: 8px; width: auto; max-width: none; transform: none; }
  .site-nav.is-hidden { transform: translateY(-150%); }
  .site-nav .topbar { border-radius: 12px 12px 0 0; }
  .site-nav .site-header { border-radius: 0 0 12px 12px; backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .site-header .container { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .logo { font-size: 17px; min-width: 0; }
  .logo__img { width: 42px; height: 42px; }
  .logo__text-sub { font-size: 9.5px; letter-spacing: 0.04em; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: 12px; font-size: 24px; line-height: 1;
    background: var(--color-bg-light); border: 1px solid var(--color-border);
  }

  /* Topbar: phone left, icons right, never wraps. */
  .topbar { font-size: 13px; }
  .topbar__inner { justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
  .topbar__item--right { width: 100%; justify-content: space-between; gap: 12px; }
  .topbar__phone { white-space: nowrap; }
  .topbar__247-long, .topbar__mail-text { display: none; }
  .topbar__mail { margin-left: auto; }
  .topbar__item .icon { width: 18px; height: 18px; }

  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(86vw, 360px);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--color-white);
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 84px 24px 28px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
    z-index: 250;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; box-shadow: -12px 0 30px rgba(0,0,0,0.2); }
  .main-nav .btn { justify-content: center; width: 100%; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(14, 14, 16, 0.55); z-index: 240; }
  body.nav-open .site-nav { transform: none; z-index: 260; }
  .main-nav__close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 24px; right: 24px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-bg-light); border: none; color: var(--color-dark-2);
    font-size: 18px; line-height: 1; cursor: pointer;
  }
  .main-nav__close:hover { background: var(--color-border); }
  .main-nav__list { flex-direction: column; gap: 0; align-items: stretch; width: 100%; }
  .main-nav__list > li { border-bottom: 1px solid var(--color-border); }
  .main-nav__list > li > a { font-size: 17px; }
  .main-nav__list > li:not(.has-dropdown) > a { padding: 14px 0; display: block; }
  .hero { padding-bottom: 56px; min-height: 0; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Mobile dropdown accordion */
  .main-nav__list > li { flex-direction: column; align-items: stretch; }
  .has-dropdown > a { flex: 1; padding: 14px 52px 14px 0; display: flex; }
  .dropdown-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; position: absolute; right: -8px; top: 3px;
    background: none; border: none; cursor: pointer; color: var(--color-dark-2);
  }
  .dropdown-toggle .chevron { transition: transform 0.2s ease; }
  .dropdown-toggle[aria-expanded="true"] .chevron { transform: rotate(225deg); margin-top: 3px; }
  .has-dropdown > a > .chevron { display: none; }

  /* Desktop's hover-gap buffer (padding-top + ::before card) doesn't apply to the
     mobile accordion - it's a plain in-flow block with its own background. */
  .dropdown {
    position: static;
    display: none;
    opacity: 1; visibility: visible; transform: none;
    background: var(--color-bg-light);
    min-width: 0; width: 100%; margin: 4px 0 8px; padding: 6px;
  }
  .dropdown::before { display: none; }
  .has-dropdown.is-open > .dropdown { display: block; }
  .has-dropdown.is-open > .dropdown--mega { display: flex; }
  .dropdown li > a { white-space: normal; padding: 12px 14px; font-size: 15px; }
  .dropdown--mega { flex-direction: column; gap: 4px; min-width: 0; padding: 6px; }
  .dropdown-mega__item { padding: 6px; font-size: 15px; align-items: center; }
  .dropdown-mega__item { flex-direction: row; width: 100%; text-align: left; gap: 12px; }
  .dropdown-mega__img { width: 56px; height: 56px; flex: none; }
}

/* Social icons */

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; font-weight: 500; }
.contact-note { color: var(--color-text-light); font-size: 15px; }

.contact-form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.contact-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 6px; padding-top: 10px; }
.form-field label { font-weight: 600; font-size: 14px; color: var(--color-dark-2); }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-light);
  color: var(--color-text);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}
.contact-form .btn { justify-self: start; }

.form-field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}
.form-field--checkbox input[type="checkbox"] { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--color-primary); }

/* Card footer link */
.card > a { display: inline-block; margin-top: 4px; color: var(--color-primary); font-weight: 600; font-size: 14.5px; }
.card > a:hover { text-decoration: underline; }

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

.form-alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: 15px; }
.form-alert--success { background: rgba(34,197,94,0.12); color: #15803d; border: 1px solid rgba(34,197,94,0.3); }
.form-alert--error { background: rgba(200,16,46,0.08); color: var(--color-primary-dark); border: 1px solid rgba(200,16,46,0.25); }
.form-alert--error ul { margin: 8px 0 0; padding-left: 18px; }

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

/* Icons (replace emoji glyphs) */
.icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; flex: none; }
.card__icon { font-size: inherit; }
.card__icon .icon { width: 28px; height: 28px; }
.topbar__item .icon, .footer-social .icon, .contact-list .icon, .job-meta__item .icon, .response-badge .icon { width: 16px; height: 16px; }
.check .icon { width: 14px; height: 14px; }
.mobile-cta .icon { width: 18px; height: 18px; }

/* Plain link rendered as a button (footer "Cookie-Einstellungen") */
.link-button {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: none;
}
.link-button:hover { color: var(--color-white); }

/* Outline button on light backgrounds (consent banner) */
.btn--outline-light { background: transparent; border-color: var(--color-border); color: var(--color-dark-2); }
.btn--outline-light:hover { border-color: var(--color-dark-2); }

/* Breadcrumbs - first element on sub-pages, so it carries the floating-nav clearance. */
.breadcrumbs {
  background: #efeff1;
  font-size: 13px;
  padding-top: calc(var(--nav-height, 150px));
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs li { color: var(--color-text-light); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--color-border); }
.breadcrumbs li[aria-current="page"] { color: var(--color-dark-2); font-weight: 500; }

/* Sticky mobile contact bar */
.mobile-cta { display: none; }
@media (max-width: 780px) {
  .mobile-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--color-white); border-top: 1px solid var(--color-border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(14, 14, 16, 0.12);
  }
  .mobile-cta .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 14px; }
  body { padding-bottom: 72px; }
}

/* Cookie consent banner */
.consent-banner {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 480px; margin: 0 auto;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 20px 22px;
}
@media (max-width: 780px) { .consent-banner { bottom: 88px; } }
.consent-banner.is-visible { display: block; }
.consent-banner p { font-size: 13.5px; color: var(--color-text-light); margin-bottom: 14px; }
.consent-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-banner__actions .btn { font-size: 13.5px; padding: 10px 18px; }

/* Job detail meta-facts row (Karriere) */
.job-meta { display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 20px 0 4px; padding: 20px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.job-meta__item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text-light); }
.job-meta__item .icon { color: var(--color-primary); }
.job-meta__item strong { color: var(--color-dark-2); font-weight: 600; }

/* Response-time promise badge */
.response-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--color-dark-2); }
.response-badge .icon { color: var(--color-primary); }

/* File upload fields (application form) */
.form-field input[type="file"] {
  padding: 10px 12px; background: var(--color-bg-light);
  border: 1px dashed var(--color-border); border-radius: var(--radius); font-size: 14px;
}
.form-field-hint { font-size: 12.5px; color: var(--color-text-light); margin: 2px 0 0; }

/* Team tiles (compact) + modal */
.team-grid--compact { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.team-tile { width: 220px; background: none; border: none; padding: 0; cursor: pointer; text-align: center; font-family: var(--font); }
.team-tile__photo { width: 200px; height: 200px; border-radius: var(--radius-lg); object-fit: cover; margin: 0 auto 16px; display: block; box-shadow: var(--shadow-card); transition: transform 0.2s ease; }
.team-tile:hover .team-tile__photo, .team-tile:focus-visible .team-tile__photo { transform: scale(1.05); }
.team-tile__name { display: block; font-weight: 700; font-size: 18px; color: var(--color-dark-2); }
.team-tile__role { display: block; font-size: 14px; color: var(--color-primary); font-weight: 600; margin-top: 3px; }

.team-modal {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.team-modal.is-open { opacity: 1; visibility: visible; }
.team-modal__backdrop { position: absolute; inset: 0; background: rgba(14, 14, 16, 0.6); }
.team-modal__panel {
  position: relative; background: var(--color-white); border-radius: var(--radius-lg);
  max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 40px 32px 32px;
  text-align: center; transform: scale(0.94); transition: transform 0.25s ease;
}
.team-modal.is-open .team-modal__panel { transform: scale(1); }
.team-modal__close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--color-bg-light); color: var(--color-dark-2); font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.team-modal__close:hover { background: var(--color-border); }
.team-modal__photo { width: 120px; height: 120px; border-radius: var(--radius-lg); object-fit: cover; margin: 0 auto 18px; display: block; }
.team-modal__role { display: block; color: var(--color-primary); font-weight: 600; font-size: 14px; margin: 4px 0 18px; }
.team-modal__panel p { color: var(--color-text-light); text-align: left; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .team-modal, .team-modal__panel { transition: none; }
}

/* Job list (Karriere: stacked rows instead of a card grid) */
.job-list { display: flex; flex-direction: column; }
.job-list__item { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.job-list__item:first-child { border-top: 1px solid var(--color-border); }
.job-list__icon {
  flex: none; width: 48px; height: 48px; border-radius: var(--radius);
  background: rgba(200, 16, 46, 0.1); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.job-list__icon .icon { width: 24px; height: 24px; }
.job-list__body { flex: 1; }
.job-list__body h3 { margin-bottom: 4px; }
.job-list__body p { margin: 0; color: var(--color-text-light); }
.job-list__item .btn { flex: none; }
@media (max-width: 700px) {
  .job-list__item { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Lightweight benefit row (Karriere intro: replaces a heavy 5-card grid) */
.benefit-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 28px; }
.benefit-row__item { text-align: center; }
.benefit-row__icon {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%;
  background: rgba(200, 16, 46, 0.1); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.benefit-row__icon .icon { width: 24px; height: 24px; }
.benefit-row__item h3 { font-size: 17px; margin-bottom: 6px; }
.benefit-row__item p { font-size: 14px; color: var(--color-text-light); margin: 0; }
.benefit-row__more { text-align: center; color: var(--color-text-light); max-width: 620px; margin: 0 auto; font-size: 14.5px; }

/* Sanitätsdienst-Rechner result */
.rechner-result-card {
  margin-top: 12px; padding: 28px; background: var(--color-bg-light);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.rechner-result-card h3 { margin-bottom: 16px; }
.rechner-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.rechner-table th, .rechner-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 14.5px; }
.rechner-table th { font-weight: 500; color: var(--color-text-light); }
.rechner-table td { font-weight: 700; color: var(--color-dark-2); text-align: right; }
.rechner-result-card .form-field-hint { margin-bottom: 16px; }

/* Multi-step form (Sanitätsdienst anfragen) */
.multistep-progress { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: nowrap; }
.multistep-progress__step {
  flex: 1; min-width: 0; text-align: center; padding: 10px 6px; border-radius: var(--radius);
  background: var(--color-bg-light); color: var(--color-text-light); font-size: 13px; font-weight: 600;
  border: 1px solid var(--color-border); transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.multistep-progress__step.is-active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.multistep-progress__step.is-done { background: rgba(200, 16, 46, 0.1); color: var(--color-primary); border-color: rgba(200, 16, 46, 0.3); }
.multistep-step { display: none; }
.multistep-step.is-active { display: block; }
.multistep-step__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.multistep-step__actions .link-button { color: var(--color-text-light); font-weight: 600; font-size: 14px; }
.multistep-step__actions .link-button:hover { color: var(--color-primary); }
.date-range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) {
  .date-range-fields { grid-template-columns: 1fr; }
}

/* FAQ layout: image tile + question list */
.faq-layout { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; max-width: 1100px; margin: 0 auto; }
.faq-image-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 560px; background-color: var(--color-dark-2);
  background-image:
    linear-gradient(to top, rgba(14,14,16,0.94) 0%, rgba(14,14,16,0.45) 55%, rgba(14,14,16,0.15) 100%),
    url('../images/leistung-sanitaetsdienst.jpg');
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.faq-image-tile__content { padding: 28px; color: var(--color-white); }
.faq-image-tile__content h3 { color: var(--color-white); font-size: 22px; margin-bottom: 6px; }
.faq-image-tile__content p { color: #d4d4d8; margin-bottom: 12px; }
.faq-image-tile__content a { color: var(--color-white); font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.faq-image-tile__content .icon { color: var(--color-primary-on-dark); }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-image-tile { min-height: 260px; }
}

/* FAQ tabs */
.faq-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--color-border); margin-bottom: 28px; }
.faq-tab {
  background: none; border: none; cursor: pointer; font-family: var(--font);
  font-size: 16px; font-weight: 600; color: var(--color-text-light);
  padding: 0 0 14px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.faq-tab:hover { color: var(--color-dark-2); }
.faq-tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* FAQ accordion */
.faq-list { display: grid; gap: 12px; }
.faq-list[hidden] { display: none; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4px 22px;
  background: var(--color-white);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  color: var(--color-dark-2);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--color-primary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 0 20px; }
.faq-answer p { margin: 0; }

/* ==========================================================================
   Helles Theme (Overrides) – Weiß, Schwarz, Rot wie im Logo
   ========================================================================== */
html { color-scheme: light; }
body { background: #fff; color: var(--color-text); }
.accent { color: var(--color-primary); }

/* Flächen: alles hell */
.section--light { background: var(--color-bg-light); }
.section--dark { background: var(--color-bg-light); color: var(--color-text); }
.section--dark h2, .section--dark h3 { color: var(--color-dark-2); }
.section--dark p { color: var(--color-text); }
.section--dark .eyebrow, .hero .eyebrow { color: var(--color-primary); }

/* Buttons */
.btn--primary, .btn--primary:hover { color: #fff; }
.btn--outline { color: var(--color-dark-2); border-color: #c9c9d0; }
.btn--outline:hover { border-color: var(--color-dark-2); color: var(--color-dark-2); }
.btn--outline-light { color: var(--color-dark-2); border-color: var(--color-border); }
.btn--outline-light:hover { border-color: var(--color-primary); }
.btn--dark { background: var(--color-dark-2); color: #fff; }
.btn--dark:hover { background: #2a2a30; color: #fff; }

/* Navigation */
.topbar { background: var(--color-bg-light); color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.topbar__item:hover { color: var(--color-primary); }
.site-nav { box-shadow: 0 16px 40px rgba(17,17,20,0.10); }
.site-header { background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); }
.site-nav .topbar, .site-nav .site-header { border: 1px solid var(--color-border); }
.site-nav .topbar { border-bottom: 0; }
.site-nav .site-header { border-top: 0; }
.logo { color: var(--color-dark-2); }
.main-nav__list a { color: var(--color-dark-2); }
.main-nav__list a:hover { color: var(--color-primary); }
.dropdown::before { background: #fff; }

/* Hero (hell, mit rotem Bogen-Foto) */
.hero { background-color: #fff; color: var(--color-text); }
.hero h1 { color: var(--color-dark-2); }
.hero--arch {
  background-image:
    radial-gradient(ellipse 55% 70% at 82% 40%, rgba(200,16,46,0.10) 0%, rgba(200,16,46,0) 65%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
  padding-bottom: 80px;
}
.hero__grid--arch { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero--arch h1 { font-size: 48px; line-height: 1.15; margin-bottom: 20px; }
.hero--arch p.lead { font-size: 18px; color: var(--color-text); max-width: 560px; }
.hero__facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--color-text); font-size: 14px; font-weight: 500; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--color-primary); width: 18px; height: 18px; }
.hero__visual { display: flex; justify-content: center; }
.hero__arch {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px; overflow: hidden;
  background: var(--color-primary);
  box-shadow: 0 0 0 10px rgba(200,16,46,0.12), 0 30px 60px rgba(17,17,20,0.18);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__form-panel { background: #fff; border: 1px solid var(--color-border); color: var(--color-text); box-shadow: var(--shadow-card); }
.benefits-list .check, .step__num { color: #fff; }
.benefits-list li { color: var(--color-dark-2); }

/* Kennzahlen */
.stats { background: var(--color-bg-light); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 36px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats__value { font-size: 32px; font-weight: 700; color: var(--color-primary); line-height: 1.2; }
.stats__label { font-size: 13px; color: var(--color-text-light); margin-top: 6px; }

/* Leistungs-Karten */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--color-primary); box-shadow: 0 24px 48px rgba(17,17,20,0.14); }
.service-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.service-card__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-top: -50px; margin-bottom: 14px;
  background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-btn); position: relative;
}
.service-card h3 { font-size: 22px; margin-bottom: 8px; }
.service-card p { color: var(--color-text-light); flex: 1; }
.service-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--color-primary); }
.service-card__more .icon { transition: transform 0.2s ease; }
.service-card:hover .service-card__more .icon { transform: translateX(4px); }

.cta-strip {
  margin-top: 36px; padding: 28px 36px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #fff 0%, #fdecef 100%); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-strip h3 { margin-bottom: 4px; }
.cta-strip p { margin: 0; color: var(--color-text-light); }

/* Vorteile */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-card); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: rgba(200,16,46,0.10); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 18px; }
.feature p { margin: 0; color: var(--color-text-light); font-size: 15px; }

/* Ablauf */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--4 .step h3 { font-size: 18px; margin-bottom: 6px; }
.steps--4 .step p { font-weight: 400; color: var(--color-text-light); }
.step:not(:last-child)::after { background: var(--color-border); }
.center-cta { text-align: center; margin: 48px 0 0; }

/* Rechner / Split */
.split-cta { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.split-cta__card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); }
.split-cta__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--color-dark-2); }
.split-cta__mail .icon { color: var(--color-primary); }

/* FAQ-Teaser */
.faq-teaser { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }

/* Anfrage */
.request-grid { display: grid; grid-template-columns: 1fr 520px; gap: 56px; align-items: start; }
.request-grid .hero__form-panel { padding: 28px; }

/* Footer / Teaser / Seitenkopf: hell */
.footer-teaser { background: var(--color-bg-light); border-top: 1px solid var(--color-border); }
.footer-teaser__card { background: #fff; border: 1px solid var(--color-border); }
.footer-teaser__urgent a { color: var(--color-dark-2); }
.site-footer { background: #fff; color: var(--color-text-light); border-top: 1px solid var(--color-border); }
.footer-claim, .footer-legal a, .footer-legal button { color: var(--color-text-light); }
.footer-legal span { color: #c9c9d0; }
.footer-logo { color: var(--color-dark-2); }
.site-footer a:hover, .footer-legal a:hover, .footer-legal button:hover, .link-button:hover { color: var(--color-primary); }
.footer-bottom, .footer-legal { border-top-color: var(--color-border); }
.footer-social a { background: var(--color-bg-light); color: var(--color-dark-2); }
.footer-social a:hover { background: var(--color-primary); color: #fff; }
.page-header { background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%); color: var(--color-dark-2); border-bottom: 1px solid var(--color-border); }
.page-header h1 { color: var(--color-dark-2); }

/* Formulare & Sonstiges */
.form-field input, .form-field select, .form-field textarea { color: var(--color-dark-2); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #9a9aa4; }
.multistep-progress__step.is-active { color: #fff; }
.form-alert--success { color: #15803d; }
.form-alert--error { color: var(--color-primary-dark); }
.faq-image-tile__content, .faq-image-tile__content h3, .faq-image-tile__content a { color: #fff; }

@media (max-width: 960px) {
  .hero__grid--arch { grid-template-columns: 1fr; }
  .hero__visual { order: 0; margin-top: 8px; }
  .hero__arch { max-width: 300px; }
  .hero--arch h1 { font-size: 34px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .feature-grid, .split-cta, .faq-teaser, .request-grid { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
}

.leistung-hero { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 36px; box-shadow: var(--shadow-card); }

/* Footer-Leiste (wie Vorbild) */
.footer-bottom { border-top: 1px solid var(--color-border); padding: 22px 0 26px; font-size: 13px; }
.footer-bottom__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; color: var(--color-text-light); }
.footer-bottom .footer-legal { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.topbar__inner { justify-content: flex-end; }
.topbar__item--right { gap: 22px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
@media (max-width: 700px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* Hero: wechselnde Portraits */
.hero__arch--slides { background: var(--color-primary); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; animation: heroFade 10s infinite; }
.hero-slide--b { animation-delay: -5s; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 22px; text-align: center; color: #fff; background: linear-gradient(to top, rgba(17,17,20,0.78), rgba(17,17,20,0)); }
.hero-slide figcaption strong { display: block; font-size: 18px; }
.hero-slide figcaption span { font-size: 13px; opacity: 0.9; }
@keyframes heroFade { 0% { opacity: 1; } 45% { opacity: 1; } 55% { opacity: 0; } 95% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; } .hero-slide--a { opacity: 1; } }

/* Telefon in der Navigation */

@media (max-width: 1100px) { .main-nav { gap: 20px; } }

/* Unterseiten: Breadcrumb + Seitenkopf in einem ruhigen Weiß wie die Startseite */
.breadcrumbs { background: #fff; }
.page-header { background: #fff; border-bottom: 0; padding-bottom: 40px; }
.page-header h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--color-primary); margin-top: 18px; }
.page-header--center h1::after { margin-left: auto; margin-right: auto; }
.page-header + .section:not(.section--light) { padding-top: 24px; }

/* Inhaltsbreite wie Seitenkopf / Startseite */
.legal-content { max-width: none; margin: 0; }
.leistung-hero { aspect-ratio: 16 / 6; }

.topbar__phone strong { font-weight: 600; color: var(--color-dark-2); }
.topbar__247 { color: var(--color-primary); font-weight: 600; font-size: 12px; }

/* Inhaltsbreite: links bündig mit dem Seitenkopf, rechts mit etwas Luft */
.legal-content { max-width: 1060px; margin: 0; }
.legal-content .leistung-hero { aspect-ratio: 16 / 7; }

/* Inhalt: fast volle Breite, symmetrisch zentriert (kleiner Einzug links und rechts) */
.legal-content { max-width: 1160px; margin: 0 auto; }
.legal-content { max-width: 1232px; margin: 0 auto; }

/* Inhalt: exakt bündig mit Seitenkopf und Kontakt-Bereich (volle Containerbreite) */
.legal-content { max-width: none; margin: 0; }

/* .legal-content sitzt auf dem Container selbst: gleiche Breite und Position wie der Seitenkopf */
.container.legal-content { max-width: var(--container); margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Mobile / Responsive (Overrides, bewusst ganz am Ende)
   ========================================================================== */

/* Grid-Kinder dürfen schrumpfen; sonst weiten Formulare/Texte die Spalte über den Viewport. */
.hero__grid > *, .hero__grid--arch > *, .request-grid > *, .contact-grid > *,
.split-cta > *, .faq-teaser > *, .faq-layout > *, .footer-grid > *,
.service-grid > *, .feature-grid > *, .steps > *, .stats__grid > * { min-width: 0; }
.contact-form { grid-template-columns: minmax(0, 1fr); }
.form-field input:not([type="checkbox"]):not([type="radio"]), .form-field select, .form-field textarea { width: 100%; min-width: 0; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }
table { max-width: 100%; }

@media (max-width: 780px) {
  /* Formulare: 16px verhindert das automatische Hineinzoomen auf iOS. */
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .contact-form-wrap { padding: 22px 18px; }
  .hero__form-panel, .request-grid .hero__form-panel { padding: 20px 16px; }
  .contact-grid, .request-grid, .split-cta, .faq-teaser { gap: 32px; }
  .multistep-progress { gap: 6px; }
  .multistep-progress__step { font-size: 12px; padding: 8px 4px; }

  .hero--arch h1 { font-size: 30px; }
  .hero__grid--arch { gap: 28px; }
  .hero__arch { max-width: 260px; }
  .hero p.lead, .hero--arch p.lead { font-size: 16.5px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__facts { gap: 10px 20px; }

  .section-head { margin-bottom: 32px; }
  .service-grid, .feature-grid { gap: 20px; }
  .stats__grid { gap: 20px 12px; }
  .stats__value { font-size: 26px; }
  .steps, .steps--4 { grid-template-columns: 1fr; gap: 28px; }
  .cta-strip { padding: 24px 20px; flex-direction: column; align-items: stretch; text-align: center; }
  .cta-strip .btn, .split-cta .btn, .center-cta .btn { width: 100%; justify-content: center; }
  .split-cta__card, .faq-image-tile__content { padding: 24px 20px; }

  .footer-teaser { padding: 32px 0; }
  .footer-teaser__grid { flex-direction: column; align-items: stretch; }
  .footer-teaser h2 { max-width: none; }
  .footer-teaser__card { max-width: none; padding: 20px 18px; }
  .site-footer { padding-top: 44px; }
  .footer-grid { gap: 28px; padding-bottom: 32px; }
  .footer-bottom { gap: 14px; }
  .footer-bottom .btn { width: 100%; justify-content: center; }

  .breadcrumbs { overflow-x: auto; }
  .breadcrumbs ol { flex-wrap: nowrap; white-space: nowrap; }
  .page-header { padding-bottom: 28px; }
  .page-header h1 { font-size: 28px; word-wrap: break-word; hyphens: auto; }
  .leistung-hero, .legal-content .leistung-hero { aspect-ratio: 16 / 10; margin-bottom: 24px; }
  .legal-content h2 { font-size: 21px; margin-top: 32px; }

  .faq-tabs { gap: 20px; overflow-x: auto; }
  .faq-tab { white-space: nowrap; font-size: 15px; }
  .faq-item { padding: 2px 16px; }
  .faq-item summary { padding: 16px 30px 16px 0; font-size: 15px; }

  .team-grid--compact { gap: 28px 16px; }
  .team-tile { width: 100%; max-width: 300px; }
  .team-tile__photo { width: 200px; max-width: 100%; height: auto; aspect-ratio: 1; }
  .team-modal { padding: 16px; }
  .team-modal__panel { padding: 36px 22px 24px; }

  .rechner-result-card { padding: 20px 16px; }
  .rechner-table th, .rechner-table td { font-size: 14px; padding: 9px 0; vertical-align: top; }
  .rechner-table td { padding-left: 14px; }

  .btn { padding: 14px 22px; }
  .consent-banner { left: 10px; right: 10px; padding: 16px; }
  .consent-banner__actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  h1, .hero--arch h1 { font-size: 27px; }
  .logo__text-sub { display: none; }
  .team-tile { width: 100%; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  /* Schritt-Labels des Anfrageformulars: umbrechen statt abschneiden. */
  .multistep-progress__step { white-space: normal; overflow: visible; text-overflow: clip; font-size: 11.5px; line-height: 1.25; display: flex; align-items: center; justify-content: center; min-height: 44px; }
}

/* Checkbox-Label: Block statt Flex, damit Text und Link normal umbrechen. */
.form-field--checkbox label { display: block; position: relative; padding-left: 28px; line-height: 1.5; }
.form-field--checkbox input[type="checkbox"] { position: absolute; left: 0; top: 4px; margin: 0; width: 18px; height: 18px; }
@media (max-width: 780px) { .form-field--checkbox label { font-size: 14px; } }

/* Mobile: Hero-Portraits deutlich kleiner. */
@media (max-width: 780px) {
  .hero__arch { max-width: 190px; box-shadow: 0 0 0 6px rgba(200,16,46,0.12), 0 16px 32px rgba(17,17,20,0.16); }
  .hero-slide figcaption { padding: 28px 10px 12px; }
  .hero-slide figcaption strong { font-size: 14px; }
  .hero-slide figcaption span { font-size: 11px; }
}

/* Slogan */
.footer-slogan { color: var(--color-primary); font-weight: 700; font-size: 15px; margin: 0 0 8px; }

/* Team: E-Mail als Pill mit Icon */
.team-tile__mail {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  margin-top: 14px; padding: 8px 14px; border-radius: 999px;
  background: var(--color-bg-light); border: 1px solid var(--color-border);
  font-size: 13px; font-weight: 500; color: var(--color-dark-2); text-align: left;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.team-tile__mail .icon { width: 16px; height: 16px; color: var(--color-primary); flex: none; transition: color 0.15s ease; }
.team-tile__mail span { overflow-wrap: anywhere; }
.team-tile__mail:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.team-tile__mail:hover .icon { color: #fff; }
.team-tile { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 780px) { .team-tile__mail { font-size: 12.5px; padding: 8px 12px; } .team-tile__mail span { overflow-wrap: normal; white-space: nowrap; } }

/* Navbar: keine Subpixel-Naht zwischen Topbar (grau) und Header (weiß) beim Scrollen. */
.site-nav { background: var(--color-white); will-change: transform; backface-visibility: hidden; }
.site-nav .site-header { margin-top: -1px; position: relative; }
.site-nav .topbar { position: relative; z-index: 0; }

/* Team: E-Mail-Adresse nie umbrechen; Kachel ggf. breiter als das Foto. */
.team-tile { width: auto; min-width: 220px; }
.team-tile__mail span { white-space: nowrap; overflow-wrap: normal; }

.team-tile--placeholder { cursor: default; }
.team-tile--placeholder .team-tile__photo { object-fit: contain; background: #fff; padding: 16px; box-sizing: border-box; }
.team-tile--placeholder:hover .team-tile__photo { transform: none; }

/* Sanitätsdienst-Rechner: volle Breite, schlichter */
.rechner-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; align-items: end;
  margin: 28px 0; padding: 28px; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.rechner-risks { grid-column: 1 / -1; border: 0; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.rechner-risks legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 14px; color: var(--color-dark-2); }
.rechner-risks label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--color-text-light); cursor: pointer; }
.rechner-risks input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-primary); }
.rechner-form .btn { grid-column: 1 / -1; margin-top: 12px; }
.rechner-result-card { background: #fff; box-shadow: var(--shadow-card); }
.rechner-table { display: block; }
.rechner-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.rechner-table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--color-border); }
.rechner-table th, .rechner-table td { border-bottom: 0; }
@media (max-width: 780px) {
  .rechner-form { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .rechner-table tbody { grid-template-columns: minmax(0, 1fr); }
}

/* Rechner: Live-Ergebnis, Schnellauswahl, Kennzahlen */
.rechner-form { align-items: start; }
.rechner-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rechner-presets button { font: inherit; font-size: 13px; padding: 5px 12px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-light); color: var(--color-dark-2); cursor: pointer; transition: border-color .15s, color .15s; }
.rechner-presets button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.rechner-risks label { padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 999px; transition: border-color .15s, background .15s; }
.rechner-risks label:has(input:checked) { border-color: var(--color-primary); background: #fff5f6; color: var(--color-dark-2); }
.rechner-empty { padding: 24px; text-align: center; color: var(--color-text-light); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }
.rechner-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.rechner-tile { padding: 18px; background: var(--color-bg-light); border-radius: var(--radius-lg); display: grid; gap: 4px; }
.rechner-tile strong { font-size: 34px; line-height: 1; color: var(--color-primary); }
.rechner-tile span { font-size: 13.5px; color: var(--color-text-light); }
@media (max-width: 780px) { .rechner-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rechner-tile strong { font-size: 28px; } }

/* Rechner-Hinweis */
.rechner-note { font-size: 12.5px; line-height: 1.5; color: var(--color-text-light); margin: 0; max-width: 720px; }

/* Kontaktformular: Schritte */
.contact-form .multistep-step.is-active { display: grid; gap: 18px; }
.contact-form .multistep-step__actions { margin-top: 6px; }
.contact-form .btn--block { justify-self: stretch; width: 100%; }

/* Karriere: Stellenliste als Karten */
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.job-list__item {
  position: relative; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.job-list__item:first-child { border-top: 1px solid var(--color-border); }
.job-list__item:hover { transform: translateY(-3px); border-color: var(--color-primary); }
.job-list__body { flex: 1; }
.job-list__body h3 { font-size: 19px; margin-bottom: 6px; }
.job-list__body p { font-size: 14.5px; line-height: 1.55; }
.job-list__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-primary); }
.job-list__link::after { content: ""; position: absolute; inset: 0; }
.job-list__link .icon { width: 16px; height: 16px; transition: transform .18s ease; }
.job-list__item:hover .job-list__link .icon { transform: translateX(4px); }

/* Karriere: Stellenseiten */
.job-detail { max-width: 880px; margin-left: auto; margin-right: auto; }
.job-detail .lead { font-size: 1.15rem; }
.job-cta { margin: 0 0 8px; }
.job-detail .job-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 0; border: 0; margin: 24px 0 8px; }
.job-detail .job-meta__item { padding: 14px 16px; background: var(--color-bg-light); border-radius: var(--radius); flex-wrap: wrap; }
.job-detail h2 { font-size: 22px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.job-detail ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.job-detail ul li { position: relative; padding-left: 30px; }
.job-detail ul li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(200, 16, 46, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 700px) { .job-list { grid-template-columns: minmax(0, 1fr); } .job-list__item { padding: 22px; } }
