/* ==========================================================================
   FPSB Deutschland - Modern HTML5/CSS Rebuild
   ========================================================================== */

:root {
  --primary: #2685db;
  --primary-hover: #1d6bb1;
  --primary-dark: #124d85;
  --text-color: #4a5568;
  --text-dark: #1a202c;
  --text-muted: #718096;
  --bg-body: #ffffff;
  --bg-footer: #f5f5f5;
  --bg-header: #D4D4D4;
  --border-color: #e2e8f0;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-nav: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1240px;
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-color);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-header);
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #D4D4D4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-wrapper a {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Main Navigation (Desktop) */
.desktop-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff;
  padding: 0 13px;
  height: 65px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.nav-item:hover > .nav-link,
.nav-item.active > .nav-link {
  color: #000000;
  text-shadow: none;
}

.nav-item.has-children > .nav-link::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.nav-item.has-children:hover > .nav-link::after {
  transform: rotate(-135deg);
}

/* Desktop Offcanvas Icon */
.offcanvas-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  font-size: 20px;
  padding: 0 8px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
  line-height: 1;
}

.offcanvas-trigger:hover {
  color: #000000;
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 1010;
}

.nav-item:hover > .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  position: relative;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  font-size: 13.5px;
  color: #4a5568;
  font-family: var(--font-body);
  font-weight: 400;
  transition: all var(--transition-fast);
}

.dropdown-item:hover > .dropdown-link {
  background-color: var(--primary);
  color: #ffffff;
  padding-left: 22px;
}

/* Sub-dropdown (2nd Level) */
.sub-dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.dropdown-item:hover > .sub-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.dropdown-item.has-sub > .dropdown-link::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  color: #333333;
}

.menu-toggle:focus {
  outline: 2px solid var(--primary);
}

.hamburger-icon {
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333333;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* White bar between header and hero */
.header-hero-spacer {
  height: 40px;
  background-color: #ffffff;
  width: 100%;
}

/* Hero / Main Banner Section (Full Width 1:1) */
.hero-section {
  padding: 0;
  margin: 0;
  width: 100%;
  background-color: #ffffff;
}

.hero-banner-link {
  display: block;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.hero-banner-link:hover {
  transform: none;
  box-shadow: none;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Teasers Grid Section */
.teasers-section {
  padding: 25px 0 35px 0;
  background-color: #ffffff;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.teaser-card {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.teaser-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(38, 133, 219, 0.3);
}

.teaser-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 180 / 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.teaser-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.teaser-card:hover .teaser-img {
  transform: scale(1.05);
}

/* Footer / Bottom Section */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-footer);
  padding: 24px 0 20px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-nav a {
  color: #4a5568;
  font-weight: 400;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-nav .separator {
  color: #cbd5e1;
  user-select: none;
}

/* Social Media Icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  border-radius: 4px;
  overflow: hidden;
}

.social-link:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.social-link img {
  height: 36px;
  width: auto;
  display: block;
}

/* Copyright Row */
.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 12.5px;
  color: #888888;
}

/* Off-Canvas Mobile Drawer */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 1200;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #555555;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.mobile-nav-list {
  padding: 12px 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-nav);
  font-size: 15px;
  color: #333333;
  text-transform: uppercase;
  flex-grow: 1;
}

.mobile-nav-item.active > .mobile-nav-link-wrapper > .mobile-nav-link {
  color: var(--primary);
  font-weight: 600;
}

.mobile-submenu-toggle {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  color: #666666;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-submenu {
  display: none;
  background-color: #f8fafc;
  padding: 6px 0;
}

.mobile-submenu.open {
  display: block;
}

.mobile-sub-link {
  display: block;
  padding: 8px 20px 8px 32px;
  font-size: 13.5px;
  color: #555555;
}

.mobile-sub-link:hover {
  color: var(--primary);
  background-color: #f1f5f9;
}

/* Modern DSGVO Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 580px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  padding: 24px;
  z-index: 2000;
  display: none;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner.visible {
  display: block;
}

.cookie-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.cookie-text {
  font-size: 13px;
  color: #666666;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-cookie-primary {
  background-color: #28a745;
  color: #ffffff;
}

.btn-cookie-primary:hover {
  background-color: #218838;
}

.btn-cookie-secondary {
  background-color: #f1f5f9;
  color: #475569;
}

.btn-cookie-secondary:hover {
  background-color: #e2e8f0;
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .teaser-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }
  .site-logo {
    height: 44px;
  }
  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav {
    justify-content: center;
  }
  .footer-social {
    justify-content: center;
  }
}

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

/* ==========================================================================
   Subpage Layout & Typography
   ========================================================================== */

.subpage-banner {
  display: none !important;
}

.subpage-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Sidebar Navigation & Widgets */
.subpage-sidebar {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  position: sticky;
  top: 85px;
  margin-top: 0;
  padding-top: 0;
}

.subpage-sidebar > *:first-child,
.subpage-sidebar .sidebar-widget:first-child,
.subpage-sidebar .widget-foerderer:first-child,
.subpage-sidebar .sidebar-nav-box:first-child {
  margin-top: 0 !important;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

/* Förderer & Partner Widget */
.widget-foerderer {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 30px;
}

.widget-foerderer .widget-title {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: #718096;
  margin-top: 0 !important;
  margin-bottom: 12px;
  line-height: 1.2;
  padding-top: 2px;
}

.widget-foerderer .widget-intro {
  font-size: 12.5px;
  color: #666666;
  line-height: 1.55;
  margin-bottom: 18px;
}

.widget-foerderer .widget-intro a {
  color: var(--primary);
  text-decoration: underline;
}

.widget-foerderer .logo-item {
  display: block;
  text-align: center;
  margin: 14px 0;
}

.widget-foerderer .logo-item img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  transition: opacity var(--transition-fast);
}

.widget-foerderer .logo-item:hover img {
  opacity: 0.85;
}

.widget-foerderer hr {
  border: 0;
  border-top: 1px solid #eeeeee;
  margin: 16px 0;
}

.widget-foerderer .kooperation-label {
  font-size: 12px;
  color: #666666;
  margin: 16px 0 12px 0;
  line-height: 1.4;
}

/* Info Box / Download / Kontakt Sidebar Widgets */
.widget-info-box {
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 24px;
}

.widget-info-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.widget-info-box p {
  font-size: 13px;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 8px;
}

.widget-info-box a {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   Sidebar Navigation Box (Original FPSB .color style: 10px solid #004990, 20px 0 20px 0)
   ========================================================================== */

.color,
.sidebar-nav-box,
.sidebar-widget:has(.sidebar-menu) {
  background-color: #ffffff;
  border: 10px solid #004990;
  padding: 18px 15px;
  -webkit-border-radius: 20px 0 20px 0;
  border-radius: 20px 0 20px 0;
  margin-bottom: 25px;
  box-shadow: none;
  overflow: visible;
}

.sidebar-title {
  display: none;
}

/* Sidebar Navigation (ul.nav inside .sidebar-nav-box and .color) */
.sidebar-nav-box ul.nav,
.color ul.nav,
.sidebar-menu {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar-nav-box ul.nav > li,
.color ul.nav > li,
.sidebar-item {
  list-style: none !important;
  list-style-type: none !important;
  margin: 3px 0;
  position: relative;
}

.sidebar-nav-box ul.nav > li > a,
.color ul.nav > li > a,
.sidebar-item > a {
  display: flex;
  align-items: center;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  color: #637381 !important;
  text-decoration: none !important;
  border-left: none !important;
  background: none !important;
  transition: all var(--transition-fast);
}

.sidebar-nav-box ul.nav > li > a::before,
.color ul.nav > li > a::before,
.sidebar-item > a::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  font-size: 15px;
  font-weight: 400;
  color: #8c9ba5;
  transition: color var(--transition-fast);
}

.sidebar-nav-box ul.nav > li > a:hover,
.color ul.nav > li > a:hover,
.sidebar-item > a:hover {
  color: #004990 !important;
  padding-left: 4px;
}

.sidebar-nav-box ul.nav > li > a:hover::before,
.color ul.nav > li > a:hover::before,
.sidebar-item > a:hover::before {
  color: #004990;
}

.sidebar-nav-box ul.nav > li.active > a,
.color ul.nav > li.active > a,
.sidebar-item.active > a {
  color: #004990 !important;
  font-weight: 600;
}

.sidebar-nav-box ul.nav > li.active > a::before,
.color ul.nav > li.active > a::before,
.sidebar-item.active > a::before {
  color: #004990;
}

/* Sub-items in sidebar */
.sidebar-nav-box ul.nav-child,
.color ul.nav-child,
ul.nav-child,
.sidebar-sub-menu {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 14px !important;
  margin: 2px 0 4px 0 !important;
}

.sidebar-nav-box ul.nav-child li,
.color ul.nav-child li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 2px 0;
}

.sidebar-nav-box ul.nav-child li a,
.color ul.nav-child li a,
ul.nav-child li a,
.sidebar-sub-menu li a {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  padding: 3px 0;
  color: #718096 !important;
  text-decoration: none !important;
  background: none !important;
  transition: all var(--transition-fast);
}

.sidebar-nav-box ul.nav-child li a::before,
.color ul.nav-child li a::before,
ul.nav-child li a::before,
.sidebar-sub-menu li a::before {
  content: "›";
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  margin-right: 7px;
  color: #a0aec0;
  transition: color var(--transition-fast);
}

.sidebar-nav-box ul.nav-child li a:hover,
.color ul.nav-child li a:hover,
ul.nav-child li a:hover,
.sidebar-sub-menu li a:hover {
  color: #004990 !important;
  padding-left: 4px;
}

.sidebar-nav-box ul.nav-child li a:hover::before,
.color ul.nav-child li a:hover::before,
ul.nav-child li a:hover::before,
.sidebar-sub-menu li a:hover::before {
  color: #004990;
}

.sidebar-nav-box ul.nav-child li.active a,
.color ul.nav-child li.active a,
ul.nav-child li.active a,
.sidebar-sub-menu li.active a {
  color: #004990 !important;
  font-weight: 600;
}

.sidebar-nav-box ul.nav-child li.active a::before,
.color ul.nav-child li.active a::before,
ul.nav-child li.active a::before,
.sidebar-sub-menu li.active a::before {
  color: #004990;
}

/* Subpage Main Content Area */
.subpage-content {
  min-width: 0; /* Prevents overflow in CSS grid */
  line-height: 1.7;
  margin-top: 0;
  padding-top: 0;
}

.subpage-content .sp-column,
.subpage-content .item-page,
article.item-page {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.subpage-content h1,
.subpage-content h2,
.subpage-content h3,
.subpage-content h4 {
  color: var(--text-dark);
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  font-weight: 600;
}

/* Page heading alignment with sidebar top across all subpages */
.subpage-content > *:first-child,
.subpage-content .sp-column > *:first-child,
.subpage-content .item-page > div:first-child,
.subpage-content .item-page > div:first-child > h2,
.subpage-content .item-page > div:first-child > h1,
.subpage-content h1:first-child,
.subpage-content h2:first-child,
.subpage-content h2[itemprop="name"],
.subpage-content .page-header,
.subpage-content .page-header h1,
.subpage-content .page-header h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.subpage-content h2[itemprop="name"],
.subpage-content .page-header h1,
.subpage-content h1.page-title {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.2;
  margin-top: 0 !important;
  margin-bottom: 16px;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.subpage-content h1 {
  font-size: 28px;
  line-height: 1.25;
  border-bottom: none;
  padding-bottom: 0;
}

.subpage-content h2 {
  font-size: 22px;
  line-height: 1.3;
}

.subpage-content h3 {
  font-size: 18px;
}

h1.subtitel,
h2.subtitel,
h3.subtitel,
h4.subtitel,
.subpage-content h3.subtitel,
.subpage-content h4.subtitel,
div.subtitel:not(:has(p)):not(:has(div)),
p.subtitel {
  color: #004990;
  font-size: 16px;
  font-weight: 700;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

.subpage-content .subtitel div,
.subpage-content .subtitel p,
.subpage-content p {
  color: var(--text-color);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.65;
}

.subpage-content p {
  margin-bottom: 1.2em;
}

.subpage-content ul,
.subpage-content ol {
  margin-bottom: 1.4em;
  padding-left: 24px;
}

.subpage-content ul {
  list-style-type: disc;
}

.subpage-content li {
  margin-bottom: 0.4em;
}

.subpage-content a {
  color: var(--primary);
  text-decoration: underline;
}

.subpage-content a:hover {
  color: var(--primary-hover);
}

/* Tables in Content */
.subpage-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.subpage-content th,
.subpage-content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.subpage-content th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-dark);
}

.subpage-content tr:last-child td {
  border-bottom: none;
}

.subpage-content tr:hover td {
  background-color: #f8fafc;
}

/* Images & Media in Content */
.subpage-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
}

/* Flag tables & Internationales Netzwerk */
.subpage-content .slides-container ul.slides {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
}

.subpage-content .slides-container ul.slides > li {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin-bottom: 16px;
}

.subpage-content table.table {
  width: 100%;
  border-collapse: collapse;
}

.subpage-content table.table td {
  padding: 10px 14px;
  vertical-align: middle;
}

.subpage-content table.table td img {
  max-width: 60px;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Team / Vorstand & General Row Grids */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0;
}

.col-md-4 {
  flex: 0 0 268px;
  max-width: 268px;
  width: 268px;
  box-sizing: border-box;
}

.col-md-4 > img {
  width: 100%;
  max-width: 268px;
  height: auto !important;
  aspect-ratio: auto !important;
  display: block;
  margin: 0 auto;
}

/* Team / Vorstand Grid */
.teamLayout .items-row,
.subpage-content .items-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}

.teamLayout .col-md-2,
.items-row > .col-md-2 {
  display: none !important;
}

.teamLayout .item,
.subpage-content .items-row .item {
  flex: 0 0 268px;
  max-width: 268px;
  width: 268px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.teamLayout .item:hover,
.subpage-content .items-row .item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.intro-image {
  margin-bottom: 12px;
  text-align: center;
}

.intro-image a {
  display: block;
}

.intro-image img {
  width: 100%;
  max-width: 240px;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain;
  border-radius: 4px;
  margin: 0 auto !important;
  display: block;
}

/* Responsive Subpage */
@media (max-width: 900px) {
  .subpage-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .subpage-sidebar {
    position: static;
  }
}

.cookie-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: #888888;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition-fast);
}

.cookie-close:hover {
  color: #333333;
}

/* ==========================================================================
   Full-width pages without sidebar & K2 News/Blog styling
   ========================================================================== */

.subpage-grid.no-sidebar,
.subpage-grid:not(:has(.subpage-sidebar)) {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 60px;
}

.subpage-grid.no-sidebar .subpage-content,
.subpage-grid:not(:has(.subpage-sidebar)) .subpage-content {
  width: 100%;
}

/* K2 News & Blog Layout (Aktuelles & Presse) */
#k2Container {
  width: 100%;
}

#itemListLeading,
#itemListPrimary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 800px) {
  #itemListLeading,
  #itemListPrimary {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.itemContainer {
  width: 100% !important;
  float: none !important;
}

.catItemView {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.catItemDateCreated {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: #888888;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 8px;
}

.catItemTitle {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 14px;
}

.catItemTitle a {
  color: #2685db;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.catItemTitle a:hover {
  color: #124d85;
  text-decoration: underline;
}

.catItemImageBlock {
  margin: 12px 0 16px 0;
}

.catItemImageBlock img,
.catItemImage img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border: 1px solid #dcdfe3;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 2px;
}

.catItemIntroText {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a5568;
}

.catItemIntroText p {
  margin-bottom: 12px;
}

.catItemIntroText p:first-child strong,
.catItemIntroText strong:first-child {
  color: #2685db;
  font-weight: 700;
  line-height: 1.5;
  display: inline;
}

.catItemAttachmentsBlock,
.catItemReadMore {
  margin-top: 14px;
}

.catItemAttachmentsBlock a,
.catItemReadMore a,
.catItemIntroText a {
  color: #2685db;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
}

.catItemAttachmentsBlock a:hover,
.catItemReadMore a:hover,
.catItemIntroText a:hover {
  color: #124d85;
}

.k2FeedIcon {
  display: none !important;
}

/* Single Article / Item View (.itemView) */
.itemView .itemHeader .itemTitle {
  font-size: 26px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 12px;
}

.itemView .itemHeader .itemDateCreated {
  display: block;
  font-size: 13px;
  color: #888888;
  margin-bottom: 16px;
}

.itemView .itemImageBlock {
  margin: 20px 0 24px 0;
}

.itemView .itemImageBlock img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.itemView .itemIntroText {
  font-size: 15px;
  font-weight: 600;
  color: #004990;
  line-height: 1.65;
  margin-bottom: 20px;
}

.itemView .itemFullText {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4a5568;
}

.itemView .itemFullText p {
  margin-bottom: 14px;
}

.itemView .itemAttachmentsBlock {
  margin-top: 24px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.itemView .itemAttachmentsBlock a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   Accordion Components (RokSprocket Lists & Widgetkit Accordions)
   ========================================================================== */

/* --- RokSprocket Lists Accordion (z. B. Ehrengericht) --- */
.sprocket-lists {
  margin: 24px 0 32px 0;
  width: 100%;
}

.subpage-content ul.sprocket-lists-container,
ul.sprocket-lists-container {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sprocket-lists-container > li,
.subpage-content ul.sprocket-lists-container > li {
  list-style: none !important;
  list-style-type: none !important;
  margin-bottom: 7px;
  border: 1px solid #dcdfe3;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.sprocket-lists-title {
  margin: 0 !important;
  padding: 11px 16px !important;
  background: #f1f3f5;
  background: linear-gradient(to bottom, #f7f9fa 0%, #ebedf0 100%);
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #4a5568 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: none;
}

.sprocket-lists-title:hover {
  background: #e2e6ea;
  color: #1a202c !important;
}

.sprocket-lists-container > li.active > .sprocket-lists-title {
  background: #e6eaee;
  border-bottom: 1px solid #dcdfe3;
  color: #1a202c !important;
}

/* Round plus / minus indicator on right */
.sprocket-lists-title .indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cfd5dc;
  color: #556270;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 12px;
  transition: all 0.2s ease;
}

.sprocket-lists-title .indicator span {
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s ease;
}

.sprocket-lists-container > li.active > .sprocket-lists-title .indicator {
  background: #b8c1ca;
  color: #1a202c;
}

.sprocket-lists-container > li.active > .sprocket-lists-title .indicator span {
  transform: rotate(45deg);
}

/* Accordion item content */
.sprocket-lists-item {
  display: none;
  padding: 16px 20px;
  background: #ffffff;
  color: #4a5568;
  font-size: 14.5px;
  line-height: 1.65;
}

.sprocket-lists-container > li.active > .sprocket-lists-item {
  display: block;
}

.sprocket-lists-item p {
  margin: 0 0 8px 0;
}

.sprocket-lists-item p:last-child {
  margin-bottom: 0;
}

.sprocket-lists-nav {
  display: none !important;
}

/* --- Widgetkit Accordion (z. B. Dokumentencenter) --- */
.wk-accordion {
  margin: 20px 0 28px 0;
  width: 100%;
}

.wk-accordion .toggler {
  margin: 0 0 6px 0 !important;
  padding: 11px 16px !important;
  background: #f1f3f5;
  background: linear-gradient(to bottom, #f7f9fa 0%, #ebedf0 100%);
  border: 1px solid #dcdfe3;
  border-radius: 4px;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #4a5568 !important;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}

.wk-accordion .toggler:hover {
  background: #e2e6ea;
  color: #1a202c !important;
}

.wk-accordion .toggler.active {
  background: #e6eaee;
  border-bottom: 1px solid #dcdfe3;
  border-radius: 4px 4px 0 0;
  color: #1a202c !important;
}

.wk-accordion .toggler + div {
  display: none;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #dcdfe3;
  border-top: none;
  border-radius: 0 0 4px 4px;
  margin-top: -6px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.65;
}

.wk-accordion .toggler.active + div {
  display: block;
}

/* --- Impressum 2-Spalten Layout --- */
.impressum-grid {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 20px;
}

.impressum-col-left .impressum-group {
  margin-bottom: 20px;
}

.impressum-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #004990;
  margin: 0 0 4px 0;
}

.impressum-col-left p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a5568;
  margin: 0;
}

.impressum-col-left a {
  color: #004990;
  text-decoration: none;
}

.impressum-col-left a:hover {
  text-decoration: underline;
}

.impressum-col-right .sprocket-lists {
  margin-top: 0 !important;
  margin-bottom: 28px !important;
}

.impressum-trademarks .trademark-block {
  margin-bottom: 22px;
}

.impressum-trademarks .trademark-logo {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.impressum-trademarks p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #556270;
  margin: 0;
}

@media (max-width: 860px) {
  .impressum-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

