/* Kontakt & Anfahrt – ausschließlich die Kontaktseite. */

.contact-compact .contact-new-card {
    padding: clamp(20px, 2vw, 30px);
    background: #f3f8f5;
    border: 1px solid #dce9e2;
    border-radius: 18px;
}

.contact-new-header {
    padding-bottom: 16px;
    margin-bottom: 17px;
    border-bottom: 1px solid #dce9e2;
}

.contact-compact .contact-new-header h2 {
    margin: 5px 0 5px;
    font-size: clamp(20px, 1.6vw, 25px);
    line-height: 1.3;
}

.contact-compact .contact-new-header p {
    margin: 0;
    font-size: 14px;
}

.contact-new-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
}

.contact-new-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
}

.contact-new-label {
    color: #5a7e75;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-new-detail address {
    font-style: normal;
}

.contact-new-detail a {
    color: #115a5d;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-new-detail a:hover {
    text-decoration: underline;
}

.contact-new-emergency {
    grid-column: 1 / -1;
    padding: 12px 15px;
    background: #e7f2eb;
    border-radius: 11px;
}

.contact-new-map-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 12px;
}

.contact-new-map-heading h3 {
    margin: 4px 0 0;
    font-size: 19px;
}

.contact-new-map-heading > span {
    font-size: 12px;
    color: #5a7e75;
    text-align: right;
}

.contact-compact .contact-new-card .contact-map {
    height: 240px;
    margin: 0;
}

@media (max-width: 1150px) {
    .contact-new-detail-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }
}

@media (max-width: 900px) {
    .contact-new-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .contact-new-detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-new-map-heading {
        align-items: start;
        flex-direction: column;
        gap: 5px;
    }

    .contact-new-map-heading > span {
        text-align: left;
    }

    .contact-compact .contact-new-card .contact-map {
        height: 240px;
    }
}

/* Gleich hohe Kontaktbereiche auf Desktop und Laptop. */
@media (min-width: 901px) {
    .contact-compact .contact-grid {
        align-items: stretch;
    }

    .contact-compact .contact-new-card {
        height: 100%;
    }

    .contact-compact .contact-form-panel {
        display: flex;
        flex-direction: column;
        min-width: 0;
        height: 100%;
    }

    .contact-compact .contact-form-panel .request-form {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        padding: clamp(19px, 1.5vw, 27px);
    }

    .contact-compact .request-form .form-grid {
        gap: 14px 16px;
    }

    .contact-compact .request-form label {
        margin-bottom: 13px;
    }

    .contact-compact .request-form input:not([type=checkbox]) {
        min-height: 45px;
        padding: 10px 12px;
    }

    .contact-compact .request-form .full-label {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        margin-top: 15px;
    }

    .contact-compact .request-form textarea {
        flex: 1;
        height: auto;
        min-height: 155px;
        padding: 12px;
    }

    .contact-compact .request-form .check {
        margin-top: 15px;
        margin-bottom: 17px;
    }

    .contact-compact .request-form button[type=submit] {
        align-self: flex-start;
        padding: 12px 20px;
    }
}

@media (max-width: 900px) {
    .contact-compact .contact-form-panel,
    .contact-compact .request-form {
        height: auto;
    }

    .contact-compact .request-form textarea {
        height: 135px;
        min-height: 135px;
    }
}

/* Datenschutz: Checkbox und Hinweis bleiben in einer Zeile nebeneinander. */
.contact-compact .contact-form-panel .request-form label.check {
    display: grid !important;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start !important;
    justify-content: start;
    column-gap: 10px;
    width: 100%;
    margin: 12px 0 16px;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.contact-compact .contact-form-panel .request-form label.check input[type="checkbox"] {
    display: block !important;
    position: static !important;
    grid-column: 1;
    grid-row: 1;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    align-self: start;
    accent-color: #155a5d;
}

.contact-compact .contact-form-panel .request-form label.check > span {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5;
}
