/* ===========================================================================
   Probefahrt-Tool V2 – Garage-Reichlin
   Farben wie garage-reichlin.ch: #003366 / #0055A0 / #d31126 / #edf2f8
   =========================================================================== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFF;
    color: #111827;
    font-size: 16px;
    line-height: 1.4;
}

a {
    color: #0055A0;
    text-decoration: none;
    cursor: pointer;
}

/* Header */
header {
    max-width: 800px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo img {
    height: 42px;
    display: block;
}

.headerphone {
    font-weight: bold;
    color: #003366;
    white-space: nowrap;
}

.headerphone::before {
    content: "☎ ";
    color: #0055A0;
}

.container {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Fortschritt */
.progress {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
}

.progress li {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    padding-bottom: 6px;
    border-bottom: 4px solid #e5e7eb;
}

.progress li.done {
    color: #0055A0;
    border-bottom-color: #93b4d8;
}

.progress li.active {
    color: #003366;
    font-weight: bold;
    border-bottom-color: #0055A0;
}

/* Zusammenfassung */
.summary {
    display: none;
    background-color: #edf2f8;
    border-left: 3px solid #0055A0;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-final {
    display: block;
    text-align: left;
    margin: 20px 0;
}

.summary-final:empty {
    display: none;
}

/* Titel */
h1 {
    font-size: 24px;
    color: #003366;
    line-height: 1.25;
    margin: 20px 0 20px 0;
}

h1 span {
    color: #86868b;
    font-weight: normal;
}

.step {
    display: none;
}

/* Auswahl-Kacheln */
.choicegrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.choicelist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.choicelist-2col {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 16px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: left;
    background-color: #FFF;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    color: #111827;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.choice:hover, .choice:focus-visible {
    border-color: #0055A0;
    box-shadow: 0 2px 10px rgba(0, 85, 160, 0.18);
    outline: none;
}

.choice:active {
    background-color: #f3f7fc;
}

.choice-date, .choice-location {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.choice small {
    display: block;
    color: #6b7280;
    font-size: 14px;
}

.choice-brand {
    justify-content: center;
    height: 130px;
}

.choice-brand img {
    max-width: 60%;
    max-height: 60%;
}

.choice-model img {
    width: 42%;
    max-width: 240px;
    flex-shrink: 0;
}

.choicetext strong {
    display: block;
    font-size: 17px;
}

.choicetext small {
    margin-top: 3px;
}

/* Zeilenumbrüche aus der Datenbank (<br>) als echte Umbrüche anzeigen */
.choicetext strong,
.choicetext small {
    white-space: pre-line;
}

.locationnote {
    background: #edf2f8;
    color: #003366;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 16px 0;
}

.loading {
    color: #6b7280;
    padding: 20px 0;
}

.back {
    display: inline-block;
    margin-top: 22px;
    font-size: 15px;
}

/* Infobox */
.infobox {
    background-color: #EEF2F7;
    border-radius: 6px;
    padding: 14px 18px;
}

.infobox p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Kontaktfelder */
.fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
}

.field-full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

input, textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: Arial, sans-serif;
    font-size: 16px;               /* verhindert Auto-Zoom auf dem iPhone */
    border: 1px solid #86868b;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #FFF;
    -webkit-appearance: none;
}

input {
    height: 46px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0055A0;
    box-shadow: 0 0 0 3px rgba(0, 85, 160, 0.15);
}

input.invalid {
    border-color: #d31126;
    box-shadow: 0 0 0 3px rgba(211, 17, 38, 0.12);
}

/* Buttons */
.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    margin-top: 22px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    color: #0055A0;
    background-color: #FFF;
    border: 2px solid #0055A0;
    box-sizing: border-box;
    cursor: pointer;
}

.button:hover {
    background-color: #edf2f8;
}

.buttonsend {
    color: #FFF;
    border: none;
    background: linear-gradient(to left, #2563eb 0%, #1e3a8a 50%, #2563eb 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.5s ease;
}

.buttonsend:hover {
    background-position: 0 0;
    color: #FFF;
}

.buttonsend.sending {
    opacity: 0.6;
    pointer-events: none;
}

.privacy {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
}

/* Fehlermeldung */
.FbMaster:empty {
    display: none;
}

.FbMaster {
    background-color: #d31126;
    color: #FFF;
    margin-top: 18px;
    padding: 10px 14px;
    border-left: 3px solid #940B1A;
    font-size: 15px;
}

.FbMaster p {
    margin: 0;
}

.FbMaster p::before {
    content: '\26A0';
    padding-right: 6px;
}

/* Danke */
.success {
    text-align: center;
    padding-top: 10px;
}

.successicon {
    width: 64px;
    height: 64px;
    margin: 10px auto 0 auto;
    border-radius: 50%;
    background-color: #0055A0;
    color: #FFF;
    font-size: 34px;
    line-height: 64px;
}

.success h1 {
    text-align: center;
}

.nextstep {
    margin-top: 30px;
    color: #374151;
}

/* Kontakt unten */
.contactalt {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 15px;
    line-height: 1.6;
}

.contactalt span {
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 600px) {
    header {
        padding: 12px 16px;
    }
    .logo img {
        height: 34px;
    }
    .headerphone {
        font-size: 14px;
    }
    .container {
        padding: 0 16px;
    }
    h1 {
        font-size: 21px;
        margin: 14px 0 16px 0;
    }
    .progress li {
        font-size: 11px;
    }
    .choice-brand {
        height: 100px;
    }
    .choicelist-2col, .fields {
        grid-template-columns: 1fr;
    }
    .choice-model img {
        width: 38%;
    }
}
