﻿/* ==========================================================
   Fahrzeug-Scout24
   Händlerregistrierung
   ========================================================== */


/* ----------------------------------------------------------
   Grundlayout
   ---------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;

    background:
        linear-gradient(
            180deg,
            #eef5fc 0,
            #f6f9fc 320px,
            #f4f6f8 100%
        );

    color: #1f2937;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.5;
}


/* ----------------------------------------------------------
   Seitenbereich
   ---------------------------------------------------------- */

.dealer-content {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto;

    padding:
        55px
        30px
        70px;
}


/* ----------------------------------------------------------
   Seitenkopf
   ---------------------------------------------------------- */

.dealer-page-header {
    position: relative;

    margin-bottom: 30px;
    padding: 34px 38px;

    overflow: hidden;

    border:
        1px solid
        #dce6f0;

    border-radius: 16px;

    background:
        #ffffff;

    box-shadow:
        0 10px 35px
        rgba(31, 41, 55, 0.07);
}

.dealer-page-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 6px;
    height: 100%;

    background:
        #0b5ed7;
}

.dealer-page-header h1 {
    margin:
        0
        0
        8px;

    color: #0d3b66;

    font-size: 32px;
    line-height: 1.2;
}

.dealer-page-header p {
    margin: 0;

    color: #64748b;

    font-size: 16px;
}


/* ----------------------------------------------------------
   Äußerer Formularbereich
   ---------------------------------------------------------- */

.dealer-content > .form-section {
    padding: 32px;

    border:
        1px solid
        #dce5ef;

    border-radius: 16px;

    background:
        #ffffff;

    box-shadow:
        0 10px 35px
        rgba(31, 41, 55, 0.06);
}

.dealer-content > .form-section > h2 {
    margin:
        0
        0
        28px;

    padding-bottom: 18px;

    border-bottom:
        1px solid
        #e5ebf1;

    color: #0d3b66;

    font-size: 24px;
}


/* ----------------------------------------------------------
   Formular
   ---------------------------------------------------------- */

.dealer-form {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 24px;
}


/* ----------------------------------------------------------
   Einzelne Bereiche
   ---------------------------------------------------------- */

.dealer-form > .form-section {
    margin: 0;
    padding: 26px;

    border:
        1px solid
        #dfe7ef;

    border-radius: 12px;

    background:
        #ffffff;

    box-shadow:
        0 3px 14px
        rgba(31, 41, 55, 0.045);
}

.dealer-form > .form-section h2 {
    position: relative;

    margin:
        0
        0
        22px;

    padding-bottom: 13px;

    border-bottom:
        1px solid
        #e7edf3;

    color: #0d3b66;

    font-size: 20px;
}

.dealer-form > .form-section h2::after {
    content: "";

    position: absolute;

    bottom: -1px;
    left: 0;

    width: 52px;
    height: 3px;

    border-radius: 3px;

    background:
        #0b5ed7;
}

.dealer-form > .form-section > p {
    margin:
        -10px
        0
        20px;

    color: #64748b;

    font-size: 14px;
}


/* ----------------------------------------------------------
   Formularraster
   ---------------------------------------------------------- */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        18px
        20px;
}

.form-group {
    min-width: 0;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 14px;
    font-weight: 700;
}


/* ----------------------------------------------------------
   Eingabefelder
   ---------------------------------------------------------- */

.dealer-form input[type=text], .dealer-form input[type=email], .dealer-form input[type=tel], .dealer-form input[type=password], .dealer-form select, .dealer-form textarea {
    width: 100%;
    min-height: 46px;

    padding:
        11px
        13px;

    border:
        1px solid
        #cbd5e1;

    border-radius: 7px;

    outline: none;

    background:
        #ffffff;

    color: #1f2937;

    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.dealer-form textarea {
    min-height: 120px;

    resize: vertical;
}

.dealer-form input:hover,
.dealer-form select:hover,
.dealer-form textarea:hover {
    border-color:
        #94a3b8;
}

.dealer-form input:focus,
.dealer-form select:focus,
.dealer-form textarea:focus {
    border-color:
        #0b5ed7;

    box-shadow:
        0 0 0 3px
        rgba(11, 94, 215, 0.12);
}

.dealer-form input::placeholder,
.dealer-form textarea::placeholder {
    color:
        #94a3b8;
}


/* ----------------------------------------------------------
   Paketbereich
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   Händlerpakete über die gesamte Formularbreite
   ---------------------------------------------------------- */

.dealer-form > .form-section:has(.package-selection) {
    grid-column:
        1 / -1;
}

.package-selection {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 22px;

    width: 100%;

    margin-top: 22px;
}

.package-option {
    display: block;

    width: 100%;
    min-width: 0;

    position: relative;

    cursor: pointer;
}

.package-option-content {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
    min-height: 320px;

    padding: 24px;

    border:
        2px solid
        #dce5ef;

    border-radius: 12px;

    background:
        #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}



.package-selection {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-top: 22px;
}

.package-option {
    position: relative;

    display: block;

    min-width: 0;

    cursor: pointer;
}

.package-option > input[type=radio] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.package-option-content {
    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 290px;

    padding: 22px;

    border:
        2px solid
        #dce5ef;

    border-radius: 12px;

    background:
        #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.package-option:hover
.package-option-content {
    border-color:
        #8db9ee;

    box-shadow:
        0 8px 24px
        rgba(11, 94, 215, 0.10);

    transform:
        translateY(-2px);
}

.package-option input[type=radio]:checked + .package-option-content {
    border-color:
        #0b5ed7;

    background:
        #f7fbff;

    box-shadow:
        0 0 0 3px
        rgba(11, 94, 215, 0.10),
        0 10px 28px
        rgba(11, 94, 215, 0.10);
}

.package-option input[type=radio]:focus-visible + .package-option-content {
    outline:
        3px solid
        rgba(11, 94, 215, 0.25);

    outline-offset: 3px;
}


/* Paketinhalt */

.package-option-content > strong:first-child {
    display: block;

    margin-bottom: 14px;

    color:
        #0b5ed7;

    font-size: 21px;
}

.package-option-content > span {
    display: block;

    margin-bottom: 8px;

    color:
        #475569;

    font-size: 14px;
    line-height: 1.45;
}

.package-option-content > span strong {
    color:
        #1f2937;
}


/* ----------------------------------------------------------
   Zustimmung
   ---------------------------------------------------------- */

.dealer-form > .form-section:last-of-type {
    grid-column:
        1 / -1;
}

.dealer-form > .form-section:last-of-type
.form-group {
    margin-bottom: 12px;
}

.dealer-form > .form-section:last-of-type
.form-group label {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin: 0;
    padding: 13px 15px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 8px;

    background:
        #f8fafc;

    color:
        #334155;

    font-weight: 400;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.dealer-form > .form-section:last-of-type
.form-group label:hover {
    border-color:
        #b7c9dc;

    background:
        #f4f8fc;
}

.dealer-form input[type=checkbox] {
    flex:
        0 0 auto;

    width: 18px;
    height: 18px;

    margin-top: 1px;

    accent-color:
        #0b5ed7;

    cursor: pointer;
}



.register-consent-section {
    grid-column: 1 / -1;
    width: 100%;
}


/* ----------------------------------------------------------
   Aktionen
   ---------------------------------------------------------- */

.form-actions {
    grid-column:
        1 / -1;

    display: flex;
    justify-content: flex-end;

    padding-top: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding:
        12px
        26px;

    border: 0;
    border-radius: 8px;

    font: inherit;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn-primary {
    background:
        #0b5ed7;

    color:
        #ffffff;

    box-shadow:
        0 5px 14px
        rgba(11, 94, 215, 0.20);
}

.btn-primary:hover {
    background:
        #094db1;

    box-shadow:
        0 7px 18px
        rgba(11, 94, 215, 0.25);
}

.btn-primary:active {
    transform:
        translateY(1px);
}

.btn-primary:focus-visible {
    outline:
        3px solid
        rgba(11, 94, 215, 0.25);

    outline-offset: 3px;
}


/* ----------------------------------------------------------
   Meldungen
   ---------------------------------------------------------- */

.alert {
    margin-bottom: 25px;

    padding:
        16px
        18px;

    border-radius: 9px;

    line-height: 1.5;
}

.alert-error {
    border:
        1px solid
        #f1b8bd;

    background:
        #fff1f2;

    color:
        #842029;
}

.alert-success {
    border:
        1px solid
        #a7d7bd;

    background:
        #ecf8f1;

    color:
        #0f5132;
}

.alert ul {
    margin:
        10px
        0
        0;

    padding-left:
        22px;
}


/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */

@media (max-width: 1000px) {

    .dealer-content {
        padding:
            35px
            22px
            55px;
    }

    .dealer-form {
        grid-template-columns:
            1fr;
    }

    .dealer-form > .form-section,
    .dealer-form > .form-section:nth-last-of-type(2),
    .dealer-form > .form-section:last-of-type {
        grid-column:
            auto;
    }

    .package-selection {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* ----------------------------------------------------------
   Smartphone
   ---------------------------------------------------------- */

@media (max-width: 650px) {

    .dealer-content {
        padding:
            20px
            14px
            40px;
    }

    .dealer-page-header {
        padding:
            25px
            22px;
    }

    .dealer-page-header h1 {
        font-size: 26px;
    }

    .dealer-content > .form-section {
        padding: 18px;
    }

    .dealer-content > .form-section > h2 {
        font-size: 21px;
    }

    .dealer-form > .form-section {
        padding: 20px 16px;
    }

    .form-grid {
        grid-template-columns:
            1fr;
    }

    .package-selection {
        grid-template-columns:
            1fr;
    }

    .package-option-content {
        min-height: 0;
    }

    .form-actions {
        display: block;
    }

    .form-actions .btn {
        width: 100%;
    }

}

