/* Bestehende Stile beibehalten */
body {
    font-family: 'Rubik Dirt', cursive; /* Schriftart ändern */
    background-color: #f4f4f4;
    color: #333;
}

.navbar {
    background-color: #333;
    overflow: hidden;
    text-align: center; /* Menüeinträge mittig ausrichten */
}

.navbar a {
    display: inline-block; /* Inline-Block für mittige Ausrichtung */
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-family: 'Rubik Dirt', cursive; /* Schriftart ändern */
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

/* static/styles.css */
.no-hover:hover {
    background-color: transparent;
    color: inherit;
}

.navbar .brand {
    float: left;
    padding: 14px 20px;
    color: white;
    font-family: 'Rubik Dirt', cursive; /* Schriftart ändern */
    text-decoration: none;
}

.hero-image {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease-in-out;
    animation: heroAnimation 5s ease-in-out infinite alternate;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-radius: 0 0 10px 10px;
}

@keyframes heroAnimation {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero {
    color: #0047ab; /* Kobaltblau */
    text-align: center;
    padding: 80px 20px;
    font-family: 'Rubik Dirt', cursive; /* Schriftart ändern */
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    margin-top: -10px;
    position: relative;
    z-index: 1;
    border-bottom: 5px solid #0047ab;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1.2s ease-out;
    color: #003b8b;
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 25px;
    animation: fadeInUp 1.2s ease-out;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    background: #0047ab; /* Kobaltblau */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 50px; /* Abstand zum Footer */
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.5s ease-out;
    border: 2px solid #0047ab;
}

.btn:hover {
    background: #003b8b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 71, 171, 0.4);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 71, 171, 0.2);
}

.content {
    text-align: center;
    padding: 70px 20px;
    background-color: #f9f9f9;
    position: relative;
}

.content h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #0047ab;
    position: relative;
    display: inline-block;
}

.content h3:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: #0047ab;
    bottom: -10px;
    left: 20%;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #0047ab;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.feature img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature:hover img {
    transform: scale(1.05);
}

.feature h3 {
    margin-top: 20px;
    font-size: 1.8rem;
    color: #0047ab;
}

.feature p {
    margin-top: 10px;
    line-height: 1.6;
    color: #555;
}


/* Neue Stile hinzufügen */
form {
    background: #f4f4f4; /* Hintergrundfarbe ändern */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 1000px; /* Breite des Formulars erhöhen */
    width: 100%;
    text-align: left;
    margin: 0 auto; /* Formulare mittig ausrichten */
}

form .cluster {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: inline-block;
    width: calc(50% - 20px); /* Zwei Spalten mit Abstand */
    box-sizing: border-box;
    vertical-align: top; /* Oben ausrichten */
    margin-right: 20px; /* Abstand zwischen den Containern */
}

form .cluster:nth-child(2n) {
    margin-right: 0; /* Kein rechter Rand für jeden zweiten Container */
}

form label {
    display: block;
    margin-top: 10px;
    font-size: 1.2rem; /* Schriftgröße erhöhen */
}

form input, form select {
    width: 100%;
    padding: 14px; /* Increased padding for larger input fields */
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.4rem; /* Increased font size */
    height: auto; /* Ensure height adjusts with content */
}

/* Special styling for date inputs and car selection dropdowns */
form input[type="date"], form select#brands, form select#models, form select#years, form select#roof_types {
    padding: 22px; /* Increased padding for even larger inputs */
    font-size: 2rem; /* Increased font size for better visibility */
    height: auto; /* Ensure height adjusts with content */
    margin-bottom: 20px; /* More space below these elements */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Enhanced shadow for emphasis */
    border: 3px solid #0047ab; /* Thicker colored border for emphasis */
    background-color: #f8f9fa; /* Light background color like checkbox-list */
    border-radius: 8px; /* Rounded corners like checkbox-list */
    display: block; /* Make them full width */
    width: 100%; /* Ensure full width */
    transition: all 0.2s ease; /* Smooth transition for hover effects */
}

/* Add hover effect similar to checkbox-list */
form input[type="date"]:hover, form select#brands:hover, form select#models:hover, form select#years:hover, form select#roof_types:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

form .btn {
    display: inline-block;
    background: #0047ab;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: left;
    cursor: pointer;
    position: relative; /* Position relativ zum Formular */
    margin-bottom: 50px; /* Abstand zum Footer */
}

form .btn:hover {
    background: #003b8b;
}

h2 {
    text-align: left; /* Buchungsanfrage links darstellen */
    position: absolute; /* Aus dem Container herausziehen */
    left: 20px; /* Abstand vom linken Rand */
    color: #0047ab; /* Kobaltblau */
    font-size: 3rem;
    font-family: 'Rubik Dirt', cursive;
}

h3 {
    color: #0047ab; /* Kobaltblau */
    font-size: 2rem;
    font-family: 'Rubik Dirt', cursive;
}


/* styles.css */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: #fff;
    padding: 3px;
    position: fixed;
    bottom: -20px; /* Footer außerhalb des Sichtbereichs platzieren */
    width: 100%;
    font-family: 'Rubik Dirt', cursive; /* Font-Stil für den Footer */
    transition: bottom 0.3s; /* Animation für das Hochfahren */
}

.footer:hover {
    bottom: 0; /* Footer nach oben fahren */
}

.contact-info {
    flex: 1;
}

/* styles.css */
.link-container {
    flex: 1;
    text-align: right;
}

.container-wrapper {
    display: flex;
    justify-content: flex-start;
}

#impressum-link, #datenschutz-link, #agb-link{
    color: #0047ab; /* Textfarbe */
    text-decoration: none; /* Unterstreichung entfernen */
    font-family: 'Rubik Dirt', cursive; /* Schriftart */
    padding: 5px 10px; /* Innenabstand */
    border: 1px solid #0047ab; /* Rahmen */
    border-radius: 5px; /* Abgerundete Ecken */
    display: inline-block; /* Inline-Block für korrekte Ausrichtung */
    margin-left: 10px; /* Abstand zwischen den Links */
}

#impressum-link:hover, #datenschutz-link:hover, #agb-link:hover{
    background-color: #0047ab; /* Hintergrundfarbe beim Hover */
    color: #fff; /* Textfarbe beim Hover */
}

#impressum, #datenschutz, #agb{
    display: none; /* Verstecke die Inhalte standardmäßig */
    font-family: 'Rubik Dirt', cursive; /* Font-Stil */
    color: #fff; /* Textfarbe */
    text-align: right;
    padding: 10px; /* Innenabstand */
}


.Dachbox-container {
    position: relative; /* Container als Bezugspunkt für das Overlay */
    display: inline-block;
    width: 25%; /* Reduced width from 33% to 25% */
}

.Dachbox-container img {
    width: 100%; /* Bild passt sich der Container-Breite an */
    height: auto; /* Proportionale Höhe */
    border-radius: 8px; /* Optional: Abgerundete Ecken */
}

.Dachbox-container .overlay-text {
    position: absolute; /* Absolut positioniert relativ zum Container */
    top: 10px; /* Abstand vom unteren Rand */
    left: 50%; /* Zentriert horizontal */
    transform: translateX(-50%); /* Exakte Zentrierung */
    background-color: rgba(0, 0, 0, 0.6); /* Halbtransparenter Hintergrund */
    color: white; /* Textfarbe */
    padding: 5px 10px; /* Innenabstand */
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 1rem; /* Schriftgröße */
    text-align: center; /* Text zentrieren */
}

.Dachbox-container img:hover {
    transform: scale(1.1); /* Vergrößert das Bild beim Hover */
}

.Dachbox-container img.selected {
    border-color: #0047ab; /* Rahmenfarbe für ausgewähltes Bild */
}

.Dachbox-traeger-container {
    position: relative; /* Container als Bezugspunkt für das Overlay */
    display: inline-block;
    width: 25%; /* Reduced width from 33% to 25% */
}

.Dachbox-traeger-container img {
    width: 100%; /* Bild passt sich der Container-Breite an */
    height: auto; /* Proportionale Höhe */
    border-radius: 8px; /* Optional: Abgerundete Ecken */
}

.Dachbox-traeger-container .overlay-text {
    position: absolute; /* Absolut positioniert relativ zum Container */
    top: 10px; /* Abstand vom unteren Rand */
    left: 50%; /* Zentriert horizontal */
    transform: translateX(-50%); /* Exakte Zentrierung */
    background-color: rgba(0, 0, 0, 0.6); /* Halbtransparenter Hintergrund */
    color: white; /* Textfarbe */
    padding: 5px 10px; /* Innenabstand */
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 1rem; /* Schriftgröße */
    text-align: center; /* Text zentrieren */
}

.Dachbox-traeger-container img:hover {
    transform: scale(1.1); /* Vergrößert das Bild beim Hover */
}

.Dachbox-traeger-container img.selected {
    border-color: #0047ab; /* Rahmenfarbe für ausgewähltes Bild */
}

.Traeger-container {
    position: relative; /* Container als Bezugspunkt für das Overlay */
    display: inline-block;
    width: 25%; /* Reduced width from 33% to 25% */
}

.Traeger-container img {
    width: 100%; /* Bild passt sich der Container-Breite an */
    height: auto; /* Proportionale Höhe */
    border-radius: 8px; /* Optional: Abgerundete Ecken */
}

.Traeger-container .overlay-text {
    position: absolute; /* Absolut positioniert relativ zum Container */
    top: 10px; /* Abstand vom unteren Rand */
    left: 50%; /* Zentriert horizontal */
    transform: translateX(-50%); /* Exakte Zentrierung */
    background-color: rgba(0, 0, 0, 0.6); /* Halbtransparenter Hintergrund */
    color: white; /* Textfarbe */
    padding: 5px 10px; /* Innenabstand */
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 1rem; /* Schriftgröße */
    text-align: center; /* Text zentrieren */
}

.Traeger-container img:hover {
    transform: scale(1.1); /* Vergrößert das Bild beim Hover */
}

.Traeger-container img.selected {
    border-color: #0047ab; /* Rahmenfarbe für ausgewähltes Bild */
}

/* Container für die Seiten */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Produkt-Bild Styling */
.product-image {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.product-image img {
    max-width: 70%; /* Reduced from 100% to make image smaller */
    height: auto;
    border-radius: 8px;
    margin: 0 auto; /* Center the image */
    display: block; /* Ensure proper centering */
}

.product-image .overlay-text {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
}

/* Checkbox-Liste für Dachboxen */
.checkbox-list {
    display: block;
    text-align: left;
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 2px solid #0047ab; /* Add colored border for emphasis */
}

/* Preis-Anzeige */
.price-display {
    margin: 20px 0;
    font-size: 1.2rem;
    color: #0047ab;
    display: block;
    font-weight: bold;
}

/* Bestellzusammenfassung für Checkout */
.order-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-summary h4 {
    margin-top: 0;
    color: #0047ab;
    margin-bottom: 15px;
}

.order-summary p {
    margin: 8px 0;
    line-height: 1.4;
}

.order-summary strong {
    font-weight: bold;
    color: #333;
}

/* Produkt-Optionen für Menüseite */
.product-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0047ab;
}

.product-card p {
    margin-bottom: 20px;
    min-height: 60px;
}

.product-card .btn {
    display: inline-block;
    width: auto;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 1.4rem; /* Larger font size */
}

.checkbox-list label:hover {
    background-color: #e9ecef;
}

.checkbox-list input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.5); /* Larger radio buttons */
}

/* Media Query für Bildschirme mit einer Breite von maximal 480px */
@media (max-width: 480px) {
    .navbar {
        position: relative; /* Position relativ zum Dokumentfluss */
        top: 0;
        left: 0;
        height: auto; /* Automatische Höhe */
        width: 100%; /* Volle Breite */
        background-color: #333;
        display: flex; /* Flexbox für horizontale Anordnung */
        flex-direction: row; /* Horizontale Anordnung der Menüeinträge */
        align-items: center; /* Zentrierte Ausrichtung */
        padding: 5px;
        z-index: 1000; /* Über anderen Elementen anzeigen */
    }

    .navbar a {
        display: inline-block; /* Inline-Block für horizontale Anordnung */
        width: auto; /* Automatische Breite */
        padding: 2px; /* Innenabstand anpassen */
        font-size: 10px; /* Schriftgröße anpassen */
        text-align: center; /* Text zentrieren */
    }

    .hero-image {
        animation: heroAnimationMobile 4s ease-in-out infinite alternate;
        border-radius: 0;
    }

    @keyframes heroAnimationMobile {
        0% {
            transform: scale(1);
        }
        100% {
            transform: scale(1.03);
        }
    }

    .content {
        margin-left: 0; /* Kein Platz für ein seitliches Menü */
        padding: 40px 15px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 2.2rem; /* Überschrift verkleinern */
    }

    .hero p {
        font-size: 1.1rem; /* Textgröße anpassen */
    }

    .btn {
        padding: 12px 25px; /* Button-Größe reduzieren */
        font-size: 1.1rem;
        width: 80%; /* Nicht ganz volle Breite auf mobilen Geräten */
        box-sizing: border-box;
        border-radius: 25px;
    }

    .features {
        flex-direction: column; /* Features untereinander anordnen */
        gap: 25px; /* Mehr Abstand zwischen den Features */
        align-items: center;
    }

    .feature {
        max-width: 90%; /* Nicht ganz volle Breite nutzen */
        padding: 20px;
    }

    .content h3 {
        font-size: 1.8rem;
    }

    .feature h3 {
        font-size: 1.5rem;
    }

    form {
        padding: 10px; /* Weniger Padding */
        width: 100%; /* Volle Breite */
        box-sizing: border-box;
    }

    form .cluster {
        width: 100%; /* Cluster untereinander anordnen */
        margin-right: 0; /* Kein Abstand rechts */
        padding: 10px;
    }

    form input, form select {
        width: 100%;
        padding: 14px; /* Larger touch area */
        font-size: 18px; /* Larger font size for mobile */
        margin-bottom: 12px;
        box-sizing: border-box;
        -webkit-appearance: none; /* Removes default styling on iOS */
        -moz-appearance: none;
        appearance: none;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    
    /* Special styling for date inputs and car selection on mobile */
    form input[type="date"], form select#brands, form select#models, form select#years, form select#roof_types {
        padding: 20px; /* Increased padding for even larger inputs */
        font-size: 24px; /* Increased font size for better visibility */
        margin-bottom: 22px; /* More space below these elements */
        box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Enhanced shadow for emphasis */
        border: 3px solid #0047ab; /* Thicker colored border for emphasis */
        background-color: #f8f9fa; /* Light background color like checkbox-list */
        border-radius: 8px; /* Rounded corners like checkbox-list */
        width: 100%; /* Ensure full width */
    }

    form select {
        background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 30px;
    }

    .product-selection img {
        width: 100%; /* Bilder in voller Breite */
        height: auto; /* Höhe proportional anpassen */
    }

    footer {
        flex-direction: column; /* Footer-Elemente untereinander */
        text-align: center; /* Zentrierter Text */
        font-size: 0.8rem; /* Kleinere Schriftgröße für mobile Geräte */
        padding: 2px; /* Reduziertes Padding für weniger Höhe */
    }

    footer p {
        margin: 2px 0; /* Reduzierter Abstand für weniger Höhe */
    }

    footer .link-container a {
        font-size: 0.7rem; /* Noch kleinere Schriftgröße für Links */
        padding: 3px 6px; /* Kleineres Padding für die Links */
    }

    .product-selection {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-selection img {
        margin-bottom: 10px;
        width: 80%;
    }

    .checkbox-list {
        padding: 15px;
        margin: 20px 0;
    }

    .checkbox-list label {
        padding: 12px 8px;
        margin-bottom: 12px;
        font-size: 1.3rem; /* Larger font size for mobile */
    }

    .checkbox-list input[type="radio"] {
        transform: scale(1.6); /* Even larger radio buttons for touch */
        margin-right: 12px;
    }

    /* Anpassungen für die Dachbox-Container */
    .Dachbox-container,
    .Dachbox-traeger-container,
    .Traeger-container {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Anpassungen für die Produkt-Karten im Menü */
    .product-card {
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* Anpassungen für die Zusammenfassung im Checkout */
    .order-summary {
        padding: 15px;
        margin-bottom: 15px;
    }
}
