:root {
    /* Hauptfarben basierend auf dem Logo */
    --primary-color: #800080;          /* Violett aus dem Logo */
    --primary-light: #9932CC;          /* Helleres Violett für Hover */
    --primary-dark: #4B0082;
    --primary-rgb:108, 43, 217;  /* Für Schatten & Overlays */
    
    /* Akzentfarben */
    --secondary-color: #0000FF;        /* Blau aus dem Logo */
    --secondary-light: #4169E1;        /* Helleres Blau für Hover */
    --secondary-dark: #000080;         /* Dunkleres Blau für Kontraste */
    
    /* Textfarben */
    --text-primary: #333333;           /* Haupttextfarbe */
    --text-light: #ffffff;             /* Weiß für Text auf dunklem Hintergrund */
    --text-muted: #666666;             /* Abgeschwächte Textfarbe */
    --text-secondary: #5e5e5e;         /* Für Nebeninfos */
    
    /* Hintergrundfarben */
    --bg-dark: #1a1a1a;                /* Dunkler Hintergrund wie im Logo */
    --bg-light: #f5f4f8;               /* Heller Hintergrund mit violettem Touch */
    --bg-white: #f5f4f8;               /* Basis-Hintergrund mit violettem Touch */
    --bg-card: #ffffff;                /* Weißer Hintergrund für Karten */
    
    /* Gradienten basierend auf dem Logo */
    --gradient-primary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    --gradient-dark: linear-gradient(135deg, #000000, var(--bg-dark));

    /* Abstände */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Schatten */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 3px 10px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 5px 15px rgba(0, 0, 0, 0.2);

    /* Übergänge */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Breakpoints */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;

    /* Responsive Typography */
    --font-size-base: clamp(1rem, 1vw + 0.5rem, 1.25rem);
    --font-size-lg: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
    --font-size-xl: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    --font-size-xxl: clamp(2rem, 3vw + 1rem, 3.5rem);
    
    /* Responsive Spacing */
    --spacing-fluid-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --spacing-fluid-sm: clamp(0.5rem, 1vw, 1rem);
    --spacing-fluid-md: clamp(1rem, 2vw, 2rem);
    --spacing-fluid-lg: clamp(1.5rem, 3vw, 3rem);
    --spacing-fluid-xl: clamp(2rem, 4vw, 4rem);
    
    /* Container Widths */
    --container-max-width: 1400px;
    --container-padding: clamp(1rem, 3vw, 2rem);
    
    /* Component Sizes */
    --card-min-width: 280px;
    --hero-min-height: clamp(300px, 50vh, 600px);
}

/* Basis-Reset und Responsive Grundlagen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-base);
}

/* Container Styles */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Main Content */
main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    width: 100%;
    position: relative;
    z-index: 0;
}

/* Hero Section Anpassungen */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: var(--hero-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: var(--spacing-fluid-xl) var(--spacing-fluid-md);
    margin: 0;
    box-sizing: border-box;
    margin-top: 60px;
    scroll-margin-top:60px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.hero h1 {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-fluid-md);
    font-weight: 600;
    color: var(--primary-light);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    font-family: 'Boldonse', system-ui;
}

.hero p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-fluid-lg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    max-width: 70ch;
}

/* Hero Button Styles */
.hero .btn-primary {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    will-change: transform, box-shadow;
}

.hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Grid Layout für Produktkarten */
.dienstleistungen-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Product Cards */
.product-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    will-change: transform, box-shadow;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-card-hover);
}

/* Product Images  Position*/
.product_multimedia {
    object-position: center 30%;
}
.product_sternenhimmel {
    object-position: center 35%;
}

.product_ambientebeleuchtung {
    object-position: center;
}

.product_Aufbereitung {
    object-position: center 55%;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.product-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.product-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    padding-bottom: var(--spacing-sm);
}

.product-content p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    flex-grow: 1;
}

.product-content .btn-primary {
    margin-top: auto;
    align-self: flex-start;
}

/* Contact Options */
.contact-options .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-fluid-md);
}

.contact-option {
    background: var(--bg-card);
    border-radius: 10px;
    text-align: center;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-width: 250px;  /* Minimale Breite für alle Karten */
    flex: 1;  /* Gleiche Breite für alle Karten */
}

.contact-option h3 {
    margin-bottom: var(--spacing-sm);
    white-space: nowrap;  /* Verhindert Zeilenumbruch */
}

.contact-option p,
.contact-option a {
    white-space: nowrap;  /* Verhindert Zeilenumbruch */
    overflow: visible;  /* Zeigt den kompletten Inhalt */
}

.contact-option:hover {
    transform: translateY(-4px);
}

.contact-option i {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color var(--transition-normal);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Contact Form Styles */
.contact-form {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(107, 47, 186, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(107, 47, 186, 0.25);
}

.alert {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments for Product Page */
@media (max-width: 768px) {
    .product-description {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card i {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }
}

/* Anpassung der Kartenhintergründe */
.product-card, 
.contact-option, 
.contact-form,
.package-card,
.feature-card {
    background-color: var(--bg-card);
}

/* Anpassung der Sektionshintergründe */
.contact-section,
.about-section,
.products-section {
    background-color: var(--bg-light);
}

/* CTA Section Anpassung */
.cta-section {
    background-color: var(--bg-card);
}

/* Entferne die alten Hero-Styles */
.hero-section,
.ambient-hero,
.starlight-hero,
.multimedia-hero,
.detailing-hero {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: auto;
    max-width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Entfernt die Spinner (Pfeile) bei Eingabefeldern vom Typ "number" */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Entfernt Spinner auch in Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Hero Video Section für Ambientebeleuchtung */
.hero-video-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 60vh;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-section .hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

.hero-video-section .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

.hero-video-section .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    color: #b97aff;
}

.hero-video-section .hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    margin-bottom: 0;
}

/* 3-Video Grid Layout - NUR für Startseite */
.home-video-grid {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 60vh;
    max-height: 700px;
    overflow: hidden;
}

.home-video-grid .video-grid {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.home-video-grid .video-grid .hero-video {
    flex: 1;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile: Ein Video - NUR für Startseite */
@media (max-width: 767px) {
    .home-video-grid {
        min-height: 300px;
        height: 50vh;
    }
    
    .home-video-grid .video-grid {
        flex-direction: column;
    }
    
    .home-video-grid .video-grid .hero-video:nth-child(2),
    .home-video-grid .video-grid .hero-video:nth-child(3) {
        display: none;
    }
}

/* Tablet: Zwei Videos - NUR für Startseite */
@media (min-width: 768px) and (max-width: 1199px) {
    .home-video-grid {
        height: 70vh;
        max-height: 800px;
    }
    
    .home-video-grid .video-grid .hero-video:nth-child(3) {
        display: none;
    }
    
    .home-video-grid .video-grid .hero-video {
        flex: 1;
        object-fit: cover;
        object-position: center;
        transform: scale(1.05);
    }
}

/* Desktop: Drei Videos - NUR für Startseite */
@media (min-width: 1200px) {
    .home-video-grid {
        height: 75vh;
        max-height: 900px;
    }
    
    .home-video-grid .video-grid .hero-video {
        flex: 1;
        object-fit: cover;
        object-position: center;
        transform: scale(1.1);
        display: block !important;
        visibility: visible !important;
    }
    
    /* Debug: Alle Videos anzeigen */
    .home-video-grid .video-grid .hero-video:nth-child(1),
    .home-video-grid .video-grid .hero-video:nth-child(2),
    .home-video-grid .video-grid .hero-video:nth-child(3) {
        display: block !important;
        visibility: visible !important;
    }
}

/* Sehr große Bildschirme - NUR für Startseite */
@media (min-width: 1600px) {
    .home-video-grid {
        height: 80vh;
        max-height: 1000px;
    }
    
    .home-video-grid .video-grid .hero-video {
        flex: 1;
        object-fit: cover;
        object-position: center;
        transform: scale(1.15);
    }
}

/* Desktop-optimierte Video-Darstellung - NUR für Startseite */
.home-video-grid .desktop-video-optimized {
    transition: object-position 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
    .home-video-grid .video-grid .desktop-video-optimized {
        object-fit: cover !important;
        object-position: center !important;
        transform: scale(1.05) !important;
    }
}

@media (min-width: 1200px) {
    .home-video-grid .video-grid .desktop-video-optimized {
        object-fit: cover !important;
        object-position: center !important;
        transform: scale(1.1) !important;
    }
}

@media (min-width: 1600px) {
    .home-video-grid .video-grid .desktop-video-optimized {
        object-fit: cover !important;
        object-position: center !important;
        transform: scale(1.15) !important;
    }
}

/* Mobile Anpassungen für andere Seiten */
@media (max-width: 600px) {
    .hero-video-section {
        min-height: 220px;
        height: 32vh;
    }
    .hero-video-section .hero-content {
        padding: 1rem 0.5rem;
    }
}

.hero-video-section::before {
    display: none !important;
}
