/*
Theme Name: SSE Online
Theme URI: https://sse-online.de
Author: SSE
Author URI: https://sse-online.de
Description: Custom WordPress theme for SSE Software - migrated from Typo3. Emergency service software solutions.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://sse-online.de
Text Domain: sse-online
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --sse-blue-dark: #003974;
    --sse-blue-light: #00abe5;
    --sse-green: #91bd2f;
    --sse-green-light: #a4d042;
    --sse-white: #ffffff;
    --sse-gray-light: #f5f5f5;
    --sse-gray: #e0e0e0;
    --sse-gray-dark: #6c757d;
    --sse-text: #414141;
    --sse-text-light: #666666;
    --sse-gradient-primary: linear-gradient(270deg, #00abe5 0%, #003974 100%);
    --sse-gradient-primary-horizontal: linear-gradient(270deg, #00abe5 0%, #003974 100%);
    --sse-font-family: 'Barlow', sans-serif;
    --sse-transition: 0.3s ease;
}

/* ==========================================================================
   @font-face - Barlow (self-hosted)
   ========================================================================== */

@font-face {
    font-family: 'Barlow';
    src: url('assets/fonts/barlow-v5-latin-300.woff2') format('woff2'),
         url('assets/fonts/barlow-v5-latin-300.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('assets/fonts/barlow-v5-latin-300italic.woff2') format('woff2'),
         url('assets/fonts/barlow-v5-latin-300italic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('assets/fonts/barlow-v5-latin-regular.woff2') format('woff2'),
         url('assets/fonts/barlow-v5-latin-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('assets/fonts/barlow-v5-latin-italic.woff2') format('woff2'),
         url('assets/fonts/barlow-v5-latin-italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('assets/fonts/barlow-v5-latin-600.woff2') format('woff2'),
         url('assets/fonts/barlow-v5-latin-600.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('assets/fonts/barlow-v5-latin-600italic.woff2') format('woff2'),
         url('assets/fonts/barlow-v5-latin-600italic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('assets/fonts/barlow-v5-latin-700.woff2') format('woff2'),
         url('assets/fonts/barlow-v5-latin-700.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('assets/fonts/barlow-v5-latin-700italic.woff2') format('woff2'),
         url('assets/fonts/barlow-v5-latin-700italic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sse-font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: var(--sse-text);
    background-color: var(--sse-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sse-font-family);
    line-height: 1.3;
    color: var(--sse-blue-dark);
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--sse-blue-light);
    transition: color var(--sse-transition);
}

a:hover {
    color: var(--sse-blue-dark);
    text-decoration: none;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-primary {
    color: var(--sse-blue-dark) !important;
}

.text-accent {
    color: var(--sse-blue-dark) !important;
}

.bg-light {
    background-color: var(--sse-gray-light) !important;
}

.gradient-primary {
    background: var(--sse-gradient-primary) !important;
    color: var(--sse-white);
}

.gradient-primary-horizontal {
    background: var(--sse-gradient-primary-horizontal) !important;
    color: var(--sse-white);
}

.gradient-primary a,
.gradient-primary-horizontal a {
    color: var(--sse-white);
}

.gradient-primary a:hover,
.gradient-primary-horizontal a:hover {
    color: var(--sse-blue-light);
}

.btn-primary {
    background-color: var(--sse-blue-dark);
    border-color: var(--sse-blue-dark);
    color: var(--sse-white);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    transition: all var(--sse-transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--sse-blue-light);
    border-color: var(--sse-blue-light);
    color: var(--sse-white);
    box-shadow: 0 4px 12px rgba(145, 189, 47, 0.4);
}

.btn-outline-light {
    border-color: var(--sse-white);
    color: var(--sse-white);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    transition: all var(--sse-transition);
}

.btn-outline-light:hover {
    background-color: var(--sse-white);
    color: var(--sse-blue-dark);
}

.section-spacing {
    margin: 0;
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--sse-blue-dark);
    margin-top: 0.75rem;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-title.text-white::after {
    background: var(--sse-blue-light);
}

/* ==========================================================================
   Outer Wrapper
   ========================================================================== */

.outerWrapper.layout-Default {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.outerWrapper.layout-Default > .site-content {
    flex: 1;
}

/* ==========================================================================
   Header — Modern Sticky Nav
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* Push content below fixed header */
.site-content {
    padding-top: 100px;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(90deg, #00abe5 0%, #0088cc 50%, #003974 100%);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    position: relative;
    z-index: 100;
    margin-top: 91px;
}

.admin-bar .promo-banner {
    margin-top: 123px;
}

.promo-banner + .site-content {
    padding-top: 0;
}

.promo-banner + .site-content .hero {
    margin-top: 0;
    padding-top: 0;
    min-height: calc(100vh - 91px - 52px); /* minus header and promo banner */
}

.promo-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.promo-banner-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity var(--sse-transition);
}

.promo-banner-link:hover {
    color: white;
    opacity: 0.85;
}

.promo-banner-arrow {
    font-size: 1.1rem;
    transition: transform var(--sse-transition);
}

.promo-banner-link:hover .promo-banner-arrow {
    transform: translateX(3px);
}

.promo-banner-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: color var(--sse-transition);
}

.promo-banner-close:hover {
    color: white;
}

@media (max-width: 767.98px) {
    .promo-banner {
        font-size: 0.8125rem;
        padding: 8px 2rem;
    }
}

/* Offset for WordPress admin bar */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Navbar base */
.navbar.navbar-main {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 57, 116, 0.08);
    transition: all 0.4s ease;
}

/* Scrolled state — compact */
.site-header.scrolled .navbar.navbar-main {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 57, 116, 0.1);
}

/* Logo */
.navbar.navbar-main .navbar-brand {
    padding: 0;
    transition: all 0.4s ease;
}

.navbar.navbar-main .navbar-brand img,
.site-logo {
    height: 60px;
    width: auto;
    max-height: 60px;
    transition: all 0.4s ease;
}

.site-header.scrolled .navbar.navbar-main .navbar-brand img,
.site-header.scrolled .site-logo {
    height: 40px;
    max-height: 40px;
}

/* Nav links */
.navbar.navbar-main .nav-link {
    color: var(--sse-blue-dark);
    font-weight: 400;
    font-size: 15px;
    padding: 10px 0;
    margin: 0 14px;
    position: relative;
    transition: color var(--sse-transition);
    letter-spacing: 0.3px;
}

.navbar.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--sse-blue-light);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar.navbar-main .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar.navbar-main .nav-link:hover,
.navbar.navbar-main .nav-link:focus {
    color: var(--sse-blue-light);
}

.navbar.navbar-main .nav-item.active > .nav-link,
.navbar.navbar-main .nav-item.current-menu-item > .nav-link,
.navbar.navbar-main .nav-item.current-menu-ancestor > .nav-link {
    color: var(--sse-blue-dark);
    font-weight: 600;
}

.navbar.navbar-main .nav-item.current-menu-item > .nav-link::after,
.navbar.navbar-main .nav-item.current-menu-ancestor > .nav-link::after {
    transform: scaleX(1);
    background: var(--sse-blue-dark);
}

/* Dropdown toggle — hide bootstrap caret */
.navbar.navbar-main .dropdown-toggle::after {
    border: none;
    content: '';
    display: none;
}

/* Dropdown opens on hover (desktop) */
@media (min-width: 768px) {
    .navbar.navbar-main .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInDown 0.25s ease;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar.navbar-main .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 57, 116, 0.12);
    padding: 12px 0;
    min-width: 220px;
    background: var(--sse-white);
    margin-top: 5px;
}

.navbar.navbar-main .dropdown-item {
    color: var(--sse-text);
    font-weight: 400;
    padding: 8px 20px;
    font-size: 15px;
    transition: all var(--sse-transition);
    border-left: 3px solid transparent;
}

.navbar.navbar-main .dropdown-item:hover,
.navbar.navbar-main .dropdown-item:focus {
    background-color: #f0f7fc;
    color: var(--sse-blue-dark);
    border-left-color: var(--sse-blue-light);
}

.navbar.navbar-main .dropdown-item.active,
.navbar.navbar-main .dropdown-item:active {
    background-color: #f0f7fc;
    color: var(--sse-blue-dark);
    font-weight: 600;
    border-left-color: var(--sse-blue-dark);
}

/* CTA Button in Nav */
.btn-nav-cta {
    background: var(--sse-blue-dark);
    color: white !important;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 20px;
    transition: all var(--sse-transition);
    text-decoration: none;
    border: 2px solid var(--sse-blue-dark);
}

.btn-nav-cta:hover {
    background: var(--sse-blue-light);
    border-color: var(--sse-blue-light);
    color: white !important;
}

/* Hamburger */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 28px;
    height: 20px;
}

.navbar-toggler .hamburger-line {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--sse-blue-dark);
    margin-bottom: 6px;
    transition: all var(--sse-transition);
}

/* Mobile navigation */
#navbarMainMobile {
    border-top: 1px solid var(--sse-gray);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

#navbarMainMobile .nav-link {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--sse-gray);
}

#navbarMainMobile .dropdown-menu {
    box-shadow: none;
    border-top: none;
    padding-left: 1rem;
    background-color: var(--sse-gray-light);
}

/* ==========================================================================
   Hero Slider / Header Slider
   ========================================================================== */

/* ==========================================================================
   Hero Section (Phase B - modern design)
   ========================================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 91px); /* full viewport minus header */
    display: flex;
    align-items: center;
    overflow: clip; /* clip instead of hidden — allows transform on children */
    margin-top: -100px; /* overlap fixed header */
    padding-top: 100px; /* compensate for header */
    background-color: #003974;
}

.admin-bar .hero {
    margin-top: -132px;
    padding-top: 132px;
}

.hero-bg {
    position: absolute;
    top: -15%; /* extra space for parallax travel */
    right: 0;
    width: 55%;
    height: 130%; /* taller to avoid gaps during parallax */
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 57, 116, 0.95) 0%, rgba(0, 57, 116, 0.9) 30%, rgba(0, 57, 116, 0.6) 55%, rgba(0, 57, 116, 0.2) 100%);
    z-index: 2;
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 3;
    opacity: 0.3;
    pointer-events: none;
}

.hero-decoration-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #003974 0%, #003974 35%, transparent 55%);
    z-index: 4;
}

.hero-content {
    position: relative;
    z-index: 5;
    padding: 80px 0;
}

.hero-title {
    color: white !important;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-highlight {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(179, 229, 252, 0.6), 0 0 40px rgba(179, 229, 252, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-hero-primary {
    background: white;
    color: var(--sse-blue-dark) !important;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: rgba(255, 255, 255, 0.85);
    color: var(--sse-blue-dark) !important;
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-hero-outline {
    background: transparent;
    color: white !important;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white !important;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(179, 229, 252, 0.4);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    margin-top: 4px;
}

/* Hero background crossfade */
.hero-bg-next {
    position: absolute;
    top: -15%;
    right: 0;
    width: 55%;
    height: 130%;
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    z-index: 1;
    transition: opacity 1s ease;
}

/* Hero progress bar */
.hero-progress {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
    border-radius: 2px;
    overflow: hidden;
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.hero-progress-bar.running {
    width: 100%;
    transition: width linear;
}

/* Split-flap text animation */
.hero-highlight {
    display: inline-block;
}

.split-flap-char {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.split-flap-char {
    display: inline-block;
    position: relative;
    perspective: 200px;
}

.split-flap-char .char-old {
    display: inline-block;
}

.split-flap-char .char-new {
    display: inline-block;
    visibility: hidden;
}

/* char-new determines layout width, char-old is overlaid on top */
.split-flap-char[data-delay] {
    /* Reserve space via char-new, overlay char-old */
}

.split-flap-char[data-delay] .char-old {
    position: absolute;
    top: 0;
    left: 0;
}

.split-flap-char[data-delay] .char-new {
    visibility: visible;
    opacity: 0;
}

.split-flap-char.flipping .char-old {
    animation: splitFlapOut 0.25s ease-in forwards;
}

.split-flap-char.flipping .char-new {
    visibility: visible;
    animation: splitFlapIn 0.25s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes splitFlapOut {
    0% { transform: rotateX(0deg); opacity: 1; }
    100% { transform: rotateX(90deg); opacity: 0; }
}

@keyframes splitFlapIn {
    0% { transform: rotateX(-90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

/* Hero line1 fade */
.hero-line1 {
    display: inline-block;
    transition: opacity 0.4s ease;
}

.hero-line1.fading {
    opacity: 0;
}

/* Tablet */
@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
    }

    .hero-bg {
        width: 100%;
        height: 100%;
        top: 0;
        opacity: 0.7;
        background-size: contain;
        background-position: right top;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(0, 57, 116, 0.95) 0%, rgba(0, 57, 116, 0.7) 50%, rgba(0, 57, 116, 0.3) 100%);
    }

    .hero::before {
        background: none;
    }

    .hero-content {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 17px;
        max-width: 100%;
    }

    .hero-stats {
        gap: 32px;
    }

    .hero-stat-number {
        font-size: 26px;
    }

    .hero-decoration {
        display: none;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .hero-content {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 22px;
    }

    .hero-stat-label {
        font-size: 11px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        text-align: center;
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Hero Animations */

/* Staggered fade-in + slide-up */
.hero-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating decoration */
.hero-decoration {
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Subtle pulse on highlight text */
.hero-highlight {
    display: inline-block;
    animation: heroPulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; text-shadow: 0 0 20px rgba(179, 229, 252, 0.3); }
}

/* Hero background parallax (set via JS) */
.hero-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ==========================================================================
   Slider (Phase A legacy - kept for subpages)
   ========================================================================== */

/* ==========================================================================
   Page Header (Modern - Phase B)
   ========================================================================== */

.page-header-modern {
    position: relative;
    background: linear-gradient(135deg, #001d40 0%, #003974 50%, #004a8f 100%);
    padding: 8rem 0 4rem;
    margin-top: -100px;
    padding-top: calc(100px + 4rem);
    overflow: hidden;
}

.admin-bar .page-header-modern {
    margin-top: -132px;
    padding-top: calc(132px + 4rem);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/img/komposition-header.svg') no-repeat right center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-title {
    color: white;
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .page-header-modern {
        padding: 6rem 0 2.5rem;
        padding-top: calc(100px + 2.5rem);
    }

    .page-header-title {
        font-size: 2rem;
    }
}

/* Slider: match original 436px height, text left / image right at bottom (legacy) */
.header-content {
    overflow: hidden;
}

.mask-tiny-slider.tns-slider-header {
    position: relative;
    overflow: hidden;
}

.slider-header {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slider-header li {
    height: 436px;
}

.slider-header li .row {
    height: 436px;
    align-items: normal;
}

/* Text column: centered vertically, framed with white border */
.slider-header li .col-md-6:first-child {
    display: flex;
    align-items: center;
}

.slider-header .sh-text {
    color: var(--sse-white);
    font-weight: 700;
    font-size: 48px;
    line-height: 62.4px;
    padding: 30px 40px;
    text-transform: uppercase;
    border: 3px solid rgba(255, 255, 255, 0.6);
    margin: 48px;
    display: inline-block;
}

/* Image column: image at the bottom, full height */
.slider-header .sh-img {
    display: flex;
    align-items: flex-end;
    height: 436px;
    justify-content: center;
}

.slider-header .sh-img img {
    max-width: 100%;
    height: auto;
    max-height: 404px;
}

/* Tiny Slider Pagination: square dots */
.tns-slider-header .tns-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.tns-slider-header .tns-nav button {
    width: 10px;
    height: 10px;
    border-radius: 0;
    border: none;
    background: var(--sse-blue-dark);
    margin: 0 3px;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--sse-transition);
}

.tns-slider-header .tns-nav button.tns-nav-active {
    background: var(--sse-white);
    opacity: 1;
}

/* Tiny Slider Arrow Controls: hidden (original uses dots only) */
.tns-slider-header .tns-controls {
    display: none;
}

.tns-slider-header .tns-controls button:hover {
    background: var(--sse-blue-dark);
}

/* ==========================================================================
   Content Cards
   ========================================================================== */

.card.bg-light {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform var(--sse-transition), box-shadow var(--sse-transition);
    height: 100%;
    background-color: #ffffff !important;
}

.card.bg-light:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-header.gradient-primary.text-white {
    padding: 16px 20px;
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
    background: linear-gradient(135deg, #002a5c 0%, #003974 50%, #004a8f 100%) !important;
}

.card-header.gradient-primary.text-white h3,
.card-header.gradient-primary.text-white h4 {
    color: var(--sse-white);
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.card-img-between {
    position: relative;
    overflow: hidden;
}

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

.card.bg-light:hover .card-img-between img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card-body p {
    color: var(--sse-text);
}

.card-body .btn-link {
    color: var(--sse-blue-dark);
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    transition: color var(--sse-transition), transform var(--sse-transition);
    display: inline-block;
}

.card-body .btn-link:hover {
    color: var(--sse-blue-light);
    transform: translateX(4px);
}

/* Software Cards (Helden) */
.software-cards .card {
    margin-bottom: 2rem;
}

.software-cards .card .card-icon {
    font-size: 2.5rem;
    color: var(--sse-blue-dark);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Content Slider
   ========================================================================== */

.slider-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slider-content .slider-content-item {
    padding: 0 1rem;
}

.slider-content .slider-content-item .card {
    height: 100%;
}

.tns-slider-content .tns-nav {
    text-align: center;
    margin-top: 1.5rem;
}

.tns-slider-content .tns-nav button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--sse-blue-dark);
    background: transparent;
    margin: 0 3px;
    padding: 0;
    cursor: pointer;
    transition: all var(--sse-transition);
}

.tns-slider-content .tns-nav button.tns-nav-active {
    background: var(--sse-blue-dark);
    border-color: var(--sse-blue-dark);
}

.tns-slider-content .tns-controls {
    text-align: center;
    margin-top: 1rem;
}

.tns-slider-content .tns-controls button {
    background: var(--sse-blue-dark);
    border: none;
    color: var(--sse-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: all var(--sse-transition);
}

.tns-slider-content .tns-controls button:hover {
    background: var(--sse-blue-dark);
}

/* ==========================================================================
   Accordion
   ========================================================================== */

.accordion .card {
    border: 1px solid var(--sse-gray);
    border-radius: 0 !important;
    margin-bottom: -1px;
    box-shadow: none;
}

.accordion .card:hover {
    transform: none;
    box-shadow: none;
}

.accordion .card-header {
    padding: 0;
    background-color: var(--sse-white);
    border-bottom: none;
}

.accordion .card-header .btn-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    color: var(--sse-blue-dark);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: left;
    transition: all var(--sse-transition);
}

.accordion .card-header .btn-link:hover {
    color: var(--sse-blue-light);
    background-color: var(--sse-gray-light);
}

.accordion .card-header .btn-link::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform var(--sse-transition);
    font-size: 0.875rem;
    color: var(--sse-blue-dark);
}

.accordion .card-header .btn-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.accordion .card-header .btn-link.collapsed::after {
    transform: rotate(0);
}

.accordion .card-body {
    padding: 1.25rem;
    border-top: 1px solid var(--sse-gray);
    color: var(--sse-text-light);
    line-height: 1.7;
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.section-products .card {
    border-radius: 12px;
    transition: transform var(--sse-transition), box-shadow var(--sse-transition);
}

.section-products .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.section-cta {
    padding: 5rem 0;
}

/* ==========================================================================
   Synergy Section (legacy, kept for subpages)
   ========================================================================== */

.section-synergy {
    position: relative;
    overflow: hidden;
}

.section-synergy::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.03);
    transform: rotate(15deg);
}

.section-synergy h2 {
    color: var(--sse-white);
}

.section-synergy .lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ==========================================================================
   Company Values
   ========================================================================== */

.values-grid .value-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background: var(--sse-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    transition: transform var(--sse-transition), box-shadow var(--sse-transition);
}

.values-grid .value-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.values-grid .value-item .value-icon {
    font-size: 2.5rem;
    color: var(--sse-blue-dark);
    margin-bottom: 1rem;
}

.values-grid .value-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.values-grid .value-item p {
    color: var(--sse-text-light);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ==========================================================================
   News Teasers
   ========================================================================== */

.news-teasers .card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform var(--sse-transition), box-shadow var(--sse-transition);
}

.news-teasers .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-teasers .card-date {
    font-size: 0.8125rem;
    color: var(--sse-gray-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.news-teasers .card-title {
    font-size: 1.125rem;
    color: var(--sse-blue-dark);
    margin-bottom: 0.75rem;
}

.news-teasers .card-title a {
    color: inherit;
    text-decoration: none;
}

.news-teasers .card-title a:hover {
    color: var(--sse-blue-light);
}

.news-teasers .card-text {
    font-size: 0.9375rem;
    color: var(--sse-text-light);
}

/* ==========================================================================
   References / Logos
   ========================================================================== */

/* References ticker (infinite scroll) */
.references-ticker {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.references-ticker-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: tickerScroll 50s linear infinite;
    width: max-content;
}

.references-ticker:hover .references-ticker-track {
    animation-play-state: paused;
}

.reference-logo {
    flex-shrink: 0;
}

.reference-logo img {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity var(--sse-transition);
    filter: grayscale(100%);
}

.reference-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Legacy grid fallback (subpages) */
.references-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 991.98px) {
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Reference Flip Card */
.reference-card {
    perspective: 1000px;
    height: 200px;
    cursor: pointer;
}

.reference-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.reference-card:hover .reference-card-inner {
    transform: rotateY(180deg);
}

.reference-card-front,
.reference-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.reference-card-front {
    background: var(--sse-white);
}

.reference-card-front img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.reference-card-front .reference-name {
    font-weight: 600;
    color: var(--sse-blue-dark);
    text-align: center;
}

.reference-card-back {
    background: var(--sse-gradient-primary);
    color: var(--sse-white);
    transform: rotateY(180deg);
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.reference-card-back h4 {
    color: var(--sse-white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.reference-card-back p {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
}

/* Flip Cards (Referenzen) */
.flip-card {
    perspective: 1000px;
    height: 280px;
    margin-bottom: 2rem;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.flip-card-front {
    background: var(--sse-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.flip-card-front img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.flip-card-back {
    background: var(--sse-gradient-primary);
    color: var(--sse-white);
    transform: rotateY(180deg);
    flex-direction: column;
    text-align: center;
}

.flip-card-back h4 {
    color: var(--sse-white);
    margin-bottom: 0.75rem;
}

.flip-card-back p {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: linear-gradient(180deg, #002a5c 0%, #001d40 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 5rem 0 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--sse-transition);
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer h5 {
    color: var(--sse-white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.4rem;
}

.site-footer .footer-links a {
    font-size: 0.9375rem;
    display: inline-block;
    padding: 0.125rem 0;
    transition: color var(--sse-transition), transform var(--sse-transition);
}

.site-footer .footer-links a:hover {
    transform: translateX(3px);
}

.site-footer .footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.site-footer .footer-contact .contact-icon {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
    display: inline-block;
}

.site-footer .footer-logo {
    text-align: right;
    padding-top: 0;
}

.site-footer .footer-logo-img {
    max-width: 160px;
    height: auto;
    opacity: 0.6;
    transition: opacity var(--sse-transition);
}

.site-footer .footer-logo-img:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    margin-top: 3rem;
}

.footer-bottom .copyright {
    font-size: 0.8125rem;
    margin-bottom: 0;
    opacity: 0.5;
}

.footer-bottom .footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: flex-end;
}

.footer-bottom .footer-legal-links a {
    font-size: 0.8125rem;
    opacity: 0.5;
    transition: opacity var(--sse-transition);
}

.footer-bottom .footer-legal-links a:hover {
    opacity: 1;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--sse-blue-dark);
    color: var(--sse-white);
    padding: 1.25rem 0;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner .cookie-text {
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-banner .cookie-text a {
    color: var(--sse-blue-light);
    text-decoration: underline;
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner .btn-cookie-accept {
    background-color: var(--sse-blue-dark);
    border: none;
    color: var(--sse-white);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--sse-transition);
    white-space: nowrap;
}

.cookie-banner .btn-cookie-accept:hover {
    background-color: var(--sse-blue-light);
}

.cookie-banner .btn-cookie-settings {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--sse-white);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--sse-transition);
    white-space: nowrap;
}

.cookie-banner .btn-cookie-settings:hover {
    border-color: var(--sse-white);
    background: rgba(255, 255, 255, 0.1);
}

.cookie-banner .btn-cookie-reject {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color var(--sse-transition);
    white-space: nowrap;
}

.cookie-banner .btn-cookie-reject:hover {
    color: var(--sse-white);
}

/* Cookie Settings Modal */
.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-settings-overlay.is-visible {
    display: flex;
}

.cookie-settings-modal {
    background: var(--sse-white);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    color: var(--sse-text);
}

.cookie-settings-modal h3 {
    margin-bottom: 1rem;
}

.cookie-settings-modal .cookie-category {
    border-bottom: 1px solid var(--sse-gray);
    padding: 1rem 0;
}

.cookie-settings-modal .cookie-category:last-child {
    border-bottom: none;
}

.cookie-settings-modal .cookie-category label {
    font-weight: 600;
    color: var(--sse-blue-dark);
}

.cookie-settings-modal .cookie-category p {
    font-size: 0.875rem;
    color: var(--sse-text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   Page Header / Hero Image
   ========================================================================== */

.page-header-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.page-header-image .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 32, 65, 0.8) 0%, rgba(0, 171, 229, 0.6) 100%);
}

.page-header-image .page-title {
    position: relative;
    z-index: 2;
    color: var(--sse-white);
}

.page-header-image .page-title h1 {
    color: var(--sse-white);
    margin-bottom: 0;
}

.page-header-default {
    background: var(--sse-gradient-primary);
    padding: 3rem 0;
}

.page-header-default h1 {
    color: var(--sse-white);
    margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb-bar {
    background-color: var(--sse-gray-light);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-bar .breadcrumb-item a {
    color: var(--sse-blue-dark);
}

.breadcrumb-bar .breadcrumb-item.active {
    color: var(--sse-gray-dark);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post .post-meta {
    font-size: 0.875rem;
    color: var(--sse-gray-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sse-gray);
}

.single-post .post-meta .post-date {
    font-weight: 600;
}

.single-post .post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-post .post-featured-image img {
    width: 100%;
    height: auto;
}

.single-post .post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.single-post .post-content h2,
.single-post .post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .post-content img {
    border-radius: 4px;
}

.single-post .back-link {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sse-gray);
}

.single-post .back-link a {
    font-weight: 600;
    color: var(--sse-blue-dark);
}

/* ==========================================================================
   Archive / News Listing
   ========================================================================== */

.archive-list .archive-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--sse-gray);
}

.archive-list .archive-item:last-child {
    border-bottom: none;
}

.archive-list .archive-item .archive-date {
    font-size: 0.8125rem;
    color: var(--sse-gray-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-list .archive-item h2 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.archive-list .archive-item h2 a {
    color: var(--sse-blue-dark);
    text-decoration: none;
}

.archive-list .archive-item h2 a:hover {
    color: var(--sse-blue-light);
}

.archive-list .archive-item .archive-excerpt {
    color: var(--sse-text-light);
    margin-bottom: 0.75rem;
}

.archive-list .archive-item .archive-image {
    border-radius: 8px;
    overflow: hidden;
}

.archive-list .archive-item .archive-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-list .archive-item .archive-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--sse-gray-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sse-gray-dark);
}

.archive-list .archive-item .btn-link {
    color: var(--sse-blue-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--sse-transition);
}

.archive-list .archive-item .btn-link:hover {
    color: var(--sse-blue-light);
}

/* Pagination */
.pagination-wrap {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sse-gray);
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin: 0 0.25rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--sse-blue-dark);
    background: var(--sse-gray-light);
    transition: all var(--sse-transition);
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
    background: var(--sse-blue-dark);
    color: var(--sse-white);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-form .mb-3 {
    margin-bottom: 1.25rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--sse-blue-dark);
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

.contact-form .form-control {
    border: 1px solid var(--sse-gray);
    border-radius: 4px;
    padding: 0.625rem 1rem;
    font-family: var(--sse-font-family);
    font-size: 0.9375rem;
    transition: border-color var(--sse-transition), box-shadow var(--sse-transition);
}

.contact-form .form-control:focus {
    border-color: var(--sse-blue-light);
    box-shadow: 0 0 0 3px rgba(0, 171, 229, 0.15);
}

.contact-form .form-check {
    margin-bottom: 1.25rem;
}

.contact-form .form-check-label {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--sse-text-light);
}

.contact-form .required-note {
    font-size: 0.8125rem;
    color: var(--sse-gray-dark);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Partner Page
   ========================================================================== */

.partner-list .partner-item {
    background: var(--sse-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all var(--sse-transition);
}

.partner-list .partner-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-list .partner-logo {
    max-height: 80px;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Product Page
   ========================================================================== */

.product-features .feature-item {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.product-features .feature-icon {
    font-size: 2rem;
    color: var(--sse-blue-dark);
    margin-bottom: 1rem;
}

.product-screenshots .screenshot {
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--sse-gray-dark);
    padding: 0.5rem 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.gallery-item {
    padding: 0.5rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Small devices (576px and up) */
@media (min-width: 576px) {
    .slider-header .sh-text h1,
    .slider-header .sh-text h2 {
        font-size: 2.25rem;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .slider-header .slider-header-item {
        min-height: 450px;
    }

    .slider-header .sh-text h1,
    .slider-header .sh-text h2 {
        font-size: 2.75rem;
    }

    .page-header-image {
        height: 350px;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .slider-header .slider-header-item {
        min-height: 550px;
    }

    .slider-header .sh-text h1,
    .slider-header .sh-text h2 {
        font-size: 3.25rem;
    }

    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }

    .page-header-image {
        height: 400px;
    }

}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .slider-header .slider-header-item {
        min-height: 600px;
    }

    .slider-header .sh-text h1,
    .slider-header .sh-text h2 {
        font-size: 3.5rem;
    }
}

/* Mobile-first overrides */
@media (max-width: 991.98px) {
    .navbar.navbar-main .navbar-nav {
        padding-top: 0.5rem;
    }

    .navbar.navbar-main .nav-link {
        padding: 0.625rem 0;
        border-bottom: 1px solid var(--sse-gray);
    }

    .navbar.navbar-main .dropdown-menu {
        box-shadow: none;
        border-top: none;
        padding-left: 1rem;
        background-color: var(--sse-gray-light);
    }

    .footer-bottom .footer-legal-links {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }

    .cookie-banner .container {
        flex-direction: column;
    }

    .cookie-banner .cookie-actions {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .slider-header .slider-header-item {
        min-height: 350px;
    }

    .slider-header .sh-text h1,
    .slider-header .sh-text h2 {
        font-size: 1.75rem;
    }

    .slider-header .sh-text p {
        font-size: 1rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .section-spacing {
        padding: 3.5rem 0;
    }

    .flip-card {
        height: 240px;
    }

    .page-header-image {
        height: 250px;
    }

    .site-logo {
        max-height: 40px;
    }
}

@media (max-width: 575.98px) {
    .contact-line {
        text-align: center;
        font-size: 0.8125rem;
    }

    .slider-header .sh-text {
        padding: 2rem 0;
    }

    .slider-header .sh-text h1,
    .slider-header .sh-text h2 {
        font-size: 1.5rem;
    }

    .tns-slider-header .tns-controls {
        display: none;
    }

    .cookie-banner .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner .btn-cookie-accept,
    .cookie-banner .btn-cookie-settings {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Imported Typo3 Content Styles
   Styles for content imported from the original Typo3 site.
   These classes appear inside the_content() from the reimported HTML.
   ========================================================================== */

/* Typo3 frame sections */
.entry-content .main-content,
.entry-content .content-extended,
.entry-content .page-content,
.entry-content .teaser {
    margin: 40px 0;
}

.entry-content .main-content:first-child,
.entry-content .teaser:first-child {
    margin-top: 0;
}

/* Typo3 frame spacing */
.entry-content .frame {
    margin-bottom: 20px;
}

.entry-content .frame-space-after-small {
    margin-bottom: 30px;
}

.entry-content .frame-space-before-extra-small {
    margin-top: 10px;
}

/* Typo3 card sections (Produkte) */
.entry-content .card.border-0 {
    border: none !important;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.entry-content .card.bg-light {
    background-color: #f6f6f6 !important;
}

.entry-content .card.gradient-primary,
.entry-content .card.bg-primary {
    background: var(--sse-gradient-primary) !important;
    color: white;
}

.entry-content .card-header.gradient-primary {
    background: var(--sse-gradient-primary) !important;
    border: none;
    border-radius: 0;
    padding: 14.4px 15px;
}

.entry-content .card-header.gradient-primary .card-title {
    color: white;
    font-size: 24.96px;
    font-weight: 700;
    margin: 0;
}

.entry-content .card-body.default {
    padding: 20px 0;
}

/* Typo3 image galleries */
.entry-content .ce-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entry-content .ce-gallery .col {
    flex: 0 0 auto;
}

.entry-content .ce-gallery img,
.entry-content .image-embed-item {
    max-width: 100%;
    height: auto;
}

.entry-content figure.image {
    margin: 0;
}

/* Referenzen row in content */
.entry-content .row-cols-lg-6 {
    display: flex;
    flex-wrap: wrap;
}

.entry-content .row-cols-lg-6 > .col {
    flex: 0 0 auto;
    width: 16.666%;
    padding: 10px;
}

.entry-content .row-cols-md-3 > .col {
    flex: 0 0 auto;
    width: 33.333%;
    padding: 10px;
}

.entry-content .row-cols-sm-2 > .col {
    flex: 0 0 auto;
    width: 50%;
    padding: 10px;
}

.entry-content .row-cols-1 > .col {
    flex: 0 0 auto;
    width: 100%;
}

/* Contact form link */
.entry-content .btn.btn-primary {
    background: var(--sse-blue-dark);
    border: none;
    padding: 10px 30px;
    color: white;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.entry-content .btn.btn-primary:hover {
    background: var(--sse-blue-light);
}

/* Card with border-primary (Kontakt-Box) */
.entry-content .card.border-primary {
    border: 2px solid var(--sse-blue-dark) !important;
    border-radius: 0;
}

/* Container fluid override for content */
.entry-content .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* H1 inside content - avoid double heading from template */
.entry-content > div:first-child h1:first-of-type {
    display: none;
}

/* Typo3 "Vorteile" collapse grid (ELS3/DISPOFLEX pages) */
.entry-content h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.entry-content h6 button {
    background: var(--sse-blue-dark);
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: block;
}

.entry-content h6 button:hover {
    background: var(--sse-blue-light);
}

/* Hide empty paragraphs inside collapse buttons (where SVGs were) */
.entry-content h6 button p:empty,
.entry-content h6 > p {
    display: none;
}

/* Feature cards in content (Offene Standards, Erhöhte Sicherheit, etc.) */
.entry-content .card.bg-transparent {
    background: transparent !important;
}

.entry-content .card-header.bg-primary,
.entry-content .card-header.bg-transparent.border-primary {
    background: var(--sse-gradient-primary) !important;
    border: none !important;
    padding: 14.4px 15px;
}

.entry-content .card-header .card-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.entry-content .card-footer {
    background: transparent;
    border: none;
    padding: 10px 0;
}

/* Two-column layout for Beratung + Referenzen boxes */
.entry-content .card.border-primary {
    border: 2px solid var(--sse-blue-dark) !important;
    border-radius: 0;
    margin-bottom: 20px;
}

.entry-content .card.border-primary .card-body {
    padding: 20px;
}

/* Accordion items inside content */
.entry-content .accordion .card {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: 0;
}

.entry-content .accordion .card-header {
    background: transparent;
    padding: 15px 0;
    border: none;
}

.entry-content .accordion .card-header button,
.entry-content .accordion .card-header a {
    background: none;
    border: none;
    color: var(--sse-blue-dark);
    font-weight: 600;
    font-size: 18px;
    padding: 0;
    text-decoration: none;
    width: auto;
    text-align: left;
}

.entry-content .accordion .card-body {
    padding: 0 0 15px;
}

/* Subscript trademark notice */
.entry-content sub, .entry-content subscript {
    font-size: 12px;
    color: var(--sse-gray-dark);
}
