/* =================================================================== */
/* --- Contact Form 7 Styling --- */
/* =================================================================== */


/* ======================= */
/* --- Hero Sektion --- */
/* ======================= */
.kontakt-page .hero-section {
    height: 30vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

.kontakt-page .contact-content-section {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.kontakt-page h1 {
    margin-bottom: 3rem;
    text-align: left;
}

/* =================================================================== */
/* --- 2-Spalten Grid Layout --- */
/* =================================================================== */

.contact-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

/* Linke Spalte: Intro & Formulare */
.kontakt-intro {
    margin-bottom: 2.5rem;
}

.subheadline.red {
    color: var(--akzentfarbe, #D41031);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.kontakt-intro h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.intro-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* =================================================================== */
/* --- Toggle Switch --- */
/* =================================================================== */

.kt-form-toggle-wrapper {
    margin-bottom: 1rem;
}

.kt-form-toggle {
    position: relative;
    display: flex;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 500px; /* Breite des Switches */
    overflow: hidden;
}

.kt-toggle-btn {
    flex: 1;
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 15px 10px;
    font-family: var(--font-headline, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--hauptfarbe-3, #333);
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.3s ease;
    outline: none;
}

.kt-toggle-btn.active {
    color: var(--weiss, #fff);
}

/* Roter Hintergrund Balken */
.kt-toggle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--akzentfarbe, #D41031);
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form Container & Animation */
.kt-forms-container {
    position: relative;
    min-height: 300px;
}

.kt-form-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.kt-form-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================== */
/* --- RECHTE SPALTE: Info-Box --- */
/* =================================================================== */

.contact-info-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 2.5rem;
}

/* Header Bereich: Überschrift (Links) und Icon (Rechts) auf einer Ebene */
.info-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.info-box-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--hauptfarbe-1, #000);
    text-transform: uppercase;
    font-weight: 600;
}

.info-box-icon img {
    max-width: 50px;
    height: auto;
    display: block;
}

/* Body Bereich */
.info-box-body {
    display: flex;
    flex-direction: column;
}

/* Adresse */
.address-line {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--hauptfarbe-2, #333);
    margin-bottom: 1.5rem;
}

/* Anfahrt Button */
.btn-anfahrt {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    color: var(--akzentfarbe, #D41031);
    border: 2px solid var(--akzentfarbe, #D41031);
    padding: 12px 0;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    margin-top: 2rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
    font-family: var(--font-headline, sans-serif);
}

.btn-anfahrt:hover {
    background: var(--akzentfarbe, #D41031);
    color: var(--weiss, #fff);
}

/* Kontakt Daten Liste (Email, Tel, Fax) */
.contact-data-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1.5;
}

/* Die Labels (E-Mail:, Telefon: etc.) */
.c-label {
    font-weight: 700;
    color: var(--hauptfarbe-1, #000);
    width: 80px;
    flex-shrink: 0;
}

/* Die Werte */
.c-value {
    color: var(--hauptfarbe-2, #333);
}

.c-value a {
    color: var(--hauptfarbe-2, #333);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

/* Animierte Unterstrich */
.c-value a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--akzentfarbe, #D41031);
    transition: width 0.3s ease;
}

.c-value a:hover {
    color: var(--akzentfarbe, #D41031);
}

.c-value a:hover::after {
    width: 100%;
}

/* =================================================================== */
/* --- Contact Form 7 Styling --- */
/* =================================================================== */

.wpcf7 {
    margin-bottom: 2rem;
    max-width: 100%;
}

/* Label Gestaltung */
.wpcf7 label {
    display: block;
    font-family: var(--font-headline), sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--hauptfarbe-1);
    cursor: pointer;
}

/* Inputs, Selects & Textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 12px 15px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: var(--font-body), sans-serif;
    font-size: 1rem;
    color: var(--hauptfarbe-2);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Fokus-Effekt */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: var(--akzentfarbe);
    box-shadow: 0 0 0 1px rgba(212, 16, 49, 0.1);
    background-color: #fafafa;
}

/* Textarea Höhe */
.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

/* Checkboxen & Radio */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    width: auto !important;
    display: inline-block;
    margin-right: 0.5rem;
    transform: translateY(1px);
    accent-color: var(--akzentfarbe);
}

/* Speziell für die Anrede-Liste */
.wpcf7-list-item {
    display: inline-block;
    margin: 0 1.5rem 0 0;
    font-weight: normal;
    color: var(--hauptfarbe-3);
}

/* Datenschutz Text */
.wpcf7-acceptance .wpcf7-list-item-label {
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--hauptfarbe-3);
    line-height: 1.5;
}

/* Submit Button */
.wpcf7 input[type="submit"] {
    display: inline-block;
    width: auto;
    min-width: 200px;
    padding: 14px 40px;
    margin-top: 0.5rem;
    background-color: var(--akzentfarbe);
    color: var(--weiss);
    font-family: var(--font-headline), sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid var(--akzentfarbe);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: transparent;
    color: var(--akzentfarbe);
}

/* Fehler-Meldungen */
.wpcf7-not-valid-tip {
    color: var(--akzentfarbe);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: normal;
}

.wpcf7-not-valid {
    border-color: var(--akzentfarbe) !important;
    background-color: rgba(212, 16, 49, 0.05) !important;
}

.wpcf7-response-output {
    margin: 2rem 0 1rem !important;
    padding: 1rem !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    font-family: var(--font-body), sans-serif;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: var(--akzentfarbe) !important;
    background-color: rgba(212, 16, 49, 0.1);
    color: var(--akzentfarbe);
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
}

/* Checkboxen */
.wpcf7-list-item {
    margin-left: 0 !important;
    margin-right: 1rem;
}

.wpcf7 input[type="checkbox"] {
    accent-color: var(--akzentfarbe);
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.wpcf7-list-item-label {
    font-size: 0.95rem;
    color: var(--hauptfarbe-3);
}

/* 2 Spalten im Formular */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* =================================================================== */
/* --- RESPONSIVE - KLEINER DESKTOP (max-width: 1200px) --- */
/* =================================================================== */
@media (max-width: 1200px) {
    .wpcf7 {
        max-width: 100%;
    }

    /* Box etwas schmaler machen */
    .contact-grid-wrapper {
        gap: 3rem;
        grid-template-columns: 1fr 350px;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - GROSSE TABLETS (max-width: 992px) --- */
/* =================================================================== */
@media (max-width: 992px) {
    .kontakt-page .contact-content-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Grid bricht um: Untereinander */
    .contact-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-box {
        max-width: 100%;
        margin-top: 2rem; /* Abstand nach oben, wenn umgebrochen */
    }

    .wpcf7 label {
        font-size: 1rem;
    }

    .wpcf7 input[type="submit"] {
        padding: 10px 35px;
        font-size: 1rem;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - NORMALE TABLETS (max-width: 768px) --- */
/* =================================================================== */
@media (max-width: 768px) {
    .kontakt-page .hero-section {
        height: 25vh;
        min-height: 250px;
    }

    .kontakt-page .contact-content-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .kontakt-page h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .kt-toggle-btn {
        font-size: 0.9rem;
        padding: 12px 10px;
    }

    .wpcf7 label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 input[type="url"],
    .wpcf7 input[type="date"],
    .wpcf7 textarea,
    .wpcf7 select {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
        padding: 12px 30px;
    }

    .wpcf7-list-item-label {
        font-size: 0.9rem;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - GROSSE SMARTPHONES (max-width: 576px) --- */
/* =================================================================== */
@media (max-width: 576px) {
    .kontakt-page .hero-section {
        height: 22vh;
        min-height: 200px;
    }

    .kontakt-page .contact-content-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .kontakt-page h1 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .contact-info-box {
        padding: 1.5rem;
    }

    .wpcf7 {
        margin-bottom: 1.5rem;
    }

    .wpcf7 label {
        font-size: 0.9rem;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 input[type="url"],
    .wpcf7 input[type="date"],
    .wpcf7 textarea,
    .wpcf7 select {
        padding: 10px;
        font-size: 0.9rem;
    }

    .wpcf7 input[type="submit"] {
        padding: 10px 25px;
        font-size: 0.95rem;
        min-width: 100%;
    }

    .wpcf7-not-valid-tip {
        font-size: 0.85rem;
    }

    .wpcf7-response-output {
        padding: 0.875rem !important;
        font-size: 0.9rem;
    }

    .wpcf7 input[type="checkbox"] {
        transform: scale(1.1);
    }

    .wpcf7-list-item-label {
        font-size: 0.85rem;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - KLEINE SMARTPHONES (max-width: 480px) --- */
/* =================================================================== */
@media (max-width: 480px) {
    .kontakt-page .hero-section {
        height: 20vh;
        min-height: 180px;
    }

    .kontakt-page .contact-content-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .kontakt-page h1 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .kt-toggle-btn {
        font-size: 0.85rem;
        letter-spacing: 0;
    }

    .wpcf7 {
        margin-bottom: 1rem;
    }

    .wpcf7 label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 input[type="url"],
    .wpcf7 input[type="date"],
    .wpcf7 textarea,
    .wpcf7 select {
        padding: 9px;
        font-size: 0.85rem;
    }

    .wpcf7 input[type="submit"] {
        padding: 10px 20px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .wpcf7-not-valid-tip {
        font-size: 0.8rem;
    }

    .wpcf7-response-output {
        margin: 1.5rem 0 0.75rem !important;
        padding: 0.75rem !important;
        font-size: 0.85rem;
    }

    .wpcf7-list-item-label {
        font-size: 0.8rem;
    }
}