/* ==========================================================================
   Fonts (lokal)
   Nur die Variable-Font-Dateien – alle genutzten Schnitte (Inter 400–600,
   Montserrat 700/900) sind darüber abgedeckt. Ordner fonts/Inter/static und
   fonts/Montserrat/static werden von der Website nicht referenziert und
   können bei Bedarf entfernt werden, um Speicher zu sparen.
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
}

/* ==========================================================================
   CSS Custom Properties & Variables
   ========================================================================== */
:root {
    /* Colors – Blue primary, Orange accent */

    /* Blue: friendly, mid-bright, clearly blue (not navy-black) */
    --color-blue-primary: #2B7FD4;
    /* --color-blue-primary: #52A4F5FF; */
    /* main CTA, links, accents */
    --color-blue-secondary: #1A6BBF;
    /* hover state */
    --color-blue-light: #5BA4E5;
    /* lighter tint */
    --color-blue-pale: #EBF4FF;
    /* very light bg tint */

    /* Orange: warm accent, secondary CTA */
    --color-orange-primary: #E8711A;
    --color-orange-secondary: #CF5F10;
    --color-orange-light: #FBD38D;

    --color-neutral-900: #1A202C;
    --color-neutral-800: #2D3748;
    --color-neutral-600: #718096;
    --color-neutral-200: #E2E8F0;
    --color-neutral-100: #F7FAFC;
    --color-white: #FFFFFF;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--color-blue-secondary) 0%, var(--color-blue-primary) 100%);
    --gradient-text: linear-gradient(to right, var(--color-blue-primary), var(--color-orange-primary));
    --gradient-brand: linear-gradient(135deg, var(--color-blue-primary), var(--color-orange-primary));

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    --header-height: 80px;
    --topbar-height: 38px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--topbar-height));
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-neutral-800);
    background-color: var(--color-neutral-100);
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-neutral-900);
    line-height: 1.2;
    margin-bottom: var(--space-3);
    font-weight: 700;
}

p {
    margin-bottom: var(--space-3);
    color: var(--color-neutral-600);
}

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

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

ul {
    list-style: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

.section {
    padding: var(--space-12) 0;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-8);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: var(--radius-sm);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-neutral-600);
    margin-top: var(--space-4);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-white);
}

.bg-blue-pale {
    background-color: var(--color-blue-pale);
}

.bg-dark {
    background-color: var(--color-neutral-900);
    color: var(--color-white);
}

.bg-dark h2,
.bg-dark h3 {
    color: var(--color-white);
}

.bg-dark p {
    color: var(--color-neutral-200);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background-color: var(--color-blue-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(43, 127, 212, 0.35);
}

.btn-primary:hover {
    background-color: var(--color-blue-secondary);
    color: var(--color-white);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(43, 127, 212, 0.45);
}

.btn-secondary {
    display: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    border-color: var(--color-white);
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.btn-primary-outline {
    background-color: transparent;
    border: 2px solid var(--color-orange-primary);
    color: var(--color-orange-primary);
}

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

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.topbar {
    background-color: #1A202C;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
    font-family: var(--font-body);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.topbar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.topbar-item:hover {
    color: var(--color-white);
}

.topbar-phone {
    font-weight: 600;
    color: var(--color-white);
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Hide on mobile, reset header position */
@media (max-width: 992px) {
    .topbar {
        display: none;
    }

    .header {
        top: 0 !important;
    }

    html {
        scroll-padding-top: var(--header-height);
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: var(--header-height);
    z-index: 1000;
    /* Only transition visual properties, NOT top – avoids lag/gap */
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
    background-color: rgba(247, 250, 252, 0.9);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 74px;
    width: auto;
}

.footer .logo-image {
    height: 70px;
}

.logo-kalt {
    color: var(--color-blue-primary);
}

.logo-oder {
    color: var(--color-neutral-600);
    font-weight: 500;
    margin: 0 2px;
}

.logo-warm {
    color: var(--color-orange-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.nav-link {
    font-weight: 600;
    color: var(--color-neutral-800);
    position: relative;
}

.nav-link:not(.btn-nav-kontakt)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-blue-primary);
    transition: width var(--transition-normal);
}

.nav-link:not(.btn-nav-kontakt):hover {
    color: var(--color-blue-primary);
}

.nav-link:not(.btn-nav-kontakt):hover::after {
    width: 100%;
}

/* Header Contact Button */
.btn-nav-kontakt {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--color-blue-primary);
    color: var(--color-blue-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-nav-kontakt:hover {
    background-color: var(--color-blue-primary);
    color: var(--color-white);
}

.mobile-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-neutral-900);
    position: absolute;
    transition: all var(--transition-fast);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    bottom: -8px;
}

.mobile-toggle.active .hamburger {
    background-color: transparent !important;
}

.mobile-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--color-neutral-900);
}

.mobile-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
    background-color: var(--color-neutral-900);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    padding-top: var(--header-height);
    padding-bottom: var(--space-5);
    background-color: var(--color-neutral-900);
    min-height: 75vh;
}

/* Desktop: image-area fills the section as background */
.hero-image-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image-area .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Desktop: dark gradient from bottom keeps text readable */
.hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    /* max-width: 800px; */
    margin: 0;
    width: 100%;
}

.hero-content {
    color: var(--color-white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-title {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.mobile-break {
    display: none;
}

.mobile-break {
    display: none;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-4);
    /* max-width: 600px; */
    margin-left: 0;
    margin-right: 0;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta .btn-primary {
    background: var(--gradient-brand);
    border: none;
    box-shadow: 0 8px 20px rgba(232, 113, 26, 0.3);
}

.hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, var(--color-orange-primary), var(--color-blue-primary));
    box-shadow: 0 10px 25px rgba(232, 113, 26, 0.4);
}

.hero-cta .btn-secondary {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-white);
}

@media (min-width: 992px) {
    .container.hero-container {
        max-width: unset;
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-6);
}

.service-card {
    background-color: var(--color-white);
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-neutral-200);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-neutral-200);
    transition: all var(--transition-normal);
}

.service-card:nth-child(1)::before {
    background: var(--color-blue-primary);
}

.service-card:nth-child(2)::before {
    background: var(--gradient-brand);
}

.service-card:nth-child(3)::before {
    background: var(--color-orange-primary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    height: 6px;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    transition: all var(--transition-normal);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.icon-blue {
    color: var(--color-blue-primary);
    background-color: var(--color-blue-pale);
}

.service-card:hover .icon-blue {
    background-color: var(--color-blue-primary);
    color: var(--color-white);
}

.icon-orange {
    color: var(--color-orange-primary);
    background-color: #FFF3EB;
}

.service-card:hover .icon-orange {
    background-color: var(--color-orange-primary);
    color: var(--color-white);
}

.icon-gradient {
    color: var(--color-blue-primary);
    background-color: var(--color-blue-pale);
}

.service-card:hover .icon-gradient {
    background: var(--gradient-brand);
    color: var(--color-white);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
}

/* ==========================================================================
   Process (Ablauf) Section
   ========================================================================== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    position: relative;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Horizontal connecting line for desktop */
@media (min-width: 993px) {
    .process-step::after {
        content: '';
        position: absolute;
        top: 35%;
        right: calc(-50% - (var(--space-5) / 2));
        width: calc(100% + var(--space-5));
        height: 2px;
        background-color: var(--color-blue-pale);
        border-top: 2px dashed var(--color-blue-primary);
        opacity: 0.3;
        z-index: -1;
    }

    .process-step:last-child::after {
        display: none;
    }
}

.process-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
    background-color: var(--color-neutral-200);
}

.process-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.process-step:hover .process-image {
    transform: scale(1.05);
}

.process-number {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    width: 36px;
    height: 36px;
    background-color: var(--color-blue-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.process-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.process-text {
    font-size: 0.9375rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--color-blue-primary);
    margin-bottom: var(--space-4);
}

.about-features {
    margin-top: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform var(--transition-fast);
}

.feature:hover .feature-icon {
    transform: scale(1.2);
}

.feature-icon {
    color: var(--color-blue-primary);
    transition: transform var(--transition-fast);
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    display: block;
}

.geometric-shape {
    position: absolute;
    background: var(--gradient-brand);
    opacity: 0.1;
    z-index: 1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    transform: rotate(45deg);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-8);
}

.contact-form {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group {
    position: relative;
    margin-bottom: var(--space-5);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-md);
    background-color: var(--color-neutral-100);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-neutral-900);
    transition: all var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-blue-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--color-neutral-600);
    transition: all var(--transition-normal);
    pointer-events: none;
    background-color: transparent;
    padding: 0 0.25rem;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-blue-primary);
    background-color: var(--color-white);
    font-weight: 500;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.altcha-widget-wrap {
    margin-bottom: var(--space-5);
}

.altcha-widget-wrap altcha-widget {
    display: block;
    max-width: 100%;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    font-size: 0.875rem;
}

.form-checkbox input {
    margin-top: 0.25rem;
}

.contact-info-card {
    background: var(--color-white);
    color: var(--color-neutral-800);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    height: 100%;
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
    color: var(--color-neutral-900);
    margin-bottom: var(--space-5);
}

.info-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.info-icon {
    color: var(--color-orange-primary);
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--color-neutral-600);
    font-size: 0.875rem;
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-content p,
.info-content a {
    color: var(--color-neutral-800);
    font-size: 1.125rem;
    font-weight: 500;
}

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

.form-status {
    margin-top: var(--space-3);
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    color: #10B981;
}

.form-status.error {
    color: #EF4444;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-neutral-900);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-12) 0 var(--space-4);
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-logo {
    margin-bottom: var(--space-4);
}

.footer-logo .logo-image {
    filter: brightness(0) invert(1);
}

.footer-desc {
    max-width: 300px;
}

.footer-title {
    color: var(--color-white);
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: var(--space-2);
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-4);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.shape-1 {
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    animation: float 8s ease-in-out infinite reverse;
}

/* Scroll Animations */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in.is-visible,
.fade-in-up.is-visible,
.fade-in-left.is-visible,
.fade-in-right.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* Staggered animations */
[style*="--delay"] {
    transition-delay: var(--delay);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    :root {
        --space-12: 4rem;
        --space-16: 6rem;
        --container-padding: 1.25rem;
    }

    /* ── Hero: image on top, text below on white ── */
    .hero {
        display: block;
        padding: 0;
        min-height: auto;
        background-color: var(--color-neutral-100);
    }

    /* image-area becomes a normal block element so text flows beneath it */
    .hero-image-area {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin-top: var(--header-height);
    }

    .hero-image-area .hero-bg-image {
        width: 100%;
        max-width: 100%;
        height: 60vw;
        object-position: 30% center;
    }

    /* White fade at the bottom of the image → blends into page background */
    .hero-overlay {
        display: block;
        position: absolute;
        inset: auto 0 0 0;
        height: 50%;
        background: linear-gradient(to bottom,
                rgba(247, 250, 252, 0) 0%,
                rgba(247, 250, 252, 1) 100%);
        pointer-events: none;
    }

    /* Text container sits below the image on white */
    .hero-container {
        position: static;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
        padding-top: var(--space-4);
        padding-bottom: var(--space-3);
    }

    /* Reset text colours to dark for white background */
    .hero-content {
        color: var(--color-neutral-900);
    }

    .hero-title {
        color: var(--color-neutral-900);
    }

    .hero-subtitle {
        color: var(--color-neutral-800);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badge {
        background: rgba(43, 127, 212, 0.1);
        color: var(--color-blue-primary);
        border: 1px solid rgba(43, 127, 212, 0.2);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    .hero-cta {
        justify-content: center;
    }

    /* Reset secondary button to light style */
    .hero-cta .btn-secondary {
        display: none;
        background-color: var(--color-white);
        color: var(--color-blue-primary);
        border: 2px solid var(--color-neutral-200);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: var(--shadow-md);
    }

    .hero-cta .btn-secondary:hover {
        background-color: var(--color-neutral-100);
        color: var(--color-blue-secondary);
        border-color: var(--color-neutral-200);
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 400px;
        margin: 0 auto;
    }

    .process-step::before {
        content: '';
        position: absolute;
        top: calc(100% - var(--space-4));
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: calc(var(--space-6) + var(--space-4));
        background-color: var(--color-blue-pale);
        border-left: 2px dashed var(--color-blue-primary);
        opacity: 0.3;
        z-index: -1;
    }

    .process-step:last-child::before {
        display: none;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .about-image-wrapper {
        grid-row: 1;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav.is-active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
        color: var(--color-neutral-900) !important;
    }

    .btn-nav-kontakt {
        border-color: var(--color-blue-primary) !important;
        color: var(--color-blue-primary) !important;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-badge {
        border-radius: 20px;
        padding: 0.5rem 1.25rem;
        line-height: 1.4;
    }

    .mobile-break {
        display: block;
    }

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

    .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --container-padding: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .section {
        padding: var(--space-8) 0;
    }

    .contact-form,
    .contact-info-card {
        padding: var(--space-4);
    }
}

/* --------------------------------------------------------------------------
   Silktide Consent Manager – an kaltoderwarm (Farben, Typo, Cookie-Icon)
   -------------------------------------------------------------------------- */
#stcm-wrapper {
    --fontFamily: var(--font-body), system-ui, sans-serif;
    --primaryColor: var(--color-blue-primary);
    --backgroundColor: var(--color-white);
    --textColor: var(--color-neutral-800);
    --iconColor: var(--color-blue-primary);
    --iconBackgroundColor: var(--color-white);
    --boxShadow: var(--shadow-lg);
    --backdropBackgroundColor: rgba(26, 32, 44, 0.45);
    --backdropBackgroundBlur: 4px;
}

#stcm-wrapper a:hover {
    color: var(--color-blue-secondary);
}

#stcm-wrapper #stcm-banner button:focus,
#stcm-wrapper #stcm-modal button:focus,
#stcm-wrapper #stcm-icon:focus {
    box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-blue-primary);
}

#stcm-banner {
    font-family: var(--font-body), system-ui, sans-serif;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-5);
}

#stcm-banner p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--color-neutral-800);
}

#stcm-banner .stcm-button {
    font-family: var(--font-body), system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border-width: 2px;
    transition: background-color var(--transition-fast), color var(--transition-fast),
        border-color var(--transition-fast);
}

#stcm-banner .stcm-button-primary:hover {
    background-color: var(--color-blue-secondary);
    border-color: var(--color-blue-secondary);
    color: var(--color-white);
}

#stcm-banner .stcm-button-secondary:hover {
    background-color: var(--color-blue-pale);
    color: var(--color-blue-secondary);
    border-color: var(--color-blue-primary);
}

#stcm-banner .stcm-preferences-button {
    font-size: 0.9375rem;
    font-weight: 500;
}

#stcm-modal {
    font-family: var(--font-body), system-ui, sans-serif;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-5);
}

#stcm-modal h1 {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-neutral-900);
    letter-spacing: -0.02em;
}

#stcm-modal p,
#stcm-modal legend {
    font-size: 0.9375rem;
    line-height: 1.55;
}

#stcm-modal .stcm-button {
    font-family: var(--font-body), system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.25rem;
}

#stcm-modal .stcm-button-primary:hover {
    background-color: var(--color-blue-secondary);
    border-color: var(--color-blue-secondary);
    color: var(--color-white);
}

#stcm-modal .stcm-toggle-track {
    background-color: var(--color-neutral-200);
}

#stcm-modal .stcm-toggle input:checked + .stcm-toggle-track {
    background-color: var(--color-blue-primary);
}

/* Cookie-Icon: ~40 % kleiner (60px → 36px) */
#stcm-icon {
    width: 36px;
    height: 36px;
    bottom: 12px;
    left: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

#stcm-icon.stcm-pos-bottom-right {
    left: auto;
    right: 12px;
}

#stcm-icon svg {
    width: 23px;
    height: 23px;
}