/* ============================================
   DESIGN SYSTEM â€“ Stefan Kübrich GmbH & Co. KG
   ============================================ */

:root {
    /* Colors */
    --bg-white: #FFFFFF;
    --bg-light-grey: #F7F7F7;
    --text-dark: #2C3E50;
    --accent-red: #9D191B;
    --accent-red-hover: #7E1415;
    --accent-red-light: rgba(157, 25, 27, 0.10);
    --accent-gold: #C68B59;
    --border-light: #E8E8E8;
    --text-muted: #6B7B8D;
    --overlay-dark: rgba(20, 25, 30, 0.65);
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-xs: 0.8125rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.75rem;
    --fs-4xl: 3.5rem;
    --line-height: 1.6;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Spacing */
    --section-padding: 6rem 0;
    --container-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* KEIN overflow-x hier: wuerde position:sticky (Scrollytelling) zerstoeren */
}

body {
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--line-height);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: clip;
    /* clip statt hidden: verhindert horizontales Scrollen, bricht aber kein sticky */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-family);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--white);
    border-color: var(--accent-red);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(157, 25, 27, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
    border-color: var(--white);
}

.btn-secondary {
    background-color: #F5F7FA;
    color: #1A1F2B;
    border: 1.5px solid #CBD5E1;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #E2E8F0;
    color: var(--accent-red, #9D191B);
    border-color: var(--accent-red, #9D191B);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: var(--fs-base);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 5px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    color: var(--white);
    transition: color var(--transition-base);
    z-index: 10;
}

.site-header.scrolled .logo {
    color: var(--text-dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-red);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    letter-spacing: 0.05em;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--white);
}

.site-header.scrolled .nav-link {
    color: var(--text-dark);
}

.site-header.scrolled .nav-link:hover {
    color: var(--accent-red);
}

/* Dropdown Styles */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-white);
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.dropdown-link:hover {
    background: var(--bg-light-grey);
    color: var(--accent-red);
    padding-left: 1.75rem;
}

/* Header CTA */
.header-cta {
    font-size: var(--fs-xs);
    padding: 0.625rem 1.5rem;
}

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    position: relative;
    /* Anchors the dropdown */
    transition: all var(--transition-base);
    backdrop-filter: blur(6px);
}

.site-header.scrolled .header-search {
    background: var(--bg-light-grey);
    border-color: var(--border-light);
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0.5rem 0.875rem;
    font-size: var(--fs-sm);
    color: var(--white);
    width: 180px;
    font-family: var(--font-family);
    transition: width var(--transition-base);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.site-header.scrolled .header-search input {
    color: var(--text-dark);
}

.site-header.scrolled .header-search input::placeholder {
    color: var(--text-muted);
}

.header-search button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.site-header.scrolled .header-search button {
    color: var(--text-muted);
}

.header-search button:hover {
    color: var(--accent-red);
}

@media (max-width: 900px) {
    .header-search {
        display: none;
    }
}

.mobile-search-wrapper {
    display: none;
}

@media (min-width: 769px) {
    .mobile-cta-wrapper {
        display: none !important;
    }
}

/* ---- Autocomplete Dropdown ---- */
.header-search-wrapper {
    position: relative;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    list-style: none;
    padding: 0.375rem 0;
    margin: 0;
    overflow: hidden;
}

.search-suggestions.open {
    display: block;
    animation: fadeInDown 0.15s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestions li {
    border-bottom: 1px solid var(--border-light);
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions li a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: var(--fs-sm);
    color: var(--text-dark);
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.search-suggestions li a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-red);
    flex-shrink: 0;
    opacity: 0.7;
}

.search-suggestions li a:hover,
.search-suggestions li a:focus {
    background: var(--accent-red-light);
    color: var(--accent-red);
    outline: none;
}

.search-suggestions li.no-results a {
    color: var(--text-muted);
    font-weight: var(--fw-normal);
    cursor: default;
    pointer-events: none;
}

.search-suggestions li.no-results a::before {
    background: var(--text-muted);
    opacity: 0.4;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.site-header.scrolled .hamburger span {
    background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #1a2332;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(15, 20, 30, 0.55) 0%,
            rgba(15, 20, 30, 0.70) 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 8rem 0 6rem;
}

.hero-pre {
    display: inline-block;
    background-color: var(--accent-red);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(157, 25, 27, 0.4);
    line-height: 1;
}

.hero-title {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--bg-light-grey);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.trust-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    line-height: 1;
}

.trust-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.trust-text {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-dark);
    white-space: nowrap;
}

/* ============================================
   USP SECTION
   ============================================ */
.usp-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.usp-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.eyecatcher {
    display: inline-block;
    background-color: var(--accent-red, #9D191B);
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(157, 25, 27, 0.4);
    line-height: 1;
}

.section-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-title.centered {
    text-align: center;
}

/* Accent Divider Line */
.section-divider {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
    margin: 1.25rem auto 1.5rem;
}

.usp-text {
    font-size: var(--fs-md);
    color: var(--text-muted);
    line-height: 1.75;
}

.usp-text+.usp-text {
    margin-top: 1.25rem;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-section {
    padding: var(--section-padding);
    background: var(--bg-light-grey);
}

/* When a divider follows the title, remove title's own margin-bottom
   so spacing is controlled solely by the divider's margins */
.section-title+.section-divider {
    margin-top: -0.25rem;
}

/* Restore original spacing between heading+divider and cards grid */
.services-section>.container>.section-divider {
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ============================================
   SHOWROOM TEASER
   ============================================ */
.showroom-teaser {
    padding: var(--section-padding);
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.showroom-teaser-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.showroom-teaser-img-col {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    position: relative;
    width: 100%;
}

/* Slider Wrapper with fixed elegant aspect ratio */
.showroom-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    aspect-ratio: 3/2;
    border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
    .showroom-slider-wrapper {
        aspect-ratio: 4/3;
    }
}

/* Horizontal sliding track */
.showroom-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.showroom-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.showroom-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

@media (max-width: 768px) {
    .showroom-teaser-img-col .showroom-slider-wrapper {
        aspect-ratio: 4/3;
    }
    .showroom-teaser-img-col .showroom-slide img {
        object-fit: cover;
    }
}

.showroom-slider-wrapper:hover .showroom-slide img {
    transform: scale(1.03);
}

/* Apple-style Glassmorphic Arrow Controls */
.showroom-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-dark, #1A1F2B);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.showroom-arrow-prev {
    left: 1.25rem;
}

.showroom-arrow-next {
    right: 1.25rem;
}

.showroom-slider-wrapper:hover .showroom-slider-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

.showroom-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--accent-red);
    transform: translateY(-50%) scale(1.08);
}

.showroom-slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.showroom-slider-arrow svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.showroom-arrow-prev:hover svg {
    transform: translateX(-1px);
}

.showroom-arrow-next:hover svg {
    transform: translateX(1px);
}

/* Glassmorphic Dot Indicator Container */
.showroom-slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 20, 30, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.45rem 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Stretching Dots (Apple iOS/tvOS style) */
.showroom-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.showroom-slider-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.showroom-slider-dot.active {
    background: var(--accent-red);
    width: 20px;
    border-radius: 100px;
}

.showroom-teaser-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.showroom-teaser-text-col .section-divider {
    margin-left: 0;
}

.showroom-teaser-sub {
    font-size: var(--fs-md);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.showroom-teaser .btn {
    gap: 0.625rem;
}

@media (max-width: 900px) {
    .showroom-teaser-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.services-grid .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Soft elevated shadow */
    border-color: var(--border-light);
}

/* Card Image */
.service-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

/* Card Body */
.service-card-body {
    padding: 1.75rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    margin-bottom: 0;
    color: var(--text-dark);
}

.service-card-body .section-divider {
    margin-left: 0;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    width: 40px;
    transition: width var(--transition-base);
}

.service-card:hover .section-divider {
    width: 60px;
}

.showroom-content .section-divider {
    margin-left: 0;
}

.service-card-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    color: var(--accent-red);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-base);
}

.service-card-link:hover {
    border-color: var(--accent-red);
    background: var(--accent-red-light);
    color: var(--accent-red-hover);
    gap: 0.625rem;
}


/* ============================================
   SHOWROOM SECTION
   ============================================ */
.showroom-section {
    padding: var(--section-padding);
    background: var(--bg-light-grey);
}

.showroom-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showroom-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.showroom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    transition: transform var(--transition-slow);
}

.showroom-image:hover img {
    transform: scale(1.03);
}

.showroom-content {
    padding: 1rem 0;
}

.showroom-content p {
    font-size: var(--fs-md);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.showroom-content .btn {
    margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 0;
}

.footer-intro {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

.site-footer .footer-intro p {
    font-size: var(--fs-md) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.6 !important;
    max-width: 700px;
    margin: 0 auto;
}

.footer-intro-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-right-group {
    display: flex;
    flex-direction: column;
}

.footer-right-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-desktop-note {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-desktop-note .footer-note,
.site-footer .footer-note {
    font-size: var(--fs-xs) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.6 !important;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-right-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-desktop-note {
        margin-top: 1.5rem;
        text-align: center;
    }
}

.site-footer .footer-col h4 {
    color: var(--white) !important;
    font-size: var(--fs-base) !important;
    font-weight: var(--fw-semibold) !important;
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent-red);
}

.site-footer .footer-col p,
.site-footer .footer-col address {
    font-size: var(--fs-sm) !important;
    line-height: 1.8 !important;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-red);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer-social-link:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(157, 25, 27, 0.45);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer .footer-links a {
    font-size: var(--fs-sm) !important;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.site-footer .footer-bottom p {
    font-size: var(--fs-xs) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(157, 25, 27, 0.4);
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(157, 25, 27, 0.5);
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(157, 25, 27, 0.4);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 20, 30, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light-grey);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--border-light);
    color: var(--text-dark);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

#modal-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.modal-intro {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
}

/* Progress Bar */
.modal-progress {
    height: 4px;
    background: var(--bg-light-grey);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.modal-progress-bar {
    height: 100%;
    background: var(--accent-red);
    border-radius: 2px;
    width: 33.33%;
    transition: width var(--transition-base);
}

/* Steps */
.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: fadeSlideIn 0.35s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-question {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Option Buttons */
.modal-options,
.modal-contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.modal-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--bg-light-grey);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-option-btn:hover {
    border-color: var(--accent-red);
    background: var(--accent-red-light);
}

.modal-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    line-height: 1;
}

.modal-option-icon svg {
    width: 28px;
    height: 28px;
}

/* Contact Form */
.modal-contact-form {
    margin-top: 1.5rem;
    animation: fadeSlideIn 0.35s ease forwards;
}

.modal-contact-form label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.modal-contact-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--fs-base);
    color: var(--text-dark);
    transition: border-color var(--transition-fast);
    outline: none;
}

.modal-contact-form input:focus {
    border-color: var(--accent-red);
}

.modal-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Success */
.modal-success {
    text-align: center;
    padding: 2rem 0;
}

.modal-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.modal-success-icon svg {
    width: 48px;
    height: 48px;
}

.modal-success h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.modal-success p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--fs-3xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .showroom-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }

    .header-inner {
        height: 64px;
    }

    /* FIX 1: Menü startet unterhalb des Headers (64px) – kein Logo-Overlap */
    .main-nav {
        position: fixed;
        top: 64px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 64px);
        background: var(--bg-white);
        padding: 2rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        z-index: 999;
        /* Unter dem Header (z-index: 1000), aber ueber allem anderen */
        overflow-y: auto;
    }

    /* FIX 1: Header ist standardmäßig transparent */
    .site-header {
        background-color: transparent;
        box-shadow: none;
    }

    /* FIX 1: Header wird zwingend weiß beim Scrollen oder bei geöffnetem Menü */
    .site-header.scrolled,
    .site-header.menu-open {
        background-color: var(--bg-white) !important;
        box-shadow: var(--shadow-md) !important;
    }

    .main-nav.open {
        right: 0;
    }

    /* FIX 2: Nav-Hauptlinks linksbündig ausrichten */
    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-list>li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    /* FIX 2: Haupt-Menülinks linksbündig und eingerückt */
    .nav-link {
        display: block;
        width: 100%;
        color: var(--text-dark) !important;
        font-size: var(--fs-base);
        font-weight: var(--fw-semibold);
        padding: 1rem 2rem !important;
        text-align: left !important;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Dropdown mobil inline statt absolut – schiebt Menüpunkte nach unten */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: var(--bg-light-grey) !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        min-width: 0 !important;
        display: none;
    }

    .nav-item-dropdown:hover .dropdown-menu,
    .nav-item-dropdown.is-open .dropdown-menu {
        display: block;
    }

    /* FIX 2: Sub-Menülinks (Leistungen-Dropdown) weiter eingerückt */
    .dropdown-link {
        padding: 0.75rem 1.5rem 0.75rem 3.5rem !important;
        font-size: 0.95em;
        color: var(--text-muted) !important;
        border-bottom: 1px solid var(--border-light);
        display: block;
    }

    .dropdown-link:last-child {
        border-bottom: none;
    }

    /* MOBILE SEARCH IN NAV */
    .mobile-search-wrapper {
        display: flex !important;
        align-items: center;
        background: var(--bg-light-grey);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-sm);
        margin-bottom: 1.5rem;
        padding: 0.25rem;
    }

    .mobile-search-input {
        border: none;
        background: transparent;
        outline: none;
        padding: 0.75rem 1rem;
        width: 100%;
        font-size: var(--fs-base);
        color: var(--text-dark);
        font-family: var(--font-family);
    }

    input[type="search"] {
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    input[type="search"]::-webkit-search-decoration,
    input[type="search"]::-webkit-search-results-button,
    input[type="search"]::-webkit-search-results-decoration {
        display: none !important;
        -webkit-appearance: none !important;
    }

    input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none !important;
        appearance: none !important;
        height: 16px !important;
        width: 16px !important;
        min-width: 16px !important;
        max-width: 16px !important;
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0392B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'></line><line x1='6' y1='6' x2='18' y2='18'></line></svg>") center center / contain no-repeat !important;
        cursor: pointer !important;
        opacity: 0 !important;
        pointer-events: none !important;
        display: block !important;
    }

    input[type="search"]:not(:placeholder-shown)::-webkit-search-cancel-button {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    #contact-slideout {
        height: 100dvh !important;
        max-height: 100vh;
        overflow-y: auto !important;
        padding-bottom: 3rem !important;
    }

    .mobile-cta-wrapper {
        display: block !important;
        margin-bottom: 1.5rem !important;
        width: 100%;
    }

    #btn-open-contact-mobile {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center;
        border-radius: var(--radius-sm, 4px) !important;
    }

    .mobile-search-btn {
        background: var(--accent-red);
        border: none;
        color: var(--white);
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-sm);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #mobile-search-btn {
        display: none !important;
    }

    /* FIX 4: Buttons bleiben innerhalb der Bildschirmbreite */
    .btn {
        max-width: 100%;
        white-space: normal !important;
        height: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: center;
    }

    .hero-content {
        padding: 7rem 0 4rem;
    }

    .hero-title {
        font-size: var(--fs-2xl);
    }

    .hero-sub {
        font-size: var(--fs-base);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .trust-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .trust-item {
        justify-content: flex-start;
        min-width: auto;
    }

    .section-title {
        font-size: var(--fs-xl);
    }

    .modal {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {

    .modal-options,
    .modal-contact-options {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTACT SLIDE-OUT OVERLAY
   ============================================ */
#contact-slideout {
    position: fixed;
    right: -100%;
    top: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

#contact-slideout.active {
    right: 0;
}

#contact-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 30, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#contact-backdrop.show {
    display: block;
    opacity: 1;
}

.slideout-content {
    padding: 2.5rem 2rem;
    flex: 1;
    overflow-y: auto;
}

.slideout-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: color var(--transition-fast);
}

.slideout-close:hover {
    color: var(--text-dark);
}

.slideout-header h3 {
    font-size: var(--fs-xl);
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.quick-contact-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-contact-quick {
    padding: 0.875rem;
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: var(--fw-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-call {
    background: var(--bg-light-grey);
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.slideout-divider {
    text-align: center;
    position: relative;
    margin: 2.5rem 0;
}

.slideout-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-light);
}

.slideout-divider span {
    position: relative;
    background: var(--bg-white);
    padding: 0 1rem;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Express Form Styles */
.express-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
}

.express-form input,
.express-form select,
.express-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--fs-sm);
    background: var(--bg-light-grey);
    transition: all var(--transition-fast);
}

.express-form input:focus,
.express-form select:focus,
.express-form textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px var(--accent-red-light);
}

/* Optimization for Side-Panel & Inputs */
.modal-pre-line {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-red) 0%, #6B1011 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-red);
    /* Fallback */
}

.btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--bg-light-grey);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-weight: var(--fw-bold);
    transition: all var(--transition-base);
    margin-bottom: 1.5rem;
}

.btn-call:hover {
    background: var(--white);
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-call svg {
    color: var(--accent-red);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    pointer-events: none;
    z-index: 10;
    color: var(--accent-red);
}

.input-with-icon input {
    padding-left: 3rem !important;
}

.modal-contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-light-grey);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.modal-option-btn:hover {
    background: var(--white);
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
}

.modal-option-icon svg {
    width: 28px;
    height: 28px;
}

.btn-express-submit,
.btn-wa-slideout,
.btn-pinterest-slideout {
    /* Legacy styles - keeping for compatibility but main use is now .modal-option-btn */
    padding: 1rem;
    background: var(--accent-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-size: var(--fs-sm);
}

@media (max-width: 768px) {
    #contact-slideout {
        width: 100%;
    }
}

/* ============================================
   NEW SECTIONS: PARTNERS, GALLERY, TESTIMONIALS
   ============================================ */

/* 1. Partner Wall */
.partners-section {
    background-color: var(--bg-white);
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    /* Hide the scrolling track */
}

.partners-title {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 4rem;
    /* Spacing between logos */
    width: max-content;
    animation: marquee 30s linear infinite;
}

@media (hover: hover) {
    .marquee-track:hover {
        animation-play-state: paused;
    }
}

.partner-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.brand-logo {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-muted);
    opacity: 0.5;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: default;
}

.partner-item:hover .brand-logo {
    color: var(--accent-red);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 2rem));
        /* Scroll half the width (since we duplicated items) */
    }
}

/* 2. Meisterwerke Galerie */
.gallery-section {
    background-color: var(--bg-white);
    padding: 8rem 0;
}

.section-subtext {
    max-width: 650px;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: var(--fs-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-light-grey);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Expand */
.gallery-wrapper {
    position: relative;
}

.gallery-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 240px;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.gallery-fade-overlay.is-hidden {
    opacity: 0;
}

.gallery-extra-grid.is-visible {
    animation: galleryReveal 0.6s ease forwards;
}

@keyframes galleryReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-expand-wrapper {
    text-align: center;
    margin-top: 2.5rem;
    transition: opacity 0.3s ease;
}

.gallery-expand-wrapper.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .gallery-fade-overlay {
        display: none;
    }
}

/* 3. Kundenstimmen (Testimonials) */
.testimonials-section {
    background-color: var(--bg-light-grey);
    padding: 8rem 0;
    border-top: 1px solid var(--border-light);
}

.testimonials-cta {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
}

.final-cta-box {
    background: var(--white);
    padding: 3rem 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.final-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #6B1011);
}

.final-cta-box h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.final-cta-box p {
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-size: var(--fs-md);
}

.cta-arrow {
    color: var(--accent-red);
    margin-top: -2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    animation: bounce-arrow 1.8s ease-in-out infinite;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.btn-subtext {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    opacity: 0.8;
}

.btn-pulse {
    position: relative;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 139, 89, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(198, 139, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 139, 89, 0);
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-stars {
    color: var(--accent-red);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    display: flex;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
    flex-grow: 1;
    font-size: var(--fs-sm);
}

.testimonial-name {
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive Overrides */
@media (max-width: 1024px) {

    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .gallery-grid,
    .gallery-extra-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        gap: 2rem;
    }

    .partner-item img {
        max-width: 110px;
    }

    .gallery-section,
    .testimonials-section {
        padding: 5rem 0;
    }
}


/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-page {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.85;
    color: var(--text-dark);
}

.legal-content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: var(--fw-bold);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, #6B1011 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-red);
    /* Fallback */
}

.legal-content h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-dark);
}

.legal-content h3 {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.legal-content p {
    margin-bottom: 1rem;
    font-size: var(--fs-base);
}

.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.legal-content a:hover {
    opacity: 0.8;
}

.legal-content em {
    color: var(--text-muted);
    font-style: italic;
}

.legal-updated {
    margin-top: 3rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}


/* ============================================
   COOKIE CONSENT BANNER (DSGVO)
   ============================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: var(--bg-white);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--border-light);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease;
}

#cookie-banner.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    margin: 0 0 0.35rem;
    font-size: var(--fs-sm);
    color: var(--text-dark);
    line-height: 1.6;
}

.cookie-banner-text p:last-child {
    margin-bottom: 0;
}

.cookie-banner-text a {
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn-essential {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn-essential:hover {
    border-color: var(--text-muted);
    background: var(--bg-light-grey);
}

.cookie-btn-accept {
    padding: 0.7rem 1.5rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

/* ”€”€ Responsive: Cookie Banner stacked ”€”€ */
@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn-essential,
    .cookie-btn-accept {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   SOLID HEADER THEME (Für Seiten ohne dunkles Hero-Bild)
   ============================================ */
body.theme-solid-header .site-header {
    position: sticky;
    top: 0;
    background-color: var(--bg-white, #ffffff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-light);
}

/* Navigation-Links dunkel färben */
body.theme-solid-header .site-header .nav-link {
    color: var(--text-dark, #1A1F2B) !important;
    font-weight: 500;
}

/* Hover-Effekt im Kübrich-Rot */
body.theme-solid-header .site-header .nav-link:hover {
    color: var(--accent-red, #9D191B) !important;
}

/* Logo-Text dunkel färben */
body.theme-solid-header .site-header .logo {
    color: var(--text-dark, #1A1F2B);
}

/* Freitextsuche sichtbar machen */
body.theme-solid-header .site-header .header-search input {
    color: var(--text-dark, #1A1F2B);
    border-color: var(--border-light, #e5e7eb);
    background: var(--bg-light-grey, #f5f5f5);
}

body.theme-solid-header .site-header .header-search input::placeholder {
    color: var(--text-muted, #6b7280);
}

body.theme-solid-header .site-header .header-search button {
    color: var(--text-dark, #1A1F2B);
}

/* Falls es Icons im Header gibt, diese ebenfalls anpassen */
body.theme-solid-header .site-header svg {
    stroke: var(--text-dark, #1A1F2B);
}

body.theme-solid-header .site-header svg:hover {
    stroke: var(--accent-red, #9D191B);
}

/* FIX 1+2: Hamburger-Icon immer dunkel auf Seiten mit hellem Header */
body.theme-solid-header .hamburger span {
    background-color: var(--text-dark, #1a1a1a);
}

/* FIX 1+2: X-Icon (Schließen) immer dunkel — unabhängig vom Scroll-State */
.hamburger.active span {
    background-color: var(--text-dark, #1a1a1a) !important;
}

/* Verhindern, dass der Inhalt unter den sticky Header rutscht */
body.theme-solid-header main {
    padding-top: 2rem;
}

/* ============================================
   TRUST RIBBON & MARQUEE (Startseite)
   ============================================ */
.trust-ribbon {
    width: 100%;
    background-color: var(--bg-white, #ffffff);
    border-bottom: 1px solid var(--border-light, #eaeaea);
    padding: 1.25rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.trust-ribbon-track {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.trust-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark, #1a1f2b);
}

.trust-item svg {
    flex-shrink: 0;
    min-width: 24px;
    min-height: 24px;
}

/* Desktop: Zentriert, kein Scrolling (ab 1025px) */
@media (min-width: 1025px) {
    .trust-ribbon-track {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Das Duplikat wird auf dem Desktop versteckt, um Platz zu sparen */
    .trust-ribbon-track .trust-duplicate {
        display: none !important;
    }
}

/* Tablet & Mobile: Unendlicher Ticker-Effekt (bis 1024px) */
@media (max-width: 1024px) {
    .trust-ribbon {
        padding: 1rem 0;
    }

    .trust-ribbon-track {
        width: max-content;
        flex-wrap: nowrap;
        animation: scroll-marquee 25s linear infinite;
    }

    /* Pausiert die Animation, wenn der Nutzer den Finger draufhält */
    .trust-ribbon-track:hover {
        animation-play-state: paused;
    }

    @keyframes scroll-marquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}

/* ============================================
   MOBILE SCROLL-SNAPPING FÜR INFO-KARTEN
   (Apple-Style Swipe-Karten)
   ============================================ */
@media (max-width: 768px) {

    .system-cards-grid,
    .b-compare-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 4vw !important;
        padding-bottom: 1.5rem !important;

        /* Vollständiger Breakout aus dem l-container, um das Abschneiden zu verhindern */
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;

        padding-left: 5vw !important;
        padding-right: 5vw !important;
        scroll-padding-left: 5vw !important;
    }

    .system-cards-grid::-webkit-scrollbar,
    .b-compare-grid::-webkit-scrollbar {
        display: none !important;
    }

    .system-card,
    .b-compare-card {
        flex: 0 0 80vw !important;
        min-width: 80vw !important;
        width: 80vw !important;
        scroll-snap-align: start !important;
        max-width: none !important;

        /* Zwingende Sichtbarkeit (überschreibt .fade-in-element) */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}