/* File: templates/flxglbl/css/template.css */

@import "editor-layouts.css";

/* Pagebuilder Widget-Leiste im Frontend immer unsichtbar */
.ub-widget-bar {
  display: none !important;
}

/**
 * FLXGLBL Template - Core CSS System
 * Framework-freies, barrierefreies CSS Grid & Flexbox System
 * WCAG 2.1/2.2 AA und BbgBITV konform
 * Mobile-First Architektur
 *
 * @author Sven Blessin (FORMAT Werbeagentur)
 */

/* ==========================================================================
   1. CSS Reset & Standard-Variablen-Fallbacks
   ========================================================================== */

:root {
  /* Farbsystem Fallbacks */
  --color-primary: #005a9c;
  --color-primary-hover: #003e6b;
  --color-secondary: #1976d2;
  --color-secondary-hover: #115293;
  --color-accent: #d32f2f;

  --color-bg: #ffffff;
  --color-bg-surface: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;

  --color-btn-primary-bg: #005a9c;
  --color-btn-primary-text: #ffffff;
  --color-btn-primary-hover: #003e6b;
  --color-btn-secondary-bg: #475569;
  --color-btn-secondary-text: #ffffff;
  --color-btn-secondary-hover: #334155;

  /* Barrierefreiheit & Fokusring */
  --color-focus-ring: #004085;
  --focus-ring-width: 3px;
  --focus-ring-offset: 3px;

  /* Typografie */
  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: var(--font-family-base);
  --font-weight-body: 400;
  --font-weight-heading: 700;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Layout Maße */
  --container-max-width: 1280px;
  --container-padding: 1.25rem;
  --grid-gap: 1.5rem;

  /* Transitions */
  --transition-speed: 0.25s;
  --transition-ease: ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  scroll-padding-bottom: 5.5rem;
}

body {
  min-height: 100vh;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. Barrierefreiheit (WCAG 2.1/2.2 AA & BbgBITV)
   ========================================================================== */

/* Expliziter, kontraststarker Tastatur-Fokus-Ring */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus-ring) !important;
  outline-offset: var(--focus-ring-offset) !important;
  border-radius: 2px;
}

/* Entferne Standard-Outline nur, wenn focus-visible aktiv ist */
:focus:not(:focus-visible) {
  outline: none;
}

/* Screenreader-Klasse (Visuell verborgen, fuer assistierende Technologien voll lesbar) */
.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Barrierefreie Tastatur-Sprungmarken (Skip-Links) */
.skip-links-navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-focus-ring);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 10001;
  pointer-events: auto;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #ffcc00 !important; /* Hoher Kontrast-Fokus auf dunklem Grund */
  outline-offset: 2px !important;
}

/* Unterstuetzung fuer reduzierte Bewegung (Prefers-Reduced-Motion) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hochkontrast-Modus (Windows High Contrast / forced-colors) */
@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 3px !important;
  }

  .skip-link {
    background-color: CanvasText;
    color: Canvas;
  }
}

/* ==========================================================================
   3. Typografie & Grundelemente
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-heading);
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.00rem; }
h6 { font-size: 0.875rem; }

p, ul, ol, dl, table, blockquote {
  margin-bottom: 1.25rem;
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
  color: var(--color-primary-hover);
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Schaltflaechen (Buttons) */
button,
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: var(--btn-font-weight, 600);
  line-height: 1.4;
  text-decoration: none;
  text-transform: var(--btn-text-transform, none);
  border-radius: var(--btn-border-radius, 4px);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-speed) var(--transition-ease),
              border-color var(--transition-speed) var(--transition-ease),
              color var(--transition-speed) var(--transition-ease),
              box-shadow var(--transition-speed) var(--transition-ease),
              transform var(--transition-speed) var(--transition-ease);
}

.btn-primary,
button.btn-primary,
input[type="submit"] {
  background-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  border-color: var(--color-btn-primary-bg);
}

.btn-primary:hover,
button.btn-primary:hover,
input[type="submit"]:hover {
  background-color: var(--color-btn-primary-hover);
  border-color: var(--color-btn-primary-hover);
  color: var(--color-btn-primary-text);
}

.btn-secondary {
  background-color: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-text);
  border-color: var(--color-btn-secondary-bg);
}

.btn-secondary:hover {
  background-color: var(--color-btn-secondary-hover);
  border-color: var(--color-btn-secondary-hover);
  color: var(--color-btn-secondary-text);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-btn-primary-bg);
  border-color: var(--color-btn-primary-bg);
}

.btn-outline:hover {
  background-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  border-color: var(--color-btn-primary-bg);
}

/* Pagebuilder Button Integration */
.ubw .ubw-btn {
  border-radius: var(--btn-border-radius, 6px);
  font-weight: var(--btn-font-weight, 600);
  text-transform: var(--btn-text-transform, none);
}

/* Formulardekorationen */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color var(--transition-speed) var(--transition-ease);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
}

/* ==========================================================================
   4. Eigener, leichtgewichtiger Grid- & Flexbox-Kern (Mobile-First)
   ========================================================================== */

/* Seiten-Container */
.site-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.site-container-fluid {
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Flexbox Helfer */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Allgemeines responsives CSS Grid */
.grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr; /* Mobile First: 1 Spalte */
}

/* Footer-Spalten Grids */
.footer-grid-cols-1 { grid-template-columns: 1fr; }
.footer-grid-cols-2 { grid-template-columns: 1fr; }
.footer-grid-cols-3 { grid-template-columns: 1fr; }
.footer-grid-cols-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .footer-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 12-Spalten Hilfs-Grid */
.grid-cols-12 {
  grid-template-columns: repeat(12, 1fr);
}

.col-span-12 { grid-column: span 12 / span 12; }
.col-span-6  { grid-column: span 12 / span 12; }
.col-span-4  { grid-column: span 12 / span 12; }
.col-span-3  { grid-column: span 12 / span 12; }

@media (min-width: 768px) {
  .col-span-6 { grid-column: span 6 / span 12; }
  .col-span-4 { grid-column: span 4 / span 12; }
  .col-span-3 { grid-column: span 3 / span 12; }
}

/* ==========================================================================
   5. Semantisches Hauptlayout & Vollbreite Sektionen (Even/Odd Muster)
   ========================================================================== */

.site-main-wrapper {
  padding-top: 0;
  padding-bottom: 0;
  flex: 1 0 auto;
  width: 100%;
}

.site-main-content {
  width: 100%;
}

/* Vollbreite Modul-Sektionen (content-top / content-bottom) */
.site-section {
  width: 100%;
  position: relative;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  box-sizing: border-box;
}

.site-section-module {
  width: 100%;
}

/* Modul-Sektionen Even/Odd Muster ueber die volle Bildschirmbreite */
.has-zebra-sections > .site-section:nth-of-type(odd) {
  background-color: var(--color-bg);
}

.has-zebra-sections > .site-section:nth-of-type(even) {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Hauptkomponentenbereich (Artikel & Inhalte - keine unnoetigen Section-Wrapper) */
.component-content {
  width: 100%;
}

/* Wenn Sektionen im Editor genutzt werden: kein unnoetiges Template-Zwangspadding */
.component-content:has(section) {
  padding: 0;
  margin: 0;
}

/* Sektionen innerhalb des Artikels/Editors: saubere Abstaende & Even/Odd Muster */
.component-content section {
  width: 100%;
  box-sizing: border-box;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Letzte Section: Kein Außenabstand nach unten (nahtloser Übergang zum Footer) */
.component-content section:last-child,
.component-content section:last-of-type,
.site-main-content section:last-child,
.site-main-content section:last-of-type,
.site-main-content .site-section:last-child,
.site-main-content .site-section:last-of-type,
.site-main-wrapper section:last-child,
.site-main-wrapper section:last-of-type {
  margin-bottom: 0 !important;
}

/* Verhindert unabsichtlichen Abstand durch leere Absätze nach der letzten Section */
.component-content:has(section) > *:last-child:empty,
.component-content:has(section) p:last-child:empty,
.component-content:has(section) p:last-child:has(> br:only-child) {
  margin: 0 !important;
  padding: 0 !important;
}

/* Even/Odd Streifenmuster fuer Sektionen aus dem Editor - Sektionen mit eigener Farbe ausschließen */
.has-zebra-sections .component-content section:not(.ubw--bg-custom):not([data-bg-custom]):not(.ubw--bg-primary):not(.ubw--bg-surface):not(.ubw--bg-white):not(.ubw--bg-none):not(.section-surface):not(.section-white):nth-of-type(odd),
.has-zebra-sections .component-content section:not(.ubw--bg-custom):not([data-bg-custom]):not(.ubw--bg-primary):not(.ubw--bg-surface):not(.ubw--bg-white):not(.ubw--bg-none):not(.section-surface):not(.section-white).ubw--is-odd,
.has-zebra-sections .component-content section:not(.ubw--bg-custom):not([data-bg-custom]):not(.ubw--bg-primary):not(.ubw--bg-surface):not(.ubw--bg-white):not(.ubw--bg-none):not(.section-surface):not(.section-white)[data-ubw-zebra="odd"] {
  background-color: var(--ubw-bg-odd, var(--color-bg));
}

.has-zebra-sections .component-content section:not(.ubw--bg-custom):not([data-bg-custom]):not(.ubw--bg-primary):not(.ubw--bg-surface):not(.ubw--bg-white):not(.ubw--bg-none):not(.section-surface):not(.section-white):nth-of-type(even),
.has-zebra-sections .component-content section:not(.ubw--bg-custom):not([data-bg-custom]):not(.ubw--bg-primary):not(.ubw--bg-surface):not(.ubw--bg-white):not(.ubw--bg-none):not(.section-surface):not(.section-white).ubw--is-even,
.has-zebra-sections .component-content section:not(.ubw--bg-custom):not([data-bg-custom]):not(.ubw--bg-primary):not(.ubw--bg-surface):not(.ubw--bg-white):not(.ubw--bg-none):not(.section-surface):not(.section-white)[data-ubw-zebra="even"] {
  background-color: var(--ubw-bg-even, var(--color-bg-surface));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

@supports selector(:nth-child(1 of :root)) {
  .has-zebra-sections .component-content section:not(.ubw--bg-custom):not([data-bg-custom]):not(.ubw--bg-primary):not(.ubw--bg-surface):not(.ubw--bg-white):not(.ubw--bg-none):not(.section-surface):not(.section-white):nth-child(even of section:not(.ubw-hidden):not([data-ubw-hidden="1"])) {
    background-color: var(--ubw-bg-even, var(--color-bg-surface));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }
  .has-zebra-sections .component-content section:not(.ubw--bg-custom):not([data-bg-custom]):not(.ubw--bg-primary):not(.ubw--bg-surface):not(.ubw--bg-white):not(.ubw--bg-none):not(.section-surface):not(.section-white):nth-child(odd of section:not(.ubw-hidden):not([data-ubw-hidden="1"])) {
    background-color: var(--ubw-bg-odd, var(--color-bg));
    border-top: none;
    border-bottom: none;
  }
}

/* Sektionen mit eigener Hintergrundfarbe zwingend erhalten - auch wenn andere even/odd sind */
.has-zebra-sections .component-content section.ubw--bg-custom,
.has-zebra-sections .component-content section[data-bg-custom],
.has-zebra-sections section.ubw.ubw--bg-custom,
.has-zebra-sections .ubw.ubw--bg-custom,
.ubw.ubw--bg-custom,
section.ubw[data-bg-custom],
.ubw[data-bg-custom] {
  background-color: var(--ubw-bg-custom) !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* Standard-Inhalt ohne Sektionen: Automatisch im zentrierten Container */
.component-content:not(:has(section)) {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

/* Falls Sektionen im Editor keinen eigenen .site-container haben, Inhalt zentrieren */
.component-content section:not(.ubw) > *:not(.site-container):not(.container):not(.full-bleed):not(.section-full-width) {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Vollbreite-Ausbruch fuer Artikel-Sektionen mit .full-bleed oder .section-full-width */
.has-zebra-sections .component-content section.full-bleed,
.has-zebra-sections .component-content .section-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: calc(50vw - 50% + var(--container-padding));
  padding-right: calc(50vw - 50% + var(--container-padding));
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.has-zebra-sections .component-content section.full-bleed:nth-of-type(even),
.has-zebra-sections .component-content .section-full-width:nth-of-type(even) {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.has-zebra-sections .component-content section.full-bleed:nth-of-type(odd),
.has-zebra-sections .component-content .section-full-width:nth-of-type(odd) {
  background-color: var(--color-bg);
}

/* Manuelle Farbklassen fuer individuelle Sektionen */
.site-section.section-surface,
.component-content section.section-surface {
  background-color: var(--color-bg-surface) !important;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.site-section.section-white,
.component-content section.section-white {
  background-color: var(--color-bg) !important;
  border-top: none;
  border-bottom: none;
}

/* Modul- & Komponenten-Integration: Volle Containerbreite fuer Grids nutzen */
.site-main-content .uckernet-offers-grid.cols-4,
.site-main-content .uckernet-offers-grid.cols-5,
.site-section .uckernet-offers-grid.cols-4,
.site-section .uckernet-offers-grid.cols-5,
.content-top-modules .uckernet-offers-grid.cols-4,
.content-top-modules .uckernet-offers-grid.cols-5,
.content-bottom-modules .uckernet-offers-grid.cols-4,
.content-bottom-modules .uckernet-offers-grid.cols-5,
.uckernet-offers-grid.cols-4,
.uckernet-offers-grid.cols-5 {
  max-width: 100% !important;
}

/* ==========================================================================
   6. Header, Logo & Top-Bar
   ========================================================================== */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-topbar {
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  color: var(--color-text-muted);
}

.site-header {
  position: relative;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: box-shadow var(--transition-speed) var(--transition-ease);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

/* Logo & Markenbereich mit grosszuegigem vertikalem Freiraum */
.site-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.site-logo-link {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-primary);
  padding: 0.25rem 0;
}

.site-logo-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1.1;
}

.site-logo-slogan {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.site-logo-img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: filter 0.25s ease;
}

/* ==========================================================================
   A11y Barrierefreiheit & Kontrastmodi: Logo-Anpassung
   ========================================================================== */

/* 1. Gelb auf Schwarz (yellow-black): Logo in leuchtendem Gelb (#ffff00) */
html[data-a11y-contrast="yellow-black"] .site-logo-img,
html[data-a11y-contrast="yellow-black"] .site-logo-link img,
html[data-a11y-contrast="yellow-black"] .site-brand img,
html[data-a11y-contrast="yellow-black"] [class*="site-logo"] img,
html[data-a11y-contrast="yellow-black"] [class*="brand-logo"] img,
html[data-a11y-contrast="yellow-black"] [class*="footer-logo"] img,
html.swp-a11y-contrast-yellow-black .site-logo-img,
html.swp-a11y-contrast-yellow-black .site-logo-link img,
html.swp-a11y-contrast-yellow-black .site-brand img,
html.swp-a11y-contrast-yellow-black [class*="site-logo"] img,
html.swp-a11y-contrast-yellow-black [class*="brand-logo"] img,
html.swp-a11y-contrast-yellow-black [class*="footer-logo"] img {
  filter: brightness(0) saturate(100%) invert(88%) sepia(87%) saturate(1915%) hue-rotate(359deg) brightness(105%) contrast(106%) !important;
}
html[data-a11y-contrast="yellow-black"] .site-logo-link,
html[data-a11y-contrast="yellow-black"] .site-logo-title,
html[data-a11y-contrast="yellow-black"] .site-logo-slogan,
html[data-a11y-contrast="yellow-black"] .site-logo-link svg,
html[data-a11y-contrast="yellow-black"] .site-logo-link svg *,
html.swp-a11y-contrast-yellow-black .site-logo-link,
html.swp-a11y-contrast-yellow-black .site-logo-title,
html.swp-a11y-contrast-yellow-black .site-logo-slogan,
html.swp-a11y-contrast-yellow-black .site-logo-link svg,
html.swp-a11y-contrast-yellow-black .site-logo-link svg * {
  color: #ffff00 !important;
  fill: #ffff00 !important;
}

/* 2. Schwarz auf Gelb (black-yellow): Logo in sattem Schwarz (#000000) */
html[data-a11y-contrast="black-yellow"] .site-logo-img,
html[data-a11y-contrast="black-yellow"] .site-logo-link img,
html[data-a11y-contrast="black-yellow"] .site-brand img,
html[data-a11y-contrast="black-yellow"] [class*="site-logo"] img,
html[data-a11y-contrast="black-yellow"] [class*="brand-logo"] img,
html[data-a11y-contrast="black-yellow"] [class*="footer-logo"] img,
html.swp-a11y-contrast-black-yellow .site-logo-img,
html.swp-a11y-contrast-black-yellow .site-logo-link img,
html.swp-a11y-contrast-black-yellow .site-brand img,
html.swp-a11y-contrast-black-yellow [class*="site-logo"] img,
html.swp-a11y-contrast-black-yellow [class*="brand-logo"] img,
html.swp-a11y-contrast-black-yellow [class*="footer-logo"] img {
  filter: brightness(0) !important;
}
html[data-a11y-contrast="black-yellow"] .site-logo-link,
html[data-a11y-contrast="black-yellow"] .site-logo-title,
html[data-a11y-contrast="black-yellow"] .site-logo-slogan,
html[data-a11y-contrast="black-yellow"] .site-logo-link svg,
html[data-a11y-contrast="black-yellow"] .site-logo-link svg *,
html.swp-a11y-contrast-black-yellow .site-logo-link,
html.swp-a11y-contrast-black-yellow .site-logo-title,
html.swp-a11y-contrast-black-yellow .site-logo-slogan,
html.swp-a11y-contrast-black-yellow .site-logo-link svg,
html.swp-a11y-contrast-black-yellow .site-logo-link svg * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* 3. Weiß auf Schwarz (white-black) & Dunkelmodus (dark): Logo in reinem Weiß (#ffffff) */
html[data-a11y-contrast="white-black"] .site-logo-img,
html[data-a11y-contrast="white-black"] .site-logo-link img,
html[data-a11y-contrast="white-black"] .site-brand img,
html[data-a11y-contrast="white-black"] [class*="site-logo"] img,
html[data-a11y-contrast="white-black"] [class*="brand-logo"] img,
html[data-a11y-contrast="white-black"] [class*="footer-logo"] img,
html[data-a11y-contrast="dark"] .site-logo-img,
html[data-a11y-contrast="dark"] .site-logo-link img,
html[data-a11y-contrast="dark"] .site-brand img,
html[data-a11y-contrast="dark"] [class*="site-logo"] img,
html[data-a11y-contrast="dark"] [class*="brand-logo"] img,
html[data-a11y-contrast="dark"] [class*="footer-logo"] img,
html.swp-a11y-contrast-white-black .site-logo-img,
html.swp-a11y-contrast-white-black .site-logo-link img,
html.swp-a11y-contrast-white-black .site-brand img,
html.swp-a11y-contrast-white-black [class*="site-logo"] img,
html.swp-a11y-contrast-white-black [class*="brand-logo"] img,
html.swp-a11y-contrast-white-black [class*="footer-logo"] img,
html.swp-a11y-contrast-dark .site-logo-img,
html.swp-a11y-contrast-dark .site-logo-link img,
html.swp-a11y-contrast-dark .site-brand img,
html.swp-a11y-contrast-dark [class*="site-logo"] img,
html.swp-a11y-contrast-dark [class*="brand-logo"] img,
html.swp-a11y-contrast-dark [class*="footer-logo"] img {
  filter: brightness(0) invert(1) !important;
}
html[data-a11y-contrast="white-black"] .site-logo-link,
html[data-a11y-contrast="white-black"] .site-logo-title,
html[data-a11y-contrast="white-black"] .site-logo-slogan,
html[data-a11y-contrast="white-black"] .site-logo-link svg,
html[data-a11y-contrast="white-black"] .site-logo-link svg *,
html[data-a11y-contrast="dark"] .site-logo-link,
html[data-a11y-contrast="dark"] .site-logo-title,
html[data-a11y-contrast="dark"] .site-logo-slogan,
html[data-a11y-contrast="dark"] .site-logo-link svg,
html[data-a11y-contrast="dark"] .site-logo-link svg *,
html.swp-a11y-contrast-white-black .site-logo-link,
html.swp-a11y-contrast-white-black .site-logo-title,
html.swp-a11y-contrast-white-black .site-logo-slogan,
html.swp-a11y-contrast-white-black .site-logo-link svg,
html.swp-a11y-contrast-white-black .site-logo-link svg *,
html.swp-a11y-contrast-dark .site-logo-link,
html.swp-a11y-contrast-dark .site-logo-title,
html.swp-a11y-contrast-dark .site-logo-slogan,
html.swp-a11y-contrast-dark .site-logo-link svg,
html.swp-a11y-contrast-dark .site-logo-link svg * {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* 4. Schwarz auf Weiß (black-white Fallback): Logo tiefschwarz */
html[data-a11y-contrast="black-white"] .site-logo-img,
html[data-a11y-contrast="black-white"] .site-logo-link img,
html[data-a11y-contrast="black-white"] .site-brand img,
html.swp-a11y-contrast-black-white .site-logo-img,
html.swp-a11y-contrast-black-white .site-logo-link img,
html.swp-a11y-contrast-black-white .site-brand img {
  filter: brightness(0) !important;
}
html[data-a11y-contrast="black-white"] .site-logo-link,
html[data-a11y-contrast="black-white"] .site-logo-title,
html[data-a11y-contrast="black-white"] .site-logo-slogan,
html[data-a11y-contrast="black-white"] .site-logo-link svg,
html[data-a11y-contrast="black-white"] .site-logo-link svg *,
html.swp-a11y-contrast-black-white .site-logo-link,
html.swp-a11y-contrast-black-white .site-logo-title,
html.swp-a11y-contrast-black-white .site-logo-slogan,
html.swp-a11y-contrast-black-white .site-logo-link svg,
html.swp-a11y-contrast-black-white .site-logo-link svg * {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Windows High Contrast / forced-colors Modus */
@media (forced-colors: active) {
  .site-logo-img,
  .site-logo-link img {
    forced-color-adjust: none;
    filter: brightness(0) invert(1) !important;
  }
}

/* Header Aktionen / Rechter Bereich */
.site-header-actions,
.site-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 1.25rem;
  flex: 1 1 auto;
}

/* ==========================================================================
   7. Breadcrumbs (Pfadnavigation) & Banner
   ========================================================================== */

.site-breadcrumbs {
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0;
  font-size: 0.875rem;
}

.mod-breadcrumbs {
  display: flex;
  align-items: center;
  width: 100%;
}

.breadcrumb-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
}

/* "Aktuelle Seite:" / "Sie sind hier:" Hinweis */
.breadcrumb-lead,
.site-breadcrumbs .showHere {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-right: 0.25rem;
}

.breadcrumb-lead-icon {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  opacity: 0.85;
}

/* Breadcrumb-Liste (Horizontal, ohne Browser-Listenpunkte/Zahlen) */
.site-breadcrumbs ol,
.mod-breadcrumbs ol,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none !important;
  margin: 0;
  padding: 0;
  gap: 0.25rem 0.4rem;
}

.site-breadcrumbs li,
.mod-breadcrumbs li,
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  list-style: none !important;
  margin: 0;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Separator zwischen den Pfadstufen */
.breadcrumb-item + .breadcrumb-item::before,
.site-breadcrumbs li + li::before {
  content: "›";
  display: inline-block;
  padding-right: 0.45rem;
  color: var(--color-text-muted);
  opacity: 0.55;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
}

/* Falls "showHere" als erstes li gerendert wird (Joomla Core Markup Fallback) */
.breadcrumb-item:has(.showHere) + .breadcrumb-item::before,
li:has(.showHere) + li::before {
  content: "";
  padding: 0;
}

/* Links im Breadcrumb */
.breadcrumb-link,
.breadcrumb-item a,
.site-breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.breadcrumb-link:hover,
.breadcrumb-item a:hover,
.site-breadcrumbs a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Aktiver (letzter) Eintrag */
.breadcrumb-current,
.breadcrumb-item.active,
.breadcrumb-item:last-child,
.site-breadcrumbs li.active {
  color: var(--color-text);
  font-weight: 600;
}

.site-banner {
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   8. Systemnachrichten (Joomla Alerts)
   ========================================================================== */

#system-message-container {
  margin-bottom: 1.5rem;
}

.alert,
#system-message-container .alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border-left: 5px solid;
  font-size: 0.9375rem;
}

.alert-success {
  background-color: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.alert-warning {
  background-color: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-danger,
.alert-error {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.alert-info {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.footer-top-section {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--color-border);
}

.footer-grid-section {
  padding: 3rem 0;
}

.footer-col h3 {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* Vollbreiter & im Template anpassbarer Footer (Pagebuilder-konforme Paddings) */
.site-footer {
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: var(--color-footer-bg, var(--color-bg-surface));
  border-top: var(--footer-border-top-width, 1px) solid var(--color-footer-border, var(--color-border));
  color: var(--color-footer-text, var(--color-text-muted));
  padding-top: var(--footer-pad-top, 2.5rem);
  padding-bottom: var(--footer-pad-bottom, 2.5rem);
}

.site-footer.no-border-top,
.site-footer.footer-empty {
  border-top: 0 !important;
}

.site-footer.footer-empty {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Padding-Klassen oben & unten exakt wie im Pagebuilder (none=0px, s=1.5rem, m=2.5rem, l=4rem) */
.site-footer.footer-pad-top-none { --footer-pad-top: 0px; padding-top: 0px; }
.site-footer.footer-pad-top-s    { --footer-pad-top: 1.5rem; padding-top: 1.5rem; }
.site-footer.footer-pad-top-m    { --footer-pad-top: 2.5rem; padding-top: 2.5rem; }
.site-footer.footer-pad-top-l    { --footer-pad-top: 4rem; padding-top: 4rem; }

.site-footer.footer-pad-bottom-none { --footer-pad-bottom: 0px; padding-bottom: 0px; }
.site-footer.footer-pad-bottom-s    { --footer-pad-bottom: 1.5rem; padding-bottom: 1.5rem; }
.site-footer.footer-pad-bottom-m    { --footer-pad-bottom: 2.5rem; padding-bottom: 2.5rem; }
.site-footer.footer-pad-bottom-l    { --footer-pad-bottom: 4rem; padding-bottom: 4rem; }

/* Horizontales Padding analog zum Pagebuilder (auto, none=0px, s=1rem, m=1.5rem, l=3rem) */
.site-footer.footer-padx-auto { --footer-pad-x: var(--container-padding, 1.5rem); }
.site-footer.footer-padx-none { --footer-pad-x: 0px; }
.site-footer.footer-padx-s    { --footer-pad-x: 1rem; }
.site-footer.footer-padx-m    { --footer-pad-x: 1.5rem; }
.site-footer.footer-padx-l    { --footer-pad-x: 3rem; }

/* Breite des Footer-Inhalts: Volle Breite (Standard) vs. Container-Breite */
.site-footer .footer-container,
.site-footer .site-container {
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--footer-pad-x, var(--container-padding, 1.5rem));
  padding-right: var(--footer-pad-x, var(--container-padding, 1.5rem));
}

.site-footer.footer-width-full .footer-container,
.site-footer.footer-width-full .site-container {
  max-width: 100%;
}

.site-footer.footer-width-container .footer-container,
.site-footer.footer-width-container .site-container {
  max-width: var(--container-max-width);
}

/* SWP Footer-Modul nahtlos an die Content-Breite ausrichten (kein doppeltes Padding) */
#site-footer.footer-width-container .mod-footer .mod-footer__container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#site-footer.footer-width-full .footer-container:has(.mod-footer) {
  padding-left: 0;
  padding-right: 0;
}

/* Textausrichtung im Footer */
.site-footer.footer-align-left   { text-align: left; }
.site-footer.footer-align-center { text-align: center; }
.site-footer.footer-align-right  { text-align: right; }

/* Farben fuer Texte, Ueberschriften und Links im Footer */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.footer-col h3 {
  color: var(--color-footer-heading, var(--color-text));
}

.site-footer a:not(.btn):not(.button):not(.ubw-btn) {
  color: var(--color-footer-link, var(--color-primary));
}

.site-footer a:not(.btn):not(.button):not(.ubw-btn):hover,
.site-footer a:not(.btn):not(.button):not(.ubw-btn):focus-visible {
  color: var(--color-footer-link-hover, var(--color-primary-hover));
}

/* Haupt-Modulbereich (volle Breite) & Unterbereiche */
.site-footer .footer-main-section,
.site-footer .footer-top-section,
.site-footer .footer-grid-section,
.site-footer .footer-bottom-section {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 0;
}

/* Wenn mehrere Footer-Sektionen gleichzeitig aktiv sind: dezenter innerer Abstand & Trennlinie */
.site-footer > * + .footer-top-section,
.site-footer > * + .footer-grid-section,
.site-footer > * + .footer-bottom-section,
.site-footer > * + * {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-footer-border, var(--color-border));
}

.footer-module-item,
.footer-main-section .mod-custom,
.footer-main-section .custom,
.footer-bottom-inner,
.footer-bottom-inner > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-module-item + .footer-module-item {
  margin-top: 1.5rem;
}

.site-footer p:last-child,
.site-footer ul:last-child,
.site-footer ol:last-child {
  margin-bottom: 0;
}

/* Nahtlose Integration von Pagebuilder-Bloecken (.ubw) innerhalb eines Footer-Moduls */
.site-footer .ubw {
  width: 100%;
  max-width: 100%;
}

.site-footer .ubw:last-child {
  margin-bottom: 0 !important;
}

.site-footer.footer-width-full .ubw > .ubw-inner {
  max-width: 100%;
}

.footer-bottom-section {
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}

/* ==========================================================================
   10. Back to top Button
   ========================================================================== */

.back-to-top-btn {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  right: 1rem;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  margin: 0;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff !important;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  transition: opacity var(--transition-speed) var(--transition-ease),
              transform var(--transition-speed) var(--transition-ease),
              background-color var(--transition-speed) var(--transition-ease),
              box-shadow var(--transition-speed) var(--transition-ease);
}

.back-to-top-btn .back-to-top-icon,
svg.back-to-top-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  min-height: 22px;
  max-width: none !important;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  flex-shrink: 0;
}

.back-to-top-btn .back-to-top-icon path,
svg.back-to-top-icon path {
  fill: none !important;
  stroke: currentColor !important;
}

/* A11Y Kontrastmodi für Nach-oben-Button (Pfeil bleibt Linien-SVG ohne Flächenfüllung) */
html:is([data-a11y-contrast="black-yellow"], .swp-a11y-contrast-black-yellow) #back-to-top.back-to-top-btn .back-to-top-icon,
html:is([data-a11y-contrast="black-yellow"], .swp-a11y-contrast-black-yellow) #back-to-top.back-to-top-btn .back-to-top-icon * {
  fill: none !important;
  stroke: #000000 !important;
}
html:is([data-a11y-contrast="black-yellow"], .swp-a11y-contrast-black-yellow) #back-to-top.back-to-top-btn:is(:hover, :focus-visible) .back-to-top-icon,
html:is([data-a11y-contrast="black-yellow"], .swp-a11y-contrast-black-yellow) #back-to-top.back-to-top-btn:is(:hover, :focus-visible) .back-to-top-icon * {
  fill: none !important;
  stroke: #ffff00 !important;
}

html:is([data-a11y-contrast="yellow-black"], .swp-a11y-contrast-yellow-black) #back-to-top.back-to-top-btn .back-to-top-icon,
html:is([data-a11y-contrast="yellow-black"], .swp-a11y-contrast-yellow-black) #back-to-top.back-to-top-btn .back-to-top-icon * {
  fill: none !important;
  stroke: #ffff00 !important;
}
html:is([data-a11y-contrast="yellow-black"], .swp-a11y-contrast-yellow-black) #back-to-top.back-to-top-btn:is(:hover, :focus-visible) .back-to-top-icon,
html:is([data-a11y-contrast="yellow-black"], .swp-a11y-contrast-yellow-black) #back-to-top.back-to-top-btn:is(:hover, :focus-visible) .back-to-top-icon * {
  fill: none !important;
  stroke: #000000 !important;
}

html:is([data-a11y-contrast="white-black"], .swp-a11y-contrast-white-black) #back-to-top.back-to-top-btn .back-to-top-icon,
html:is([data-a11y-contrast="white-black"], .swp-a11y-contrast-white-black) #back-to-top.back-to-top-btn .back-to-top-icon * {
  fill: none !important;
  stroke: #ffffff !important;
}
html:is([data-a11y-contrast="white-black"], .swp-a11y-contrast-white-black) #back-to-top.back-to-top-btn:is(:hover, :focus-visible) .back-to-top-icon,
html:is([data-a11y-contrast="white-black"], .swp-a11y-contrast-white-black) #back-to-top.back-to-top-btn:is(:hover, :focus-visible) .back-to-top-icon * {
  fill: none !important;
  stroke: #000000 !important;
}

html:is([data-a11y-contrast="dark"], .swp-a11y-contrast-dark) #back-to-top.back-to-top-btn .back-to-top-icon,
html:is([data-a11y-contrast="dark"], .swp-a11y-contrast-dark) #back-to-top.back-to-top-btn .back-to-top-icon * {
  fill: none !important;
  stroke: #ffffff !important;
}

.back-to-top-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.back-to-top-btn[hidden] {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(10px);
}

/* ==========================================================================
   Responsive Anpassungen fuer Header, Footer & Sektionen
   ========================================================================== */

@media (max-width: 991.98px) {
  .header-inner {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
  }

  .site-brand {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
  }

  .site-section {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }
}

/* Schutz vor Ueberdeckung durch fixierte Eck-Buttons (#swp-a11y-trigger & .back-to-top-btn, WCAG 2.4.11):
   1) Eck-Buttons kompakt an den Rand setzen (48x48px, 1rem Abstand)
   2) Auf schmaleren Desktop-Viewports (992px-1440px, z. B. 1091x1077) seitlichen Schutzabstand
      fuer Haupt- & Footer-Container sicherstellen, damit weder kurze Seiten (z. B. /kwn/impressum)
      noch Footer-Inhalte seitlich ueberdeckt werden
   3) Zusaetzlicher unterer Schutzabstand im Footer bis 1440px, damit Copyright & rechtliche Links
      auch vertikal klar ueber beiden fixierten Buttons liegen */
.swp-a11y-root.pos-bottom-left #swp-a11y-trigger,
.swp-a11y-root[data-position="bottom-left"] #swp-a11y-trigger {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 1rem;
}

.swp-a11y-root.pos-bottom-right #swp-a11y-trigger,
.swp-a11y-root[data-position="bottom-right"] #swp-a11y-trigger {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  right: 1rem;
}

.swp-a11y-root.style-icon_only #swp-a11y-trigger,
#swp-a11y-trigger.btn-style-icon_only {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

@media (min-width: 992px) and (max-width: 1440px) {
  :root {
    --floating-safe-gutter: clamp(1.5rem, calc(4.75rem - max(0px, (100vw - var(--container-max-width, 1280px)) / 2)), 4.75rem);
  }

  .site-main-content .site-container,
  .site-main-content .component-content:not(:has(section)),
  .site-main-content .component-content section:not(.ubw) > *:not(.site-container):not(.container):not(.full-bleed):not(.section-full-width),
  .site-main-content .ubw > .ubw-inner,
  #site-footer .footer-container:not(:has(.mod-footer)),
  #site-footer .site-container {
    padding-left: max(var(--container-padding, 1.5rem), var(--floating-safe-gutter));
    padding-right: max(var(--container-padding, 1.5rem), var(--floating-safe-gutter));
  }
}

@media (max-width: 1440px) {
  #site-footer .mod-footer__bottom {
    padding-bottom: calc(1.35rem + 4.5rem + env(safe-area-inset-bottom, 0px));
  }

  #site-footer.site-footer:not(.footer-empty):not(:has(.mod-footer__bottom)) {
    padding-bottom: calc(max(var(--footer-pad-bottom, 2.5rem), 1.5rem) + 4.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* Transparenter Footer mit Pagebuilder-Block (.ubw): Abstand in den letzten Block legen,
     damit dessen Hintergrund nahtlos bis zum unteren Rand reicht */
  #site-footer.site-footer.footer-bg-none:not(.footer-empty):has(.ubw):not(:has(.mod-footer__bottom)) {
    padding-bottom: 0;
  }

  #site-footer.site-footer.footer-bg-none:not(.footer-empty):not(:has(.mod-footer__bottom)) .ubw:last-of-type {
    padding-bottom: calc(var(--ubw-pad-y, 2.5rem) + 4.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Handy-Ansicht (<= 767.98px):
   - Footer-Navigation & -Inhalte sauber zentrieren
   - Genuegend unteren Abstand vorhalten, damit die fixierten "Nach oben"-
     und Barrierefreiheits-Buttons die Footer-Navigation nicht ueberlagern */
@media (max-width: 767.98px) {
  #site-footer .mod-footer__bottom {
    padding-bottom: calc(1.35rem + 5.25rem + env(safe-area-inset-bottom, 0px));
  }

  #site-footer.site-footer:not(.footer-empty):not(:has(.mod-footer__bottom)) {
    padding-bottom: calc(max(var(--footer-pad-bottom, 2.5rem), 1.5rem) + 5.5rem + env(safe-area-inset-bottom, 0px));
  }

  #site-footer.site-footer.footer-bg-none:not(.footer-empty):has(.ubw):not(:has(.mod-footer__bottom)) {
    padding-bottom: 0;
  }

  #site-footer.site-footer.footer-bg-none:not(.footer-empty):not(:has(.mod-footer__bottom)) .ubw:last-of-type {
    padding-bottom: calc(var(--ubw-pad-y, 2.5rem) + 5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  #site-footer.site-footer,
  #site-footer.site-footer.footer-align-left,
  #site-footer.site-footer.footer-align-right,
  #site-footer.site-footer .footer-container,
  #site-footer.site-footer .site-container,
  #site-footer.site-footer .footer-col,
  #site-footer.site-footer .footer-bottom-inner,
  #site-footer.site-footer nav {
    text-align: center !important;
  }

  #site-footer.site-footer .footer-bottom-inner,
  #site-footer.site-footer .footer-module-item,
  #site-footer.site-footer .footer-module-item > *,
  #site-footer.site-footer .footer-bottom-inner > *,
  #site-footer.site-footer .mod-custom,
  #site-footer.site-footer .custom,
  #site-footer.site-footer .footer-col,
  #site-footer.site-footer nav {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    align-self: center !important;
    justify-self: center !important;
  }

  #site-footer.site-footer nav {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #site-footer.site-footer .footer-bottom-inner,
  #site-footer.site-footer .flex,
  #site-footer.site-footer [style*="display:flex"],
  #site-footer.site-footer [style*="display: flex"],
  #site-footer.site-footer [style*="display:grid"],
  #site-footer.site-footer [style*="display: grid"],
  #site-footer.site-footer div:has(> nav),
  #site-footer.site-footer div:has(> ul.mod-menu),
  #site-footer.site-footer div:has(> ul.nav-menu-list),
  #site-footer.site-footer div:has(> ul.menu),
  #site-footer.site-footer div:has(> ul.nav) {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 0.75rem !important;
  }

  #site-footer.site-footer ul.mod-menu,
  #site-footer.site-footer ul.nav-menu-list,
  #site-footer.site-footer ul.menu,
  #site-footer.site-footer ul.nav,
  #site-footer.site-footer nav ul,
  #site-footer.site-footer .footer-module-item ul,
  #site-footer.site-footer .footer-bottom-inner ul,
  #site-footer.site-footer .footer-col ul {
    width: 100% !important;
    max-width: 100% !important;
    list-style: none !important;
    list-style-type: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
    align-self: center !important;
    justify-self: center !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.15rem !important;
  }

  #site-footer.site-footer ul.mod-menu li,
  #site-footer.site-footer ul.nav-menu-list li,
  #site-footer.site-footer ul.menu li,
  #site-footer.site-footer ul.nav li,
  #site-footer.site-footer nav ul li,
  #site-footer.site-footer .footer-module-item ul li,
  #site-footer.site-footer .footer-bottom-inner ul li,
  #site-footer.site-footer .footer-col ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Alle Trennpunkte (::marker, ::before / ::after, Trenner-Elemente) im mobilen Footer ausblenden */
  #site-footer.site-footer ul li::marker {
    content: none !important;
    display: none !important;
  }

  #site-footer.site-footer :is(ul.mod-menu, ul.nav-menu-list, ul.menu, ul.nav, nav ul, .footer-module-item ul, .footer-bottom-inner ul, .footer-col ul) li::before,
  #site-footer.site-footer :is(ul.mod-menu, ul.nav-menu-list, ul.menu, ul.nav, nav ul, .footer-module-item ul, .footer-bottom-inner ul, .footer-col ul) li::after,
  #site-footer.site-footer :is(ul.mod-menu, ul.nav-menu-list, ul.menu, ul.nav, nav ul, .footer-module-item ul, .footer-bottom-inner ul, .footer-col ul) li > a::before,
  #site-footer.site-footer :is(ul.mod-menu, ul.nav-menu-list, ul.menu, ul.nav, nav ul, .footer-module-item ul, .footer-bottom-inner ul, .footer-col ul) li > a::after,
  #site-footer.site-footer .nav-item-inner::before,
  #site-footer.site-footer .nav-item-inner::after,
  #site-footer.site-footer nav > a::before,
  #site-footer.site-footer nav > a::after {
    content: none !important;
    display: none !important;
  }

  #site-footer.site-footer :is(nav, .footer-bottom-inner, .footer-module-item, ul) :is(.sep, .separator, .nav-separator, .footer-sep, .footer-divider, .divider, [role="separator"]),
  #site-footer.site-footer :is(nav, .footer-bottom-inner) > span[aria-hidden="true"],
  #site-footer.site-footer ul li:has(> .nav-item-inner > .nav-separator),
  #site-footer.site-footer ul li:has(> .nav-separator),
  #site-footer.site-footer ul li:has(> [role="separator"]),
  #site-footer.site-footer :is(nav, .footer-bottom-inner, div:has(> a + span + a)) > a + span:not(:has(a)) {
    display: none !important;
  }

  /* Falls Footer-Links direkt in <nav> oder <div> (ohne <ul>) liegen: ebenfalls zentriert untereinander */
  #site-footer.site-footer nav:not(:has(ul)),
  #site-footer.site-footer .footer-bottom-inner:has(> a),
  #site-footer.site-footer div:has(> a + a),
  #site-footer.site-footer div:has(> a + span + a) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.15rem !important;
  }

  #site-footer.site-footer .nav-item-inner {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0.25rem;
  }

  #site-footer.site-footer .nav-item-inner > a,
  #site-footer.site-footer .nav-item-inner > .nav-header,
  #site-footer.site-footer ul.mod-menu a,
  #site-footer.site-footer ul.nav-menu-list a,
  #site-footer.site-footer ul.menu a,
  #site-footer.site-footer ul.nav a,
  #site-footer.site-footer nav ul a,
  #site-footer.site-footer nav > a,
  #site-footer.site-footer .footer-module-item ul a,
  #site-footer.site-footer .footer-bottom-inner > a,
  #site-footer.site-footer div:has(> a + a) > a,
  #site-footer.site-footer div:has(> a + span + a) > a {
    flex: 0 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0.35rem 0.5rem !important;
    min-height: 40px;
  }

  #site-footer.site-footer .ubw-buttons {
    justify-content: center;
  }

  /* Kompakterer Nach-oben-Button auf Smartphones (WCAG-Zielgroesse 44x44px bleibt erhalten) */
  .back-to-top-btn {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* >>> UCKERNET PAGEBUILDER START - automatisch erzeugt aus Plugin ubw-content.css, nicht hier bearbeiten! */
/* File: ubw-content.css  (identisch: templates/flxglbl/css/pagebuilder.css) */

/**
 * UckerNet Pagebuilder v2 - Darstellung der Layout-Blöcke
 * Wird im Frontend (über template.css) UND in der TinyMCE-Vorschau geladen.
 * WCAG 2.1 / 2.2 AA & BbgBITV - Mobile First
 *
 * @author Sven Blessin (FORMAT Werbeagentur)
 */

/* ==========================================================================
   Autonome Basis-Variablen & Resets (Template-Unabhängigkeit)
   Gewährleistet volle Funktion in Cassiopeia, YOOtheme, Astroid oder Custom-Templates.
   ========================================================================== */

:root {
  --container-max-width: 1280px;
  --container-padding: 1.25rem;
  --color-primary: #002b66;
  --color-secondary: #1565c0;
  --color-accent: #00a3e0;
  --color-bg: #ffffff;
  --color-bg-surface: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;
  --color-focus-ring: #004085;
}

/* Verhindert horizontales Überlaufen bei Full-Width (100vw) in beliebigen Dritt-Templates */
:where(html, body) {
  overflow-x: clip;
}

/* Pagebuilder interne Steuerelemente im Frontend immer ausblenden */
.ub-widget-bar,
.ube-launcher,
[data-ubw-ignore],
.ubw-hidden,
[data-ubw-hidden="1"] {
  display: none !important;
}

/* ==========================================================================
   1. Abschnitt
   ========================================================================== */

.ubw {
  --ubw-primary: var(--color-primary, #002b66);
  --ubw-secondary: var(--color-secondary, #1565c0);
  --ubw-text: var(--color-text, #1e293b);
  --ubw-muted: var(--color-text-muted, #475569);
  --ubw-surface: var(--color-bg-surface, #f8fafc);
  --ubw-border: var(--color-border, #cbd5e1);
  --ubw-focus: var(--color-focus-ring, #004085);
  --ubw-radius: 12px;
  --ubw-img-radius: 6px;
  --ubw-gap: 2rem;
  --ubw-pad-y: 2.5rem;
  --ubw-pad-x: var(--container-padding, 1.25rem);

  position: relative;
  box-sizing: border-box;
  color: var(--ubw-text);
  margin: 0 0 2rem;
  padding-top: var(--ubw-pad-y) !important;
  padding-bottom: var(--ubw-pad-y) !important;
  padding-left: var(--ubw-pad-x) !important;
  padding-right: var(--ubw-pad-x) !important;
}

.ubw *,
.ubw *::before,
.ubw *::after {
  box-sizing: border-box;
}

/* Innenabstand oben/unten */
.ubw.ubw--pad-none {
  --ubw-pad-y: 0px;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.ubw.ubw--pad-s {
  --ubw-pad-y: 1.5rem;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.ubw.ubw--pad-m {
  --ubw-pad-y: 2.5rem;
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

.ubw.ubw--pad-l {
  --ubw-pad-y: 4rem;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* Innenabstand links/rechts */
.ubw.ubw--padx-none {
  --ubw-pad-x: 0px;
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.ubw.ubw--padx-s {
  --ubw-pad-x: 1rem;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.ubw.ubw--padx-m {
  --ubw-pad-x: 1.5rem;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.ubw.ubw--padx-l {
  --ubw-pad-x: 3rem;
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

/* Außenabstand nach unten (zum nächsten Block) */
.ubw.ubw--mb-none { margin-bottom: 0px !important; }
.ubw.ubw--mb-s    { margin-bottom: 1rem !important; }
.ubw.ubw--mb-m    { margin-bottom: 2rem !important; }
.ubw.ubw--mb-l    { margin-bottom: 3.5rem !important; }

/* Letzte Section: Kein Außenabstand nach unten (nahtloser Übergang zum Footer oder Folge-Bereich) */
.ubw:last-child,
.ubw:last-of-type,
section.ubw:last-child,
section.ubw:last-of-type,
.ubw[class*="ubw--mb-"]:last-child,
.ubw[class*="ubw--mb-"]:last-of-type,
section.ubw[class*="ubw--mb-"]:last-child,
section.ubw[class*="ubw--mb-"]:last-of-type {
  margin-bottom: 0 !important;
}

/* Hintergründe */
.ubw--bg-white,
.ubw--bg-surface,
.ubw--bg-primary,
.ubw--bg-auto {
  --ubw-pad-x: 1.5rem;
  border-radius: var(--ubw-radius);
}

.ubw.ubw--bg-none   { background-color: transparent !important; border-top: none !important; border-bottom: none !important; }
.ubw.ubw--bg-white   { background-color: #ffffff !important; border-top: none !important; border-bottom: none !important; }
.ubw.ubw--bg-surface { background-color: var(--ubw-surface) !important; border: 1px solid var(--ubw-border); }
.ubw.ubw--bg-auto    { background-color: var(--ubw-bg-odd, var(--color-bg, #ffffff)) !important; }
.ubw.ubw--bg-auto:nth-of-type(even) { background-color: var(--ubw-bg-even, var(--ubw-surface, #f8fafc)) !important; }
.ubw.ubw--bg-auto.ubw--is-even,
.ubw.ubw--bg-auto[data-ubw-zebra="even"] { background-color: var(--ubw-bg-even, var(--ubw-surface, #f8fafc)) !important; }
.ubw.ubw--bg-auto.ubw--is-odd,
.ubw.ubw--bg-auto[data-ubw-zebra="odd"]  { background-color: var(--ubw-bg-odd, var(--color-bg, #ffffff)) !important; }
@supports selector(:nth-child(1 of :root)) {
  .ubw.ubw--bg-auto:nth-child(even of section:not(.ubw-hidden):not([data-ubw-hidden="1"])) {
    background-color: var(--ubw-bg-even, var(--ubw-surface, #f8fafc)) !important;
  }
  .ubw.ubw--bg-auto:nth-child(odd of section:not(.ubw-hidden):not([data-ubw-hidden="1"])) {
    background-color: var(--ubw-bg-odd, var(--color-bg, #ffffff)) !important;
  }
}
.ubw.ubw--bg-custom  { background-color: var(--ubw-bg-custom, transparent) !important; }

.ubw.ubw--bg-primary {
  background-color: var(--ubw-primary) !important;
  color: #ffffff;
}

/* Hintergrundbild auf Abschnittsebene */
.ubw:not(.ubw--full) {
  max-width: var(--container-max-width, 1280px);
  margin-left: auto;
  margin-right: auto;
}

.ubw.ubw--has-bg-img {
  --ubw-pad-x: 1.5rem;
  border-radius: var(--ubw-radius);
  overflow: hidden;
}

.ubw.ubw--has-bg-img.ubw--full {
  border-radius: 0 !important;
  --ubw-pad-x: var(--container-padding, 1.25rem);
}

.ubw > .ubw-bg {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.ubw > .ubw-bg > .ubw-bg-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  margin: 0 !important;
  padding: 0 !important;
}

.ubw--bgsize-contain > .ubw-bg > .ubw-bg-img { object-fit: contain; }
.ubw--bgpos-top > .ubw-bg > .ubw-bg-img     { object-position: center top; }
.ubw--bgpos-bottom > .ubw-bg > .ubw-bg-img  { object-position: center bottom; }
.ubw--bgpos-left > .ubw-bg > .ubw-bg-img    { object-position: left center; }
.ubw--bgpos-right > .ubw-bg > .ubw-bg-img   { object-position: right center; }

/* Parallax-Effekt 1: Sanftes Scroll-Parallax (via CSS-Variable --ubw-parallax-y) */
.ubw.ubw--bg-parallax > .ubw-bg > .ubw-bg-img {
  height: 132% !important;
  top: -16% !important;
  position: relative;
  will-change: transform;
  transform: translate3d(0, var(--ubw-parallax-y, 0px), 0);
}

/* Parallax-Effekt 2: Klassisches fixiertes Hintergrundbild (background-attachment: fixed) */
.ubw.ubw--bg-fixed > .ubw-bg {
  background-image: var(--ubw-bg-url);
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.ubw.ubw--bg-fixed.ubw--bgsize-contain > .ubw-bg { background-size: contain; }
.ubw.ubw--bg-fixed.ubw--bgpos-top > .ubw-bg      { background-position: center top; }
.ubw.ubw--bg-fixed.ubw--bgpos-bottom > .ubw-bg   { background-position: center bottom; }
.ubw.ubw--bg-fixed.ubw--bgpos-left > .ubw-bg     { background-position: left center; }
.ubw.ubw--bg-fixed.ubw--bgpos-right > .ubw-bg    { background-position: right center; }

.ubw.ubw--bg-fixed > .ubw-bg > .ubw-bg-img {
  opacity: 0;
}

/* iOS / Touch-Geräte unterstützen background-attachment: fixed oft fehlerhaft -> Fallback auf sanftes Parallax */
@media (hover: none), (max-width: 991.98px) {
  .ubw.ubw--bg-fixed > .ubw-bg {
    background-image: none !important;
    background-attachment: scroll !important;
  }
  .ubw.ubw--bg-fixed > .ubw-bg > .ubw-bg-img {
    opacity: 1;
    height: 126% !important;
    top: -13% !important;
    position: relative;
    transform: translate3d(0, var(--ubw-parallax-y, 0px), 0);
  }
}

/* Barrierefreiheit (WCAG 2.3.3): Bewegung reduzieren respektieren */
@media (prefers-reduced-motion: reduce) {
  .ubw.ubw--bg-parallax > .ubw-bg > .ubw-bg-img,
  .ubw.ubw--bg-fixed > .ubw-bg > .ubw-bg-img {
    height: 100% !important;
    top: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .ubw.ubw--bg-fixed > .ubw-bg {
    background-image: none !important;
    background-attachment: scroll !important;
  }
}

.ubw > .ubw-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.ubw--ov-none > .ubw-bg::after       { background: transparent; }
.ubw--ov-dark-40 > .ubw-bg::after    { background: rgba(15, 23, 42, 0.42); }
.ubw--ov-dark-60 > .ubw-bg::after    { background: rgba(15, 23, 42, 0.62); }
.ubw--ov-dark-75 > .ubw-bg::after    { background: rgba(15, 23, 42, 0.76); }
.ubw--ov-primary-70 > .ubw-bg::after { background: rgba(0, 43, 102, 0.72); }
.ubw--ov-primary-85 > .ubw-bg::after { background: rgba(0, 43, 102, 0.86); }
.ubw--ov-light-78 > .ubw-bg::after   { background: rgba(255, 255, 255, 0.78); }
.ubw--ov-light-90 > .ubw-bg::after   { background: rgba(255, 255, 255, 0.90); }

.ubw.ubw--bg-dark:not(.ubw--bg-auto):not(.ubw--bg-white):not(.ubw--bg-surface):not(.ubw--bg-none),
.ubw.ubw--bg-dark.ubw--has-bg-img {
  color: #ffffff;
}

/* Schutz vor fälschlich geerbter weißer Schrift auf hellen Standard-/Even-Odd-Abschnitten ohne Hintergrundbild */
.ubw.ubw--bg-auto:not(.ubw--has-bg-img),
.ubw.ubw--bg-white:not(.ubw--has-bg-img),
.ubw.ubw--bg-surface:not(.ubw--has-bg-img),
.ubw.ubw--bg-none:not(.ubw--has-bg-img) {
  color: var(--ubw-text);
}

/* Volle Bildschirmbreite (Hintergrund) - Inhalt bleibt im Container */
.ubw.ubw--full {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  --ubw-pad-x: var(--container-padding, 1.25rem);
}

/* Verhindert doppeltes Links/Rechts-Padding durch Template section > *-Regeln */
.ubw > .ubw-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max-width, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ==========================================================================
   2. 12-Spalten-Raster (Mobile First)
   ========================================================================== */

.ubw-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--ubw-gap);
}

.ubw-grid--gap-s { --ubw-gap: 1rem; }
.ubw-grid--gap-m { --ubw-gap: 2rem; }
.ubw-grid--gap-l { --ubw-gap: 3.5rem; }

/* Mehrere Spalten-Zeilen (.ubw-grid) innerhalb desselben Abschnitts (.ubw-container) */
.ubw-container > .ubw-grid + .ubw-grid {
  margin-top: var(--ubw-gap, 2rem);
}

.ubw-grid--valign-start   { align-items: start; }
.ubw-grid--valign-center  { align-items: center; }
.ubw-grid--valign-end     { align-items: end; }
.ubw-grid--valign-stretch { align-items: stretch; }

.ubw-col {
  grid-column: span 12;
  min-width: 0;
}

/* Tablet (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .ubw-grid--cols-2 .ubw-col.ubw-span-2  { grid-column: span 2; }
  .ubw-grid--cols-2 .ubw-col.ubw-span-3  { grid-column: span 3; }
  .ubw-grid--cols-2 .ubw-col.ubw-span-4  { grid-column: span 4; }
  .ubw-grid--cols-2 .ubw-col.ubw-span-5  { grid-column: span 5; }
  .ubw-grid--cols-2 .ubw-col.ubw-span-6  { grid-column: span 6; }
  .ubw-grid--cols-2 .ubw-col.ubw-span-7  { grid-column: span 7; }
  .ubw-grid--cols-2 .ubw-col.ubw-span-8  { grid-column: span 8; }
  .ubw-grid--cols-2 .ubw-col.ubw-span-9  { grid-column: span 9; }
  .ubw-grid--cols-2 .ubw-col.ubw-span-10 { grid-column: span 10; }

  .ubw-grid--equal.ubw-grid--cols-3 .ubw-col,
  .ubw-grid--equal.ubw-grid--cols-4 .ubw-col {
    grid-column: span 6;
  }

  /* 5 Spalten auf Tablet: 2 + 2 + 1 zentriert */
  .ubw-grid--equal.ubw-grid--cols-5 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    --ubw-gap: 1.25rem;
  }
  .ubw-grid--equal.ubw-grid--cols-5 > .ubw-col {
    grid-column: span 6 !important;
  }
  .ubw-grid--equal.ubw-grid--cols-5 > .ubw-col:nth-child(5):last-child {
    grid-column: 4 / span 6 !important;
  }

  .ubw-grid--equal.ubw-grid--cols-6 .ubw-col {
    grid-column: span 4;
  }
}

/* Mittlerer Desktop / Tablet-Querformat (992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* 5 Spalten: Harmonisches 3 + 2 Layout statt Quetschen auf kleinen Desktops */
  .ubw-grid--equal.ubw-grid--cols-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    --ubw-gap: 1.25rem;
  }
  .ubw-grid--equal.ubw-grid--cols-5 > .ubw-col {
    grid-column: span 2 !important;
  }
  .ubw-grid--equal.ubw-grid--cols-5 > .ubw-col:nth-child(4),
  .ubw-grid--equal.ubw-grid--cols-5 > .ubw-col:nth-child(5) {
    grid-column: span 3 !important;
  }

  /* 6 Spalten: 3 + 3 */
  .ubw-grid--equal.ubw-grid--cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    --ubw-gap: 1.25rem;
  }
  .ubw-grid--equal.ubw-grid--cols-6 > .ubw-col {
    grid-column: span 2 !important;
  }
}

/* Desktop: echte Spaltenbreiten */
@media (min-width: 992px) {
  .ubw-grid .ubw-col.ubw-span-1  { grid-column: span 1; }
  .ubw-grid .ubw-col.ubw-span-2  { grid-column: span 2; }
  .ubw-grid .ubw-col.ubw-span-3  { grid-column: span 3; }
  .ubw-grid .ubw-col.ubw-span-4  { grid-column: span 4; }
  .ubw-grid .ubw-col.ubw-span-5  { grid-column: span 5; }
  .ubw-grid .ubw-col.ubw-span-6  { grid-column: span 6; }
  .ubw-grid .ubw-col.ubw-span-7  { grid-column: span 7; }
  .ubw-grid .ubw-col.ubw-span-8  { grid-column: span 8; }
  .ubw-grid .ubw-col.ubw-span-9  { grid-column: span 9; }
  .ubw-grid .ubw-col.ubw-span-10 { grid-column: span 10; }
  .ubw-grid .ubw-col.ubw-span-11 { grid-column: span 11; }
  .ubw-grid .ubw-col.ubw-span-12 { grid-column: span 12; }
}

/* Groesserer Desktop (>= 1200px): Echte 5 und 6 Spalten nebeneinander */
@media (min-width: 1200px) {
  .ubw-grid--equal.ubw-grid--cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    --ubw-gap: 1.25rem;
  }
  .ubw-grid--equal.ubw-grid--cols-5 > .ubw-col {
    grid-column: span 1 !important;
  }
  .ubw-grid--equal.ubw-grid--cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    --ubw-gap: 1.25rem;
  }
  .ubw-grid--equal.ubw-grid--cols-6 > .ubw-col {
    grid-column: span 1 !important;
  }
}

/* Spezifische Optimierungen fuer 5- und 6-Spalten-Raster */
.ubw-grid--cols-5,
.ubw-grid--cols-6 {
  --ubw-gap: 1.25rem;
}

.ubw-grid--cols-5 .ubw-heading,
.ubw-grid--cols-6 .ubw-heading,
.ubw-grid--cols-5 h2.ubw-heading,
.ubw-grid--cols-5 h3.ubw-heading,
.ubw-grid--cols-6 h2.ubw-heading,
.ubw-grid--cols-6 h3.ubw-heading {
  font-size: clamp(1.05rem, 1.25vw, 1.3rem) !important;
  line-height: 1.25;
}

.ubw-grid--cols-5 .ubw-col--bg-white,
.ubw-grid--cols-5 .ubw-col--bg-surface,
.ubw-grid--cols-5 .ubw-col--bg-primary,
.ubw-grid--cols-6 .ubw-col--bg-white,
.ubw-grid--cols-6 .ubw-col--bg-surface,
.ubw-grid--cols-6 .ubw-col--bg-primary {
  --ubw-col-pad: 1.25rem;
}

/* Einheitliche Kartenhoehe (Equal Heights) bei Spalten mit Hintergrund */
.ubw-grid--equal > .ubw-col,
.ubw-grid > .ubw-col[class*="ubw-col--bg-"] {
  align-self: stretch !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ubw-grid--equal > .ubw-col > .ubw-buttons:last-child,
.ubw-grid > .ubw-col[class*="ubw-col--bg-"] > .ubw-buttons:last-child {
  margin-top: auto;
}

/* Silbentrennung & Wortumbruch gegen Ueberlaufen langer deutscher Woerter */
.ubw-heading,
.ubw-text,
.ubw-card,
.ubw-col {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Abstände der Elemente innerhalb einer Spalte */
.ubw-col {
  --ubw-stack: 1.25rem;
}

.ubw-col--stack-none { --ubw-stack: 0px; }
.ubw-col--stack-xs   { --ubw-stack: 0.5rem; }
.ubw-col--stack-s    { --ubw-stack: 0.75rem; }
.ubw-col--stack-m    { --ubw-stack: 1.25rem; }
.ubw-col--stack-l    { --ubw-stack: 2rem; }
.ubw-col--stack-xl   { --ubw-stack: 3rem; }

.ubw-col > * {
  margin-top: 0;
  margin-bottom: 0;
}

.ubw-col > * + * {
  margin-top: var(--ubw-stack);
}

/* Individueller Abstand nach einem bestimmten Element zum nächsten Element darunter */
.ubw-col > .ubw-el-mb--none + * { margin-top: 0px !important; }
.ubw-col > .ubw-el-mb--xs + *   { margin-top: 0.35rem !important; }
.ubw-col > .ubw-el-mb--s + *    { margin-top: 0.75rem !important; }
.ubw-col > .ubw-el-mb--m + *    { margin-top: 1.25rem !important; }
.ubw-col > .ubw-el-mb--l + *    { margin-top: 2rem !important; }
.ubw-col > .ubw-el-mb--xl + *   { margin-top: 3rem !important; }

/* Automatisch gleiche Höhe für Spalten & Karten/Boxen (Equal Height) */
.ubw-grid:has(.ubw-card),
.ubw-grid:has(.ubw-figure--fill-height),
.ubw-grid--has-cards,
.ubw-grid--has-fill-media,
.ubw-grid--valign-stretch {
  align-items: stretch !important;
}

.ubw-grid:has(.ubw-card) > .ubw-col,
.ubw-grid:has(.ubw-figure--fill-height) > .ubw-col,
.ubw-grid--has-cards > .ubw-col,
.ubw-grid--has-fill-media > .ubw-col,
.ubw-grid--valign-stretch .ubw-col,
.ubw-col:has(> .ubw-card),
.ubw-col:has(.ubw-card),
.ubw-col:has(> .ubw-figure--fill-height),
.ubw-col:has(.ubw-figure--fill-height) {
  display: flex !important;
  flex-direction: column !important;
}

.ubw-col > .ubw-card {
  flex: 1 1 auto !important;
  height: 100% !important;
}

/* Ausrichtung */
.ubw-align-left   { text-align: left; }
.ubw-align-center { text-align: center; }
.ubw-align-right  { text-align: right; }

.ubw-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   3. Überschrift & Text
   ========================================================================== */

.ubw-heading {
  color: var(--ubw-primary);
  font-weight: 800;
  line-height: 1.2;
}

h1.ubw-heading { font-size: 2.25rem; }
h2.ubw-heading { font-size: 1.75rem; }
h3.ubw-heading { font-size: 1.35rem; }
h4.ubw-heading { font-size: 1.15rem; }
h5.ubw-heading { font-size: 1.00rem; }
h6.ubw-heading { font-size: 0.875rem; }

.ubw-heading--h1 { font-size: 2.25rem !important; }
.ubw-heading--h2 { font-size: 1.75rem !important; }
.ubw-heading--h3 { font-size: 1.35rem !important; }
.ubw-heading--h4 { font-size: 1.15rem !important; }
.ubw-heading--h5 { font-size: 1.00rem !important; }
.ubw-heading--h6 { font-size: 0.875rem !important; }

.ubw-heading--display {
  font-size: clamp(2.1rem, 4vw, 3.25rem) !important;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.ubw-col > .ubw-heading + .ubw-text--lead {
  margin-top: 0.5rem;
}

.ubw-text {
  font-size: 1.05rem;
  line-height: 1.65;
}

.ubw-text p,
.ubw-text ul,
.ubw-text ol {
  margin: 0 0 1em;
}

.ubw-text > :last-child {
  margin-bottom: 0;
}

.ubw-text ul,
.ubw-text ol {
  padding-left: 1.4rem;
}

.ubw-text a {
  color: var(--ubw-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ubw-text--lead {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ubw-primary);
}

.ubw-text--kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ubw-primary);
}

.ubw-col > .ubw-text--kicker + * {
  margin-top: 0.5rem;
}

.ubw-text--small {
  font-size: 0.9rem;
  color: var(--ubw-muted);
}

/* Dunkler Abschnitt (Primärfarbe oder dunkles Hintergrundbild-Overlay) */
.ubw--bg-primary > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-heading,
.ubw--bg-primary > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text:not(.ubw-text--box-white):not(.ubw-text--box-surface),
.ubw--bg-primary > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text:not(.ubw-text--box-white):not(.ubw-text--box-surface) a,
.ubw--bg-primary > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text-wrap:not(.ubw-text--box-white):not(.ubw-text--box-surface) > .ubw-heading,
.ubw--bg-primary > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text-wrap:not(.ubw-text--box-white):not(.ubw-text--box-surface) > .ubw-text,
.ubw--bg-primary > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text-wrap:not(.ubw-text--box-white):not(.ubw-text--box-surface) > .ubw-text a,
.ubw--bg-dark:not(.ubw--bg-auto):not(.ubw--bg-white):not(.ubw--bg-surface):not(.ubw--bg-none) > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-heading,
.ubw--bg-dark:not(.ubw--bg-auto):not(.ubw--bg-white):not(.ubw--bg-surface):not(.ubw--bg-none) > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text:not(.ubw-text--box-white):not(.ubw-text--box-surface),
.ubw--bg-dark:not(.ubw--bg-auto):not(.ubw--bg-white):not(.ubw--bg-surface):not(.ubw--bg-none) > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text:not(.ubw-text--box-white):not(.ubw-text--box-surface) a,
.ubw--bg-dark:not(.ubw--bg-auto):not(.ubw--bg-white):not(.ubw--bg-surface):not(.ubw--bg-none) > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text-wrap:not(.ubw-text--box-white):not(.ubw-text--box-surface) > .ubw-heading,
.ubw--bg-dark:not(.ubw--bg-auto):not(.ubw--bg-white):not(.ubw--bg-surface):not(.ubw--bg-none) > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text-wrap:not(.ubw-text--box-white):not(.ubw-text--box-surface) > .ubw-text,
.ubw--bg-dark:not(.ubw--bg-auto):not(.ubw--bg-white):not(.ubw--bg-surface):not(.ubw--bg-none) > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text-wrap:not(.ubw-text--box-white):not(.ubw-text--box-surface) > .ubw-text a,
.ubw--bg-dark.ubw--has-bg-img > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-heading,
.ubw--bg-dark.ubw--has-bg-img > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text:not(.ubw-text--box-white):not(.ubw-text--box-surface),
.ubw--bg-dark.ubw--has-bg-img > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text:not(.ubw-text--box-white):not(.ubw-text--box-surface) a,
.ubw--bg-dark.ubw--has-bg-img > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text-wrap:not(.ubw-text--box-white):not(.ubw-text--box-surface) > .ubw-heading,
.ubw--bg-dark.ubw--has-bg-img > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text-wrap:not(.ubw-text--box-white):not(.ubw-text--box-surface) > .ubw-text,
.ubw--bg-dark.ubw--has-bg-img > .ubw-container .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-text-wrap:not(.ubw-text--box-white):not(.ubw-text--box-surface) > .ubw-text a {
  color: #ffffff;
}

/* ==========================================================================
   4. Bild
   ========================================================================== */

.ubw-figure {
  margin: 0;
  box-sizing: border-box;
}

.ubw-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.ubw-figure > a {
  display: block;
  line-height: 0;
}

.ubw-figure--rounded,
.ubw .ubw-figure.ubw-figure--rounded {
  border-radius: var(--ubw-img-radius, 6px);
  overflow: hidden;
}

.ubw-figure--rounded img,
.ubw .ubw-figure.ubw-figure--rounded img {
  border-radius: var(--ubw-img-radius, 6px);
}

.ubw-col.ubw-col--pad-none:has(> .ubw-figure--rounded),
.ubw .ubw-col.ubw-col--pad-none:has(> .ubw-figure--rounded) {
  border-radius: var(--ubw-img-radius, 6px);
}

.ubw .ubw-col[class*="ubw-col--bg-"].ubw-col--pad-none:has(> .ubw-figure--rounded) > .ubw-figure.ubw-figure--rounded,
.ubw .ubw-col[class*="ubw-col--bg-"].ubw-col--pad-none:has(> .ubw-figure--rounded) > .ubw-figure.ubw-figure--rounded img {
  border-radius: calc(var(--ubw-img-radius, 6px) - 1px);
}

/* Bild-Hintergrundfarben (z. B. fuer transparente Grafiken/Logos) */
.ubw-figure--bg-white {
  background-color: #ffffff;
}
.ubw-figure--bg-surface {
  background-color: var(--ubw-surface, #f8fafc);
}
.ubw-figure--bg-light {
  background-color: #f1f5f9;
}
.ubw-figure--bg-dark {
  background-color: #1e293b;
}
.ubw-figure--bg-primary {
  background-color: var(--ubw-primary, #005a9c);
}

/* Bild-Rahmen */
.ubw-figure--bordered {
  border: 1px solid var(--ubw-border, #cbd5e1);
}

/* Abstand zum umliegenden Container / Innenabstand (Padding) */
.ubw-figure--pad-xs {
  padding: 0.5rem;
}
.ubw-figure--pad-s {
  padding: 1rem;
}
.ubw-figure--pad-m {
  padding: 1.5rem;
}
.ubw-figure--pad-l {
  padding: 2.25rem;
}
.ubw-figure--pad-xl {
  padding: 3rem;
}

/* Verhalten fuer Bildboxen mit Hintergrundfarbe oder Padding */
.ubw-figure[class*="ubw-figure--bg-"],
.ubw-figure[class*="ubw-figure--pad-"],
.ubw-figure[style*="background"] {
  display: flex;
  flex-direction: column;
}

.ubw-figure[class*="ubw-figure--bg-"] img,
.ubw-figure[class*="ubw-figure--pad-"] img,
.ubw-figure[style*="background"] img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ubw-figure[class*="ubw-figure--bg-"] > .ubw-figure-link,
.ubw-figure[class*="ubw-figure--pad-"] > .ubw-figure-link,
.ubw-figure[style*="background"] > .ubw-figure-link {
  width: fit-content;
}

/* Maximale Bildbreite (fuer Logos und freigestellte Grafiken) */
.ubw-figure--maxw-xs {
  max-width: 120px;
}
.ubw-figure--maxw-s {
  max-width: 200px;
}
.ubw-figure--maxw-m {
  max-width: 380px;
}
.ubw-figure--maxw-l {
  max-width: 640px;
}
.ubw-figure--maxw-full {
  max-width: 100%;
}

/* Ausrichtung des Bildes / der Bildbox innerhalb der Spalte */
.ubw-figure.ubw-align-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}
.ubw-figure.ubw-align-center img,
.ubw-figure.ubw-align-center a {
  margin-left: auto;
  margin-right: auto;
}
.ubw-figure.ubw-align-right {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  align-items: flex-end;
}
.ubw-figure.ubw-align-right img,
.ubw-figure.ubw-align-right a {
  margin-left: auto;
}
.ubw-figure.ubw-align-left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  align-items: flex-start;
}

.ubw-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ubw-muted);
}

.ubw--bg-primary .ubw-figure figcaption,
.ubw--bg-dark .ubw-figure figcaption,
.ubw-figure--bg-primary figcaption,
.ubw-figure--bg-dark figcaption {
  color: #e2e8f0;
}

.ubw-figure a:focus-visible {
  outline: 3px solid var(--ubw-focus);
  outline-offset: 3px;
  display: block;
}

/* Bild: Volle Spaltenhöhe ausfüllen (gleich hoch wie Nachbarspalte / Kachel) */
.ubw-figure--pos-center > img,
.ubw-figure--pos-center > .ubw-figure-link > img { object-position: center center !important; }
.ubw-figure--pos-top > img,
.ubw-figure--pos-top > .ubw-figure-link > img    { object-position: center top !important; }
.ubw-figure--pos-bottom > img,
.ubw-figure--pos-bottom > .ubw-figure-link > img { object-position: center bottom !important; }
.ubw-figure--pos-left > img,
.ubw-figure--pos-left > .ubw-figure-link > img   { object-position: left center !important; }
.ubw-figure--pos-right > img,
.ubw-figure--pos-right > .ubw-figure-link > img  { object-position: right center !important; }

@media (min-width: 768px) and (max-width: 991.98px) {
  .ubw-grid.ubw-grid--cols-2 .ubw-figure.ubw-figure--fill-height {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 160px;
    overflow: visible !important;
  }

  .ubw-grid.ubw-grid--cols-2 .ubw-figure.ubw-figure--fill-height > img,
  .ubw-grid.ubw-grid--cols-2 .ubw-figure.ubw-figure--fill-height > .ubw-figure-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .ubw-grid.ubw-grid--cols-2 .ubw-figure.ubw-figure--fill-height > img,
  .ubw-grid.ubw-grid--cols-2 .ubw-figure.ubw-figure--fill-height > .ubw-figure-link > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    margin: 0 !important;
  }

  .ubw-grid.ubw-grid--cols-2 .ubw-figure.ubw-figure--fill-height > figcaption {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    line-height: 1.35;
  }

  .ubw-grid.ubw-grid--cols-2 .ubw-figure.ubw-figure--fill-height > .ubw-figure-action {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
  }

  .ubw-grid.ubw-grid--cols-2 .ubw-figure.ubw-figure--fill-height > figcaption + .ubw-figure-action {
    top: calc(100% + 1.65rem);
  }

  .ubw-grid.ubw-grid--cols-2.ubw-grid--has-fill-caption,
  .ubw-grid.ubw-grid--cols-2:has(.ubw-figure--fill-height > figcaption),
  .ubw-grid.ubw-grid--cols-2:has(.ubw-figure--fill-height > .ubw-figure-action) {
    margin-bottom: 1.75rem;
  }

  .ubw-grid.ubw-grid--cols-2 .ubw-col > .ubw-figure.ubw-figure--fill-height.ubw-figure--has-caption:not(:last-child),
  .ubw-grid.ubw-grid--cols-2 .ubw-col > .ubw-figure.ubw-figure--fill-height:has(> figcaption):not(:last-child) {
    margin-bottom: 1.75rem;
  }

  @supports selector(:has(> *)) {
    .ubw-grid.ubw-grid--cols-2:not(:has(> .ubw-col:not(:empty):not(:has(.ubw-figure--fill-height)))) .ubw-figure.ubw-figure--fill-height > img,
    .ubw-grid.ubw-grid--cols-2:not(:has(> .ubw-col:not(:empty):not(:has(.ubw-figure--fill-height)))) .ubw-figure.ubw-figure--fill-height > .ubw-figure-link {
      position: relative;
      inset: auto;
      flex: 1 1 auto;
    }
  }
}

@media (min-width: 992px) {
  .ubw-grid:not(.ubw-grid--cols-1) .ubw-figure.ubw-figure--fill-height {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 160px;
    overflow: visible !important;
  }

  .ubw-grid:not(.ubw-grid--cols-1) .ubw-figure.ubw-figure--fill-height > img,
  .ubw-grid:not(.ubw-grid--cols-1) .ubw-figure.ubw-figure--fill-height > .ubw-figure-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .ubw-grid:not(.ubw-grid--cols-1) .ubw-figure.ubw-figure--fill-height > img,
  .ubw-grid:not(.ubw-grid--cols-1) .ubw-figure.ubw-figure--fill-height > .ubw-figure-link > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    margin: 0 !important;
  }

  .ubw-grid:not(.ubw-grid--cols-1) .ubw-figure.ubw-figure--fill-height > figcaption {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    line-height: 1.35;
  }

  .ubw-grid:not(.ubw-grid--cols-1) .ubw-figure.ubw-figure--fill-height > .ubw-figure-action {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
  }

  .ubw-grid:not(.ubw-grid--cols-1) .ubw-figure.ubw-figure--fill-height > figcaption + .ubw-figure-action {
    top: calc(100% + 1.65rem);
  }

  .ubw-grid:not(.ubw-grid--cols-1).ubw-grid--has-fill-caption,
  .ubw-grid:not(.ubw-grid--cols-1):has(.ubw-figure--fill-height > figcaption),
  .ubw-grid:not(.ubw-grid--cols-1):has(.ubw-figure--fill-height > .ubw-figure-action) {
    margin-bottom: 1.75rem;
  }

  .ubw-container > .ubw-grid:not(.ubw-grid--cols-1).ubw-grid--has-fill-caption + .ubw-grid,
  .ubw-container > .ubw-grid:not(.ubw-grid--cols-1):has(.ubw-figure--fill-height > figcaption) + .ubw-grid {
    margin-top: calc(var(--ubw-gap, 2rem) + 0.5rem);
  }

  .ubw-grid:not(.ubw-grid--cols-1) .ubw-col > .ubw-figure.ubw-figure--fill-height.ubw-figure--has-caption:not(:last-child),
  .ubw-grid:not(.ubw-grid--cols-1) .ubw-col > .ubw-figure.ubw-figure--fill-height:has(> figcaption):not(:last-child) {
    margin-bottom: 1.75rem;
  }

  @supports selector(:has(> *)) {
    .ubw-grid:not(.ubw-grid--cols-1):not(:has(> .ubw-col:not(:empty):not(:has(.ubw-figure--fill-height)))) .ubw-figure.ubw-figure--fill-height > img,
    .ubw-grid:not(.ubw-grid--cols-1):not(:has(> .ubw-col:not(:empty):not(:has(.ubw-figure--fill-height)))) .ubw-figure.ubw-figure--fill-height > .ubw-figure-link {
      position: relative;
      inset: auto;
      flex: 1 1 auto;
    }
  }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.ubw-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ubw-buttons.ubw-align-center { justify-content: center; }
.ubw-buttons.ubw-align-right  { justify-content: flex-end; }

.ubw-buttons--stack {
  flex-direction: column;
}

.ubw-buttons--stack .ubw-btn {
  width: 100%;
}

.ubw .ubw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--btn-border-radius, var(--ubw-btn-radius, 6px));
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Button Radius Hilfsklassen & Datenattribute für punktuelle Steuerung */
.ubw .ubw-btn.ubw-btn--radius-none,
.ubw-btn.ubw-btn--radius-none,
.btn.ubw-btn--radius-none,
[data-btn-radius="none"],
[data-btn-radius="0"],
[data-btn-radius="0px"] {
  border-radius: 0 !important;
}

.ubw .ubw-btn.ubw-btn--radius-pill,
.ubw-btn.ubw-btn--radius-pill,
.btn.ubw-btn--radius-pill,
[data-btn-radius="pill"],
[data-btn-radius="9999px"] {
  border-radius: 9999px !important;
}

/* Button Breite Hilfsklassen & Datenattribute */
.ubw .ubw-btn.ubw-btn--full,
.ubw-btn.ubw-btn--full,
.btn.ubw-btn--full,
.ubw-btn-dropdown.ubw-btn--full,
[data-btn-width="full"] {
  width: 100% !important;
}

.ubw-btn-dropdown.ubw-btn--full > .ubw-btn {
  width: 100% !important;
}

.ubw .ubw-btn.ubw-btn--auto,
.ubw-btn.ubw-btn--auto,
.btn.ubw-btn--auto,
.ubw-btn-dropdown.ubw-btn--auto,
[data-btn-width="auto"] {
  width: auto !important;
  max-width: max-content;
}

.ubw-buttons--stack .ubw-btn.ubw-btn--auto,
.ubw-buttons--stack [data-btn-width="auto"] {
  width: auto !important;
}

.ubw-buttons--stack.ubw-align-left {
  align-items: flex-start;
}
.ubw-buttons--stack.ubw-align-center {
  align-items: center;
}
.ubw-buttons--stack.ubw-align-right {
  align-items: flex-end;
}

.ubw-buttons--full .ubw-btn,
.ubw-buttons--full .ubw-btn-dropdown {
  width: 100% !important;
}

.ubw-buttons--full .ubw-btn-dropdown > .ubw-btn {
  width: 100% !important;
}

.ubw .ubw-btn:hover {
  transform: translateY(-1px);
}

.ubw .ubw-btn:focus-visible {
  outline: 3px solid var(--ubw-focus);
  outline-offset: 3px;
}

.ubw .ubw-btn--primary         { background-color: var(--ubw-primary); border-color: var(--ubw-primary); color: #ffffff !important; }
.ubw .ubw-btn--primary:hover   { background-color: #001a40; border-color: #001a40; }
.ubw .ubw-btn--secondary       { background-color: var(--ubw-secondary); border-color: var(--ubw-secondary); color: #ffffff !important; }
.ubw .ubw-btn--secondary:hover { filter: brightness(0.9); }
.ubw .ubw-btn--outline         { background-color: transparent; border-color: var(--ubw-primary); color: var(--ubw-primary) !important; }
.ubw .ubw-btn--outline:hover   { background-color: var(--ubw-primary); color: #ffffff !important; }
.ubw .ubw-btn--light           { background-color: #ffffff; border-color: #ffffff; color: var(--ubw-primary) !important; }
.ubw .ubw-btn--light:hover     { background-color: #e2e8f0; border-color: #e2e8f0; }

.ubw--bg-primary .ubw-col > .ubw-buttons .ubw-btn--outline,
.ubw--bg-dark .ubw-col > .ubw-buttons .ubw-btn--outline { border-color: #ffffff; color: #ffffff !important; }
.ubw--bg-primary .ubw-col > .ubw-buttons .ubw-btn--outline:hover,
.ubw--bg-dark .ubw-col > .ubw-buttons .ubw-btn--outline:hover { background-color: #ffffff; color: var(--ubw-primary) !important; }
.ubw--bg-primary .ubw-btn:focus-visible,
.ubw--bg-dark .ubw-btn:focus-visible { outline-color: #ffffff; }

/* Schutz vor Farb-Kollision: Button darf nicht dieselbe Hintergrundfarbe wie der Bereich haben */
.ubw--bg-primary .ubw-btn--primary:not(.ubw-card--white *):not(.ubw-card--surface *):not(.ubw-col--bg-white *):not(.ubw-col--bg-surface *):not(.ubw-col--bg-glass-light *),
.ubw--bg-dark .ubw-btn--primary:not(.ubw-card--white *):not(.ubw-card--surface *):not(.ubw-col--bg-white *):not(.ubw-col--bg-surface *):not(.ubw-col--bg-glass-light *),
.ubw--bg-custom.ubw--bg-dark .ubw-btn--primary:not(.ubw-card--white *):not(.ubw-card--surface *):not(.ubw-col--bg-white *):not(.ubw-col--bg-surface *):not(.ubw-col--bg-glass-light *) {
  background-color: var(--ubw-secondary, #f39200) !important;
  border-color: var(--ubw-secondary, #f39200) !important;
  color: #ffffff !important;
}

.ubw--bg-white .ubw-btn--light:not(.ubw-card--primary *):not(.ubw-card--bg-dark *):not(.ubw-col--bg-primary *):not(.ubw-col--bg-glass-dark *),
.ubw--bg-surface .ubw-btn--light:not(.ubw-card--primary *):not(.ubw-card--bg-dark *):not(.ubw-col--bg-primary *):not(.ubw-col--bg-glass-dark *) {
  background-color: var(--ubw-primary, #002b66) !important;
  border-color: var(--ubw-primary, #002b66) !important;
  color: #ffffff !important;
}

.ubw--bg-custom.ubw--bg-dark .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-buttons .ubw-btn--outline {
  border-color: #ffffff;
  color: #ffffff !important;
}
.ubw--bg-custom.ubw--bg-dark .ubw-col:not(.ubw-col--bg-white):not(.ubw-col--bg-surface):not(.ubw-col--bg-glass-light) > .ubw-buttons .ubw-btn--outline:hover {
  background-color: #ffffff;
  color: var(--ubw-primary, #002b66) !important;
}

.ubw-btn--contrast-auto {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ubw-btn .ubw-icon,
img.ubw-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  max-width: 18px !important;
  flex: 0 0 18px;
  display: inline-block;
  margin: 0;
}

/* ==========================================================================
   6. Karte / Box
   ========================================================================== */

.ubw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border-radius: var(--ubw-radius);
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 43, 102, 0.08);
  color: var(--ubw-text);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform, box-shadow;
}

.ubw-card > * {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Hintergrundbild innerhalb einer Karte */
.ubw-card > .ubw-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.ubw-card > .ubw-card-bg > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
}

.ubw-card > .ubw-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.ubw-card--ov-none > .ubw-card-bg::after       { background: transparent; }
.ubw-card--ov-dark-40 > .ubw-card-bg::after    { background: rgba(15, 23, 42, 0.42); }
.ubw-card--ov-dark-60 > .ubw-card-bg::after    { background: rgba(15, 23, 42, 0.62); }
.ubw-card--ov-dark-75 > .ubw-card-bg::after    { background: rgba(15, 23, 42, 0.76); }
.ubw-card--ov-primary-70 > .ubw-card-bg::after { background: rgba(0, 43, 102, 0.72); }
.ubw-card--ov-primary-85 > .ubw-card-bg::after { background: rgba(0, 43, 102, 0.86); }
.ubw-card--ov-light-78 > .ubw-card-bg::after   { background: rgba(255, 255, 255, 0.78); }
.ubw-card--ov-light-90 > .ubw-card-bg::after   { background: rgba(255, 255, 255, 0.90); }

.ubw-card--surface { background-color: var(--ubw-surface); box-shadow: none; }
.ubw-card--outline { background-color: transparent; border: 2px solid var(--ubw-border); box-shadow: none; }
.ubw-card--primary { background-color: var(--ubw-primary); border-color: var(--ubw-primary); color: #ffffff; }
/* Farblicher Akzentrand links */
.ubw-card.ubw-card--accent-green,
.ubw-card.ubw-card--accent-green:hover   { border-left: 5px solid #52992f !important; }
.ubw-card.ubw-card--accent-primary,
.ubw-card.ubw-card--accent-primary:hover { border-left: 5px solid var(--ubw-primary, #002b66) !important; }
.ubw-card.ubw-card--accent-accent,
.ubw-card.ubw-card--accent-accent:hover  { border-left: 5px solid var(--color-accent, #00a3e0) !important; }

/* Hover- & Fokus-Animationen für Karten (Schwebe-Effekt & Schatten wie Schritt-Boxen) */
.ubw-card:hover,
.ubw-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 43, 102, 0.13), 0 4px 12px rgba(0, 43, 102, 0.05);
}

.ubw-card--surface:hover,
.ubw-card--surface:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 43, 102, 0.09);
}

.ubw-card--outline:hover,
.ubw-card--outline:focus-within {
  transform: translateY(-5px);
  border-color: var(--ubw-primary, #002b66);
  box-shadow: 0 12px 28px rgba(0, 43, 102, 0.08);
}

.ubw-card--primary:hover,
.ubw-card--primary:focus-within {
  transform: translateY(-5px);
  border-color: var(--ubw-primary) !important;
  box-shadow: 0 16px 36px rgba(0, 43, 102, 0.32);
}

/* Icon- & Bild-Mikrointeraktion beim Hover über die Karte */
.ubw-card .ubw-card-icon-wrap .ubw-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.ubw-card:hover .ubw-card-icon-wrap .ubw-icon,
.ubw-card:focus-within .ubw-card-icon-wrap .ubw-icon {
  transform: translateY(-2px) scale(1.06);
}

.ubw-card:hover .ubw-card-icon-wrap .ubw-icon.ubw-icon--circle,
.ubw-card:hover .ubw-card-icon-wrap .ubw-icon.ubw-icon--badge {
  box-shadow: 0 6px 18px rgba(0, 43, 102, 0.20);
}

.ubw-card .ubw-card-media img {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ubw-card:hover .ubw-card-media img,
.ubw-card:focus-within .ubw-card-media img {
  transform: scale(1.04);
}

/* Falls Dropdown im Button geöffnet ist, Karte nicht zusätzlich verschieben */
.ubw-card:has(.ubw-btn-dropdown.is-open) {
  transform: none !important;
}

/* Spezifische Steuerungs-Klassen (Pagebuilder-Einstellung: hoverEffect) */

/* 1) Keine Animation (statisch) */
.ubw-card.ubw-card--hover-none,
.ubw-card.ubw-card--hover-none:hover,
.ubw-card.ubw-card--hover-none:focus-within,
.ubw-card[data-hover="none"],
.ubw-card[data-hover="none"]:hover,
.ubw-card[data-hover="none"]:focus-within,
.ubw-card--white.ubw-card--hover-none:hover,
.ubw-card--surface.ubw-card--hover-none:hover,
.ubw-card--outline.ubw-card--hover-none:hover,
.ubw-card--primary.ubw-card--hover-none:hover,
.ubw-card--white[data-hover="none"]:hover,
.ubw-card--surface[data-hover="none"]:hover,
.ubw-card--outline[data-hover="none"]:hover,
.ubw-card--primary[data-hover="none"]:hover {
  transform: none !important;
}
.ubw-card.ubw-card--hover-none,
.ubw-card.ubw-card--hover-none:hover,
.ubw-card.ubw-card--hover-none:focus-within,
.ubw-card[data-hover="none"],
.ubw-card[data-hover="none"]:hover,
.ubw-card[data-hover="none"]:focus-within {
  box-shadow: 0 4px 20px rgba(0, 43, 102, 0.08) !important;
  border-color: #e2e8f0 !important;
}
.ubw-card--surface.ubw-card--hover-none,
.ubw-card--surface.ubw-card--hover-none:hover,
.ubw-card--surface[data-hover="none"],
.ubw-card--surface[data-hover="none"]:hover {
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
}
.ubw-card--outline.ubw-card--hover-none,
.ubw-card--outline.ubw-card--hover-none:hover,
.ubw-card--outline[data-hover="none"],
.ubw-card--outline[data-hover="none"]:hover {
  box-shadow: none !important;
  border-color: var(--ubw-border) !important;
}
.ubw-card--primary.ubw-card--hover-none,
.ubw-card--primary.ubw-card--hover-none:hover,
.ubw-card--primary[data-hover="none"],
.ubw-card--primary[data-hover="none"]:hover {
  box-shadow: none !important;
  border-color: var(--ubw-primary) !important;
}
.ubw-card--hover-none .ubw-card-icon-wrap .ubw-icon,
.ubw-card--hover-none:hover .ubw-card-icon-wrap .ubw-icon,
.ubw-card--hover-none:focus-within .ubw-card-icon-wrap .ubw-icon,
.ubw-card[data-hover="none"] .ubw-card-icon-wrap .ubw-icon,
.ubw-card[data-hover="none"]:hover .ubw-card-icon-wrap .ubw-icon,
.ubw-card--hover-none .ubw-card-media img,
.ubw-card--hover-none:hover .ubw-card-media img,
.ubw-card[data-hover="none"] .ubw-card-media img,
.ubw-card[data-hover="none"]:hover .ubw-card-media img {
  transform: none !important;
  box-shadow: none !important;
}

/* 2) Nur Icon vergrößern (Zoom-Effekt) */
.ubw-card.ubw-card--hover-icon,
.ubw-card.ubw-card--hover-icon:hover,
.ubw-card.ubw-card--hover-icon:focus-within,
.ubw-card[data-hover="icon"],
.ubw-card[data-hover="icon"]:hover,
.ubw-card[data-hover="icon"]:focus-within,
.ubw-card--white.ubw-card--hover-icon:hover,
.ubw-card--surface.ubw-card--hover-icon:hover,
.ubw-card--outline.ubw-card--hover-icon:hover,
.ubw-card--primary.ubw-card--hover-icon:hover,
.ubw-card--white[data-hover="icon"]:hover,
.ubw-card--surface[data-hover="icon"]:hover,
.ubw-card--outline[data-hover="icon"]:hover,
.ubw-card--primary[data-hover="icon"]:hover {
  transform: none !important;
}
.ubw-card.ubw-card--hover-icon,
.ubw-card.ubw-card--hover-icon:hover,
.ubw-card.ubw-card--hover-icon:focus-within,
.ubw-card[data-hover="icon"],
.ubw-card[data-hover="icon"]:hover,
.ubw-card[data-hover="icon"]:focus-within {
  box-shadow: 0 4px 20px rgba(0, 43, 102, 0.08) !important;
  border-color: #e2e8f0 !important;
}
.ubw-card--surface.ubw-card--hover-icon,
.ubw-card--surface.ubw-card--hover-icon:hover,
.ubw-card--surface.ubw-card--hover-icon:focus-within,
.ubw-card--surface[data-hover="icon"],
.ubw-card--surface[data-hover="icon"]:hover,
.ubw-card--surface[data-hover="icon"]:focus-within {
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
}
.ubw-card--outline.ubw-card--hover-icon,
.ubw-card--outline.ubw-card--hover-icon:hover,
.ubw-card--outline.ubw-card--hover-icon:focus-within,
.ubw-card--outline[data-hover="icon"],
.ubw-card--outline[data-hover="icon"]:hover,
.ubw-card--outline[data-hover="icon"]:focus-within {
  box-shadow: none !important;
  border-color: var(--ubw-border) !important;
}
.ubw-card--primary.ubw-card--hover-icon,
.ubw-card--primary.ubw-card--hover-icon:hover,
.ubw-card--primary.ubw-card--hover-icon:focus-within,
.ubw-card--primary[data-hover="icon"],
.ubw-card--primary[data-hover="icon"]:hover,
.ubw-card--primary[data-hover="icon"]:focus-within {
  box-shadow: none !important;
  border-color: var(--ubw-primary) !important;
}
.ubw-card--hover-icon:hover .ubw-card-icon-wrap .ubw-icon,
.ubw-card--hover-icon:focus-within .ubw-card-icon-wrap .ubw-icon,
.ubw-card[data-hover="icon"]:hover .ubw-card-icon-wrap .ubw-icon,
.ubw-card[data-hover="icon"]:focus-within .ubw-card-icon-wrap .ubw-icon {
  transform: translateY(0) scale(1.14) !important;
}
.ubw-card--hover-icon .ubw-card-media img,
.ubw-card--hover-icon:hover .ubw-card-media img,
.ubw-card--hover-icon:focus-within .ubw-card-media img,
.ubw-card[data-hover="icon"] .ubw-card-media img,
.ubw-card[data-hover="icon"]:hover .ubw-card-media img,
.ubw-card[data-hover="icon"]:focus-within .ubw-card-media img {
  transform: none !important;
}

/* 3) Dezenter Schatten (ohne Anheben) */
.ubw-card.ubw-card--hover-subtle,
.ubw-card.ubw-card--hover-subtle:hover,
.ubw-card.ubw-card--hover-subtle:focus-within,
.ubw-card[data-hover="subtle"],
.ubw-card[data-hover="subtle"]:hover,
.ubw-card[data-hover="subtle"]:focus-within,
.ubw-card--white.ubw-card--hover-subtle:hover,
.ubw-card--surface.ubw-card--hover-subtle:hover,
.ubw-card--outline.ubw-card--hover-subtle:hover,
.ubw-card--primary.ubw-card--hover-subtle:hover,
.ubw-card--white[data-hover="subtle"]:hover,
.ubw-card--surface[data-hover="subtle"]:hover,
.ubw-card--outline[data-hover="subtle"]:hover,
.ubw-card--primary[data-hover="subtle"]:hover {
  transform: none !important;
}
.ubw-card.ubw-card--hover-subtle:hover,
.ubw-card.ubw-card--hover-subtle:focus-within,
.ubw-card[data-hover="subtle"]:hover,
.ubw-card[data-hover="subtle"]:focus-within {
  box-shadow: 0 8px 24px rgba(0, 43, 102, 0.12) !important;
  border-color: #e2e8f0 !important;
}
.ubw-card--primary.ubw-card--hover-subtle:hover,
.ubw-card--primary[data-hover="subtle"]:hover {
  border-color: var(--ubw-primary) !important;
}
.ubw-card--outline.ubw-card--hover-subtle:hover,
.ubw-card--outline[data-hover="subtle"]:hover {
  border-color: var(--ubw-border) !important;
}
.ubw-card--hover-subtle .ubw-card-icon-wrap .ubw-icon,
.ubw-card--hover-subtle:hover .ubw-card-icon-wrap .ubw-icon,
.ubw-card[data-hover="subtle"] .ubw-card-icon-wrap .ubw-icon,
.ubw-card[data-hover="subtle"]:hover .ubw-card-icon-wrap .ubw-icon,
.ubw-card--hover-subtle .ubw-card-media img,
.ubw-card--hover-subtle:hover .ubw-card-media img,
.ubw-card[data-hover="subtle"] .ubw-card-media img,
.ubw-card[data-hover="subtle"]:hover .ubw-card-media img {
  transform: none !important;
}

/* Barrierefreiheit: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ubw-card,
  .ubw-card:hover,
  .ubw-card .ubw-card-icon-wrap .ubw-icon,
  .ubw-card:hover .ubw-card-icon-wrap .ubw-icon,
  .ubw-card .ubw-card-media img,
  .ubw-card:hover .ubw-card-media img {
    transition: none !important;
    transform: none !important;
  }
}

/* .ubw-card-media redefined below */

.ubw-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: #e0e7ff;
  color: var(--ubw-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ubw-card.ubw-align-center .ubw-badge { align-self: center; }
.ubw-card.ubw-align-right .ubw-badge  { align-self: flex-end; }

.ubw-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ubw-primary);
}

.ubw-card .ubw-text,
.ubw-card .ubw-card-text {
  font-size: 0.975rem;
  color: var(--ubw-muted);
  flex: 1 1 auto;
}

.ubw-card .ubw-buttons {
  margin-top: auto;
  padding-top: 0.25rem;
}

.ubw-card--primary .ubw-card-title,
.ubw-card--primary .ubw-text,
.ubw-card--primary .ubw-text a,
.ubw-card--bg-dark,
.ubw-card--bg-dark .ubw-card-title,
.ubw-card--bg-dark .ubw-text,
.ubw-card--bg-dark .ubw-text a { color: #ffffff; }

.ubw-card--primary .ubw-btn--outline,
.ubw-card--bg-dark .ubw-btn--outline { border-color: #ffffff; color: #ffffff !important; }

/* ==========================================================================
   7. Aufzählung
   ========================================================================== */

.ubw-list {
  margin: 0;
  padding-left: 1.4rem;
  line-height: 1.6;
}

.ubw-list li + li {
  margin-top: 0.4rem;
}

.ubw-list--check {
  list-style: none;
  padding-left: 0;
}

.ubw-list--check li {
  position: relative;
  padding-left: 1.9rem;
}

.ubw-list--check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--ubw-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

.ubw--bg-primary .ubw-list--check li::before,
.ubw--bg-dark .ubw-list--check li::before {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23002b66'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   8. Hinweisbox (Callout – 8 Layout-Varianten × 8 Farbstile, WCAG 2.1 AA)
   ========================================================================== */

.ubw-callout {
  --co-bg: #eff6ff;
  --co-border: #1d4ed8;
  --co-border-soft: #bfdbfe;
  --co-accent: #1d4ed8;
  --co-text: #1e3a8a;
  --co-title: #1e3a8a;
  --co-icon-bg: #dbeafe;
  --co-icon-color: #1d4ed8;
  --co-badge-bg: #dbeafe;
  --co-badge-color: #1e3a8a;
  --co-divider: #dbeafe;
  --co-banner-bg: #1d4ed8;
  --co-banner-text: #ffffff;
  --co-banner-icon-bg: rgba(255, 255, 255, 0.16);

  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--co-border);
  border-radius: 8px;
  background-color: var(--co-bg);
  color: var(--co-text);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Fallback für ältere klassische Hinweisboxen ohne .ubw-callout-body Wrapper */
.ubw-callout:not(:has(.ubw-callout-body)):not(:has(.ubw-callout-main)):not(.ubw-callout--facts):not(.ubw-callout--checklist):not(.ubw-callout--top-accent) {
  display: block;
}

.ubw-callout-icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--co-icon-color);
  margin-top: 0.1rem;
}

.ubw-callout-body {
  flex: 1 1 0%;
  min-width: 0;
}

.ubw-callout-head-meta {
  flex: 1 1 0%;
  min-width: 0;
}

.ubw-callout-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  padding: 0.22rem 0.62rem;
  border-radius: 9999px;
  background-color: var(--co-badge-bg);
  color: var(--co-badge-color);
  margin-bottom: 0.45rem;
}

.ubw-callout-title {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--co-title);
}

.ubw-callout .ubw-text {
  font-size: 1rem;
  line-height: 1.55;
  color: inherit;
}

.ubw-callout .ubw-text p:first-child { margin-top: 0; }
.ubw-callout .ubw-text p:last-child  { margin-bottom: 0; }
.ubw-callout .ubw-text a { color: inherit; text-decoration: underline; }

.ubw-callout-actions {
  margin-top: 0.95rem;
}

.ubw-callout-actions .ubw-btn {
  margin: 0;
}

/* ---------- 8 Farbvarianten (WCAG AA/AAA Kontraste) ---------- */

.ubw-callout--info {
  --co-bg: #eff6ff;
  --co-border: #1d4ed8;
  --co-border-soft: #bfdbfe;
  --co-accent: #1d4ed8;
  --co-text: #1e3a8a;
  --co-title: #1e3a8a;
  --co-icon-bg: #dbeafe;
  --co-icon-color: #1d4ed8;
  --co-badge-bg: #dbeafe;
  --co-badge-color: #1e3a8a;
  --co-divider: #dbeafe;
  --co-banner-bg: #1d4ed8;
}

.ubw-callout--brand {
  --co-bg: #eef3fa;
  --co-border: #002b66;
  --co-border-soft: #c5d6ec;
  --co-accent: #002b66;
  --co-text: #002b66;
  --co-title: #002b66;
  --co-icon-bg: #d9e6f7;
  --co-icon-color: #002b66;
  --co-badge-bg: #d9e6f7;
  --co-badge-color: #002b66;
  --co-divider: #cbd9ec;
  --co-banner-bg: #002b66;
}

.ubw-callout--accent {
  --co-bg: #f0f9ff;
  --co-border: #0284c7;
  --co-border-soft: #bae6fd;
  --co-accent: #0284c7;
  --co-text: #0c4a6e;
  --co-title: #0c4a6e;
  --co-icon-bg: #e0f2fe;
  --co-icon-color: #0369a1;
  --co-badge-bg: #e0f2fe;
  --co-badge-color: #0c4a6e;
  --co-divider: #bae6fd;
  --co-banner-bg: #0369a1;
}

.ubw-callout--success {
  --co-bg: #f0fdf4;
  --co-border: #15803d;
  --co-border-soft: #bbf7d0;
  --co-accent: #15803d;
  --co-text: #14532d;
  --co-title: #14532d;
  --co-icon-bg: #dcfce7;
  --co-icon-color: #15803d;
  --co-badge-bg: #dcfce7;
  --co-badge-color: #14532d;
  --co-divider: #bbf7d0;
  --co-banner-bg: #166534;
}

.ubw-callout--warning {
  --co-bg: #fffbeb;
  --co-border: #b45309;
  --co-border-soft: #fde68a;
  --co-accent: #b45309;
  --co-text: #78350f;
  --co-title: #78350f;
  --co-icon-bg: #fef3c7;
  --co-icon-color: #b45309;
  --co-badge-bg: #fef3c7;
  --co-badge-color: #78350f;
  --co-divider: #fde68a;
  --co-banner-bg: #92400e;
}

.ubw-callout--danger {
  --co-bg: #fef2f2;
  --co-border: #b91c1c;
  --co-border-soft: #fecaca;
  --co-accent: #b91c1c;
  --co-text: #7f1d1d;
  --co-title: #7f1d1d;
  --co-icon-bg: #fee2e2;
  --co-icon-color: #b91c1c;
  --co-badge-bg: #fee2e2;
  --co-badge-color: #7f1d1d;
  --co-divider: #fecaca;
  --co-banner-bg: #991b1b;
}

.ubw-callout--neutral {
  --co-bg: #f8fafc;
  --co-border: #64748b;
  --co-border-soft: #cbd5e1;
  --co-accent: #475569;
  --co-text: #1e293b;
  --co-title: #0f172a;
  --co-icon-bg: #e2e8f0;
  --co-icon-color: #334155;
  --co-badge-bg: #e2e8f0;
  --co-badge-color: #1e293b;
  --co-divider: #e2e8f0;
  --co-banner-bg: #334155;
}

.ubw-callout--dark {
  --co-bg: #1e293b;
  --co-border: #38bdf8;
  --co-border-soft: #334155;
  --co-accent: #38bdf8;
  --co-text: #e2e8f0;
  --co-title: #ffffff;
  --co-icon-bg: rgba(56, 189, 248, 0.16);
  --co-icon-color: #38bdf8;
  --co-badge-bg: rgba(56, 189, 248, 0.18);
  --co-badge-color: #bae6fd;
  --co-divider: rgba(148, 163, 184, 0.28);
  --co-banner-bg: #0f172a;
}

/* ---------- Variante 2: Icon-Karte (.ubw-callout--icon-card) ---------- */

.ubw-callout.ubw-callout--icon-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--co-border-soft);
  border-left: 1px solid var(--co-border-soft);
  border-radius: 14px;
  background-color: var(--co-bg);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.ubw-callout--icon-card .ubw-callout-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background-color: var(--co-icon-bg);
  color: var(--co-icon-color);
  font-size: 1.35rem;
  margin-top: 0;
}

.ubw-callout--icon-card .ubw-callout-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

/* ---------- Variante 3: Kopfzeilen-Box (.ubw-callout--top-accent) ---------- */

.ubw-callout.ubw-callout--top-accent {
  display: block;
  padding: 1.5rem 1.75rem;
  background-color: #ffffff;
  color: var(--ubw-text, #1e293b);
  border: 1px solid var(--co-border-soft);
  border-left: 1px solid var(--co-border-soft);
  border-top: 4px solid var(--co-accent);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.ubw-callout.ubw-callout--top-accent.ubw-callout--dark {
  background-color: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
  border-top-color: #38bdf8;
}

.ubw-callout--top-accent .ubw-callout-top-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.ubw-callout--top-accent .ubw-callout-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background-color: var(--co-icon-bg);
  color: var(--co-icon-color);
  font-size: 1.12rem;
  margin-top: 0;
}

.ubw-callout--top-accent .ubw-callout-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 0;
}

/* ---------- Variante 4: Vollflächen-Banner (.ubw-callout--banner) ---------- */

.ubw-callout.ubw-callout--banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.35rem 1.75rem;
  padding: 1.65rem 2rem;
  background-color: var(--co-banner-bg);
  color: var(--co-banner-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.ubw-callout--banner .ubw-callout-main {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  flex: 1 1 320px;
  min-width: 0;
}

.ubw-callout--banner .ubw-callout-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--co-banner-icon-bg);
  color: #ffffff;
  font-size: 1.3rem;
  margin-top: 0;
}

.ubw-callout--banner .ubw-callout-badge {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.ubw-callout--banner .ubw-callout-title {
  color: #ffffff;
  font-size: 1.24rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.ubw-callout--banner .ubw-text,
.ubw-callout--banner .ubw-text p,
.ubw-callout--banner .ubw-text a {
  color: rgba(255, 255, 255, 0.94);
}

.ubw-callout--banner .ubw-callout-actions {
  margin-top: 0;
  flex: 0 0 auto;
}

.ubw-callout--banner .ubw-btn--outline,
.ubw-callout--dark .ubw-btn--outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
  background-color: transparent;
}

.ubw-callout--banner .ubw-btn--outline:hover,
.ubw-callout--banner .ubw-btn--outline:focus-visible,
.ubw-callout--dark .ubw-btn--outline:hover,
.ubw-callout--dark .ubw-btn--outline:focus-visible {
  background-color: #ffffff;
  color: #002b66;
  border-color: #ffffff;
}

/* ---------- Variante 5: Aktions-Box (.ubw-callout--split-cta) ---------- */

.ubw-callout.ubw-callout--split-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  padding: 1.45rem 1.75rem;
  background-color: var(--co-bg);
  border: 1px solid var(--co-border-soft);
  border-left: 5px solid var(--co-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ubw-callout--split-cta .ubw-callout-main {
  display: flex;
  align-items: flex-start;
  gap: 1.05rem;
  flex: 1 1 300px;
  min-width: 0;
}

.ubw-callout--split-cta .ubw-callout-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background-color: var(--co-icon-bg);
  color: var(--co-icon-color);
  font-size: 1.2rem;
  margin-top: 0;
}

.ubw-callout--split-cta .ubw-callout-title {
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.ubw-callout--split-cta .ubw-callout-actions {
  margin-top: 0;
  flex: 0 0 auto;
}

/* ---------- Variante 6: Fakten-Box (.ubw-callout--facts) ---------- */

.ubw-callout.ubw-callout--facts {
  display: block;
  border-left: 1px solid var(--co-border-soft, #e2e8f0);
  border: 1px solid var(--co-border-soft, #e2e8f0);
  border-radius: 12px;
  background-color: var(--co-bg, #f8fafc);
  color: var(--co-title, #002b66);
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ubw-callout--facts .ubw-callout-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.ubw-callout--facts .ubw-callout-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background-color: var(--co-icon-bg);
  color: var(--co-icon-color);
  font-size: 1.15rem;
  margin-top: 0;
}

.ubw-callout--facts .ubw-callout-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.ubw-callout--facts .ubw-callout-facts-list {
  display: flex;
  flex-direction: column;
}

.ubw-callout--facts .ubw-callout-fact-item {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.95rem 0;
  color: var(--co-title);
}

.ubw-callout--facts .ubw-callout-fact-item:first-child {
  padding-top: 0;
}

.ubw-callout--facts .ubw-callout-fact-item:last-child {
  padding-bottom: 0;
}

.ubw-callout--facts .ubw-callout-fact-item + .ubw-callout-fact-item {
  border-top: 1px solid var(--co-divider, #dfe3e7);
}

/* Beibehaltung der bisherigen Fakten-Box-Sonderfarbe für Info */
.ubw-callout--facts.ubw-callout--info {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #002b66;
  --co-title: #002b66;
  --co-divider: #dfe3e7;
}

/* Fallback wenn Textinhalt / HTML im Fakten-Layout verwendet wird */
.ubw-callout--facts .ubw-text ul,
.ubw-callout--facts .ubw-text ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ubw-callout--facts .ubw-text li,
.ubw-callout--facts .ubw-text p {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
  padding: 0.95rem 0;
  margin: 0;
}
.ubw-callout--facts .ubw-text li:first-child,
.ubw-callout--facts .ubw-text p:first-child {
  padding-top: 0;
}
.ubw-callout--facts .ubw-text li:last-child,
.ubw-callout--facts .ubw-text p:last-child {
  padding-bottom: 0;
}
.ubw-callout--facts .ubw-text li + li,
.ubw-callout--facts .ubw-text p + p {
  border-top: 1px solid var(--co-divider, #dfe3e7);
}

/* ---------- Variante 7: Checkliste / Vorteile-Box (.ubw-callout--checklist) ---------- */

.ubw-callout.ubw-callout--checklist {
  display: block;
  padding: 1.65rem 1.85rem;
  background-color: var(--co-bg);
  border: 1px solid var(--co-border-soft);
  border-left: 1px solid var(--co-border-soft);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.ubw-callout--checklist .ubw-callout-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.ubw-callout--checklist .ubw-callout-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background-color: var(--co-icon-bg);
  color: var(--co-icon-color);
  font-size: 1.2rem;
  margin-top: 0;
}

.ubw-callout--checklist .ubw-callout-title {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 0;
}

.ubw-callout--checklist .ubw-text {
  margin-bottom: 0.95rem;
}

.ubw-callout--checklist .ubw-callout-check-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.72rem;
}

.ubw-callout--checklist .ubw-callout-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--co-text);
}

.ubw-callout--checklist .ubw-callout-check-mark {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background-color: var(--co-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.ubw-callout--checklist.ubw-callout--dark .ubw-callout-check-mark {
  background-color: #38bdf8;
  color: #0f172a;
}

.ubw-callout--checklist .ubw-callout-check-text {
  flex: 1 1 0%;
  min-width: 0;
}

/* ---------- Variante 8: Schritte-Box (.ubw-callout--steps – „So funktioniert es“) ---------- */

.ubw-callout.ubw-callout--steps {
  display: block;
  padding: 2rem 2.25rem;
  background-color: #ffffff;
  color: var(--ubw-text, #1e293b);
  border: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ubw-callout.ubw-callout--steps.ubw-callout--dark {
  background-color: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}

.ubw-callout--steps .ubw-callout-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.ubw-callout--steps .ubw-callout-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background-color: var(--co-icon-bg);
  color: var(--co-icon-color);
  font-size: 1.15rem;
  margin-top: 0;
}

.ubw-callout--steps .ubw-callout-title {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--co-title);
  margin-bottom: 0;
}

.ubw-callout--steps.ubw-callout--info .ubw-callout-title,
.ubw-callout--steps.ubw-callout--brand .ubw-callout-title {
  color: #002b66;
}

.ubw-callout--steps .ubw-text {
  margin-top: -0.75rem;
  margin-bottom: 1.45rem;
  color: var(--ubw-muted, #475569);
}

.ubw-callout--steps.ubw-callout--dark .ubw-text {
  color: #cbd5e1;
}

.ubw-callout--steps .ubw-callout-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
}

.ubw-callout--steps .ubw-callout-step-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.05rem;
  align-items: start;
}

.ubw-callout--steps .ubw-callout-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  background-color: #eef4fa;
  color: #002b66;
  margin-top: 0.05rem;
}

.ubw-callout--steps:not(.ubw-callout--info):not(.ubw-callout--brand) .ubw-callout-step-num {
  background-color: var(--co-icon-bg);
  color: var(--co-icon-color);
}

.ubw-callout--steps .ubw-callout-step-body {
  min-width: 0;
}

.ubw-callout--steps .ubw-callout-step-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #002b66;
  margin: 0 0 0.25rem;
}

.ubw-callout--steps:not(.ubw-callout--info):not(.ubw-callout--brand) .ubw-callout-step-title {
  color: var(--co-title);
}

.ubw-callout--steps .ubw-callout-step-text {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.5;
  color: #526074;
}

.ubw-callout--steps.ubw-callout--dark .ubw-callout-step-text {
  color: #cbd5e1;
}

.ubw-callout--steps .ubw-callout-actions {
  margin-top: 1.6rem;
}

/* ---------- Variante 9: Kompakt-Hinweis (.ubw-callout--compact) ---------- */

.ubw-callout.ubw-callout--compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  padding: 0.75rem 1.15rem;
  background-color: var(--co-bg);
  border: 1px solid var(--co-border-soft);
  border-left: 4px solid var(--co-border);
  border-radius: 10px;
}

.ubw-callout--compact .ubw-callout-icon {
  width: 1.4rem;
  height: 1.4rem;
  font-size: 1rem;
  margin-top: 0;
}

.ubw-callout--compact .ubw-callout-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
  flex: 1 1 200px;
}

.ubw-callout--compact .ubw-callout-badge {
  margin-bottom: 0;
  align-self: center;
  font-size: 0.68rem;
  padding: 0.16rem 0.5rem;
}

.ubw-callout--compact .ubw-callout-title {
  display: inline;
  font-size: 0.96rem;
  margin-bottom: 0;
}

.ubw-callout--compact .ubw-text {
  display: inline;
  font-size: 0.94rem;
  line-height: 1.45;
}

.ubw-callout--compact .ubw-text p {
  display: inline;
  margin: 0;
}

.ubw-callout--compact .ubw-callout-actions {
  margin-top: 0;
  margin-left: auto;
  flex: 0 0 auto;
}

.ubw-callout--compact .ubw-callout-actions .ubw-btn {
  padding: 0.42rem 0.9rem;
  font-size: 0.88rem;
}


/* ==========================================================================
   9. FAQ / Akkordeon (natives details/summary)
   ========================================================================== */

.ubw-accordion {
  border: 1px solid var(--ubw-border);
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
  color: var(--ubw-text);
}

.ubw-acc-item + .ubw-acc-item {
  border-top: 1px solid var(--ubw-border);
}

.ubw-acc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--ubw-primary);
  cursor: pointer;
  list-style: none;
}

.ubw-acc-summary::-webkit-details-marker {
  display: none;
}

.ubw-acc-summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
}

.ubw-acc-item[open] > .ubw-acc-summary::after {
  content: "\2212";
}

.ubw-acc-summary:hover {
  background-color: var(--ubw-surface);
}

.ubw-acc-summary:focus-visible {
  outline: 3px solid var(--ubw-focus);
  outline-offset: -3px;
}

.ubw-acc-body {
  padding: 0 1.25rem 1.25rem;
}

/* ==========================================================================
   10. Kennzahlen
   ========================================================================== */

.ubw-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 0;
}

.ubw-stat {
  padding: 1.5rem 1rem;
  border: 1px solid var(--ubw-border);
  border-radius: 10px;
  background-color: #ffffff;
  text-align: center;
}

.ubw-stat-value {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 850;
  line-height: 1.1;
  color: var(--ubw-primary);
}

.ubw-stat-label {
  margin: 0.4rem 0 0;
  color: var(--ubw-muted);
}

/* ==========================================================================
   11. Prozess-Schritte & Schritte-Box („So funktioniert es“)
   ========================================================================== */

.ubw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ubw-step;
  display: grid;
  gap: 1.25rem;
}

.ubw-steps-list {
  display: grid;
  gap: 1.45rem;
  counter-reset: ubw-step;
}

.ubw-steps-title {
  margin: 0 0 1.45rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ubw-primary, #002b66);
}

.ubw-steps-intro {
  margin: -0.85rem 0 1.45rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ubw-muted, #475569);
}

.ubw-steps-actions {
  margin-top: 1.6rem;
}

.ubw-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.05rem;
  align-items: start;
  counter-increment: ubw-step;
}

.ubw-step::before {
  content: counter(ubw-step);
  content: counter(ubw-step) / "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--ubw-primary, #002b66);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.05rem;
}

.ubw-step-body {
  min-width: 0;
}

.ubw-step-title {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ubw-primary, #002b66);
}

.ubw-step-body p {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.5;
  color: #526074;
}

/* Schritte-Box Karten-Varianten */
.ubw-steps.ubw-steps--card,
.ubw-steps.ubw-steps--surface-card,
.ubw-steps.ubw-steps--timeline-card {
  display: block;
  padding: 2rem 2.25rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: var(--ubw-text, #1e293b);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ubw-steps.ubw-steps--surface-card {
  background-color: var(--ubw-surface, #f8fafc);
}

.ubw-steps.ubw-steps--card > .ubw-step + .ubw-step,
.ubw-steps.ubw-steps--surface-card > .ubw-step + .ubw-step,
.ubw-steps.ubw-steps--timeline-card > .ubw-step + .ubw-step {
  margin-top: 1.45rem;
}

/* Verbindungslinie zwischen den Zahlen-Kreisen */
.ubw-steps.ubw-steps--timeline-card .ubw-step {
  position: relative;
}

.ubw-steps.ubw-steps--timeline-card .ubw-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2.75rem;
  bottom: -1.25rem;
  width: 2px;
  transform: translateX(-50%);
  background-color: #dbe6f2;
  pointer-events: none;
}

/* Zahlen-Kreis Farbstile */
.ubw-steps--badge-soft .ubw-step::before {
  background-color: #eef4fa;
  color: #002b66;
}

.ubw-steps--badge-solid .ubw-step::before {
  background-color: var(--ubw-primary, #002b66);
  color: #ffffff;
}

.ubw-steps--badge-accent .ubw-step::before {
  background-color: #0369a1;
  color: #ffffff;
}

.ubw-steps--badge-green .ubw-step::before {
  background-color: #166534;
  color: #ffffff;
}

.ubw-steps--badge-outline .ubw-step::before {
  background-color: #ffffff;
  color: var(--ubw-primary, #002b66);
  border: 2px solid #cbd5e1;
}

/* Nur schlichte Schritt-Listen (ohne weiße Karte) auf dunklem Sektionshintergrund invertieren */
.ubw--bg-primary .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-step::before,
.ubw--bg-dark .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-step::before {
  background-color: #ffffff;
  color: var(--ubw-primary);
}
.ubw--bg-primary .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-steps-title,
.ubw--bg-primary .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-steps-intro,
.ubw--bg-primary .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-step-title,
.ubw--bg-primary .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-step-body p,
.ubw--bg-dark .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-steps-title,
.ubw--bg-dark .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-steps-intro,
.ubw--bg-dark .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-step-title,
.ubw--bg-dark .ubw-steps:not(.ubw-steps--card):not(.ubw-steps--surface-card):not(.ubw-steps--timeline-card) .ubw-step-body p {
  color: #ffffff;
}


/* ==========================================================================
   11b. Schritte-Boxen / Prozess-Karten (Raster)
   ========================================================================== */

.ubw-step-boxes {
  width: 100%;
  margin: 0;
}

/* Titel des Schritt-Bereichs */
.ubw-step-boxes-title {
  margin: 0 0 2rem 0;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ubw-primary, #002b66);
}

.ubw-step-boxes-title.ubw-align-center {
  text-align: center;
}

.ubw-step-boxes-title.ubw-align-right {
  text-align: right;
}

.ubw-step-boxes-title.ubw-align-left {
  text-align: left;
}

/* Raster der Boxen */
.ubw-step-boxes-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(var(--step-boxes-cols, 3), minmax(0, 1fr));
  align-items: stretch;
}

.ubw-step-boxes-grid--cols-1 { --step-boxes-cols: 1; }
.ubw-step-boxes-grid--cols-2 { --step-boxes-cols: 2; }
.ubw-step-boxes-grid--cols-3 { --step-boxes-cols: 3; }
.ubw-step-boxes-grid--cols-4 { --step-boxes-cols: 4; }
.ubw-step-boxes-grid--cols-5 { --step-boxes-cols: 5; }
.ubw-step-boxes-grid--cols-6 { --step-boxes-cols: 6; }

.ubw-step-boxes-grid--cols-auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Einzelne Box */
.ubw-step-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.75rem 2rem;
  border-radius: 8px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ubw-step-box:hover {
  transform: translateY(-2px);
}

/* Box Stile */
.ubw-step-box--surface {
  background-color: var(--ubw-surface, #f8fafc);
  border: 1px solid rgba(0, 43, 102, 0.05);
}

.ubw-step-box--surface:hover {
  box-shadow: 0 8px 24px rgba(0, 43, 102, 0.07);
}

.ubw-step-box--white {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ubw-step-box--white:hover {
  box-shadow: 0 8px 24px rgba(0, 43, 102, 0.08);
}

.ubw-step-box--outline {
  background-color: transparent;
  border: 2px solid var(--ubw-primary, #002b66);
}
.ubw-step-box--primary {
  background-color: var(--ubw-primary, #002b66);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ubw-step-box--primary .ubw-step-box-title {
  color: #ffffff;
}

.ubw-step-box--primary .ubw-step-box-text {
  color: rgba(255, 255, 255, 0.88);
}

.ubw-step-box--primary .ubw-step-box-badge:not([class*="ubw-step-box-badge--accent"]):not([class*="ubw-step-box-badge--green"]):not([class*="ubw-step-box-badge--secondary"]):not([class*="ubw-step-box-badge--dark"]):not([class*="ubw-step-box-badge--custom"]) {
  background-color: #ffffff;
  color: var(--ubw-primary, #002b66);
}

.ubw-step-box--accent {
  background-color: #e6f6fc;
  border: 1px solid #b3e3f5;
}

.ubw-step-box--accent .ubw-step-box-title {
  color: #0077a8;
}

.ubw-step-box--green {
  background-color: #f2f8ee;
  border: 1px solid #cce5c2;
}

.ubw-step-box--green .ubw-step-box-title {
  color: #3b7420;
}

.ubw-step-box--dark {
  background-color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ubw-step-box--dark .ubw-step-box-title {
  color: #ffffff;
}

.ubw-step-box--dark .ubw-step-box-text {
  color: rgba(255, 255, 255, 0.85);
}

.ubw-step-box--dark .ubw-step-box-badge:not([class*="ubw-step-box-badge--accent"]):not([class*="ubw-step-box-badge--green"]):not([class*="ubw-step-box-badge--secondary"]):not([class*="ubw-step-box-badge--custom"]) {
  background-color: #ffffff;
  color: #1e293b;
}

.ubw-step-box--custom {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ubw-step-box--custom .ubw-step-box-title {
  color: inherit;
}

.ubw-step-box--custom .ubw-step-box-text {
  color: inherit;
  opacity: 0.9;
}

/* Nummer-Badge / Kreis oben */
.ubw-step-box-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 50%;
  background-color: var(--ubw-primary, #002b66);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 auto 1.25rem auto;
}
/* Badge Farbmodifikatoren */
.ubw-step-box-badge--primary {
  background-color: var(--ubw-primary, #002b66);
  color: #ffffff;
}

.ubw-step-box-badge--accent {
  background-color: var(--ubw-accent, #00a3e0);
  color: #ffffff;
}

.ubw-step-box-badge--green {
  background-color: #52992f;
  color: #ffffff;
}

.ubw-step-box-badge--secondary {
  background-color: #f39200;
  color: #ffffff;
}

.ubw-step-box-badge--dark {
  background-color: #1e293b;
  color: #ffffff;
}

.ubw-step-box-badge--white {
  background-color: #ffffff;
  color: var(--ubw-primary, #002b66);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Titel des Schritts */
.ubw-step-box-title {
  margin: 0 0 0.85rem 0;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ubw-primary, #002b66);
}

/* Text / Beschreibung */
.ubw-step-box-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ubw-text, #1e293b);
}

/* Text darunter (optional) - ausgewogener Abstand zu Boxen */
.ubw-step-boxes-bottom {
  margin-top: 2.75rem;
  box-sizing: border-box;
}

.ubw-step-boxes-bottom.ubw-align-center {
  text-align: center;
}

.ubw-step-boxes-bottom.ubw-align-left {
  text-align: left;
}

.ubw-step-boxes-bottom.ubw-align-right {
  text-align: right;
}

.ubw-step-boxes-bottom-text {
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ubw-text, #1e293b);
  max-width: 820px;
}

/* Button darunter (optional) - ausgewogener Abstand */
.ubw-step-boxes-btn-wrap {
  margin-top: 1.5rem;
  display: flex;
}

/* Falls kein Text darunter vorhanden ist, ausgewogener Abstand direkt von den Boxen */
.ubw-step-boxes-grid + .ubw-step-boxes-btn-wrap {
  margin-top: 2.75rem;
}

.ubw-step-boxes-btn-wrap.ubw-align-center {
  justify-content: center;
}

.ubw-step-boxes-btn-wrap.ubw-align-left {
  justify-content: flex-start;
}

.ubw-step-boxes-btn-wrap.ubw-align-right {
  justify-content: flex-end;
}

/* Farbanpassungen bei dunklem / primärem Hintergrund */
.ubw--bg-primary .ubw-step-boxes-title,
.ubw--bg-dark .ubw-step-boxes-title {
  color: #ffffff;
}

.ubw--bg-primary .ubw-step-box--surface,
.ubw--bg-dark .ubw-step-box--surface {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.ubw--bg-primary .ubw-step-box-badge,
.ubw--bg-dark .ubw-step-box-badge {
  background-color: #ffffff;
  color: var(--ubw-primary, #002b66);
}
.ubw--bg-primary .ubw-step-box-badge.ubw-step-box-badge--accent,
.ubw--bg-dark .ubw-step-box-badge.ubw-step-box-badge--accent {
  background-color: var(--ubw-accent, #00a3e0);
  color: #ffffff;
}

.ubw--bg-primary .ubw-step-box-badge.ubw-step-box-badge--green,
.ubw--bg-dark .ubw-step-box-badge.ubw-step-box-badge--green {
  background-color: #52992f;
  color: #ffffff;
}

.ubw--bg-primary .ubw-step-box-badge.ubw-step-box-badge--secondary,
.ubw--bg-dark .ubw-step-box-badge.ubw-step-box-badge--secondary {
  background-color: #f39200;
  color: #ffffff;
}

.ubw--bg-primary .ubw-step-box-badge.ubw-step-box-badge--dark,
.ubw--bg-dark .ubw-step-box-badge.ubw-step-box-badge--dark {
  background-color: #0f172a;
  color: #ffffff;
}

.ubw--bg-primary .ubw-step-box-title,
.ubw--bg-dark .ubw-step-box-title {
  color: #ffffff;
}

.ubw--bg-primary .ubw-step-box-text,
.ubw--bg-dark .ubw-step-box-text {
  color: rgba(255, 255, 255, 0.9);
}

.ubw--bg-primary .ubw-step-boxes-bottom-text,
.ubw--bg-dark .ubw-step-boxes-bottom-text {
  color: #ffffff;
}

/* Responsive Anpassungen */
@media (max-width: 991px) {
  .ubw-step-boxes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ubw-step-boxes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .ubw-step-box {
    padding: 1.75rem 1.25rem 1.5rem;
  }
  .ubw-step-boxes-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .ubw-step-boxes-bottom {
    margin-top: 2rem;
  }
}

/* ==========================================================================
   12. Zitat
   ========================================================================== */

.ubw-quote {
  margin: 0;
  padding: 1.5rem 2rem;
  border-left: 5px solid var(--ubw-primary);
  border-radius: 0 10px 10px 0;
  background-color: var(--ubw-surface);
  color: var(--ubw-text);
}

.ubw-quote blockquote {
  margin: 0;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
}

.ubw-quote blockquote p {
  margin: 0;
}

.ubw-quote-author {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.ubw-quote-author strong {
  color: var(--ubw-primary);
}

.ubw-quote-author span {
  font-size: 0.9rem;
  color: var(--ubw-muted);
}

/* ==========================================================================
   13. Tabelle
   ========================================================================== */

.ubw-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ubw-border);
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--ubw-text);
}

.ubw-table-wrap:focus-visible {
  outline: 3px solid var(--ubw-focus);
  outline-offset: 2px;
}

.ubw-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.ubw-table caption {
  caption-side: top;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--ubw-primary);
}

.ubw-table th,
.ubw-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--ubw-border);
  text-align: left;
  vertical-align: top;
}

.ubw-table thead th {
  background-color: var(--ubw-primary);
  color: #ffffff;
}

.ubw-table tbody tr:nth-child(even) {
  background-color: var(--ubw-surface);
}

/* ==========================================================================
   14. Abstand / Trennlinie
   ========================================================================== */

.ubw-spacer--s { height: 0.5rem; }
.ubw-spacer--m { height: 1.5rem; }
.ubw-spacer--l { height: 3rem; }

.ubw-divider {
  border: 0;
  border-top: 1px solid var(--ubw-border);
}

.ubw-col > .ubw-divider--s { margin-top: 1rem; margin-bottom: 0.25rem; }
.ubw-col > .ubw-divider--m { margin-top: 2rem; margin-bottom: 0.75rem; }
.ubw-col > .ubw-divider--l { margin-top: 3rem; margin-bottom: 1.75rem; }

/* ==========================================================================
   15. Reduzierte Bewegung
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ubw .ubw-btn {
    transition: none;
  }

  .ubw .ubw-btn:hover {
    transform: none;
  }
}

/* ==========================================================================
   16. Joomla-Modul ({loadmoduleid} / {loadposition})
   ========================================================================== */

.ubw-module {
  min-width: 0;
  box-sizing: border-box;
}

.ubw-module > :first-child {
  margin-top: 0;
}

.ubw-module > :last-child {
  margin-bottom: 0;
}

/* Optionale Hintergrundfarbe & Box-Darstellung fuer Joomla-Module */
.ubw-module[class*="ubw-module--bg-"]:not(.ubw-module--bg-none),
.ubw-module.ubw-module--bordered,
.ubw-module[style*="background"] {
  padding: 1.5rem;
}

.ubw-module--bg-white {
  background-color: #ffffff;
  color: var(--ubw-text, #1e293b);
}

.ubw-module--bg-surface {
  background-color: var(--ubw-surface, #f8fafc);
  color: var(--ubw-text, #1e293b);
}

.ubw-module--bg-light {
  background-color: #f1f5f9;
  color: var(--ubw-text, #1e293b);
}

.ubw-module--bg-dark {
  background-color: #1e293b;
  color: #ffffff;
}

.ubw-module--bg-primary {
  background-color: var(--ubw-primary, #002b66);
  color: #ffffff;
}

.ubw-module--rounded {
  border-radius: var(--ubw-radius, 8px);
}

.ubw-module--bordered {
  border: 1px solid var(--ubw-border, #cbd5e1);
}

.ubw-module--is-dark.ubw-module--bordered {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Innenabstaende (Padding) fuer Joomla-Module - ueberschreiben den Automatik-Standard */
.ubw-module.ubw-module--pad-none { padding: 0 !important; }
.ubw-module.ubw-module--pad-xs   { padding: 0.5rem !important; }
.ubw-module.ubw-module--pad-s    { padding: 1rem !important; }
.ubw-module.ubw-module--pad-m    { padding: 1.5rem !important; }
.ubw-module.ubw-module--pad-l    { padding: 2.25rem !important; }
.ubw-module.ubw-module--pad-xl   { padding: 3rem !important; }

.ubw-module.ubw-module--py-none { padding-top: 0 !important; padding-bottom: 0 !important; }
.ubw-module.ubw-module--py-xs   { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.ubw-module.ubw-module--py-s    { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.ubw-module.ubw-module--py-m    { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.ubw-module.ubw-module--py-l    { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
.ubw-module.ubw-module--py-xl   { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.ubw-module.ubw-module--px-none { padding-left: 0 !important; padding-right: 0 !important; }
.ubw-module.ubw-module--px-xs   { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.ubw-module.ubw-module--px-s    { padding-left: 1rem !important; padding-right: 1rem !important; }
.ubw-module.ubw-module--px-m    { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.ubw-module.ubw-module--px-l    { padding-left: 2.25rem !important; padding-right: 2.25rem !important; }
.ubw-module.ubw-module--px-xl   { padding-left: 3rem !important; padding-right: 3rem !important; }

@media (max-width: 767.98px) {
  .ubw-module.ubw-module--pad-l  { padding: 1.5rem !important; }
  .ubw-module.ubw-module--pad-xl { padding: 1.75rem !important; }
  .ubw-module.ubw-module--py-l   { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .ubw-module.ubw-module--py-xl  { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .ubw-module.ubw-module--px-l   { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  .ubw-module.ubw-module--px-xl  { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

/* Lesbarkeit auf dunklen Modul-Hintergruenden (Formularfelder bleiben unberuehrt) */
.ubw-module--is-dark,
.ubw-module--is-dark h1,
.ubw-module--is-dark h2,
.ubw-module--is-dark h3,
.ubw-module--is-dark h4,
.ubw-module--is-dark h5,
.ubw-module--is-dark h6,
.ubw-module--is-dark p,
.ubw-module--is-dark li,
.ubw-module--is-dark label,
.ubw-module--is-dark a:not(.btn):not(.ubw-btn) {
  color: #ffffff;
}

/* Helle Modul-Hintergruende innerhalb dunkler Abschnitte behalten dunkle Schrift */
.ubw-module--bg-white,
.ubw-module--bg-surface,
.ubw-module--bg-light,
.ubw-module--bg-custom:not(.ubw-module--is-dark),
.ubw-module--bg-gradient:not(.ubw-module--is-dark),
.ubw-module--bg-white p,
.ubw-module--bg-surface p,
.ubw-module--bg-light p,
.ubw-module--bg-custom:not(.ubw-module--is-dark) p,
.ubw-module--bg-gradient:not(.ubw-module--is-dark) p,
.ubw-module--bg-white li,
.ubw-module--bg-surface li,
.ubw-module--bg-light li,
.ubw-module--bg-custom:not(.ubw-module--is-dark) li,
.ubw-module--bg-gradient:not(.ubw-module--is-dark) li,
.ubw-module--bg-white label,
.ubw-module--bg-surface label,
.ubw-module--bg-light label,
.ubw-module--bg-custom:not(.ubw-module--is-dark) label,
.ubw-module--bg-gradient:not(.ubw-module--is-dark) label {
  color: var(--ubw-text, #1e293b);
}

.ubw-module--bg-white h1,
.ubw-module--bg-white h2,
.ubw-module--bg-white h3,
.ubw-module--bg-white h4,
.ubw-module--bg-white h5,
.ubw-module--bg-white h6,
.ubw-module--bg-surface h1,
.ubw-module--bg-surface h2,
.ubw-module--bg-surface h3,
.ubw-module--bg-surface h4,
.ubw-module--bg-surface h5,
.ubw-module--bg-surface h6,
.ubw-module--bg-light h1,
.ubw-module--bg-light h2,
.ubw-module--bg-light h3,
.ubw-module--bg-light h4,
.ubw-module--bg-light h5,
.ubw-module--bg-light h6,
.ubw-module--bg-custom:not(.ubw-module--is-dark) h1,
.ubw-module--bg-custom:not(.ubw-module--is-dark) h2,
.ubw-module--bg-custom:not(.ubw-module--is-dark) h3,
.ubw-module--bg-custom:not(.ubw-module--is-dark) h4,
.ubw-module--bg-custom:not(.ubw-module--is-dark) h5,
.ubw-module--bg-custom:not(.ubw-module--is-dark) h6 {
  color: var(--ubw-primary, #002b66);
}

.ubw-grid--valign-stretch .ubw-col > .ubw-module[class*="ubw-module--bg-"]:not(.ubw-module--bg-none):only-child {
  height: 100%;
}

/* ==========================================================================
   17. Responsive Anpassungen für Smartphone & Tablet (Sections & Pagebuilder)
   ========================================================================== */

/* verhindert horizontales Scrollen durch 100vw Full-Bleed-Sections */
html,
body {
  overflow-x: clip;
}

@media (max-width: 991.98px) {
  .site-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .component-content section:not(.ubw) {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .has-zebra-sections .component-content section.full-bleed,
  .has-zebra-sections .component-content .section-full-width {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --container-padding: 1rem;
  }

  .ubw {
    --ubw-pad-x: var(--container-padding, 1rem);
    margin-bottom: 1.25rem;
  }

  .ubw.ubw--pad-s {
    --ubw-pad-y: 1.25rem;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .ubw.ubw--pad-m {
    --ubw-pad-y: 1.75rem;
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  .ubw.ubw--pad-l {
    --ubw-pad-y: 2.25rem;
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .ubw.ubw--padx-m {
    --ubw-pad-x: 1.25rem;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .ubw.ubw--padx-l {
    --ubw-pad-x: 1.5rem;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* Spalten auf dem Smartphone immer 100% untereinander */
  .ubw-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem;
  }

  .ubw-grid--gap-s { gap: 1rem; }
  .ubw-grid--gap-m { gap: 1.5rem; }
  .ubw-grid--gap-l { gap: 2rem; }

  .ubw-col,
  .ubw-grid .ubw-col[class*="ubw-span-"] {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  /* Typografie & Wortumbruch auf kleinen Displays */
  .ubw-heading {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  h1.ubw-heading,
  .ubw-heading--display {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem) !important;
    line-height: 1.18;
  }

  h2.ubw-heading {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .ubw-text--lead {
    font-size: 1.1rem;
  }

  /* Karten & Zitate kompakter */
  .ubw-card {
    padding: 1.35rem 1.15rem;
  }

  .ubw-card-media {
    margin: -1.35rem -1.15rem 0.25rem;
  }

  .ubw-callout {
    padding: 1rem 1.15rem;
  }

  .ubw-callout.ubw-callout--icon-card,
  .ubw-callout.ubw-callout--top-accent,
  .ubw-callout.ubw-callout--banner,
  .ubw-callout.ubw-callout--split-cta,
  .ubw-callout.ubw-callout--facts,
  .ubw-callout.ubw-callout--checklist,
  .ubw-callout.ubw-callout--steps,
  .ubw-steps.ubw-steps--card,
  .ubw-steps.ubw-steps--surface-card,
  .ubw-steps.ubw-steps--timeline-card {
    padding: 1.35rem 1.25rem;
  }

  .ubw-callout.ubw-callout--compact {
    padding: 0.65rem 0.95rem;
  }

  .ubw-callout--banner .ubw-callout-actions,
  .ubw-callout--split-cta .ubw-callout-actions {
    width: 100%;
  }

  .ubw-callout--banner .ubw-callout-actions .ubw-btn,
  .ubw-callout--split-cta .ubw-callout-actions .ubw-btn {
    width: 100%;
    justify-content: center;
  }

  .ubw-callout--compact .ubw-callout-actions {
    margin-left: 0;
  }

  .ubw-quote {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  }

  .ubw-quote blockquote {
    font-size: 1.1rem;
  }

  /* Buttons auf sehr schmalen Screens über volle Breite stapeln */
  .ubw-buttons--row .ubw-btn {
    flex: 1 1 100%;
  }

  .ubw-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
/* <<< UCKERNET PAGEBUILDER END */

/* ==========================================================================
   Icon / Symbol Element (.ubw-icon)
   ========================================================================== */

.ubw-icon-wrap {
  display: flex;
  margin: 0;
  box-sizing: border-box;
}
.ubw-icon-wrap.ubw-align-left   { justify-content: flex-start; }
.ubw-icon-wrap.ubw-align-center { justify-content: center; }
.ubw-icon-wrap.ubw-align-right  { justify-content: flex-end; }

.ubw-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.ubw-icon:hover {
  transform: translateY(-2px);
}
.ubw-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Formen */
.ubw-icon--badge {
  border-radius: var(--ubw-radius, 12px);
  padding: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 43, 102, 0.08);
}
.ubw-icon--circle {
  border-radius: 50%;
  padding: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 43, 102, 0.08);
}
.ubw-icon--square {
  border-radius: 4px;
  padding: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 43, 102, 0.08);
}
.ubw-icon--plain {
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
}

/* Groessen */
.ubw-icon--s { width: 38px; height: 38px; }
.ubw-icon--s .ubw-icon-svg { width: 20px; height: 20px; }

.ubw-icon--m { width: 58px; height: 58px; }
.ubw-icon--m .ubw-icon-svg { width: 32px; height: 32px; }

.ubw-icon--l { width: 78px; height: 78px; }
.ubw-icon--l .ubw-icon-svg { width: 44px; height: 44px; }

.ubw-icon--xl { width: 98px; height: 98px; }
.ubw-icon--xl .ubw-icon-svg { width: 56px; height: 56px; }

/* Plain Groessen */
.ubw-icon--plain.ubw-icon--s { width: 24px; height: 24px; }
.ubw-icon--plain.ubw-icon--s .ubw-icon-svg { width: 24px; height: 24px; }
.ubw-icon--plain.ubw-icon--m { width: 40px; height: 40px; }
.ubw-icon--plain.ubw-icon--m .ubw-icon-svg { width: 40px; height: 40px; }
.ubw-icon--plain.ubw-icon--l { width: 56px; height: 56px; }
.ubw-icon--plain.ubw-icon--l .ubw-icon-svg { width: 56px; height: 56px; }
.ubw-icon--plain.ubw-icon--xl { width: 76px; height: 76px; }
.ubw-icon--plain.ubw-icon--xl .ubw-icon-svg { width: 76px; height: 76px; }

/* Icon Farben */
.ubw-icon--color-primary { color: var(--ubw-primary, #002b66); }
.ubw-icon--color-white   { color: #ffffff; }
.ubw-icon--color-dark    { color: #0f172a; }
.ubw-icon--color-muted   { color: var(--ubw-muted, #64748b); }

/* Icon Hintergruende */
.ubw-icon--bg-primary {
  background-color: var(--ubw-primary, #002b66);
  color: #ffffff;
}
.ubw-icon--bg-white {
  background-color: #ffffff;
  color: var(--ubw-primary, #002b66);
  border: 1px solid var(--ubw-border, #cbd5e1);
}
.ubw-icon--bg-surface {
  background-color: var(--ubw-surface, #f8fafc);
  color: var(--ubw-primary, #002b66);
  border: 1px solid var(--ubw-border, #cbd5e1);
}
.ubw-icon--bg-light {
  background-color: #f1f5f9;
  color: var(--ubw-primary, #002b66);
}
.ubw-icon--bg-dark {
  background-color: #0f172a;
  color: #ffffff;
}

/* Benutzerdefinierte Farben & Farbverlaeufe */
.ubw--bg-custom,
.ubw--bg-gradient {
  --ubw-pad-x: 1.5rem;
  border-radius: var(--ubw-radius);
}

.ubw-col--bg-custom,
.ubw-col--bg-gradient {
  --ubw-col-pad: 1.5rem;
  padding: var(--ubw-col-pad);
  border-radius: var(--ubw-radius);
  box-shadow: 0 4px 20px rgba(0, 43, 102, 0.08);
}

.ubw-grid--cols-5 .ubw-col--bg-custom,
.ubw-grid--cols-5 .ubw-col--bg-gradient,
.ubw-grid--cols-6 .ubw-col--bg-custom,
.ubw-grid--cols-6 .ubw-col--bg-gradient {
  --ubw-col-pad: 1.25rem;
}

.ubw-card--custom,
.ubw-card--gradient {
  border-radius: var(--ubw-radius);
  padding: var(--ubw-card-pad, 2rem);
  box-shadow: 0 4px 20px rgba(0, 43, 102, 0.08);
}

.ubw-btn--custom,
.ubw-btn--gradient {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 43, 102, 0.15);
}
.ubw-btn--custom:hover,
.ubw-btn--gradient:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ==========================================================================
   FontAwesome Icon Unterstützung für Karten & Elemente
   ========================================================================== */

/* Ausrichtung des Icon-Containers in Karten */
.ubw-card-icon-wrap {
  display: flex;
  margin-bottom: 0.25rem;
  width: 100%;
}
.ubw-card-icon-wrap.ubw-align-center { justify-content: center; }
.ubw-card-icon-wrap.ubw-align-left   { justify-content: flex-start; }
.ubw-card-icon-wrap.ubw-align-right  { justify-content: flex-end; }

/* FontAwesome Icons innerhalb von .ubw-icon */
.ubw-icon i[class*="fa-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ubw-icon--s i[class*="fa-"] { font-size: 1.15rem; }
.ubw-icon--m i[class*="fa-"] { font-size: 1.75rem; }
.ubw-icon--l i[class*="fa-"] { font-size: 2.35rem; }
.ubw-icon--xl i[class*="fa-"] { font-size: 3.15rem; }

.ubw-icon--plain.ubw-icon--s i[class*="fa-"] { font-size: 1.35rem; }
.ubw-icon--plain.ubw-icon--m i[class*="fa-"] { font-size: 2.15rem; }
.ubw-icon--plain.ubw-icon--l i[class*="fa-"] { font-size: 2.85rem; }
.ubw-icon--plain.ubw-icon--xl i[class*="fa-"] { font-size: 3.85rem; }


/* ==========================================================================
   Verbesserte Abstände für Karten-Grafiken, Bilder & Icons
   ========================================================================== */

/* Standard-Kartenbild: Eingepasst mit Abstand statt randabfallend */
.ubw-card-media {
  display: flex;
  margin: 0.25rem 0 1.25rem 0;
  width: 100%;
  box-sizing: border-box;
}

.ubw-card-media.ubw-align-center { justify-content: center; text-align: center; }
.ubw-card-media.ubw-align-left   { justify-content: flex-start; text-align: left; }
.ubw-card-media.ubw-align-right  { justify-content: flex-end; text-align: right; }

.ubw-card-media img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Eingepasstes Bild (Kompakt für Icons/Grafiken) */
.ubw-card-media--compact {
  margin: 0.25rem 0 1.25rem 0;
}
.ubw-card-media--compact img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}
.ubw-card-media--compact.ubw-figure--maxw-xs img { max-width: 60px; max-height: 60px; }
.ubw-card-media--compact.ubw-figure--maxw-s img  { max-width: 80px; max-height: 80px; }
.ubw-card-media--compact.ubw-figure--maxw-m img  { max-width: 120px; max-height: 120px; }
.ubw-card-media--compact.ubw-figure--maxw-l img  { max-width: 180px; max-height: 180px; }
.ubw-card-media--compact.ubw-figure--maxw-full img { max-width: 100%; max-height: none; }

/* Vollflächiges Bild (Randabfallend / Fotobanner oben) */
.ubw-card-media--bleed {
  margin: -2rem -1.5rem 1.25rem -1.5rem !important;
  width: calc(100% + 3rem) !important;
  max-width: none !important;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  overflow: hidden;
}
.ubw-card-media--bleed img {
  width: 100% !important;
  max-width: none !important;
  height: auto;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* Ausrichtung des Icon-Containers in Karten mit großzügigem Abstand zum Titel */
.ubw-card-icon-wrap {
  display: flex;
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  width: 100%;
}
.ubw-card-icon-wrap.ubw-align-center { justify-content: center; }
.ubw-card-icon-wrap.ubw-align-left   { justify-content: flex-start; }
.ubw-card-icon-wrap.ubw-align-right  { justify-content: flex-end; }

/* Dynamische Abstände nach unten (Margin-Bottom) */
.ubw-media-mb--none { margin-bottom: 0 !important; }
.ubw-media-mb--xs   { margin-bottom: 0.5rem !important; }
.ubw-media-mb--s    { margin-bottom: 0.85rem !important; }
.ubw-media-mb--m    { margin-bottom: 1.25rem !important; }
.ubw-media-mb--l    { margin-bottom: 1.75rem !important; }
.ubw-media-mb--xl   { margin-bottom: 2.5rem !important; }

/* Karten-Innenabstand Varianten */
.ubw-card--pad-compact  { padding: 1.25rem 1rem !important; }
.ubw-card--pad-spacious { padding: 2.75rem 2rem !important; }

/* Ausrichtung innerhalb von Karten (.ubw-card) */
.ubw-card.ubw-align-left {
  text-align: left;
}
.ubw-card.ubw-align-left .ubw-badge {
  align-self: flex-start;
}
.ubw-card.ubw-align-left .ubw-card-title,
.ubw-card.ubw-align-left .ubw-card-text,
.ubw-card.ubw-align-left .ubw-text,
.ubw-card.ubw-align-left .ubw-text p,
.ubw-card.ubw-align-left .ubw-text ul,
.ubw-card.ubw-align-left .ubw-text ol {
  text-align: left;
}
.ubw-card.ubw-align-left .ubw-buttons {
  justify-content: flex-start;
}

.ubw-card.ubw-align-center {
  text-align: center;
}
.ubw-card.ubw-align-center .ubw-badge {
  align-self: center;
}
.ubw-card.ubw-align-center .ubw-card-title,
.ubw-card.ubw-align-center .ubw-card-text,
.ubw-card.ubw-align-center .ubw-text,
.ubw-card.ubw-align-center .ubw-text p,
.ubw-card.ubw-align-center .ubw-text ul,
.ubw-card.ubw-align-center .ubw-text ol {
  text-align: center;
}
.ubw-card.ubw-align-center .ubw-buttons {
  justify-content: center;
}

.ubw-card.ubw-align-right {
  text-align: right;
}
.ubw-card.ubw-align-right .ubw-badge {
  align-self: flex-end;
}
.ubw-card.ubw-align-right .ubw-card-title,
.ubw-card.ubw-align-right .ubw-card-text,
.ubw-card.ubw-align-right .ubw-text,
.ubw-card.ubw-align-right .ubw-text p,
.ubw-card.ubw-align-right .ubw-text ul,
.ubw-card.ubw-align-right .ubw-text ol {
  text-align: right;
}
.ubw-card.ubw-align-right .ubw-buttons {
  justify-content: flex-end;
}


/* ==========================================================================
   Frontend-Editing Buttons im Pagebuilder-Stil (fuer Module & Beitraege)
   ========================================================================== */

/* 1. Basis-Button im Pagebuilder-Design */
.flxglbl-edit-btn,
.jmodedit,
a.jmodedit,
.btn.jmodedit,
a[href*="task=article.edit"],
a[href*="view=form"][href*="layout=edit"],
a[href*="layout=edit"][href*="com_content"],
.icons a,
.com-content-article .icons a,
.item-page .icons a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 14px !important;
  background: #002b66 !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 14px rgba(0, 43, 102, 0.28), 0 1px 4px rgba(0, 0, 0, 0.12) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.flxglbl-edit-btn:hover,
.jmodedit:hover,
a.jmodedit:hover,
.btn.jmodedit:hover,
a[href*="task=article.edit"]:hover,
a[href*="view=form"][href*="layout=edit"]:hover,
a[href*="layout=edit"][href*="com_content"]:hover,
.icons a:hover,
.com-content-article .icons a:hover,
.item-page .icons a:hover {
  background: #001f4d !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 43, 102, 0.38), 0 2px 6px rgba(0, 0, 0, 0.16) !important;
  text-decoration: none !important;
}

.flxglbl-edit-btn:active,
.jmodedit:active {
  transform: translateY(0) !important;
}

/* 2. Runder Icon-Badge (Lime-Kreis mit dunklem Stift) */
.flxglbl-edit-btn-icon,
.flxglbl-edit-btn .icon-edit,
.jmodedit .icon-edit,
.icons .icon-edit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  background: #b0cb1f !important;
  color: #002b66 !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

/* 3. Text im Button */
.flxglbl-edit-btn-text {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.01em !important;
}

/* 4. Modul-Edit Wrapper & Positionierung */
.flxglbl-mod-edit-wrap {
  display: inline-flex;
  align-items: center;
  margin: 4px 0;
  z-index: 25;
}

.site-section-module,
.site-section,
.jmoddiv,
.moduletable {
  position: relative;
}

/* 5. Tooltip-Texte und offene Standard-Menues im Layout zuverlaessig ausblenden */
div[role="tooltip"],
[id^="tip-"],
[id^="editarticle-"],
.jmoddiv > div[role="tooltip"],
.icons div[role="tooltip"],
.icons .dropdown-menu {
  display: none !important;
}

/* 6. Artikel-Icons Wrapper */
.flxglbl-article-edit-wrap,
.com-content-article .icons,
.item-page .icons {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 6px 0 12px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* 7. Speziell in der Pfadnavigation (Breadcrumbs): dezent rechts ausrichten */
.mod-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.mod-breadcrumbs .breadcrumb-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex: 1 1 auto;
}

.mod-breadcrumbs .flxglbl-mod-edit-wrap,
.mod-breadcrumbs .jmodedit,
.site-breadcrumbs .flxglbl-mod-edit-wrap,
.site-breadcrumbs .jmodedit {
  margin-left: auto;
  flex-shrink: 0;
}

/* Text-Block mit optionaler Überschrift (.ubw-text-wrap) */
.ubw-text-wrap {
  width: 100%;
  box-sizing: border-box;
}

.ubw-text-wrap > .ubw-text-heading {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ubw-text-wrap.ubw-align-center {
  text-align: center;
}

.ubw-text-wrap.ubw-align-right {
  text-align: right;
}

.ubw-text-wrap.ubw-align-left {
  text-align: left;
}

/* Optionale Box-Darstellung für Text-Elemente (.ubw-text--box / .ubw-text-wrap.ubw-text--box) */
.ubw-text--box {
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1.75rem;
  border-radius: var(--ubw-radius, 12px);
}

.ubw-text--box.ubw-text--pad-s {
  padding: 1rem 1.15rem;
}

.ubw-text--box.ubw-text--pad-m {
  padding: 1.5rem 1.75rem;
}

.ubw-text--box.ubw-text--pad-l {
  padding: 2.25rem 2.25rem;
}

.ubw-text--box > :first-child,
.ubw-text--box > .ubw-text > :first-child {
  margin-top: 0;
}

.ubw-text--box > :last-child,
.ubw-text--box > .ubw-text > :last-child {
  margin-bottom: 0;
}

.ubw-text--box > .ubw-text {
  margin: 0;
  padding: 0;
}

.ubw-text--box ul,
.ubw-text--box ol {
  padding-left: 1.4rem;
}

.ubw-text--box.ubw-align-center ul,
.ubw-text--box.ubw-align-center ol,
.ubw-text--box.ubw-align-right ul,
.ubw-text--box.ubw-align-right ol {
  list-style-position: inside;
  padding-left: 0;
}

.ubw-text--box-white {
  background-color: #ffffff;
  color: var(--ubw-text, #1e293b);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 43, 102, 0.08);
}

.ubw-text--box-surface {
  background-color: var(--ubw-surface, #f8fafc);
  color: var(--ubw-text, #1e293b);
  border: 1px solid var(--ubw-border, #e2e8f0);
  box-shadow: none;
}

.ubw-text--box-outline {
  background-color: transparent;
  border: 2px solid var(--ubw-border, #cbd5e1);
  box-shadow: none;
}

.ubw--bg-primary .ubw-text--box-outline,
.ubw--bg-dark .ubw-text--box-outline,
.ubw-col--bg-primary .ubw-text--box-outline,
.ubw-col--bg-glass-dark .ubw-text--box-outline {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Dunkle Text- & Markenfarben in weißen / hellen Textboxen auch auf dunklen Abschnitten sichern */
.ubw-text--box-white,
.ubw-text--box-surface,
.ubw-text--box-white > .ubw-text:not(.ubw-text--lead):not(.ubw-text--kicker):not(.ubw-text--small),
.ubw-text--box-surface > .ubw-text:not(.ubw-text--lead):not(.ubw-text--kicker):not(.ubw-text--small),
.ubw-text--box-white p,
.ubw-text--box-surface p,
.ubw-text--box-white li,
.ubw-text--box-surface li {
  color: var(--ubw-text, #1e293b);
}

.ubw-text--box-white > .ubw-text-heading,
.ubw-text--box-surface > .ubw-text-heading,
.ubw-text--box-white h1,
.ubw-text--box-white h2,
.ubw-text--box-white h3,
.ubw-text--box-white h4,
.ubw-text--box-white h5,
.ubw-text--box-white h6,
.ubw-text--box-surface h1,
.ubw-text--box-surface h2,
.ubw-text--box-surface h3,
.ubw-text--box-surface h4,
.ubw-text--box-surface h5,
.ubw-text--box-surface h6,
.ubw-text--box-white.ubw-text--lead,
.ubw-text--box-surface.ubw-text--lead,
.ubw-text--box-white > .ubw-text--lead,
.ubw-text--box-surface > .ubw-text--lead,
.ubw-text--box-white.ubw-text--kicker,
.ubw-text--box-surface.ubw-text--kicker,
.ubw-text--box-white > .ubw-text--kicker,
.ubw-text--box-surface > .ubw-text--kicker,
.ubw-text--box-white a,
.ubw-text--box-surface a {
  color: var(--ubw-primary, #002b66);
}

.ubw-text--box-white.ubw-text--small,
.ubw-text--box-surface.ubw-text--small,
.ubw-text--box-white > .ubw-text--small,
.ubw-text--box-surface > .ubw-text--small {
  color: var(--ubw-muted, #475569);
}

/* Gleiche Höhe bei vertikal gestreckten Spalten (valign: stretch) */
.ubw-grid--valign-stretch .ubw-col > .ubw-text--box:only-child {
  flex: 1 1 auto;
  height: 100%;
}

@media (max-width: 767.98px) {
  .ubw-text--box,
  .ubw-text--box.ubw-text--pad-m {
    padding: 1.25rem 1.15rem;
  }

  .ubw-text--box.ubw-text--pad-s {
    padding: 0.9rem 1rem;
  }

  .ubw-text--box.ubw-text--pad-l {
    padding: 1.5rem 1.35rem;
  }
}

/* ==========================================================================
   Blog- & Kategorie-Ansichten (Cassiopeia & Dritt-Templates)
   ========================================================================== */

.com-content-category-blog .ubw.ubw--full,
.com-content-featured .ubw.ubw--full,
.blog-items .ubw.ubw--full,
.blog-item .ubw.ubw--full,
.item-content .ubw.ubw--full {
  width: 100% !important;
  max-width: 100% !important;
  position: static !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
}

.blog-item .ubw,
.com-content-category-blog .ubw {
  overflow: visible;
}


/* ==========================================================================
   11c. Prozess-Kette / Timeline mit Icon-Kreisen & Verbindungslinie
   ========================================================================== */

.ubw-process-chain {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Header */
.ubw-process-chain-header {
  margin-bottom: 2.75rem;
}

.ubw-process-chain-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: var(--ubw-accent, #00a3e0);
}

.ubw-process-chain-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.ubw-process-chain-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 760px;
}

/* Farbschemata (Dark = helle Schrift; Light = dunkle Schrift) */
.ubw-process-chain--theme-dark .ubw-process-chain-title {
  color: #ffffff;
}
.ubw-process-chain--theme-dark .ubw-process-chain-subtitle {
  color: rgba(255, 255, 255, 0.85);
}
.ubw-process-chain--theme-dark .ubw-process-chain-step-title {
  color: #ffffff;
}
.ubw-process-chain--theme-dark .ubw-process-chain-step-text {
  color: rgba(255, 255, 255, 0.85);
}

.ubw-process-chain--theme-light .ubw-process-chain-title {
  color: var(--ubw-primary, #002b66);
}
.ubw-process-chain--theme-light .ubw-process-chain-subtitle {
  color: var(--ubw-text, #1e293b);
}
.ubw-process-chain--theme-light .ubw-process-chain-step-title {
  color: var(--ubw-primary, #002b66);
}
.ubw-process-chain--theme-light .ubw-process-chain-step-text {
  color: var(--ubw-text, #1e293b);
}

/* Raster der Schritte */
.ubw-process-chain-grid {
  display: grid;
  grid-template-columns: repeat(var(--chain-cols, 4), minmax(0, 1fr));
  gap: 1.75rem;
  position: relative;
  align-items: flex-start;
}

.ubw-process-chain-grid--cols-2 { --chain-cols: 2; }
.ubw-process-chain-grid--cols-3 { --chain-cols: 3; }
.ubw-process-chain-grid--cols-4 { --chain-cols: 4; }
.ubw-process-chain-grid--cols-5 { --chain-cols: 5; }

/* Einzelner Schritt */
.ubw-process-chain-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.ubw-process-chain--align-center .ubw-process-chain-step {
  text-align: center;
}

.ubw-process-chain--align-left .ubw-process-chain-step {
  text-align: left;
}

/* Horizontale Verbindungslinie hinter den Kreisen */
.ubw-process-chain-step::before {
  content: '';
  position: absolute;
  top: calc(var(--chain-circle-size, 88px) / 2);
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--chain-line-color, rgba(255, 255, 255, 0.4));
  z-index: 1;
  transform: translateY(-50%);
}

.ubw-process-chain-step:first-child::before {
  left: 50%;
}

.ubw-process-chain-step:last-child::before {
  right: 50%;
}

.ubw-process-chain-step:only-child::before {
  display: none;
}

/* Linienstile */
.ubw-process-chain--line-dashed .ubw-process-chain-step::before {
  background: none;
  border-top: 2px dashed var(--chain-line-color, rgba(255, 255, 255, 0.4));
  height: 0;
}

.ubw-process-chain--line-dotted .ubw-process-chain-step::before {
  background: none;
  border-top: 2px dotted var(--chain-line-color, rgba(255, 255, 255, 0.4));
  height: 0;
}

.ubw-process-chain--line-none .ubw-process-chain-step::before {
  display: none;
}

/* Kreis-Wrapper */
.ubw-process-chain-circle-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Kreis selbst */
.ubw-process-chain-circle {
  width: var(--chain-circle-size, 88px);
  height: var(--chain-circle-size, 88px);
  min-width: var(--chain-circle-size, 88px);
  min-height: var(--chain-circle-size, 88px);
  border-radius: 50%;
  background-color: #b0cb1f;
  color: #002b66;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--chain-circle-size, 88px) * 0.42);
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.ubw-process-chain-step:hover .ubw-process-chain-circle {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ubw-process-chain-circle i {
  line-height: 1;
  display: inline-block;
}

/* Kreis-Größen */
.ubw-process-chain--size-s { --chain-circle-size: 72px; }
.ubw-process-chain--size-m { --chain-circle-size: 88px; }
.ubw-process-chain--size-l { --chain-circle-size: 104px; }

/* Kreis-Farbvarianten */
.ubw-process-chain-circle--green { background-color: #b0cb1f; color: #002b66; }
.ubw-process-chain-circle--primary { background-color: var(--ubw-primary, #002b66); color: #ffffff; }
.ubw-process-chain-circle--accent { background-color: var(--ubw-accent, #00a3e0); color: #ffffff; }
.ubw-process-chain-circle--secondary { background-color: #f39200; color: #ffffff; }
.ubw-process-chain-circle--white { background-color: #ffffff; color: var(--ubw-primary, #002b66); border: 2px solid #e2e8f0; }
.ubw-process-chain-circle--dark { background-color: #1e293b; color: #ffffff; }

/* Icon-Farben im Kreis */
.ubw-process-chain-circle.ubw-icon--color-primary { color: #002b66; }
.ubw-process-chain-circle.ubw-icon--color-white { color: #ffffff; }
.ubw-process-chain-circle.ubw-icon--color-green { color: #52992f; }
.ubw-process-chain-circle.ubw-icon--color-dark { color: #1e293b; }

/* Nummer-Badge (oben rechts am Kreis) */
.ubw-process-chain-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--ubw-primary, #002b66);
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.ubw-process-chain-badge--primary { background-color: #002b66; color: #ffffff; }
.ubw-process-chain-badge--green { background-color: #52992f; color: #ffffff; }
.ubw-process-chain-badge--accent { background-color: #00a3e0; color: #ffffff; }
.ubw-process-chain-badge--secondary { background-color: #f39200; color: #ffffff; }
.ubw-process-chain-badge--white { background-color: #ffffff; color: #002b66; border-color: #cbd5e1; }
.ubw-process-chain-badge--dark { background-color: #1e293b; color: #ffffff; }

/* Inhalte / Texte */
.ubw-process-chain-content {
  width: 100%;
}

.ubw-process-chain-step-title {
  margin: 0 0 0.65rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.ubw-process-chain-step-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Button darunter */
.ubw-process-chain-btn-wrap {
  margin-top: 2.75rem;
  display: flex;
}

.ubw-process-chain-btn-wrap.ubw-align-center { justify-content: center; }
.ubw-process-chain-btn-wrap.ubw-align-left { justify-content: flex-start; }
.ubw-process-chain-btn-wrap.ubw-align-right { justify-content: flex-end; }

/* Spezifischer Stil für den Vorlagen-Button (Grün mit Dunkelblau-Text & Uppercase) */
.ubw-btn--chain-green {
  background-color: #b0cb1f;
  color: #002b66;
  border-color: #b0cb1f;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  border-radius: 4px;
}
.ubw-btn--chain-green:hover {
  background-color: #9cb519;
  border-color: #9cb519;
  color: #001f4d;
}

/* Responsive Verhalten auf Tablets & Smartphones */
@media (max-width: 860px) {
  .ubw-process-chain-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .ubw-process-chain-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding-left: 0;
  }

  .ubw-process-chain--align-center .ubw-process-chain-step {
    text-align: left;
  }

  .ubw-process-chain-circle-wrap {
    margin-bottom: 0;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }

  /* Vertikale Linie auf mobilen Geräten */
  .ubw-process-chain-step::before {
    top: calc(var(--chain-circle-size, 88px) / 2);
    bottom: calc(-2.25rem + (var(--chain-circle-size, 88px) / 2));
    left: calc(var(--chain-circle-size, 88px) / 2);
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .ubw-process-chain-step:last-child::before {
    display: none;
  }

  .ubw-process-chain--line-dashed .ubw-process-chain-step::before {
    border-top: none;
    border-left: 2px dashed var(--chain-line-color, rgba(255, 255, 255, 0.4));
    width: 0;
  }

  .ubw-process-chain--line-dotted .ubw-process-chain-step::before {
    border-top: none;
    border-left: 2px dotted var(--chain-line-color, rgba(255, 255, 255, 0.4));
    width: 0;
  }
}


/* ==========================================================================
   A11Y Barrierefreiheits- & Kontrastmodi (SWP A11Y & Forced Colors)
   Passt eigene Hintergrundfarben (--ubw-bg-custom, data-bg-*, Footer-Farben,
   Inline-Farben & Verläufe) zuverlässig an das jeweils aktive A11Y-Schema an.
   ========================================================================== */

:is(
  html[data-a11y-contrast="yellow-black"], html.swp-a11y-contrast-yellow-black,
  html[data-a11y-contrast="black-yellow"], html.swp-a11y-contrast-black-yellow,
  html[data-a11y-contrast="white-black"], html.swp-a11y-contrast-white-black,
  html[data-a11y-contrast="dark"], html.swp-a11y-contrast-dark,
  html[data-a11y-contrast="black-white"], html.swp-a11y-contrast-black-white
) :is(.ubw > .ubw-bg, .ubw-card > .ubw-card-bg) {
  display: none !important;
}

:is(
  html[data-a11y-contrast="yellow-black"], html.swp-a11y-contrast-yellow-black,
  html[data-a11y-contrast="black-yellow"], html.swp-a11y-contrast-black-yellow,
  html[data-a11y-contrast="white-black"], html.swp-a11y-contrast-white-black,
  html[data-a11y-contrast="dark"], html.swp-a11y-contrast-dark,
  html[data-a11y-contrast="black-white"], html.swp-a11y-contrast-black-white
) body .ubw :is(
  .ubw-container,
  .ubw-grid,
  .ubw-col:not([class*="ubw-col--bg-"]):not([style*="background"]),
  .ubw-col.ubw-col--bg-none,
  .ubw-section-header,
  .ubw-heading-wrap,
  .ubw-text-wrap:not(.ubw-text--box),
  .ubw-card-icon-wrap,
  .ubw-card-media:not([class*="ubw-figure--bg-"]):not([style*="background"]),
  .ubw-step-boxes,
  .ubw-step-boxes-grid,
  .ubw-step-boxes-bottom,
  .ubw-process-chain,
  .ubw-process-chain-header,
  .ubw-process-chain-grid,
  .ubw-process-chain-step,
  .ubw-process-chain-content,
  .ubw-contact-info--style-plain
) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 1. GELB AUF SCHWARZ (yellow-black) */
:is(html[data-a11y-contrast="yellow-black"], html.swp-a11y-contrast-yellow-black),
:is(html[data-a11y-contrast="yellow-black"], html.swp-a11y-contrast-yellow-black) :is(.ubw, [data-bg-custom], [data-bg-even], [data-bg-odd], .site-footer) {
  --ubw-bg-custom: #000000 !important;
  --ubw-bg-even: #000000 !important;
  --ubw-bg-odd: #000000 !important;
  --ubw-surface: #000000 !important;
  --ubw-primary: #ffff00 !important;
  --ubw-secondary: #ffff00 !important;
  --ubw-text: #ffff00 !important;
  --ubw-muted: #ffff00 !important;
  --ubw-border: #ffff00 !important;
  --color-footer-bg: #000000 !important;
  --color-footer-text: #ffff00 !important;
  --color-footer-heading: #ffff00 !important;
  --color-footer-link: #ffff00 !important;
  --color-footer-border: #ffff00 !important;
  --color-menu-bg: #000000 !important;
  --color-menu-text: #ffff00 !important;
  --color-menu-hover-bg: #ffff00 !important;
  --color-menu-hover-text: #000000 !important;
  --color-menu-active-bg: #ffff00 !important;
  --color-menu-active-text: #ffff00 !important;
  --color-mobile-nav-bg: #000000 !important;
  --chain-line-color: #ffff00 !important;
}

:is(html[data-a11y-contrast="yellow-black"], html.swp-a11y-contrast-yellow-black) body :is(
  section.ubw,
  .ubw,
  .ubw.ubw--bg-custom,
  section.ubw[data-bg-custom],
  .ubw[data-bg-custom],
  .has-zebra-sections section.ubw.ubw--bg-custom,
  .has-zebra-sections .component-content section.ubw--bg-custom,
  .has-zebra-sections .component-content section[data-bg-custom],
  .ubw[data-bg-even],
  .ubw[data-bg-odd],
  .ubw.ubw--bg-gradient,
  .site-footer.footer-bg-custom
) {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="yellow-black"], html.swp-a11y-contrast-yellow-black) body .ubw :is(
  .ubw-card,
  .ubw-card[class*="ubw-card--accent-"],
  .ubw-col[class*="ubw-col--bg-"]:not(.ubw-col--bg-none),
  .ubw-col[style*="background"],
  .ubw-step-box,
  .ubw-step-box[data-bg-custom],
  .ubw-figure[class*="ubw-figure--bg-"],
  .ubw-figure[style*="background"],
  .ubw-card-media[class*="ubw-figure--bg-"],
  .ubw-card-media[style*="background"],
  .ubw-text--box,
  .ubw-module[class*="ubw-module--bg-"]:not(.ubw-module--bg-none),
  .ubw-module[style*="background"],
  .ubw-contact-info:not(.ubw-contact-info--style-plain),
  .ubw-dropdown-menu,
  .ubw-dropdown-item
) {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="yellow-black"], html.swp-a11y-contrast-yellow-black) body .ubw :is(
  .ubw-icon:not(.ubw-icon--plain),
  .ubw-icon--bg-custom,
  .ubw-icon[data-icon-bg-custom],
  .ubw-contact-info-icon:not(.ubw-contact-info-icon--plain),
  .ubw-step-box-badge,
  .ubw-process-chain-circle,
  .ubw-process-chain-badge,
  .ubw-badge
) {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="yellow-black"], html.swp-a11y-contrast-yellow-black) body .ubw :is(.ubw-btn, .ubw-btn[style*="background"], .ubw-btn--chain-green) {
  background: #ffff00 !important;
  background-color: #ffff00 !important;
  background-image: none !important;
  color: #000000 !important;
  border: 2px solid #ffff00 !important;
  box-shadow: none !important;
}

/* 2. SCHWARZ AUF GELB (black-yellow) */
:is(html[data-a11y-contrast="black-yellow"], html.swp-a11y-contrast-black-yellow),
:is(html[data-a11y-contrast="black-yellow"], html.swp-a11y-contrast-black-yellow) :is(.ubw, [data-bg-custom], [data-bg-even], [data-bg-odd], .site-footer) {
  --ubw-bg-custom: #ffff00 !important;
  --ubw-bg-even: #ffff00 !important;
  --ubw-bg-odd: #ffff00 !important;
  --ubw-surface: #ffff00 !important;
  --ubw-primary: #000000 !important;
  --ubw-secondary: #000000 !important;
  --ubw-text: #000000 !important;
  --ubw-muted: #000000 !important;
  --ubw-border: #000000 !important;
  --color-footer-bg: #ffff00 !important;
  --color-footer-text: #000000 !important;
  --color-footer-heading: #000000 !important;
  --color-footer-link: #000000 !important;
  --color-footer-border: #000000 !important;
  --color-menu-bg: #ffff00 !important;
  --color-menu-text: #000000 !important;
  --color-menu-hover-bg: #000000 !important;
  --color-menu-hover-text: #ffff00 !important;
  --color-menu-active-bg: #000000 !important;
  --color-menu-active-text: #000000 !important;
  --color-mobile-nav-bg: #ffff00 !important;
  --chain-line-color: #000000 !important;
}

:is(html[data-a11y-contrast="black-yellow"], html.swp-a11y-contrast-black-yellow) body :is(
  section.ubw,
  .ubw,
  .ubw.ubw--bg-custom,
  section.ubw[data-bg-custom],
  .ubw[data-bg-custom],
  .has-zebra-sections section.ubw.ubw--bg-custom,
  .has-zebra-sections .component-content section.ubw--bg-custom,
  .has-zebra-sections .component-content section[data-bg-custom],
  .ubw[data-bg-even],
  .ubw[data-bg-odd],
  .ubw.ubw--bg-gradient,
  .site-footer.footer-bg-custom
) {
  background: #ffff00 !important;
  background-color: #ffff00 !important;
  background-image: none !important;
  color: #000000 !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="black-yellow"], html.swp-a11y-contrast-black-yellow) body .ubw :is(
  .ubw-card,
  .ubw-card[class*="ubw-card--accent-"],
  .ubw-col[class*="ubw-col--bg-"]:not(.ubw-col--bg-none),
  .ubw-col[style*="background"],
  .ubw-step-box,
  .ubw-step-box[data-bg-custom],
  .ubw-figure[class*="ubw-figure--bg-"],
  .ubw-figure[style*="background"],
  .ubw-card-media[class*="ubw-figure--bg-"],
  .ubw-card-media[style*="background"],
  .ubw-text--box,
  .ubw-module[class*="ubw-module--bg-"]:not(.ubw-module--bg-none),
  .ubw-module[style*="background"],
  .ubw-contact-info:not(.ubw-contact-info--style-plain),
  .ubw-dropdown-menu,
  .ubw-dropdown-item
) {
  background: #ffff00 !important;
  background-color: #ffff00 !important;
  background-image: none !important;
  color: #000000 !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="black-yellow"], html.swp-a11y-contrast-black-yellow) body .ubw :is(
  .ubw-icon:not(.ubw-icon--plain),
  .ubw-icon--bg-custom,
  .ubw-icon[data-icon-bg-custom],
  .ubw-contact-info-icon:not(.ubw-contact-info-icon--plain),
  .ubw-step-box-badge,
  .ubw-process-chain-circle,
  .ubw-process-chain-badge,
  .ubw-badge
) {
  background: #ffff00 !important;
  background-color: #ffff00 !important;
  background-image: none !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="black-yellow"], html.swp-a11y-contrast-black-yellow) body .ubw :is(.ubw-btn, .ubw-btn[style*="background"], .ubw-btn--chain-green) {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffff00 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

/* 3. WEISS AUF SCHWARZ (white-black) */
:is(html[data-a11y-contrast="white-black"], html.swp-a11y-contrast-white-black),
:is(html[data-a11y-contrast="white-black"], html.swp-a11y-contrast-white-black) :is(.ubw, [data-bg-custom], [data-bg-even], [data-bg-odd], .site-footer) {
  --ubw-bg-custom: #000000 !important;
  --ubw-bg-even: #000000 !important;
  --ubw-bg-odd: #000000 !important;
  --ubw-surface: #000000 !important;
  --ubw-primary: #ffffff !important;
  --ubw-secondary: #ffffff !important;
  --ubw-text: #ffffff !important;
  --ubw-muted: #ffffff !important;
  --ubw-border: #ffffff !important;
  --color-footer-bg: #000000 !important;
  --color-footer-text: #ffffff !important;
  --color-footer-heading: #ffffff !important;
  --color-footer-link: #ffffff !important;
  --color-footer-border: #ffffff !important;
  --color-menu-bg: #000000 !important;
  --color-menu-text: #ffffff !important;
  --color-menu-hover-bg: #ffffff !important;
  --color-menu-hover-text: #000000 !important;
  --color-menu-active-bg: #ffffff !important;
  --color-menu-active-text: #ffffff !important;
  --color-mobile-nav-bg: #000000 !important;
  --chain-line-color: #ffffff !important;
}

:is(html[data-a11y-contrast="white-black"], html.swp-a11y-contrast-white-black) body :is(
  section.ubw,
  .ubw,
  .ubw.ubw--bg-custom,
  section.ubw[data-bg-custom],
  .ubw[data-bg-custom],
  .has-zebra-sections section.ubw.ubw--bg-custom,
  .has-zebra-sections .component-content section.ubw--bg-custom,
  .has-zebra-sections .component-content section[data-bg-custom],
  .ubw[data-bg-even],
  .ubw[data-bg-odd],
  .ubw.ubw--bg-gradient,
  .site-footer.footer-bg-custom
) {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="white-black"], html.swp-a11y-contrast-white-black) body .ubw :is(
  .ubw-card,
  .ubw-card[class*="ubw-card--accent-"],
  .ubw-col[class*="ubw-col--bg-"]:not(.ubw-col--bg-none),
  .ubw-col[style*="background"],
  .ubw-step-box,
  .ubw-step-box[data-bg-custom],
  .ubw-figure[class*="ubw-figure--bg-"],
  .ubw-figure[style*="background"],
  .ubw-card-media[class*="ubw-figure--bg-"],
  .ubw-card-media[style*="background"],
  .ubw-text--box,
  .ubw-module[class*="ubw-module--bg-"]:not(.ubw-module--bg-none),
  .ubw-module[style*="background"],
  .ubw-contact-info:not(.ubw-contact-info--style-plain),
  .ubw-dropdown-menu,
  .ubw-dropdown-item
) {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="white-black"], html.swp-a11y-contrast-white-black) body .ubw :is(
  .ubw-icon:not(.ubw-icon--plain),
  .ubw-icon--bg-custom,
  .ubw-icon[data-icon-bg-custom],
  .ubw-contact-info-icon:not(.ubw-contact-info-icon--plain),
  .ubw-step-box-badge,
  .ubw-process-chain-circle,
  .ubw-process-chain-badge,
  .ubw-badge
) {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="white-black"], html.swp-a11y-contrast-white-black) body .ubw :is(.ubw-btn, .ubw-btn[style*="background"], .ubw-btn--chain-green) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}

/* 4. DUNKELMODUS (dark) */
:is(html[data-a11y-contrast="dark"], html.swp-a11y-contrast-dark),
:is(html[data-a11y-contrast="dark"], html.swp-a11y-contrast-dark) :is(.ubw, [data-bg-custom], [data-bg-even], [data-bg-odd], .site-footer) {
  --ubw-bg-custom: #0f172a !important;
  --ubw-bg-even: #0f172a !important;
  --ubw-bg-odd: #0f172a !important;
  --ubw-surface: #1e293b !important;
  --ubw-primary: #38bdf8 !important;
  --ubw-secondary: #0284c7 !important;
  --ubw-text: #f8fafc !important;
  --ubw-muted: #cbd5e1 !important;
  --ubw-border: #475569 !important;
  --color-footer-bg: #0f172a !important;
  --color-footer-text: #cbd5e1 !important;
  --color-footer-heading: #f8fafc !important;
  --color-footer-link: #38bdf8 !important;
  --color-footer-border: #334155 !important;
  --color-menu-bg: #1e293b !important;
  --color-menu-text: #f8fafc !important;
  --color-menu-hover-bg: #334155 !important;
  --color-menu-hover-text: #38bdf8 !important;
  --color-menu-active-bg: #334155 !important;
  --color-menu-active-text: #38bdf8 !important;
  --color-mobile-nav-bg: #0f172a !important;
  --chain-line-color: #475569 !important;
}

:is(html[data-a11y-contrast="dark"], html.swp-a11y-contrast-dark) body :is(
  section.ubw,
  .ubw,
  .ubw.ubw--bg-custom,
  section.ubw[data-bg-custom],
  .ubw[data-bg-custom],
  .has-zebra-sections section.ubw.ubw--bg-custom,
  .has-zebra-sections .component-content section.ubw--bg-custom,
  .has-zebra-sections .component-content section[data-bg-custom],
  .ubw[data-bg-even],
  .ubw[data-bg-odd],
  .ubw.ubw--bg-gradient,
  .site-footer.footer-bg-custom
) {
  background: #0f172a !important;
  background-color: #0f172a !important;
  background-image: none !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="dark"], html.swp-a11y-contrast-dark) body .ubw :is(
  .ubw-card,
  .ubw-col[class*="ubw-col--bg-"]:not(.ubw-col--bg-none),
  .ubw-col[style*="background"],
  .ubw-step-box,
  .ubw-step-box[data-bg-custom],
  .ubw-figure[class*="ubw-figure--bg-"],
  .ubw-figure[style*="background"],
  .ubw-card-media[class*="ubw-figure--bg-"],
  .ubw-card-media[style*="background"],
  .ubw-text--box,
  .ubw-module[class*="ubw-module--bg-"]:not(.ubw-module--bg-none),
  .ubw-module[style*="background"],
  .ubw-contact-info:not(.ubw-contact-info--style-plain),
  .ubw-dropdown-menu,
  .ubw-dropdown-item
) {
  background: #1e293b !important;
  background-color: #1e293b !important;
  background-image: none !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="dark"], html.swp-a11y-contrast-dark) body .ubw .ubw-card[class*="ubw-card--accent-"] {
  border-left-color: #38bdf8 !important;
}

:is(html[data-a11y-contrast="dark"], html.swp-a11y-contrast-dark) body .ubw :is(
  .ubw-icon:not(.ubw-icon--plain),
  .ubw-icon--bg-custom,
  .ubw-icon[data-icon-bg-custom],
  .ubw-contact-info-icon:not(.ubw-contact-info-icon--plain),
  .ubw-step-box-badge,
  .ubw-process-chain-circle,
  .ubw-process-chain-badge,
  .ubw-badge
) {
  background: #1e293b !important;
  background-color: #1e293b !important;
  background-image: none !important;
  color: #38bdf8 !important;
  border: 1.5px solid #475569 !important;
  box-shadow: none !important;
}

:is(html[data-a11y-contrast="dark"], html.swp-a11y-contrast-dark) body .ubw :is(.ubw-btn, .ubw-btn[style*="background"], .ubw-btn--chain-green) {
  background: #0284c7 !important;
  background-color: #0284c7 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: none !important;
}

/* 5. SCHWARZ AUF WEISS (black-white Fallback) */
:is(html[data-a11y-contrast="black-white"], html.swp-a11y-contrast-black-white),
:is(html[data-a11y-contrast="black-white"], html.swp-a11y-contrast-black-white) :is(.ubw, [data-bg-custom], [data-bg-even], [data-bg-odd], .site-footer) {
  --ubw-bg-custom: #ffffff !important;
  --ubw-bg-even: #ffffff !important;
  --ubw-bg-odd: #ffffff !important;
  --ubw-surface: #ffffff !important;
  --ubw-primary: #000000 !important;
  --ubw-secondary: #000000 !important;
  --ubw-text: #000000 !important;
  --ubw-muted: #000000 !important;
  --ubw-border: #000000 !important;
  --color-footer-bg: #ffffff !important;
  --color-footer-text: #000000 !important;
  --color-footer-heading: #000000 !important;
  --color-footer-link: #000000 !important;
  --color-footer-border: #000000 !important;
  --color-menu-bg: #ffffff !important;
  --color-menu-text: #000000 !important;
  --color-menu-hover-bg: #000000 !important;
  --color-menu-hover-text: #ffffff !important;
  --color-menu-active-bg: #000000 !important;
  --color-menu-active-text: #000000 !important;
  --color-mobile-nav-bg: #ffffff !important;
  --chain-line-color: #000000 !important;
}

:is(html[data-a11y-contrast="black-white"], html.swp-a11y-contrast-black-white) body :is(
  section.ubw,
  .ubw,
  .ubw.ubw--bg-custom,
  section.ubw[data-bg-custom],
  .ubw[data-bg-custom],
  .has-zebra-sections section.ubw.ubw--bg-custom,
  .has-zebra-sections .component-content section.ubw--bg-custom,
  .has-zebra-sections .component-content section[data-bg-custom],
  .ubw[data-bg-even],
  .ubw[data-bg-odd],
  .ubw.ubw--bg-gradient,
  .site-footer.footer-bg-custom
) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

/* 5b. Navigation & Dropdown-Menüs in A11Y-Kontrastmodi */
html:is([data-a11y-contrast="yellow-black"], .swp-a11y-contrast-yellow-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub, .dropdown-menu) {
  background: #000000 !important;
  background-color: #000000 !important;
  border: 2px solid #ffff00 !important;
  box-shadow: none !important;
}
html:is([data-a11y-contrast="yellow-black"], .swp-a11y-contrast-yellow-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) .nav-item-inner {
  background: transparent !important;
  background-color: transparent !important;
}
html:is([data-a11y-contrast="yellow-black"], .swp-a11y-contrast-yellow-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > .nav-item-inner {
  background: #ffff00 !important;
  background-color: #ffff00 !important;
  color: #000000 !important;
}
html:is([data-a11y-contrast="yellow-black"], .swp-a11y-contrast-yellow-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > .nav-item-inner :is(a, a *, .nav-header, .nav-header *, .nav-text, .nav-icon, .nav-toggle-sub, .nav-toggle-sub *),
html:is([data-a11y-contrast="yellow-black"], .swp-a11y-contrast-yellow-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > :is(a, a *) {
  background: transparent !important;
  background-color: transparent !important;
  color: #000000 !important;
  text-decoration-color: #000000 !important;
}

html:is([data-a11y-contrast="black-yellow"], .swp-a11y-contrast-black-yellow) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub, .dropdown-menu) {
  background: #ffff00 !important;
  background-color: #ffff00 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}
html:is([data-a11y-contrast="black-yellow"], .swp-a11y-contrast-black-yellow) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) .nav-item-inner {
  background: transparent !important;
  background-color: transparent !important;
}
html:is([data-a11y-contrast="black-yellow"], .swp-a11y-contrast-black-yellow) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > .nav-item-inner {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffff00 !important;
}
html:is([data-a11y-contrast="black-yellow"], .swp-a11y-contrast-black-yellow) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > .nav-item-inner :is(a, a *, .nav-header, .nav-header *, .nav-text, .nav-icon, .nav-toggle-sub, .nav-toggle-sub *),
html:is([data-a11y-contrast="black-yellow"], .swp-a11y-contrast-black-yellow) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > :is(a, a *) {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffff00 !important;
  text-decoration-color: #ffff00 !important;
}

html:is([data-a11y-contrast="white-black"], .swp-a11y-contrast-white-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub, .dropdown-menu) {
  background: #000000 !important;
  background-color: #000000 !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}
html:is([data-a11y-contrast="white-black"], .swp-a11y-contrast-white-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) .nav-item-inner {
  background: transparent !important;
  background-color: transparent !important;
}
html:is([data-a11y-contrast="white-black"], .swp-a11y-contrast-white-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > .nav-item-inner {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}
html:is([data-a11y-contrast="white-black"], .swp-a11y-contrast-white-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > .nav-item-inner :is(a, a *, .nav-header, .nav-header *, .nav-text, .nav-icon, .nav-toggle-sub, .nav-toggle-sub *),
html:is([data-a11y-contrast="white-black"], .swp-a11y-contrast-white-black) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > :is(a, a *) {
  background: transparent !important;
  background-color: transparent !important;
  color: #000000 !important;
  text-decoration-color: #000000 !important;
}

html:is([data-a11y-contrast="dark"], .swp-a11y-contrast-dark) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub, .dropdown-menu) {
  background: #1e293b !important;
  background-color: #1e293b !important;
  border: 1.5px solid #475569 !important;
  box-shadow: none !important;
}
html:is([data-a11y-contrast="dark"], .swp-a11y-contrast-dark) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) .nav-item-inner {
  background: transparent !important;
  background-color: transparent !important;
}
html:is([data-a11y-contrast="dark"], .swp-a11y-contrast-dark) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > .nav-item-inner {
  background: #334155 !important;
  background-color: #334155 !important;
  color: #38bdf8 !important;
}
html:is([data-a11y-contrast="dark"], .swp-a11y-contrast-dark) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > .nav-item-inner :is(a, a *, .nav-header, .nav-header *, .nav-text, .nav-icon, .nav-toggle-sub, .nav-toggle-sub *),
html:is([data-a11y-contrast="dark"], .swp-a11y-contrast-dark) body .site-navigation :is(.nav-level-2, .nav-level-3, .nav-menu-sub) li:is(:hover, :focus-within, .active, .current, .is-active-parent, :has(.active), :has(.current), :has([aria-current="page"])) > :is(a, a *) {
  background: transparent !important;
  background-color: transparent !important;
  color: #38bdf8 !important;
  text-decoration-color: #38bdf8 !important;
}

/* 6. Windows High Contrast / System Forced Colors */
@media (forced-colors: active) {
  .ubw,
  .ubw.ubw--bg-custom,
  section.ubw[data-bg-custom],
  .ubw[data-bg-even],
  .ubw[data-bg-odd],
  .site-footer.footer-bg-custom {
    --ubw-bg-custom: Canvas !important;
    --ubw-bg-even: Canvas !important;
    --ubw-bg-odd: Canvas !important;
    --color-footer-bg: Canvas !important;
    background: Canvas !important;
    background-color: Canvas !important;
    color: CanvasText !important;
    border-color: CanvasText !important;
  }
}
