/* SHDL Local Fonts - Inline for Performance */

/* Fallback Font Override to prevent CLS */
@font-face {
    font-family: 'Barlow Condensed Fallback';
    src: local('Arial');
    size-adjust: 95%;
    ascent-override: 100%;
    descent-override: 20%;
    line-gap-override: 0%;
}

/* Inter (Variable Font) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/Inter-Variable.woff2') format('woff2');
}

/* Barlow Condensed */
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/BarlowCondensed-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/BarlowCondensed-Bold.woff2') format('woff2');
}

/*
   SHDL DESIGN SYSTEM (Refactored to Standard Bootstrap)
   Version 1.1
   Direct Bootstrap Variable Overrides
*/
:root {
    /* --- 1. Typography --- */
    --bs-body-font-family: 'Inter', sans-serif;
    --bs-heading-font-family: 'Barlow Condensed', 'Barlow Condensed Fallback', sans-serif;

    /* Font Weights */
    --bs-font-weight-light: 300;
    --font-weight-h2: 500;
    /* User Request: Global H2 Weight Control - Set to Medium (500) */
    --bs-font-weight-normal: 400;
    --bs-font-weight-medium: 500;
    --bs-font-weight-bold: 600;

    /* Central Bold Weight Mapping */
    --bs-heading-font-weight: 400;

    /* Label Styling */
    --label-font-size: 0.875em;
    --label-spacing: 0.5px;
    --label-transform: none;

    /* --- 2. Colors (Brand Palette Mapped to Bootstrap) --- */

    /* Primary: Blue (#2d5885) */
    --bs-primary: #2d5885;
    --bs-primary-rgb: 45, 88, 133;
    --bs-primary-hover: #203f60;
    /* Darker Interaction State */
    --bs-primary-medium: #4a6fa5;
    /* Secondary Text / Borders */

    /* Secondary: Dark Orange (Accent) #CC9000 */
    --bs-secondary: #CC9000;
    --bs-secondary-rgb: 204, 144, 0;

    /* Warning: Brand Orange (#ffb400) */
    --bs-warning: #ffb400;
    --bs-warning-rgb: 255, 180, 0;

    /* Info: Soft Blue (#f0f7ff) */
    --bs-info: #f0f7ff;
    --bs-info-rgb: 240, 247, 255;

    /* Dark: Standard Dark (#2a4060) */
    --bs-dark: #2a4060;
    --bs-dark-rgb: 42, 64, 96;

    /* Light: UI Background (#f4f6f8) */
    --bs-light: #f4f6f8;
    --bs-light-rgb: 244, 246, 248;

    /* Body & Text */
    --bs-body-color: #212529;
    --bs-body-bg: #ffffff;
    --bs-secondary-color: #6c757d;
    /* Muted Text */
    --bs-footer-text: rgba(255, 255, 255, 0.8);

    /* --- 3. Shapes & Borders --- */
    /* Using standard Bootstrap border radius vars directly */
    --input-bg: var(--bs-light);
    --input-border-color: rgba(42, 64, 96, 0.2);
    --input-focus-border: var(--bs-primary);

    /* --- SH Design Guide Mappings --- */
    --sh-font-weight-bold: var(--bs-font-weight-bold);
    --sh-label-font-size: var(--label-font-size);
    --sh-label-transform: var(--label-transform);
    --sh-label-spacing: var(--label-spacing);
    --sh-input-bg: var(--bs-light);
    --sh-border-color-input: rgba(42, 64, 96, 0.2);
    --sh-border-radius-sm: var(--bs-border-radius-sm);
    --sh-font-weight-light: var(--bs-font-weight-light);
    --sh-input-focus-border: var(--bs-primary);
    --sh-blue-hover: var(--bs-primary-hover);
}

/* --- Global Typography --- */
html,
body {
    font-family: var(--bs-body-font-family);
    color: var(--bs-body-color);
    line-height: 1.6;
    font-weight: var(--bs-font-weight-light);
    overflow-x: hidden;
}

p {
    margin-bottom: 1rem;
    color: #495057;
    /* Darker Gray (Gray 700) instead of Muted */
}

/* Lead Paragraph (Intro) */
.lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: var(--bs-body-color);
}

/* Section Overline (Eyebrow) */
.section-overline {
    color: #806000 !important;
    /* Dark Gold for ~7:1 Contrast, Forced */
    font-weight: var(--bs-font-weight-bold);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--bs-heading-font-family);
    font-weight: var(--bs-heading-font-weight);
    color: var(--bs-body-color);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}

h1,
.h1 {
    font-size: 2.75rem;
}

h2,
.h2 {
    font-size: 2.25rem;
    font-weight: var(--font-weight-h2);
}

h3,
.h3 {
    font-size: 2.25rem;
}

h4,
.h4 {
    font-size: 1.75rem;
}

h5,
.h5 {
    font-size: 1.35rem;
}

h6,
.h6 {
    font-size: 1.1rem;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-weight: 300 !important;
    text-transform: none;
}

/* Central Control for Bold Utility */
.fw-bold,
strong,
b {
    font-weight: var(--bs-font-weight-bold) !important;
}

/* --- Component Overrides --- */

/* 1. Forms - Centralized */
.form-label {
    font-weight: var(--sh-font-weight-bold) !important;
    font-size: var(--sh-label-font-size);
    text-transform: var(--sh-label-transform);
    letter-spacing: var(--sh-label-spacing);
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
}

.form-control,
.form-select {
    background-color: #ffffff !important;
    border: 1px solid var(--sh-border-color-input);
    border-radius: var(--sh-border-radius-sm) !important;
    padding: 0.5rem 1rem;
    font-weight: var(--sh-font-weight-light);
    color: var(--bs-body-color) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--sh-input-focus-border);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
    color: var(--bs-body-color) !important;
}

/* Selection Controls */
.form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.form-check-input:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(45, 88, 133, 0.25) !important;
}

/* Range Slider */
.form-range::-webkit-slider-thumb {
    background-color: var(--bs-primary) !important;
}

.form-range::-webkit-slider-thumb:active {
    background-color: var(--sh-blue-hover) !important;
}

.form-range::-moz-range-thumb {
    background-color: var(--bs-primary) !important;
}

.form-range::-moz-range-thumb:active {
    background-color: var(--sh-blue-hover) !important;
}

.form-range::-webkit-slider-runnable-track {
    background-color: white !important;
    border: 1px solid var(--sh-border-color-input);
    height: 0.5rem;
    border-radius: 1rem;
}

.form-range::-moz-range-track {
    background-color: white !important;
    border: 1px solid var(--sh-border-color-input);
    height: 0.5rem;
    border-radius: 1rem;
}

/* 2. Buttons */
.btn {
    border-radius: var(--bs-border-radius-sm) !important;
    font-weight: 400;
}

.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover) !important;
    border-color: var(--bs-primary-hover) !important;
}

.btn-secondary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: white !important;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.btn-outline-secondary {
    color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--bs-secondary) !important;
    color: white !important;
}

/* Info Button/Badge (Soft Blue) */
.text-info {
    color: var(--bs-primary-medium) !important;
}

.bg-info,
.badge-info {
    background-color: var(--bs-info) !important;
    color: var(--bs-dark) !important;
}

.btn-info {
    background-color: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
    color: var(--bs-dark) !important;
}

.btn-info:hover {
    background-color: #dbeaff !important;
    border-color: #dbeaff !important;
    color: var(--bs-dark) !important;
}

.btn-outline-info {
    color: var(--bs-primary-medium) !important;
    border-color: var(--bs-primary-medium) !important;
}

.btn-outline-info:hover {
    background-color: var(--bs-info) !important;
    color: var(--bs-dark) !important;
    border-color: var(--bs-info) !important;
}

/* Custom Accent Button (Warning Color) */
.btn-accent {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: var(--bs-dark);
    font-weight: 500;
    border-radius: var(--bs-border-radius-sm);
}

.btn-accent:hover {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: var(--bs-dark);
}

/* Helpers */
.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-dark {
    background-color: var(--bs-dark) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

a.text-primary:hover {
    color: var(--bs-primary-hover) !important;
}

.text-accent {
    color: var(--bs-secondary) !important;
}

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

.letter-spacing-1 {
    letter-spacing: 1px !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

/* Semantic Helper Classes */
.card-standard,
.feature-box,
.img-content,
.rounded-4 {
    border-radius: var(--bs-border-radius-lg) !important;
}

/* Section Title with Underline */
.section-title {
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--bs-warning);
    margin-top: 0.5rem;
}

/* Alerts */
.alert {
    border: 0;
    border-left: 4px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-weight: 400;
    border-radius: var(--bs-border-radius-sm) !important;
}

.alert-warning {
    background-color: rgba(255, 180, 0, 0.1);
    border-left-color: var(--bs-warning);
    color: var(--bs-secondary);
}

.alert-info {
    background-color: var(--bs-info);
    border-left-color: var(--bs-primary);
    color: var(--bs-dark);
}

/* Component Overrides: Navbar */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: var(--bs-light) !important;
    box-shadow: 0 4px 25px rgba(42, 64, 96, 0.18);
}

/* Smart Sticky Navigation */
body {
    padding-top: 66px;
    /* Adjust based on navbar height */
}

@media (min-width: 992px) {
    body {
        padding-top: 81px;
        /* Adjust for desktop navbar height */
    }
}

.smart-sticky {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    transition: transform 0.3s ease-in-out;
}

.smart-sticky.is-hidden {
    transform: translateY(-100%);
}

.navbar-brand {
    font-family: var(--bs-heading-font-family);
    font-size: 1.75rem;
    color: var(--bs-dark) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-logo-rotating {
    display: inline-block;
    animation: gear-rotate 4s ease-out;
}

@keyframes gear-rotate {
    0% {
        opacity: 0;
        transform: rotate(-180deg);
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

@keyframes watermark-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

.nav-link {
    font-family: var(--bs-heading-font-family);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--bs-dark) !important;
    font-weight: 500;
    font-size: 1.15rem;
    margin-left: 1.5rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #cc9000 !important;
    text-shadow:
        -1px -1px 1px var(--bs-light),
        1px -1px 1px var(--bs-light),
        -1px 1px 1px var(--bs-light),
        1px 1px 1px var(--bs-light),
        0px 1px 1px var(--bs-light),
        0px -1px 1px var(--bs-light),
        -1px 0px 1px var(--bs-light),
        1px 0px 1px var(--bs-light);
}

.nav-link.active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.8rem;
    height: 3.8rem;
    opacity: 0.12;
    background-color: #6c757d;
    /* Hardcoded color */
    z-index: -1;
    pointer-events: none;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url("/assets/svg/gear-icon.svg");
    mask-image: url("/assets/svg/gear-icon.svg");
    animation: watermark-rotate 4s ease-out;
    /* DEBUG: REMOVE IF VISIBLE */
}

.navbar-toggler {
    border-color: transparent;
    color: var(--bs-dark);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(42, 64, 96, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 3. Specialized Components */
/* 3. Specialized Components */
.form-premium,
.modal-content {
    background-color: #f4f6f8 !important;
    /* Light Gray Background */
    border: 2px solid white;
    /* Premium Look Border */
    border-radius: var(--bs-border-radius-lg) !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Ensure Inputs are ALWAYS White, even with Autofill */
.form-control,
.form-select {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--bs-body-color) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--bs-body-color) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.hero-tech-grid {
    position: relative !important;
    background-color: var(--bs-primary) !important;
    overflow: hidden;
}

.hero-tech-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: repeating-linear-gradient(45deg, rgba(27, 42, 64, 0.1) 0, rgba(27, 42, 64, 0.1) 1px, transparent 1px, transparent 9px),
        repeating-linear-gradient(-45deg, rgba(27, 42, 64, 0.1) 0, rgba(27, 42, 64, 0.1) 1px, transparent 1px, transparent 9px);
    background-size: auto;
    filter: blur(1.0px);
}

/* Swatches (Docs Only) */
.swatch-group {
    margin-bottom: 3rem;
}

.swatch-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    margin-bottom: 1.5rem;
}

.swatch-card:hover {
    transform: scale(1.02);
}

.swatch-color {
    height: 120px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.swatch-info {
    padding: 1rem;
}

.swatch-hex {
    font-family: monospace;
    font-weight: 600;
    color: var(--bs-dark);
}

.swatch-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-secondary);
}

.swatch-name small {
    text-transform: none;
    letter-spacing: normal;
}

.combo-box {
    padding: 3rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.font-sample {
    border-left: 4px solid var(--bs-warning);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

/* Breadcrumb Technical Style */
.breadcrumb-tech {
    background-color: var(--bs-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Bootstrap Override: Breadcrumb */
.breadcrumb {
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 1rem;
    /* ps-3 approx */
}

.breadcrumb-item {
    font-family: var(--bs-heading-font-family);
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: var(--bs-primary-medium);
    /* Mapped to Blue Medium if Light not defined */
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--bs-warning);
}

.breadcrumb-item.active {
    color: var(--bs-dark);
}

/* Utilities */
.letter-spacing-1 {
    letter-spacing: 1px !important;
}

/* Page-Specific: Animated Brand Logo (Über Uns) */
.sh-logo-wrapper {
    position: relative;
    width: 4.0rem;
    height: 4.0rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    animation: gear-rotate-special 2.5s ease-out forwards !important;
}

.rotating-gear {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    animation: none !important;
}

.brand-text {
    opacity: 0;
    animation: text-appear-special 2.5s ease-out forwards;
}

.sh-logo-text {
    position: relative;
    z-index: 2;
    font-family: var(--bs-heading-font-family);
    font-size: 1.6rem;
    line-height: 1;
    padding-bottom: 2px;
}

@keyframes gear-rotate-special {
    0% {
        opacity: 0;
        transform: rotate(-180deg);
    }

    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

@keyframes text-appear-special {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utilities: Icon Containers */
.icon-circle-lg {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

h2 {
    margin-bottom: 2rem;
    /* Increased whitespace below headlines */
}

/* Utilities: Max Widths */
.mw-700 {
    max-width: 700px;
}

.mw-850 {
    max-width: 850px;
}

/* Footer (Custom Layout) */
footer {
    background-color: var(--bs-dark);
    color: var(--bs-footer-text);
}

footer h5,
footer h6 {
    color: white;
    font-family: var(--bs-heading-font-family);
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

footer p {
    color: var(--bs-footer-text) !important;
}

footer a {
    color: var(--bs-footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

/* Navbar Brand Override */
.navbar-brand {
    font-size: 1.4rem;
}

/* Utilities: Backgrounds */
.bg-blue-soft {
    background-color: var(--bs-info) !important;
}

/* ==========================================================================
   Animations
   ========================================================================== */
/* Animation removed by user request */

/* Staggered delays if needed */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Fallback for no-js environments (SEO/Accessibility) */
.no-js .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.text-eyebrow {
    color: #cc9000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875em;
    letter-spacing: 1px;
}

.text-accent {
    color: #cc9000 !important;
}

/* Optimized Mobile Padding for wider Forms (User Request) */
@media (max-width: 767px) {

    .container,
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Force smaller padding for premium cards on mobile to prevent narrow fields */
    .card-premium {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* --- HERO GEOMETRIC SPLIT (VARIANT E) - FIX for Breakpoint --- */
/* --- HERO GEOMETRIC SPLIT (VARIANT E) - MERGED & OPTIMIZED --- */
.hero-split-section {
    min-height: 60vh;
    background: linear-gradient(135deg, white 0%, var(--bs-info) 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-split-content {
    flex: 1;
    padding: 2rem 1rem;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-split-visual {
    flex: 1;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
    background: var(--bs-dark);
    z-index: 5;
    min-height: 450px;
}

/* Unified style for absolute positioning of Image & Video */
.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.z-3 {
    z-index: 3 !important;
}

.hero-title-responsive {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    white-space: normal;
}

@media (min-width: 768px) {
    .hero-split-section {
        flex-direction: row;
        flex-wrap: nowrap;
        height: 50vh;
        min-height: 450px;
    }

    .hero-split-content {
        flex: 0 0 45%;
        padding: 0 4rem;
    }

    .hero-split-visual {
        flex: 0 0 55%;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* --- HERO TECH GRID --- */
.hero-tech-grid-light {
    position: relative !important;
    background: var(--bs-info) !important;
    overflow: hidden;
}

.hero-tech-grid-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(27, 42, 64, 0.03) 0, rgba(27, 42, 64, 0.03) 1px, transparent 1px, transparent 9px),
        repeating-linear-gradient(-45deg, rgba(27, 42, 64, 0.03) 0, rgba(27, 42, 64, 0.03) 1px, transparent 1px, transparent 9px);
    background-size: auto;
    background-position: center;
    filter: blur(1.5px);
}

.hero-tech-grid-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at center, var(--bs-info) 25%, rgba(240, 247, 255, 0) 70%);
}

/* Play Button Pulse Animation */
.play-button-pulse {
    animation: pulse-blue 2s infinite ease-in-out;
    will-change: transform;
}

.play-button-pulse:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}

@keyframes pulse-blue {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* Enhance Action Cards */
.action-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.action-card-blue {
    background: linear-gradient(135deg, var(--bs-info) 0%, var(--bs-white) 100%);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    color: var(--bs-dark);
    justify-content: space-between;
}

.action-card-amber {
    background: linear-gradient(135deg, var(--bs-warning) 0%, #ffd04f 100%);
    color: var(--bs-dark);
}

.text-emergency {
    color: #b02a37;
}

.icon-box-lg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-dark:hover {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.mw-600 {
    max-width: 600px;
}

.mw-800 {
    max-width: 800px;
}

.py-section-lg {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 992px) {
    .py-section-lg {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.z-2 {
    z-index: 2;
}

/* Custom Play Overlay */
.play-overlay-custom {
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    display: none;
    z-index: 10;
    cursor: pointer;
}

@media (min-width: 992px) {
    .play-overlay-custom {
        top: auto;
        bottom: 30px;
        left: 75%;
        right: auto;
        transform: translateX(-50%);
    }
}

.play-circle-custom {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-overlay-custom:hover .play-circle-custom {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.5);
}

/* Button to Top Hover */
.btn-to-top:hover {
    transform: scale(1.1);
    background-color: var(--bs-primary-hover) !important;
}

.hero-split-content {
    flex: 1;
    padding: 2rem 1rem;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-split-visual {
    flex: 1;
    position: relative;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
    background: var(--bs-dark);
    z-index: 5;
}

.hero-split-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title-responsive {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .hero-split-section {
        flex-direction: row;
        flex-wrap: nowrap;
        height: 50vh;
        min-height: 450px;
    }

    .hero-split-content {
        flex: 0 0 45%;
        padding: 0 4rem;
    }

    .hero-split-visual {
        flex: 0 0 55%;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* --- PREMIUM STYLES (Migrated from Termin Page) --- */
.card-premium {
    background-color: var(--bs-light) !important;
    background-image: none !important;
    border: 2px solid white !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    border-radius: 1rem !important;
}

.bg-gradient-premium {
    background-color: var(--bs-light);
    background-image: linear-gradient(180deg, #ffffff 0%, var(--bs-light) 25%, var(--bs-light) 100%);
}

.card-premium-blue {
    background-color: var(--bs-primary) !important;
    background-image: none !important;
    color: white !important;
    border: 2px solid white !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    border-radius: 1rem !important;
}

/* Back to Top Button */
.btn-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    /* Am Anfang unsichtbar */
    z-index: 1000;
    border-radius: 50% !important;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid white !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.btn-to-top:hover {
    transform: scale(1.1);
    background-color: var(--bs-primary-hover) !important;
}
