/* ==========================================================================
   screenfox – Basis-Stylesheet (Etappe 1)
   Bootstrap 5.3.8 · Light/Dark über data-bs-theme · WCAG 2.2 AA
   Kontrastwerte stehen als Kommentar hinter den Text-Tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design-Tokens – hell (Standard)
   -------------------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
  /* Marke */
  --sfx-accent: #e34735;            /* Flächen, Icons, große Schrift (4,02:1 auf Weiß) */
  --sfx-accent-hover: #e0331f;
  --sfx-accent-active: #d2301d;
  --sfx-accent-strong: #c8331f;     /* Buttons mit weißer Schrift: 5,32:1 */
  --sfx-accent-strong-hover: #a92a19;
  --sfx-link: #9c2416;              /* Fließtext-Link (Original-Farbe): 7,84:1 auf Weiß */
  --sfx-link-hover: #c4321f;        /* 5,49:1 auf Weiß */

  /* Text */
  --sfx-text: #444444;              /* 9,74:1 auf Weiß */
  --sfx-text-muted: #65686d;        /* 5,59:1 auf Weiß */
  --sfx-heading: #313538;           /* 12,38:1 auf Weiß */

  /* Flächen */
  --sfx-page-bg: #202020;
  --sfx-main-bg: #ffffff;
  --sfx-pattern-top: url("../img/page-head-bg.gif");
  --sfx-pattern-footer: url("../img/page-head-bg2.gif");
  --sfx-dark-bg: #2f3338;
  --sfx-dark-text: #9b9fa2;         /* 4,77:1 auf #2f3338 */
  --sfx-dark-link: #d6d9db;
  --sfx-dark-link-hover: #ffffff;
  --sfx-header-bg: linear-gradient(to bottom, #fcfcfc 2%, #f9f9f9 100%);
  --sfx-section-light-bg: linear-gradient(to bottom, #fcfcfc 2%, #f9f9f9 100%);
  --sfx-section-light-border: #e4e4e4;
  --sfx-section-grey-bg: #e2e2e2;
  --sfx-slider-bg: #e9e9e9;
  --sfx-bottom-bg: linear-gradient(to bottom, #f9f9f9 2%, #f5f5f5 100%);
  --sfx-bottom-border: #e2e2e2;
  --sfx-bottom-text: #65686d;       /* 5,13:1 auf #f5f5f5 */
  --sfx-bottom-heading: #343434;
  --sfx-border: #e4e4e4;

  /* Navigation */
  --sfx-nav-link: #484c4f;          /* 8,23:1 auf #f9f9f9 */
  --sfx-nav-active: #b52d1d;        /* 6,10:1 auf #fcfcfc */
  --sfx-nav-bar: var(--sfx-accent);
  --sfx-dropdown-bg: #2f3338;
  --sfx-dropdown-link: #c1c4c6;     /* 7,25:1 auf #2f3338 */
  --sfx-dropdown-hover-bg: var(--sfx-accent-strong);
  --sfx-dropdown-hover-text: #ffffff;
  --sfx-dropdown-sep-top: #393c42;
  --sfx-dropdown-sep-bottom: #26292c;

  /* Breadcrumb / Seitenkopf */
  --sfx-pagehead-bg: #ffffff;
  --sfx-breadcrumb-text: #6c7075;   /* 4,99:1 auf Weiß (Original #c4c4c4: 1,74:1) */

  /* Fokus */
  --sfx-focus: #9c2416;
  --sfx-focus-on-dark: #ffffff;

  /* Layout */
  --sfx-container-max: 1010px;      /* Original-Breite */
  --sfx-container-max-landing: 1200px;
  --sfx-header-height: 80px;
  --sfx-radius: .1875rem;

  /* Typografie */
  --sfx-font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sfx-font-display: "PT Sans Narrow", "Arial Narrow", "Open Sans", Arial, sans-serif;

  /* Bootstrap-Variablen angleichen */
  --bs-body-font-family: var(--sfx-font-body);
  --bs-body-font-size: .9375rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--sfx-text);
  --bs-body-bg: var(--sfx-main-bg);
  --bs-emphasis-color: var(--sfx-heading);
  --bs-heading-color: var(--sfx-heading);
  --bs-link-color: var(--sfx-link);
  --bs-link-color-rgb: 156, 36, 22;
  --bs-link-hover-color: var(--sfx-link-hover);
  --bs-link-hover-color-rgb: 196, 50, 31;
  --bs-border-color: var(--sfx-border);
  --bs-focus-ring-color: rgba(156, 36, 22, .45);
  --bs-primary: #c8331f;
  --bs-primary-rgb: 200, 51, 31;
}

/* --------------------------------------------------------------------------
   2. Design-Tokens – dunkel
   -------------------------------------------------------------------------- */
[data-bs-theme="dark"] {
  --sfx-accent: #e34735;            /* 4,11:1 auf #1d1f22 – nur Flächen/große Schrift */
  --sfx-accent-strong: #c8331f;
  --sfx-accent-strong-hover: #e0331f;
  --sfx-link: #f08a7e;              /* 6,80:1 auf #1d1f22 */
  --sfx-link-hover: #ff9c90;        /* 7,34:1 auf #25282c */

  --sfx-text: #c9cccf;              /* 10,24:1 auf #1d1f22 */
  --sfx-text-muted: #a3a7aa;        /* 6,82:1 auf #1d1f22 */
  --sfx-heading: #eef0f1;           /* 14,45:1 auf #1d1f22 */

  --sfx-page-bg: #141517;
  --sfx-main-bg: #1d1f22;
  --sfx-dark-bg: #2f3338;
  --sfx-header-bg: linear-gradient(to bottom, #25282c 2%, #212427 100%);
  --sfx-section-light-bg: linear-gradient(to bottom, #25282c 2%, #212427 100%);
  --sfx-section-light-border: #33373c;
  --sfx-section-grey-bg: #2a2d31;
  --sfx-slider-bg: #2a2d31;
  --sfx-bottom-bg: linear-gradient(to bottom, #212427 2%, #1d1f22 100%);
  --sfx-bottom-border: #33373c;
  --sfx-bottom-text: #b9bdc1;       /* 8,25:1 auf #212427 */
  --sfx-bottom-heading: #e3e5e7;
  --sfx-border: #33373c;

  --sfx-nav-link: #d6d9db;          /* 10,44:1 auf #25282c */
  --sfx-nav-active: #f28b7f;        /* 6,19:1 auf #25282c */

  --sfx-pagehead-bg: #1d1f22;
  --sfx-breadcrumb-text: #a3a7aa;   /* 6,82:1 auf #1d1f22 */

  --sfx-focus: #ffb3a9;

  --bs-body-color: var(--sfx-text);
  --bs-body-bg: var(--sfx-main-bg);
  --bs-emphasis-color: var(--sfx-heading);
  --bs-heading-color: var(--sfx-heading);
  --bs-link-color: var(--sfx-link);
  --bs-link-color-rgb: 240, 138, 126;
  --bs-link-hover-color: var(--sfx-link-hover);
  --bs-link-hover-color-rgb: 255, 156, 144;
  --bs-border-color: var(--sfx-border);
  --bs-focus-ring-color: rgba(255, 179, 169, .5);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   3. Grundlagen
   -------------------------------------------------------------------------- */
html { background: var(--sfx-page-bg); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--sfx-main-bg);
  color: var(--sfx-text);
  font-family: var(--sfx-font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--sfx-font-display);
  font-weight: 700;
  color: var(--sfx-heading);
  line-height: 1.2;
}

a { color: var(--sfx-link); text-underline-offset: .15em; }
a:hover { color: var(--sfx-link-hover); }

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

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl { max-width: var(--sfx-container-max); }

.sfx-layout--landing .container,
.sfx-layout--landing .container-xl { max-width: var(--sfx-container-max-landing); }

/* Sichtbarer Fokus überall (WCAG 2.4.7 / 2.4.11) */
:focus-visible {
  outline: 3px solid var(--sfx-focus);
  outline-offset: 2px;
  border-radius: 2px;
}
.sfx-on-dark :focus-visible { outline-color: var(--sfx-focus-on-dark); }

/* Skip-Link */
.sfx-skiplink {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 2000;
  padding: .75rem 1rem;
  background: #ffffff;
  color: #313538;
  font-weight: 600;
  border-radius: var(--sfx-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

#sfx-main:focus { outline: none; }

/* Mindestgröße für Bedienelemente (WCAG 2.5.8) */
.sfx-target { min-width: 24px; min-height: 24px; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn-sfx {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--sfx-accent-strong);
  --bs-btn-border-color: var(--sfx-accent-strong);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--sfx-accent-strong-hover);
  --bs-btn-hover-border-color: var(--sfx-accent-strong-hover);
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--sfx-accent-strong-hover);
  --bs-btn-active-border-color: var(--sfx-accent-strong-hover);
  --bs-btn-focus-shadow-rgb: 200, 51, 31;
  font-weight: 600;
}
.btn-sfx-outline {
  --bs-btn-color: var(--sfx-link);
  --bs-btn-border-color: var(--sfx-link);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--sfx-accent-strong);
  --bs-btn-hover-border-color: var(--sfx-accent-strong);
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--sfx-accent-strong-hover);
  font-weight: 600;
}

/* Linkartiger Button (z. B. Cookie-Einstellungen) */
.sfx-linkbutton {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Section-Hintergründe (für Module und Template)
   -------------------------------------------------------------------------- */
.sfx-bg-light  { background: var(--sfx-section-light-bg); border-bottom: 1px solid var(--sfx-section-light-border); }
.sfx-bg-white  { background: var(--sfx-main-bg); }
.sfx-bg-grey   { background: var(--sfx-section-grey-bg); }
.sfx-bg-dark   { background: var(--sfx-dark-bg) var(--sfx-pattern-top) repeat 0 0; color: var(--sfx-dark-text); }
.sfx-bg-accent { background: var(--sfx-accent-strong); color: #ffffff; }
.sfx-bg-dark h1, .sfx-bg-dark h2, .sfx-bg-dark h3, .sfx-bg-dark h4,
.sfx-bg-accent h1, .sfx-bg-accent h2, .sfx-bg-accent h3, .sfx-bg-accent h4 { color: #ffffff; }
.sfx-bg-dark a:not(.btn), .sfx-bg-accent a:not(.btn) { color: #ffffff; }

.sfx-space-top-none { padding-top: 0; }
.sfx-space-top-s    { padding-top: 1.5rem; }
.sfx-space-top-m    { padding-top: 3.125rem; }   /* 50px wie Original */
.sfx-space-top-l    { padding-top: 5rem; }
.sfx-space-bottom-none { padding-bottom: 0; }
.sfx-space-bottom-s    { padding-bottom: 1.5rem; }
.sfx-space-bottom-m    { padding-bottom: 3.125rem; }
.sfx-space-bottom-l    { padding-bottom: 5rem; }

/* Überschrift mit Linie (Original „.header span“ mit bg-head.png) */
.sfx-heading-line {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 1.375rem;
}
.sfx-heading-line::after {
  content: "";
  flex: 1 1 auto;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--sfx-border) 0 2px, transparent 2px 4px);
}

/* --------------------------------------------------------------------------
   6. Topbar
   -------------------------------------------------------------------------- */
.sfx-topbar {
  background: var(--sfx-dark-bg) var(--sfx-pattern-top) repeat 0 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  color: var(--sfx-dark-text);
  font-size: .8125rem;
}
.sfx-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.25rem;
  min-height: 2.5rem;
  padding-block: .25rem;
}
.sfx-topbar a { color: var(--sfx-dark-link); text-decoration: none; }
.sfx-topbar a:hover { color: var(--sfx-dark-link-hover); text-decoration: underline; }
.sfx-topbar__group { display: flex; align-items: center; gap: .25rem 1rem; flex-wrap: wrap; }
.sfx-topbar__phone i { margin-right: .5rem; }
.sfx-topbar__social a,
.sfx-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.sfx-langswitch { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.sfx-langswitch a { display: inline-block; padding: .25rem .5rem; border-radius: var(--sfx-radius); text-transform: uppercase; }
.sfx-langswitch a[aria-current="true"] { background: rgba(255, 255, 255, .12); color: #ffffff; font-weight: 600; }

@media (max-width: 767.98px) {
  .sfx-topbar__inner { justify-content: center; }
  .sfx-topbar__social { display: none; }
}

/* --------------------------------------------------------------------------
   7. Header + Logo
   -------------------------------------------------------------------------- */
.sfx-header {
  position: relative;
  z-index: 1030;
  background: var(--sfx-header-bg);
  border-bottom: 1px solid var(--sfx-border);
}
.sfx-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--sfx-header-height);
}
.sfx-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.sfx-logo img { display: block; width: 187px; height: 50px; }
.sfx-logo__dark { display: none !important; }
[data-bs-theme="dark"] .sfx-logo__light { display: none !important; }
[data-bs-theme="dark"] .sfx-logo__dark { display: block !important; }

.sfx-header__tools { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.sfx-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--sfx-radius);
  background: transparent;
  color: var(--sfx-nav-link);
  font-size: 1.125rem;
}
.sfx-iconbtn:hover { color: var(--sfx-nav-active); border-color: var(--sfx-border); }

.sfx-theme-menu .dropdown-item { display: flex; align-items: center; gap: .5rem; }
.sfx-theme-menu .dropdown-item[aria-pressed="true"] { font-weight: 700; }
.sfx-theme-menu .dropdown-item[aria-pressed="true"]::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   8. Hauptnavigation (eine Struktur für Desktop + Mobil)
   -------------------------------------------------------------------------- */
.sfx-nav__list { margin: 0; padding: 0; list-style: none; }
.sfx-nav__row { display: flex; align-items: stretch; }
.sfx-nav__link {
  display: block;
  flex: 1 1 auto;
  color: var(--sfx-nav-link);
  font-family: var(--sfx-font-display);
  font-size: 1.0625rem;
  text-decoration: none;
}
.sfx-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.sfx-nav__toggle-icon { position: relative; display: block; width: .75rem; height: .75rem; }
.sfx-nav__toggle-icon::before,
.sfx-nav__toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform .2s ease;
}
.sfx-nav__toggle-icon::after { transform: rotate(90deg); }
.sfx-nav__item.is-open > .sfx-nav__row .sfx-nav__toggle-icon::after { transform: rotate(0deg); }

/* ---------- Mobil (< 992px): Offcanvas, +/– rechts ---------- */
@media (max-width: 991.98px) {
  .sfx-offcanvas { --bs-offcanvas-width: min(22rem, 88vw); background: var(--sfx-main-bg); }
  .sfx-offcanvas .offcanvas-title { font-family: var(--sfx-font-display); font-weight: 700; }
  .sfx-nav__item { border-bottom: 1px solid var(--sfx-border); }
  .sfx-nav__link { padding: .75rem 1rem; }
  .sfx-nav__list--l1 .sfx-nav__link { padding-left: 2rem; font-size: 1rem; }
  .sfx-nav__list--l2 .sfx-nav__link { padding-left: 3rem; }
  .sfx-nav__toggle { min-width: 3rem; border-left: 1px solid var(--sfx-border); color: var(--sfx-nav-link); }
  .sfx-nav__link[aria-current="page"],
  .sfx-nav__item.is-active > .sfx-nav__row > .sfx-nav__link { color: var(--sfx-nav-active); font-weight: 700; }
  .sfx-nav__list--sub { display: none; border-top: 1px solid var(--sfx-border); background: rgba(0, 0, 0, .025); }
  [data-bs-theme="dark"] .sfx-nav__list--sub { background: rgba(255, 255, 255, .03); }
  .sfx-nav__item.is-open > .sfx-nav__list--sub { display: block; }
  .sfx-nav__list--sub .sfx-nav__item:last-child { border-bottom: 0; }
}

/* ---------- Desktop (≥ 992px): horizontal mit Dropdown ---------- */
@media (min-width: 992px) {
  .sfx-offcanvas { flex: 1 1 auto; }
  .sfx-offcanvas .offcanvas-header { display: none; }
  .sfx-offcanvas .offcanvas-body { justify-content: flex-end; padding: 0; overflow: visible; }
  .sfx-nav__list--l0 { display: flex; justify-content: flex-end; }
  .sfx-nav__list--l0 > .sfx-nav__item { position: relative; }
  .sfx-nav__list--l0 > .sfx-nav__item > .sfx-nav__row > .sfx-nav__link {
    line-height: 70px;
    padding: 0 .9375rem;
  }
  .sfx-nav__list--l0 > .sfx-nav__item.has-children > .sfx-nav__row > .sfx-nav__link { padding-right: .25rem; }
  .sfx-nav__list--l0 > .sfx-nav__item > .sfx-nav__row > .sfx-nav__toggle { min-width: 1.5rem; margin-right: .5rem; color: var(--sfx-nav-link); }
  .sfx-nav__list--l0 > .sfx-nav__item > .sfx-nav__row .sfx-nav__toggle-icon { width: .5rem; height: .5rem; }

  /* roter Balken unter aktivem / gehovertem Hauptpunkt */
  .sfx-nav__list--l0 > .sfx-nav__item::before {
    content: "";
    position: absolute;
    left: .9375rem;
    right: .9375rem;
    bottom: 0;
    height: 2px;
    background: transparent;
    transition: background-color .2s ease;
  }
  .sfx-nav__list--l0 > .sfx-nav__item:hover::before,
  .sfx-nav__list--l0 > .sfx-nav__item.is-active::before,
  .sfx-nav__list--l0 > .sfx-nav__item.is-open::before { background: var(--sfx-nav-bar); }
  .sfx-nav__list--l0 > .sfx-nav__item:hover > .sfx-nav__row > .sfx-nav__link,
  .sfx-nav__list--l0 > .sfx-nav__item.is-active > .sfx-nav__row > .sfx-nav__link { color: var(--sfx-nav-active); }

  /* Dropdown */
  .sfx-nav__list--sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1040;
    min-width: 13.75rem;
    padding: 0;
    border-top: 2px solid var(--sfx-accent);
    background: var(--sfx-dropdown-bg);
    box-shadow: 0 3px 5px rgba(0, 0, 0, .2);
    visibility: hidden;
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  }
  .sfx-nav__list--sub .sfx-nav__list--sub { top: -2px; left: 100%; }
  .sfx-nav__item:hover > .sfx-nav__list--sub,
  .sfx-nav__item.is-open > .sfx-nav__list--sub {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .15s ease, transform .15s ease, visibility 0s;
  }
  .sfx-nav__list--sub > .sfx-nav__item {
    position: relative;
    border-top: 1px solid var(--sfx-dropdown-sep-top);
    border-bottom: 1px solid var(--sfx-dropdown-sep-bottom);
  }
  .sfx-nav__list--sub > .sfx-nav__item:first-child { border-top: 0; }
  .sfx-nav__list--sub > .sfx-nav__item:last-child { border-bottom: 0; }
  .sfx-nav__list--sub .sfx-nav__link {
    padding: .625rem .75rem;
    color: var(--sfx-dropdown-link);
    font-family: var(--sfx-font-body);
    font-size: .8125rem;
    line-height: 1.4;
  }
  .sfx-nav__list--sub .sfx-nav__toggle { color: var(--sfx-dropdown-link); }
  .sfx-nav__list--sub > .sfx-nav__item:hover,
  .sfx-nav__list--sub > .sfx-nav__item.is-active { background: var(--sfx-dropdown-hover-bg); }
  .sfx-nav__list--sub > .sfx-nav__item:hover > .sfx-nav__row > *,
  .sfx-nav__list--sub > .sfx-nav__item.is-active > .sfx-nav__row > * { color: var(--sfx-dropdown-hover-text); }
  .sfx-nav__list--sub :focus-visible { outline-color: var(--sfx-focus-on-dark); outline-offset: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  .sfx-nav__list--sub,
  .sfx-nav__toggle-icon::before,
  .sfx-nav__toggle-icon::after { transition: none !important; }
}

/* --------------------------------------------------------------------------
   9. Seitenkopf mit H1 + Breadcrumb (Unterseiten)
   -------------------------------------------------------------------------- */
.sfx-pagehead {
  background: var(--sfx-pagehead-bg);
  border-bottom: 1px solid var(--sfx-border);
}
.sfx-pagehead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  min-height: 54px;
  padding-block: .5rem;
}
.sfx-pagehead__title { margin: 0; font-size: 1.5rem; }
.sfx-breadcrumb { --bs-breadcrumb-margin-bottom: 0; --bs-breadcrumb-divider-color: var(--sfx-breadcrumb-text); font-size: .75rem; }
.sfx-breadcrumb .breadcrumb-item,
.sfx-breadcrumb .breadcrumb-item a { color: var(--sfx-breadcrumb-text); }
.sfx-breadcrumb .breadcrumb-item a:hover { color: var(--sfx-link-hover); }
.sfx-breadcrumb .breadcrumb-item.active { color: var(--sfx-breadcrumb-text); font-weight: 600; }

/* Abstände liefern die Module selbst (Abstand oben/unten je Section) */
.sfx-main-body { background: var(--sfx-main-bg); }

/* --------------------------------------------------------------------------
   10. Bottom (3 Spalten) + Footer
   -------------------------------------------------------------------------- */
.sfx-bottom {
  padding: 3.125rem 0 1.875rem;
  background: var(--sfx-bottom-bg);
  border-top: 1px solid var(--sfx-bottom-border);
  color: var(--sfx-bottom-text);
}
.sfx-bottom__title {
  margin-bottom: 1rem;
  color: var(--sfx-bottom-heading);
  font-family: var(--sfx-font-body);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sfx-bottom__list { margin: 0; padding: 0; list-style: none; line-height: 1.9; }
.sfx-bottom__list i { width: 1.25rem; color: var(--sfx-accent); }
.sfx-bottom a,
.sfx-bottom .sfx-linkbutton { color: var(--sfx-link); }
.sfx-bottom a:hover,
.sfx-bottom .sfx-linkbutton:hover { color: var(--sfx-link-hover); }

.sfx-footer {
  padding: 1.25rem 0;
  background: var(--sfx-dark-bg) var(--sfx-pattern-footer) repeat 0 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  color: var(--sfx-dark-text);
  font-size: .8125rem;
}
.sfx-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.sfx-footer a,
.sfx-footer .sfx-linkbutton { color: var(--sfx-dark-link); }
.sfx-footer a:hover,
.sfx-footer .sfx-linkbutton:hover { color: var(--sfx-dark-link-hover); }
.sfx-footer__social { display: flex; align-items: center; gap: .25rem; }
.sfx-footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; }

@media (max-width: 767.98px) {
  .sfx-footer__inner { justify-content: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   11. Landingpages
   -------------------------------------------------------------------------- */
.sfx-lp-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--sfx-header-bg);
  border-bottom: 1px solid var(--sfx-border);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.sfx-lp-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.sfx-lp-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.sfx-lp-nav { margin-left: auto; }
.sfx-lp-anchors { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.sfx-lp-anchors a {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: 999px;
  color: var(--sfx-nav-link);
  font-family: var(--sfx-font-display);
  font-size: 1.0625rem;
  text-decoration: none;
}
.sfx-lp-anchors a:hover { color: var(--sfx-nav-active); background: rgba(227, 71, 53, .08); }
.sfx-lp-actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.sfx-lp-actions .sfx-header__tools { margin-left: 0; }
.sfx-lp-nav + .sfx-lp-actions { margin-left: 0; }
.sfx-lp-header__inner > .sfx-logo + .sfx-lp-actions { margin-left: auto; }

/* Variante A „split“: klassisch hell, CTA rechts */
.sfx-lp--split .sfx-lp-header { background: var(--sfx-main-bg); }

/* Variante B „fullscreen“: Header liegt transparent über dem Hero */
.sfx-lp--fullscreen .sfx-lp-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom-color: transparent;
}
.sfx-lp--fullscreen .sfx-lp-header:not(.is-scrolled) .sfx-lp-anchors a,
.sfx-lp--fullscreen .sfx-lp-header:not(.is-scrolled) .sfx-iconbtn { color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.sfx-lp--fullscreen .sfx-lp-header:not(.is-scrolled) .sfx-lp-anchors a:hover { background: rgba(255, 255, 255, .15); }
.sfx-lp--fullscreen .sfx-lp-header:not(.is-scrolled) .sfx-logo__light { display: none !important; }
.sfx-lp--fullscreen .sfx-lp-header:not(.is-scrolled) .sfx-logo__dark { display: block !important; }
.sfx-lp--fullscreen .sfx-lp-header.is-scrolled { background: var(--sfx-header-bg); border-bottom-color: var(--sfx-border); }

/* Variante C „tiles“: Akzentband, Logo mittig, Anker als Pills darunter */
.sfx-lp--tiles .sfx-lp-header { border-top: 4px solid var(--sfx-accent); }
@media (min-width: 992px) {
  .sfx-lp--tiles .sfx-lp-header__inner { flex-wrap: wrap; justify-content: center; padding-block: .75rem; }
  .sfx-lp--tiles .sfx-lp-nav { order: 3; flex-basis: 100%; margin: 0; }
  .sfx-lp--tiles .sfx-lp-anchors { justify-content: center; margin-top: .25rem; }
  .sfx-lp--tiles .sfx-lp-anchors a { border: 1px solid var(--sfx-border); }
  .sfx-lp--tiles .sfx-lp-actions { position: absolute; top: .75rem; right: calc(var(--bs-gutter-x, 1.5rem) * .5); }
}

@media (max-width: 991.98px) {
  .sfx-lp-nav { display: none; }
  .sfx-lp-actions { margin-left: auto; }
}

.sfx-lp-footer { padding: 1.5rem 0; background: var(--sfx-dark-bg) var(--sfx-pattern-footer) repeat 0 0; color: var(--sfx-dark-text); font-size: .8125rem; }
.sfx-lp-footer a, .sfx-lp-footer .sfx-linkbutton { color: var(--sfx-dark-link); }
.sfx-lp-footer a:hover, .sfx-lp-footer .sfx-linkbutton:hover { color: var(--sfx-dark-link-hover); }

/* --------------------------------------------------------------------------
   12. Hinweise für Redakteure (nur mit Backend-Login sichtbar)
   -------------------------------------------------------------------------- */
.sfx-notice {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border: 2px dashed #b45309;
  border-radius: var(--sfx-radius);
  background: #fff7e6;
  color: #5c2c00;              /* 10,4:1 auf #fff7e6 */
  font-family: var(--sfx-font-body);
  font-size: .875rem;
}
.sfx-notice strong { color: #5c2c00; }
[data-bs-theme="dark"] .sfx-notice { background: #3a2a10; color: #ffe2b3; border-color: #f0a040; }
[data-bs-theme="dark"] .sfx-notice strong { color: #ffe2b3; }

/* --------------------------------------------------------------------------
   13. Druck
   -------------------------------------------------------------------------- */
@media print {
  .sfx-topbar, .sfx-header__tools, .sfx-nav, .sfx-offcanvas, .sfx-bottom, .sfx-skiplink { display: none !important; }
  body, .sfx-main-body { background: #ffffff !important; color: #000000 !important; }
}

/* Sprungziele nicht unter dem fixierten Landingpage-Header verstecken */
.sfx-layout--landing [id] { scroll-margin-top: 5.5rem; }
.sfx-lp--tiles [id] { scroll-margin-top: 9rem; }
