/* SAFE: AXA-FRAMMERSBACH-SCHADENSAPP-V1 */


/* =========================================================
   GLOBAL
========================================================= */

body {
    font-family: system-ui, sans-serif;
    background: #CBD6E8; /* endgültige AXA-dunkelblaue Basis */
    margin: 0;
    padding: 0;
    color: #002a4e;
    overflow-x: hidden;
}

a { text-decoration: none; }


/* =========================================================
   HEADER
========================================================= */

.header {
    background: #003E7E;
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.header img {
    height: 42px;
}

.header h1 {
    font-size: 1.6rem;
    margin: 0;
}

/* MOBILE: Header zweizeilig */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        padding: 14px 10px;
    }
    .header h1 {
        text-align: center;
        font-size: 1.35rem;
        white-space: normal !important;
    }
}


/* =========================================================
   INTRO & INFO BOX
========================================================= */

.intro {
    text-align: center;
    padding: 18px 0;
}

.sub-intro {
    padding-bottom: 0;
}

.info-box {
    background: #e7edf4;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 12px auto 25px;
    font-size: 0.95rem;
    width: 88%;
    border-left: 4px solid #003E7E;
}



/* ===========================================
   STARTSEITE – KARTEN (FINAL VERSION)
   EINZIGER gültiger Block!
=========================================== */
.cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0 60px;
    max-width: 1100px;
    margin: 0 auto;
}


.card {
    background: #e9eef3;
    border-radius: 18px;
    padding: 18px;
    width: 290px;               /* exakt wie vorher */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.20);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
}

.card h3 {
    margin: 14px 0 6px;
    color: #003E7E;
}

.card p {
    font-size: 0.95rem;
    color: #002a4e;
}



/* =========================================================
   FORMULARE
========================================================= */

.form-wrapper {
    background: #e9eef3;
    width: 92%;
    max-width: 650px;
    margin: 20px auto 50px;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

form h3 {
    color: #003E7E;
    margin-top: 28px;
    margin-bottom: 8px;
}

label {
    font-size: 0.95rem;
    margin-top: 12px;
    display: block;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 10px;
    border: 1px solid #aac4d6;
    font-size: 1rem;
    background: white;
}

textarea {
    height: 110px;
    resize: vertical;
}

/* Pflichtfeld-Fehler (AXA-Stil) */
input:invalid, textarea:invalid {
    border: 2px solid #E60028;
}

input:invalid:focus, textarea:invalid:focus {
    background: #ffecec;
}

/* Upload-Design */
input[type="file"] {
    padding: 12px;
    border-radius: 10px;
    border: 2px dashed #003E7E;
    background: #f0f4f9;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: #003E7E;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    margin-top: 28px;
    background: #003E7E;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0050a5;
}


/* =========================================================
   KONTAKT-BUTTONS STARTSEITE
========================================================= */

.contact-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    margin: 10px 0 25px 20px;
}

.contact-buttons a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    background: white;
    color: #002a4e;
    font-weight: 600;
    border: 1px solid #aac4d6;
}

.contact-buttons a:hover {
    background: #d0e2f0;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-button {
    color: white;
    font-weight: 600;
    background: #003E7E;
    padding: 10px 14px;
    border-radius: 8px;
    display: inline-block;
    margin-left: 20px;
}


/* =========================================================
   FOOTER
========================================================= */

/* FOOTER REFINED – Version B */
.footer {
    text-align: center !important;
    margin: 30px 0 22px;
}

/* FOOTER FIX – höchste Priorität */
footer.footer a,
.footer a {
    color: #003E7E !important;   /* Dunkelblau */
    font-weight: 600;
}

.footer a:hover {
    color: #ffffff !important;        /* edles Weiß beim Drübergehen */
    text-decoration: underline;
}


/* =========================================================
   WHATSAPP FLOATING BUTTON
========================================================= */

.wa-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 85px;
    height: 85px;
    z-index: 9999;
}

.wa-float img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}
/* MOBILE FIX: saubere Eingabefelder ohne Springen */
@media (max-width: 600px) {
    input, textarea, select {
        font-size: 16px !important; /* verhindert Mobile-Zoom */
        width: 100% !important;
        box-sizing: border-box;
    }
}
/* MOBILE FIX – verhindert rechts abgeschnittene Formulare */
.form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 12px;
    padding-left: 12px;
}
/* =========================================================
   DESKTOP – Layout für große Bildschirme
========================================================= */

@media (min-width: 700px) {

    .intro {
        text-align: center;
        padding: 40px 0 10px;
    }


    }

    .footer {
        text-align: center;
        padding: 20px;
        font-size: 0.9rem;
        opacity: 0.8;
    }
}/* ===========================================
   FIX: Einheitliche Breite für alle Unterseiten
=========================================== */

body {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #CBD6E8;
}

section, div, form {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
/* ===========================================
   FIX NUR für die KFZ/Sach/Haftpflicht-Unterseiten
   Startseite bleibt unverändert
=========================================== */

.kfz-form,
.form-page,
.form-wrapper,
.info-box,
form {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* MOBILE: Cards untereinander */
@media (max-width: 600px) {
    .cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card {
        width: 90% !important;   /* auf Handy breite volle Größe */
        max-width: 350px;
    }

    .card img {
        height: auto;            /* verhindert verzerrte Bilder */
    }
}
