/* ============================================================
   Fenster Hawlitzki — Kontaktformular
   Primärfarbe: #2860ad (Blau, wie Header/CI der Seite)
   ============================================================ */

.kontakt-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.kontakt-form {
    text-align: left;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

.form-row .form-gruppe {
    flex: 1 1 260px;
}

.form-gruppe {
    margin-bottom: 1.25rem;
}

.form-gruppe label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.form-gruppe input,
.form-gruppe textarea,
.form-gruppe select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-gruppe input:focus,
.form-gruppe textarea:focus,
.form-gruppe select:focus {
    outline: none;
    border-color: #2860ad;
    box-shadow: 0 0 0 3px rgba(40, 96, 173, 0.15);
}

/* Autofill: Browser-Blau durch CI-Blau ersetzen */
.form-gruppe input:-webkit-autofill,
.form-gruppe input:-webkit-autofill:hover,
.form-gruppe input:-webkit-autofill:focus,
.form-gruppe textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #333;
    border-color: #2860ad;
    transition: background-color 5000s ease-in-out 0s;
}

.form-gruppe textarea {
    min-height: 160px;
    resize: vertical;
}

.form-pflicht::after {
    content: ' *';
    color: #c45a2d;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0.5rem 0 1.5rem;
    color: #333;
    font-weight: normal;
}

.form-checkbox input {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: auto;
    accent-color: #2860ad;
}

.form-checkbox a {
    color: #2860ad;
    text-decoration: underline;
}

.form-checkbox a:hover {
    text-decoration: none;
}

.form-submit {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    background: #2860ad;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.form-submit:hover {
    background: #1e4a8a;
    transform: translateY(-1px);
}

.form-submit:active {
    transform: translateY(0);
}

.form-hinweis {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1rem;
    line-height: 1.5;
}

/* Fehler-Anzeige (aus Query-String) */
.form-fehler {
    background: #fff2f0;
    border: 1px solid #f5b8ad;
    color: #a32a12;
    padding: 0.85rem 1.1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Mobile: Formular-Zeile umbrechen */
@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-submit {
        width: 100%;
    }
}

/* mail-protect: Fallback-Text (ohne JS) etwas dezenter */
.mail-protect {
    /* keine besondere Formatierung — bleibt wie umgebender Text */
}

/* ============================================================
   FAQ — Häufige Fragen (zentriert im Container)
   ============================================================ */

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    text-align: left; /* Innentexte linksbündig — Lesbarkeit */
}

.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item[open] {
    border-color: #2860ad;
    box-shadow: 0 2px 10px rgba(40, 96, 173, 0.08);
}

.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 1.4rem 1.1rem 3rem;
    position: relative;
    list-style: none;
    outline: none;
    transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+";
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: #2860ad;
    width: 1.2rem;
    height: 1.2rem;
    line-height: 1;
    text-align: center;
    transition: transform 0.2s;
}

.faq-item[open] summary::before {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

.faq-item summary:hover {
    background: #f9fafc;
}

.faq-item summary h3 {
    display: inline;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.faq-item > p {
    padding: 0 1.4rem 1.2rem 3rem;
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============================================================
   Standort-Block (DSGVO-konform — kein Maps-iframe)
   Zentriert wie die anderen Sektionen
   ============================================================ */

.standort-wrap {
    max-width: 520px;
    margin: 0 auto 2.5rem;
    background: #fff;
    border-radius: 4px;
    padding: 1.75rem 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.standort-wrap address {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
    margin: 0 0 1.25rem;
}

.standort-wrap address strong {
    display: block;
    font-size: 1.15rem;
    color: #2860ad;
    margin-bottom: 0.3rem;
}

.standort-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.standort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: #2860ad;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.standort-btn:hover {
    background: #1e4a8a;
    transform: translateY(-1px);
}

.standort-btn.secondary {
    background: transparent;
    color: #2860ad !important;
    border: 1.5px solid #2860ad;
}

.standort-btn.secondary:hover {
    background: #2860ad;
    color: #fff !important;
}
