/* custom_design.css */

/* Allgemeine Anpassungen für ein "luftigeres" Gefühl */
body {
    font-family: 'Arial', sans-serif; /* Eine modernere, klare Schriftart */
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* Hellerer Hintergrund */
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px; /* Max. Breite für den Inhalt */
    margin: 0 auto;
    padding: 5px 20px; /* Etwas weniger Padding für mehr "Luft" */
}

/* Sprachwechsler */
.lang-switcher {
    text-align: right;
    padding: 10px 20px;
    font-size: 0.7em;
}
.lang-switcher a {
    color: #555;
    text-decoration: none;
    margin-left: 10px;
}
.lang-switcher a:hover {
    color: #cb1517;
}

/* Hero Section */
.hero-section {
    position: relative; /* Wichtig für die Positionierung des Bildes */
    height: 600px; /* Oder eine andere feste Höhe, die du bevorzugst, z.B. 70vh für viewport height */
    overflow: hidden; /* Verhindert, dass das Bild über den Container ragt */
    display: flex; /* Für die Zentrierung des Inhalts */
    align-items: center; /* Vertikal zentrieren */
    justify-content: center; /* Horizontal zentrieren */
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Bild im Hintergrund */
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Stellt sicher, dass das Bild den Bereich ausfüllt und dabei sein Seitenverhältnis beibehält */
    filter: brightness(0.9); /* Dunkelt das Bild ab, damit der Text besser lesbar ist */

    /* Initialzustand (leicht verkleinert oder normal) */
    transform: scale(1); /* Beginnt bei 100% Grösse */
    transition: transform 5s ease-out; /* Animation über 5 Sekunden */
    transform-origin: center center; /* Zoomt von der Mitte des Bildes */
}

/* Klasse für den gezoomten Zustand */
.hero-background-image.zoomed {
    transform: scale(1.05); /* Zoomt auf 105% Grösse */
}

.hero-content {
    position: relative;
    z-index: 2; /* Inhalt über dem Bild */
    padding: 20px;
    max-width: 900px; /* Optional: maximale Breite für den Text */
}

/* Hauptinhaltsbereiche */
.main-sections-wrapper {
    padding-top: 0; /* Keine zusätzliche Polsterung oben, da hero-section schon hat */
}

.content-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px; /* Mehr Abstand zwischen den Sektionen */
    padding: 30px;
    display: flex; /* Flexbox für nebeneinanderliegende Inhalte */
    flex-direction: column; /* Standard auf Mobilgeräten: untereinander */
    gap: 30px; /* Abstand zwischen Text und Bild */
    align-items: center; /* Vertikale Zentrierung */
}

@media (min-width: 768px) { /* Für größere Bildschirme: nebeneinander */
    .content-section {
        flex-direction: row;
        padding: 50px; /* Mehr Polsterung für größere Bildschirme */
    }
    .feature-block-reverse {
        flex-direction: row-reverse; /* Bild rechts, Text links */
    }
}

.content-section .text-content {
    flex: 1; /* Nimmt verfügbaren Platz ein */
    padding-right: 20px; /* Abstand zum Bild, wenn Bild rechts ist */
    padding-left: 0;
}

.content-section.feature-block-reverse .text-content {
    padding-left: 20px; /* Abstand zum Bild, wenn Bild links ist */
    padding-right: 0;
}

.content-section .image-content {
    flex: 1; /* Nimmt verfügbaren Platz ein */
    text-align: center;
}

.content-section .feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.8em;
    line-height: 1.4;
    color: #cb1517; /* Akzentfarbe */
    margin-bottom: 15px;
    text-align: center; /* Zentriert auf mobilen Geräten */
}

.section-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 25px;
    text-align: center; /* Zentriert auf mobilen Geräten */
}

@media (min-width: 768px) {
    .section-title, .section-description {
        text-align: left; /* Links ausgerichtet auf größeren Bildschirmen */
    }
    .content-section.feature-block-reverse .section-title,
    .content-section.feature-block-reverse .section-description {
        text-align: left; /* Bleibt links ausgerichtet */
    }
}


/* Buttons */
.button-group {
    display: flex;
    flex-direction: column; /* Untereinander auf Mobilgeräten */
    gap: 15px;
    margin-top: 20px;
    justify-content: center; /* Zentriert die Buttons */
}

@media (min-width: 576px) {
    .button-group {
        flex-direction: row; /* Nebeneinander auf größeren Mobilgeräten/Desktops */
    }
}

@media (min-width: 768px) {
    .button-group {
        justify-content: flex-start; /* Links ausgerichtet auf größeren Bildschirmen */
    }
    .content-section.feature-block-reverse .button-group {
        justify-content: flex-start; /* Bleibt links ausgerichtet */
    }
}


.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Verhindert Zeilenumbruch bei Buttontext */
}

.primary-btn {
    background-color: #cb1517;
    color: #fff;
    border: 2px solid #cb1517;
}
.primary-btn:hover {
    background-color: #a71114;
    border-color: #a71114;
}

.secondary-btn {
    background-color: #fff;
    color: #cb1517;
    border: 2px solid #cb1517;
}
.secondary-btn:hover {
    background-color: #f0f0f0;
    color: #a71114;
}

/* Footer */
footer {
    color: #000000;
    border-top: #a39b9b 1px solid;
    padding: 0 0 15px 0;
    text-align: center;
    margin-top: 20px;
}

footer .auto3spalten {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    footer .auto3spalten {
        flex-direction: row;
        justify-content: space-around;
    }
}

footer p {
    margin: 0;
}

footer a {
    color: #f8f8f8;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Modals (Impressum, Newsletter) */
.modal {
    display: none; /* Versteckt das Modal standardmäßig */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 90%; /* Responsive Breite */
    text-align: center;
}

.modal-content h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Padding und Border werden in die Breite eingerechnet */
}

.modal-content button {
    background-color: #cb1517;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #a71114;
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
}

.hero-title {
    font-size: 3em;
}

/* Zusätzliche Anpassungen für Mobile First */
@media (max-width: 767px) {
    .hero-section {
        height: 400px; /* Weniger Höhe auf mobilen Geräten */
    }
    .hero-title {
        font-size: 3em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    .content-section {
        padding: 25px; /* Etwas weniger Polsterung auf kleinen Bildschirmen */
    }
    .section-title {
        font-size: 1.6em;
    }
    .section-description {
        font-size: 1em;
    }
}