/* ========================================
   KONTAKT - Styling für das allgemeine Kontaktformular
   Farbschema: Türkis/Teal (Hauptfarbe der Website)
   ======================================== */

/* ========================================
   HERO SUBPAGE - Kontakt-spezifisch
   ======================================== */

.hero-kontakt {
    background: #e8f4f4;
    background: -webkit-linear-gradient(315deg, #e8f4f4 0%, #d4ebeb 100%);
    background: linear-gradient(135deg, #e8f4f4 0%, #d4ebeb 100%);
    padding: 3rem 0 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #3d807f;
}

/* Dezentes Hintergrundmuster */
.hero-kontakt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(61, 128, 127, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(61, 128, 127, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-kontakt .container {
    position: relative;
    z-index: 1;
}

.hero-kontakt h1 {
    color: #2a5a59;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.hero-kontakt p {
    color: #3d6b6a;
    font-size: 1.1rem;
    margin: 0;
    max-width: 600px;
}

/* ========================================
   KONTAKT LAYOUT - 2 Spalten
   ======================================== */

.kontakt-layout {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 40px 1.5fr;
    grid-template-columns: 1fr 1.5fr;
    grid-template-areas: "details form";
    gap: 40px;
}

.kontakt-layout .contact-details {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    grid-area: details;
}

.kontakt-layout .contact-form {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
    grid-area: form;
}

@media (max-width: 767px) {
    .kontakt-layout {
        display: block;
    }
    
    .kontakt-layout .contact-details,
    .kontakt-layout .contact-form {
        margin-bottom: 30px;
    }
    
    .kontakt-layout .contact-form:last-child {
        margin-bottom: 0;
    }
}

/* ========================================
   KONTAKTDATEN - Linke Spalte
   ======================================== */

.kontakt-layout .contact-details h2 {
    font-family: "FS Me W01 Bold", Arial, sans-serif;
    font-size: 1.5rem;
    color: #3d807f;
    margin-bottom: 1rem;
    margin-top: 0;
    font-weight: 700;
    line-height: 1.3;
}

.kontakt-layout .contact-details address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.kontakt-layout .contact-details p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.kontakt-layout .contact-details a {
    color: #3d807f;
    text-decoration: none;
    border-bottom: 1px dotted #3d807f;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.kontakt-layout .contact-details a:hover {
    color: #2a5a59;
    border-bottom-style: solid;
}

/* Info-Box für Gruppenübersicht */
.contact-info-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f7f7 0%, #e8f4f4 100%);
    border: 1px solid #c8e0e0;
    border-left: 4px solid #3d807f;
    border-radius: 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1.25rem;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.info-box-icon {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: linear-gradient(135deg, #3d807f 0%, #2a5a59 100%);
    border-radius: 50%;
    color: #fff;
    -webkit-box-shadow: 0 2px 8px rgba(61, 128, 127, 0.3);
    box-shadow: 0 2px 8px rgba(61, 128, 127, 0.3);
}

.info-box-icon svg {
    width: 24px;
    height: 24px;
}

.info-box-content {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.info-box-content h3 {
    font-size: 1.15rem;
    color: #2a5a59;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.info-box-content p {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.info-box-content .btn-outline {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 18px;
    color: #3d807f;
    border: 2px solid #3d807f;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.info-box-content .btn-outline svg {
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.info-box-content .btn-outline:hover {
    background-color: #3d807f;
    color: #fff;
    border-color: #3d807f;
}

.info-box-content .btn-outline:hover svg {
    -webkit-transform: translateX(3px);
    -ms-transform: translateX(3px);
    transform: translateX(3px);
}

/* Responsive Info-Box */
@media (max-width: 500px) {
    .contact-info-box {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    
    .info-box-content .btn-outline {
        width: 100%;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

/* ========================================
   FORMULAR - Rechte Spalte
   ======================================== */

.kontakt-layout .contact-form h2 {
    font-family: "FS Me W01 Bold", Arial, sans-serif;
    font-size: 1.5rem;
    color: #3d807f;
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-weight: 700;
    line-height: 1.3;
}

/* Formular-Button im Kontakt-Stil */
.kontakt-layout .contact-form .btn-solid {
    background-color: #3d807f;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.kontakt-layout .contact-form .btn-solid:hover {
    background-color: #2a5a59;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 12px rgba(61, 128, 127, 0.3);
    box-shadow: 0 4px 12px rgba(61, 128, 127, 0.3);
}

/* Erfolgs-Aktionen */
.success-actions {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f7f7 0%, #e8f4f4 100%);
    border-radius: 8px;
}

.success-actions p {
    font-size: 1.1rem;
    color: #3d6b6a;
    margin: 0 0 1.5rem 0;
}

.success-actions .btn-solid {
    background-color: #3d807f;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.success-actions .btn-solid:hover {
    background-color: #2a5a59;
}

/* ========================================
   FORM ROW - Browser-kompatibel
   ======================================== */

.form-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.form-row > .form-group {
    padding: 0 0.5rem;
    margin-bottom: 1rem;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

.form-group-plz {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 120px;
    flex: 0 0 120px;
    max-width: 120px;
}

.form-group-land {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .form-row {
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    
    .form-group-plz {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 120px;
        flex: 0 0 120px;
    }
    
    .form-group-land {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 200px;
        flex: 0 0 200px;
        max-width: 200px;
    }
}

@media (max-width: 500px) {
    .form-row > .form-group {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .form-group-plz {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Select-Element - Safari-kompatibel */
.form-group select,
.form-group-land select {
    display: block;
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select:focus,
.form-group-land select:focus {
    outline: none;
    border-color: #3d807f;
    -webkit-box-shadow: 0 0 0 3px rgba(61, 128, 127, 0.2);
    box-shadow: 0 0 0 3px rgba(61, 128, 127, 0.2);
}

/* IE/Edge Dropdown-Pfeil entfernen */
.form-group select::-ms-expand,
.form-group-land select::-ms-expand {
    display: none;
}

/* ========================================
   MELDUNGEN
   ======================================== */

.meldung {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.meldung-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.meldung-warning {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
    border: 1px solid #f0d58c;
    color: #8a6d3b;
}

.meldung-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero-kontakt {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .hero-kontakt h1 {
        font-size: 1.8rem;
    }
    
    .hero-kontakt p {
        font-size: 1rem;
    }
    
    .kontakt-layout .contact-details h2,
    .kontakt-layout .contact-form h2 {
        font-size: 1.35rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .kontakt-layout {
        display: block;
    }
    
    .contact-details,
    .contact-form {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .contact-info-box {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}