/* css/pages/contact.css - Styles spezifisch für Kontaktseite */

.contact-hero-section {
    padding: 60px 0;
    padding-top: calc(var(--main-header-height-desktop) + 10px);
    background-color: var(--mid-bg-color);
    color: var(--primary-color);
    text-align: center;
}

.contact-hero-section h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-hero-section .lead-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color-dark);
}

/* Hauptsektion für die gestapelten/nebeneinander liegenden Karten (Formular, Info, Social) */
.contact-combined-section {
    padding: 60px 0; /* Standard-Padding der Content-Sektion reduziert */
    background-color: var(--primary-color); /* Hintergrund auf das dunkle Grau */
    /* display: grid;  DIESE REGEL WIRD NUN AUF DEN INNEREN CONTAINER ANGEWENDET */
    /* gap: 30px; */
    /* align-items: flex-start; */

    /* Mobile First: Standard ist eine Spalte (gestapelt) */
    /* grid-template-columns: 1fr; */
    /* justify-items: center; */
}

/* NEU: Grid-Layout auf den INNEREN Container anwenden */
.contact-combined-section .container {
    display: grid; /* Jetzt ist der Container der Grid-Elternteil */
    gap: 30px; /* Abstand zwischen den Grid-Items */
    align-items: flex-start;
    grid-template-columns: 1fr; /* Standard für Mobile (gestapelt) */
    justify-items: center;
    max-width: 1400px; /* Bleibt wie bisher */
}

/* Stil für Formular-Karte, die Info-/Karten-Karte und Social Icons Karte */
.contact-form-container,
.contact-info-container,
.social-icons-card {
    background-color: var(--light-bg-color); /* Hintergrundfarbe der Karte (helles Grau) */
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px var(--shadow-light);
    border: 1px solid rgba(var(--primary-color-rgb), 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Wichtig für korrekte Breitenberechnung */
    width: 100%; /* Sichert, dass sie die Spaltenbreite nutzen */
}

/* Hover-Effekt für alle Karten */
.contact-form-container:hover,
.contact-info-container:hover,
.social-icons-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

/* Überschriften in den Karten */
.contact-form-container h2,
.contact-info-container h2,
.social-icons-card h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
}

/* Kontaktformular Styling */
.contact-form {
    max-width: 100%;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color-dark);
    font-size: 1.1em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="subject"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1em;
    box-sizing: border-box;
    background-color: var(--mid-bg-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="subject"]:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(var(--accent-color-rgb), 0.25);
    background-color: var(--light-bg-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button[type="submit"].submit-button {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: var(--text-color-light);
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(var(--accent-color-rgb), 0.3);
}

.contact-form button[type="submit"].submit-button:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.4);
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Stil für den INNEREN Bereich von Info und Karte */
.info-map-inner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: flex-start;
    height: auto;
}

/* Stil für die Sektion der Kontaktinfos (Adresse, Telefon etc.) */
.contact-info-section-inner {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-grow: 1;
}
/* Überschrift im Info-Container */
.contact-info-container h2 {
    text-align: left;
    width: 100%;
}

/* Container für die 4 Info-Blöcke (Adresse, Telefon, E-Mail, Öffnungszeiten) */
.info-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 0;
}

/* Stil für jedes einzelne Info-Item */
.info-item {
    background-color: var(--light-bg-color);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    height: auto;
    min-height: 120px;
    border: 1px solid var(--border-color);

    border-top: 5px solid var(--accent-color);
    padding: 25px;
    padding-top: 20px;
}

/* Spezifische Styles für den anklickbaren Adressrahmen */
.info-item.clickable-address {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.info-item.clickable-address:hover {
    color: inherit;
    text-decoration: none;
}


.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 2.2em;
    color: var(--accent-color);
    margin-right: 0;
    margin-bottom: 15px;
    min-width: unset;
    text-align: center;
    width: 100%;
}

.info-text-block {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    width: 100%;
}

.info-text-block h3 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.info-text-block p {
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin: 0;
    line-height: 1.5;
    white-space: normal;
}

/* Styling für Links innerhalb des Info-Text-Blocks (Telefon, E-Mail) */
.info-text-block p a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.info-text-block p a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Stil für den Karten-Bereich (Dieser wird nun NICHT angezeigt) */
.map-section-inner {
    display: none;
}


/* NEU: Styling für Öffnungszeiten Tabelle (wenn sie denn in einer Tabelle wäre) */
.opening-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 1em;
    color: var(--text-color-dark);
    text-align: left;
}

.opening-hours-table th,
.opening-hours-table td {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.opening-hours-table th {
    font-weight: 600;
    color: var(--primary-color);
    width: 50%;
}

.opening-hours-table td {
    text-align: right;
    font-weight: 400;
}

.opening-hours-table tr:last-child td,
.opening-hours-table tr:last-child th {
    border-bottom: none;
}

/* Social Icons Styling */
.social-icons-card {
    text-align: center; /* Zentriert den Inhalt innerhalb der Karte */
}

.social-icons {
    display: flex;
    justify-content: center; /* Zentriert die Icons */
    gap: 20px; /* Abstand zwischen den Icons */
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-icons a {
    font-size: 2.5em !important; /* Sicherstellen, dass die Grösse korrekt ist */
    color: var(--text-color-light) !important; /* Sicherstellen, dass diese Farbe angewendet wird */
    background-color: var(--accent-color); /* Beispiel: Goldener Hintergrund */
    border-radius: 50%; /* Runde Icons */
    width: 50px; /* Feste Breite */
    height: 50px; /* Feste Höhe */
    display: flex; /* Für vertikale und horizontale Zentrierung des Icons */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(var(--accent-color-rgb), 0.3);
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1); /* Leichter Schwebe- und Skalierungseffekt */
    background-color: var(--accent-color-dark);
    box-shadow: 0 6px 15px rgba(var(--accent-color-rgb), 0.4);
}


/* === GLOW EFFECT FÜR ÖFFNUNGSZEITEN STATUS === */
.open-now-glow {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.5);
    transition: all 0.5s ease-in-out;
}

.closed-now-glow {
    border: 2px solid #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
    transition: all 0.5s ease-in-out;
}


/* ========================================= */
/* Responsive Anpassungen für Kontaktseite */
/* ========================================= */
/* Anpassung der Breite des Hauptcontainers für die Kontaktseite */
/* .contact-combined-section .container { */
    /* max-width: 1400px;  Bleibt bei 1400px für breite Ansicht */
    /* margin: 0 auto; */
    /* padding: 0 20px; */
/* } */

/* Tablets und Desktops: Nebeneinander (ab 768px) */
@media (min-width: 768px) {
    .contact-combined-section .container { /* Diese Regel ist jetzt für den inneren Container */
        grid-template-columns: 2fr 1fr; /* Formular (2/3) und Info (1/3) nebeneinander */
        justify-items: stretch; /* Items füllen ihre Spalte, wenn nebeneinander */
    }
    .social-icons-card {
        grid-column: 1 / -1; /* Social Card überspannt beide Spalten */
    }
}

/* Responsive Anpassungen (max-width von oben nach unten) */

@media (max-width: 992px) {
    /* Containerbreite auf Tablets anpassen */
    .contact-combined-section .container {
        max-width: 90%;
    }
    /* Die Spalten werden ab 768px immer noch 2fr 1fr sein,
       es sei denn, die 767px-Regel wird aktiv. */
}

@media (max-width: 767px) {
    /* Kleinere Mobile-Geräte: Immer eine Spalte (standardmässig gesetzt) */
    .contact-combined-section .container { /* Diese Regel ist jetzt für den inneren Container */
        grid-template-columns: 1fr; /* Explicitly ensure 1 column */
        justify-items: center; /* Items should stretch within the single column */
    }
    .contact-hero-section {
        padding: 40px 0;
        padding-top: calc(var(--main-header-height-sm) + 10px);
    }
    .contact-form-container,
    .contact-info-container,
    .social-icons-card {
        padding: 25px;
        border-radius: 12px;
    }
    .contact-info-container h2 {
        font-size: 2em;
    }
    .info-items-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .info-item {
        padding: 15px;
    }
    .contact-icon {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .info-text-block h3 {
        font-size: 1.2em;
    }
    .info-text-block p {
        font-size: 1em;
    }
    .social-icons {
        gap: 15px;
    }
    .social-icons a {
        font-size: 2.2em !important; /* Anpassung für kleinere Bildschirme */
        width: 45px;
        height: 45px;
    }
}
@media (max-width: 480px) {
    .contact-hero-section {
        padding: 30px 0;
    }
    .contact-form-container,
    .contact-info-container,
    .social-icons-card {
        padding: 20px;
    }
    .contact-hero-section h1 {
        font-size: 2.2em;
    }
    .contact-hero-section .lead-text {
        font-size: 1em;
    }
    .contact-form-container h2, .contact-info-container h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="subject"],
    .contact-form textarea {
        padding: 12px;
        font-size: 1em;
    }
    .contact-form textarea {
        min-height: 120px;
    }
    .info-item {
        padding: 12px;
    }
    .contact-icon {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .info-text-block h3 {
        font-size: 1.1em;
    }
    .info-text-block p {
        font-size: 1em;
    }
    .social-icons {
        margin-top: 20px;
        padding-top: 15px;
    }
    .social-icons a {
        font-size: 2em !important; /* Anpassung für kleinere Bildschirme */
        width: 40px;
        height: 40px;
    }
}