/*
Theme Name: SoftTec Header & Footer
Theme URI: https://softtec.de
Author: SoftTec GmbH
Author URI: https://softtec.de
Description: Globaler Header (mit Mega-Menüs) und Footer für SoftTec, gebaut nach dem SoftTec Design System. Header und Footer erscheinen auf jeder Seite identisch; alle Texte/Links werden zentral in inc/site-data.php gepflegt (Single Source of Truth).
Version: 1.0.28
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: softtec-headerfooter
*/

/* ====================================================================
   DESIGN-SYSTEM TOKENS — Farben
   ==================================================================== */
:root {
  --st-navy:   #002F5D;
  --st-purple: #4E56D3;
  --st-green:  #008075;
  --st-lime:   #DCEE64;

  --st-gray-dark:   #333328;
  --st-gray-mid:    #9C9B98;
  --st-gray-light:  #F4F3EF;
  --st-white:       #FFFFFF;
  --st-black:       #1A1A14;

  --color-primary:        var(--st-navy);
  --color-primary-hover:  color-mix(in srgb, var(--st-navy) 80%, black);
  --color-accent:         var(--st-lime);
  --color-accent-ink:     var(--st-navy);
  --color-secondary:      var(--st-purple);
  --color-tertiary:       var(--st-green);

  --color-success:        var(--st-green);
  --color-warning:        color-mix(in srgb, var(--st-lime) 80%, black);
  --color-danger:         #C2453B;
  --color-info:           var(--st-purple);

  --text-strong:          var(--st-navy);
  --text-body:            var(--st-gray-dark);
  --text-muted:           var(--st-gray-mid);
  --text-on-dark:         var(--st-white);
  --text-accent:          var(--st-purple);

  --surface-page:         var(--st-white);
  --surface-subtle:       var(--st-gray-light);
  --surface-card:         var(--st-white);
  --surface-dark:         var(--st-navy);
  --surface-accent:       var(--st-lime);

  --border-subtle:        #E6E5E0;
  --border-default:       #D8D7D1;
  --border-strong:        var(--st-gray-mid);

  --focus-ring:           color-mix(in srgb, var(--st-purple) 45%, white);
}

/* ====================================================================
   DESIGN-SYSTEM TOKENS — Typografie
   ==================================================================== */
:root {
  --font-sans: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', system-ui, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --fs-overline: 0.75rem;
  --fs-caption:  0.8125rem;
  --fs-sm:       0.875rem;
  --fs-body:     1rem;
  --fs-lg:       1.125rem;
  --fs-xl:       1.375rem;
  --fs-2xl:      1.75rem;
  --fs-3xl:      2.25rem;
  --fs-4xl:      3rem;
  --fs-5xl:      4rem;
  --fs-display:  5.25rem;

  --lh-tight: 1.04;
  --lh-snug: 1.18;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --ls-overline: 0.14em;
  --ls-tight: -0.02em;
  --ls-display: -0.03em;
  --ls-normal: 0;
}

/* ====================================================================
   DESIGN-SYSTEM TOKENS — Spacing, Radien, Schatten, Motion
   ==================================================================== */
:root {
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --radius-blob: 60% 40% 55% 45% / 55% 50% 50% 45%;

  --shadow-xs: 0 1px 2px rgba(0,47,93,0.06);
  --shadow-sm: 0 2px 8px rgba(0,47,93,0.07);
  --shadow-md: 0 8px 24px rgba(0,47,93,0.09);
  --shadow-lg: 0 18px 48px rgba(0,47,93,0.12);
  --shadow-accent: 0 10px 28px rgba(78,86,211,0.20);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;

  --container-max: 1200px;
}

/* ====================================================================
   BASE
   ==================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Horizontalen Überlauf abfangen, damit die Layout-Breite nie größer als der
   Bildschirm wird (sonst greifen auf dem Handy die Mobil-Umschaltpunkte nicht).
   overflow-x: clip bricht – anders als hidden – den sticky Header NICHT. */
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
svg, video, iframe { max-width: 100%; }
::selection { background: var(--st-lime); color: var(--st-navy); }

/* ====================================================================
   BUTTON (Design-System)
   ==================================================================== */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 0 var(--space-5);
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.st-btn:active { transform: translateY(1px) scale(0.985); }
.st-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.st-btn--block { width: 100%; }
.st-btn--accent { background: var(--st-lime); color: var(--st-navy); }
.st-btn--accent:hover { background: var(--st-green); color: var(--st-lime); }
.st-btn--outline { background: transparent; color: var(--st-navy); border-color: var(--border-default); }
.st-btn--outline:hover { background: var(--st-navy); color: var(--st-lime); border-color: var(--st-navy); }

/* ====================================================================
   HEADER  (st-hdr)
   ==================================================================== */
.st-hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--st-white);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.st-hdr.is-scrolled { box-shadow: var(--shadow-sm); }

.st-hdr__bar {
  max-width: 1320px;
  margin: 0 auto;
  height: 84px;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: height var(--dur-base) var(--ease-out);
}
.st-hdr.is-scrolled .st-hdr__bar { height: 84px; }

.st-hdr__logo {
  display: inline-flex;
  align-items: center;
  color: var(--st-navy);
  flex: none;
  border-radius: var(--radius-sm);
}
.st-hdr__logo:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.st-hdr__logo-img { height: 34px; width: auto; transition: height var(--dur-base) var(--ease-out); transform: translateY(-10%); }
.st-hdr.is-scrolled .st-hdr__logo-img { height: 34px; }

.st-hdr__nav { margin-left: auto; }
.st-hdr__navlist {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--space-3);
}
.st-hdr__navitem { position: static; }

.st-hdr__navlink {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: var(--fw-medium);
  color: var(--st-navy);
  text-decoration: none;
  background: none; border: none; cursor: pointer;
  padding: 10px 10px;
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.st-hdr__navlink:hover { color: var(--st-purple); }
.st-hdr__navlink:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.st-hdr__chev { display: inline-flex; transition: transform var(--dur-fast) var(--ease-out); color: var(--st-gray-mid); }
.st-hdr__navlink:hover .st-hdr__chev { color: var(--st-purple); }
.st-hdr__chev.is-up { transform: rotate(180deg); }

.st-hdr__navitem.is-open > .st-hdr__navlink { color: var(--st-purple); }

.st-hdr__cta { flex: none; font-size: 17px; }
.st-hdr__actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.st-hdr__burger {
  display: none;
  position: relative;
  z-index: 300; /* über dem Drawer (z-index 200), damit der X-Button immer tippbar bleibt */
  width: 46px; height: 46px; border: none; background: none; cursor: pointer;
  color: var(--st-navy); border-radius: var(--radius-md);
  align-items: center; justify-content: center;
}
.st-hdr__burger:hover { background: var(--st-gray-light); }
.st-hdr__burger:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.st-hdr__burger .st-burger-close { display: none; }
.st-hdr__burger[aria-expanded="true"] .st-burger-open { display: none; }
.st-hdr__burger[aria-expanded="true"] .st-burger-close { display: inline-flex; }

.st-hdr__scrim {
  position: fixed; inset: 0; top: 84px;
  background: color-mix(in srgb, var(--st-navy) 32%, transparent);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
  z-index: -1;
}
.st-hdr__scrim.is-on { opacity: 1; }

/* MEGA PANEL */
.st-mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--st-white);
  border-top: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  animation: stMegaIn var(--dur-base) var(--ease-out);
}
@keyframes stMegaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.st-mega[hidden] { display: none; }
.st-mega__inner {
  max-width: 1320px; margin: 0 auto;
  padding: var(--space-7) var(--space-6) var(--space-8);
  display: grid; grid-template-columns: 1fr 300px; gap: var(--space-8);
  align-items: start;
}
.st-mega__inner--list { grid-template-columns: 1fr 300px; }
.st-mega__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
.st-mega__inner--list .st-mega__cols { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-7); align-content: start; }

.st-mega__heading {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--st-gray-mid);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}
/* Kategorie-Überschrift im Mega-Menü: als Link (klickbar zur Übersichtsseite)
   oder Button (Pfeil-Toggle); die Liste öffnet per Hover. */
.st-mega__cat {
  width: 100%;
  margin: 0 0 var(--space-3);
  padding: 0 0 var(--space-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  background: none; border: none; border-bottom: 1px solid var(--border-subtle);
  cursor: pointer; text-align: left; text-decoration: none;
  font-family: var(--font-sans); font-size: var(--fs-overline); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--st-gray-mid);
  transition: color var(--dur-fast) var(--ease-out);
}
.st-mega__cat:hover { color: var(--st-navy); }
.st-mega__cat:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-xs); }
.st-mega__cat-chev { display: inline-flex; flex: none; color: var(--st-gray-mid); transition: transform var(--dur-fast) var(--ease-out); }
.st-mega__cat:hover .st-mega__cat-chev { color: var(--st-navy); }
.st-mega__cat[aria-expanded="true"] .st-mega__cat-chev { transform: rotate(180deg); color: var(--st-navy); }

.st-mega__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.st-mega__list[hidden] { display: none; }
.st-mega__link {
  display: flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: var(--fw-regular);
  color: var(--text-body); text-decoration: none;
  padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.st-mega__link:hover { color: var(--st-navy); background: var(--st-gray-light); }
.st-mega__link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.st-mega__link--strong { font-weight: var(--fw-semibold); color: var(--st-navy); }
.st-hdr__ext { display: inline-flex; color: var(--st-gray-mid); }

.st-mega__feature {
  background: var(--st-gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
  height: 100%;
}
.st-mega__feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--st-lime); color: var(--st-navy);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.st-mega__feature-title { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--st-navy); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
.st-mega__feature-text { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-normal); color: var(--text-body); }
.st-mega__promo-actions { margin-top: auto; padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }

/* VARIANT: CLEAN (lime underline) */
.st-hdr--clean .st-hdr__navlink::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  background: var(--st-lime); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-out);
}
.st-hdr--clean .st-hdr__navlink:hover::after,
.st-hdr--clean .st-hdr__navitem.is-open > .st-hdr__navlink::after { transform: scaleX(1); }
.st-hdr--clean .st-hdr__navlink:hover { color: var(--st-navy); }
.st-hdr--clean .st-hdr__navitem.is-open > .st-hdr__navlink { color: var(--st-navy); }

/* MOBILE NAV  (drawer + accordion) */
.st-mnav {
  position: fixed; inset: 0; top: 0;
  z-index: 200;
  background: var(--st-white);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex; flex-direction: column;
}
.st-mnav.is-open { transform: none; }
.st-mnav[hidden] { display: none; }
/* Eigener Schließen-Button im Drawer — exakt auf der Burger-Position (Bar 84px hoch,
   Padding 16px), damit er ungescrollt deckungsgleich mit dem Burger-X liegt. */
.st-mnav__close {
  position: absolute; top: 19px; right: 16px; z-index: 10;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--st-navy); border-radius: var(--radius-md);
}
.st-mnav__close:hover { background: var(--st-gray-light); }
.st-mnav__close:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.st-mnav__scroll { flex: 1; overflow-y: auto; padding: calc(84px + var(--space-4)) var(--space-5) var(--space-6); -webkit-overflow-scrolling: touch; }
.st-mnav__nav { display: flex; flex-direction: column; }
.st-mnav__sec { border-bottom: 1px solid var(--border-subtle); }
.st-mnav__row {
  width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: var(--fw-semibold);
  color: var(--st-navy); padding: var(--space-4) 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  text-decoration: none; border-bottom: 1px solid var(--border-subtle);
}
.st-mnav__row:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.st-mnav__sec .st-mnav__row { border-bottom: none; }
.st-mnav__chev { display: inline-flex; color: var(--st-gray-mid); transition: transform var(--dur-fast) var(--ease-out); }
.st-mnav__chev.is-up { transform: rotate(180deg); color: var(--st-purple); }
.st-mnav__panel { padding: 0 0 var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: 1px; }
.st-mnav__panel[hidden] { display: none; }
.st-mnav__group { padding: var(--space-3) 0 var(--space-2); }
.st-mnav__grouphd {
  margin: 0 0 var(--space-2); font-size: var(--fs-overline); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--st-gray-mid);
}
/* Einklappbare Kategorie im mobilen Drawer (Pfeil-Toggle) */
.st-mnav__grouphd--toggle {
  width: 100%; padding: var(--space-2) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-sans);
}
.st-mnav__group-chev { display: inline-flex; flex: none; color: var(--st-gray-mid); transition: transform var(--dur-fast) var(--ease-out); }
.st-mnav__grouphd--toggle[aria-expanded="true"] .st-mnav__group-chev { transform: rotate(180deg); color: var(--st-purple); }
.st-mnav__grouplinks { display: flex; flex-direction: column; }
.st-mnav__grouplinks[hidden] { display: none; }

.st-mnav__sublink {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 0; font-size: var(--fs-body); color: var(--text-body); text-decoration: none;
}
.st-mnav__sublink:hover { color: var(--st-navy); }
.st-mnav__sublink--strong { font-weight: var(--fw-semibold); color: var(--st-navy); }
.st-mnav__footer { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.st-mnav__cta { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) 0 var(--space-2); margin-top: var(--space-2); border-top: 1px solid var(--border-subtle); }

/* responsive */
@media (max-width: 1279px) {
  .st-hdr__cta { display: none; }
  .st-hdr__bar { padding: 0 var(--space-4); gap: var(--space-4); }
}
@media (max-width: 1079px) {
  .st-hdr__nav { display: none; margin-left: 0; }
  .st-hdr__burger { display: inline-flex; }
  .st-hdr__actions { margin-left: auto; }
  .st-mega, .st-hdr__scrim { display: none !important; }
}
@media (min-width: 1080px) {
  .st-mnav { display: none; }
}

/* ====================================================================
   FOOTER  (st-ft)
   ==================================================================== */
.st-ft {
  position: relative;
  background: var(--st-navy);
  color: rgba(255,255,255,0.74);
  overflow: hidden;
  isolation: isolate;
}
.st-ft__inner {
  max-width: 1320px; margin: 0 auto;
  padding: var(--space-9) var(--space-6) var(--space-6);
}
.st-ft__cols {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1.3fr 1.1fr;
  gap: var(--space-8) var(--space-7);
}
.st-ft__heading {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  color: var(--st-lime);
  text-transform: none;
}
.st-ft__heading--link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: opacity var(--dur-fast) var(--ease-out); }
.st-ft__heading--link:hover { opacity: 0.78; }

.st-ft__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.st-ft__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); color: rgba(255,255,255,0.74); text-decoration: none;
  line-height: var(--lh-snug);
  transition: color var(--dur-fast) var(--ease-out);
}
.st-ft__link:hover { color: var(--st-white); }
.st-ft__ext { display: inline-flex; opacity: 0.6; }
.st-ft__link:hover .st-ft__ext { opacity: 1; }
.st-ft a:focus-visible { outline: 3px solid var(--st-lime); outline-offset: 3px; border-radius: 3px; }

.st-ft__col--brand { padding-right: var(--space-5); }
.st-ft__logo { display: inline-flex; color: var(--st-white); margin-bottom: var(--space-5); }
.st-ft__logo-img { height: 38px; width: auto; filter: brightness(0) invert(1); }
.st-ft__claim {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--st-white);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
}
.st-ft__subtext { margin: 0 0 var(--space-6); font-size: var(--fs-lg); font-weight: var(--fw-regular); line-height: var(--lh-snug); color: rgba(255,255,255,0.74); max-width: 32ch; }

.st-ft__social { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); flex-wrap: nowrap; }
.st-ft__social-link {
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--st-lime);
  border: 1.5px solid color-mix(in srgb, var(--st-lime) 30%, transparent);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-bounce);
}
.st-ft__social-link:hover { background: var(--st-lime); color: var(--st-navy); border-color: var(--st-lime); transform: translateY(-2px); }

.st-ft__address { font-style: normal; display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--space-5); }
.st-ft__addr-line { font-size: var(--fs-sm); }
.st-ft__addr-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: rgba(255,255,255,0.74); text-decoration: none; width: fit-content; }
.st-ft__addr-link:hover { color: var(--st-white); }
.st-ft__addr-ic { display: inline-flex; color: var(--st-lime); }
.st-ft__contacts { display: flex; flex-direction: column; gap: var(--space-3); }
.st-ft__contact { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); color: rgba(255,255,255,0.82); text-decoration: none; width: fit-content; }
.st-ft__contact:hover { color: var(--st-white); }
.st-ft__contact-ic {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--st-white) 8%, transparent); color: var(--st-lime);
}
/* Linkliste in der Unternehmens-Spalte (ehemalige Menüpunkte Ressourcen + Kontakt) */
.st-ft__list--company { margin-top: var(--space-5); }
/* Telefon/Mail/Webseite sitzen in der Markenspalte unter den Social-Icons */
.st-ft__col--brand .st-ft__contacts { margin-top: var(--space-5); }

.st-ft__certbar {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--st-white) 12%, transparent);
  display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap;
}
.st-ft__certbar-label {
  font-size: var(--fs-overline); letter-spacing: var(--ls-overline); text-transform: uppercase;
  color: rgba(255,255,255,0.5); font-weight: var(--fw-semibold);
}
.st-ft__certs { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.st-ft__cert { display: flex; align-items: center; gap: var(--space-3); }
.st-ft__cert-img {
  width: 92px; height: 64px; border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: rgba(255,255,255,0.6); flex: none;
  overflow: hidden;
}
/* Nur der "Bild folgt"-Platzhalter bekommt Fläche + gestrichelte Umrandung. */
.st-ft__cert-img--ph {
  background: color-mix(in srgb, var(--st-white) 6%, transparent);
  border: 1px dashed color-mix(in srgb, var(--st-white) 26%, transparent);
}
.st-ft__cert-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.st-ft__cert-ic { color: var(--st-lime); }
.st-ft__cert-ph { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.st-ft__cert-label { font-size: var(--fs-caption); max-width: 18ch; line-height: var(--lh-snug); color: rgba(255,255,255,0.7); }

.st-ft__legal {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--st-white) 12%, transparent);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
}
.st-ft__copy { margin: 0; font-size: var(--fs-caption); color: rgba(255,255,255,0.55); }
.st-ft__legal-links { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-5); flex-wrap: wrap; }
.st-ft__legal-link { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-caption); color: rgba(255,255,255,0.7); text-decoration: none; }
.st-ft__legal-link:hover { color: var(--st-white); }

@media (max-width: 980px) {
  .st-ft__cols { grid-template-columns: 1fr 1fr; gap: var(--space-7) var(--space-6); }
  .st-ft__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .st-ft__cols { grid-template-columns: 1fr; }
  .st-ft__legal { flex-direction: column; align-items: flex-start; }
  .st-ft__inner { padding: var(--space-8) var(--space-5) var(--space-5); }
}

/* ====================================================================
   Inhaltsbereich (zwischen Header & Footer)
   ==================================================================== */
.st-skip {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-200%);
  top: 8px; z-index: 400;
  background: var(--st-navy); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-pill); font-family: var(--font-sans);
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.st-skip:focus { transform: translateX(-50%) translateY(0); outline: 3px solid var(--focus-ring); }

.st-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 50vh;
}
.st-main__placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 40vh; padding: var(--space-9) var(--space-5);
  color: var(--st-gray-mid); font-size: 15px; letter-spacing: 0.04em;
}

/* Seiteninhalt responsiv halten: Medien nie breiter als der Container,
   lange Wörter/URLs umbrechen, breite Tabellen scrollbar machen. */
.st-content { overflow-wrap: break-word; word-wrap: break-word; }
.st-content img,
.st-content iframe,
.st-content video,
.st-content embed,
.st-content object { max-width: 100%; height: auto; }
.st-content table { display: block; width: 100%; overflow-x: auto; }

@media (max-width: 600px) {
  .st-main { padding: 0; }
}

/* ====================================================================
   DEMO-FORMULAR ALS OVERLAY  (stk-demo)
   Wird von den "Demo buchen"-Buttons (data-demo-open) geöffnet.
   ==================================================================== */
.stk-demo-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
  background: color-mix(in srgb, var(--st-navy) 55%, transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.stk-demo-modal.is-open { opacity: 1; }
.stk-demo-modal[hidden] { display: none; }
.stk-demo-modal__dialog {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 2 * var(--space-5));
  overflow-y: auto;
  background: var(--st-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  transform: translateY(10px);
  transition: transform var(--dur-base) var(--ease-out);
}
.stk-demo-modal.is-open .stk-demo-modal__dialog { transform: none; }
.stk-demo-modal__close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--st-navy); border-radius: var(--radius-pill);
}
.stk-demo-modal__close:hover { background: var(--st-gray-light); }
.stk-demo-modal__close:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* Titel sind bewusst <p> statt <h3>/<h4> (H-Struktur/SEO) — Selektoren müssen
   deshalb die generischen .stk-demo p-Regeln übertrumpfen. */
.stk-demo p.stk-demo__title {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-2xl); font-weight: var(--fw-bold);
  color: var(--st-navy); letter-spacing: var(--ls-tight); line-height: var(--lh-snug);
  padding-right: var(--space-7); /* Platz für den Schließen-Button */
}
.stk-demo p { margin: 0 0 var(--space-4); }
.stk-demo p:last-child { margin-bottom: 0; }
.stk-demo label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--st-navy); }
.stk-demo input[type="text"],
.stk-demo input[type="email"],
.stk-demo input[type="tel"],
.stk-demo textarea {
  width: 100%; margin-top: 6px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 16px; /* 16px verhindert den iOS-Auto-Zoom beim Fokussieren */
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--st-white);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.stk-demo input::placeholder, .stk-demo textarea::placeholder { color: var(--st-gray-mid); }
.stk-demo input:focus-visible, .stk-demo textarea:focus-visible {
  outline: none;
  border-color: var(--st-purple);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.stk-demo textarea { resize: vertical; min-height: 110px; }
.stk-demo__consent { display: flex; align-items: flex-start; gap: 10px; }
.stk-demo__consent input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--st-purple); }
.stk-demo__consent input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.stk-demo__consent label { font-weight: var(--fw-regular); color: var(--text-body); font-size: var(--fs-sm); }
.stk-demo__consent a { font-weight: var(--fw-bold); color: var(--st-purple); text-decoration: none; }
.stk-demo__consent a:hover { color: color-mix(in srgb, var(--st-purple) 80%, black); }
.stk-demo__status { font-size: var(--fs-sm); }
.stk-demo__success { text-align: center; padding: var(--space-6) var(--space-4); }
.stk-demo__success p { margin: 0; color: var(--text-body); }
.stk-demo__success p.stk-demo__success-title { margin: 0 0 var(--space-3); font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--st-navy); letter-spacing: var(--ls-tight); }

/* ====================================================================
   HOTFIX: Kein Abstand/Balken zwischen globalem Header und Seiteninhalt.
   Der Seiteninhalt (individueller Code je Seite) beginnt bündig unter dem
   Header. Das erste Inhaltselement verliert seinen oberen Rand – auch wenn
   der Gutenberg-Export mit einem <style>/<script>/<link> beginnt.
   ==================================================================== */
.st-hdr { border-bottom: 0; }
.st-hdr.is-scrolled { box-shadow: none; }
.st-main > :first-child { margin-top: 0; }
.st-content > :first-child { margin-top: 0; }
.entry-content > :first-child { margin-top: 0; }
.st-content > style:first-child + *,
.st-content > script:first-child + *,
.st-content > link:first-child + * { margin-top: 0; }
