/* =========================================================
   GRUNDLAGEN
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #dcdcdc;
    color: #111;
    min-height: 100vh;
}

/* =========================================================
   NAVIGATION
========================================================= */

.navbar {
    min-height: 76px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 45px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-symbol {
    width: 42px;
    height: 42px;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    border-radius: 10px;
}

.logo-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.logo-subtitle {
    font-size: 10px;
    color: #aaa;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar nav a {
    color: #ddd;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.navbar nav a:hover {
    color: #a9d8f5;
}

.nav-account {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome {
    font-size: 13px;
    color: #bbb;
}

.nav-button {
    text-decoration: none;
    background: #fff;
    color: #111;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.nav-button:hover {
    background: #b9dcf2;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 690px;
    background: #111;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 80px 7%;
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #8fc6e8;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(50px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -4px;
    margin-bottom: 28px;
}

.hero h1 span {
    color: #a9d8f5;
}

.hero p {
    color: #bbb;
    max-width: 550px;
    line-height: 1.7;
    font-size: 17px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.primary-button {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: #fff;
    color: #111;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    transition: 0.2s;
}

.primary-button:hover {
    background: #a9d8f5;
    transform: translateY(-2px);
}

.secondary-link {
    color: #ddd;
    text-decoration: none;
    font-size: 13px;
}

.secondary-link:hover {
    color: #a9d8f5;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-box {
    width: min(100%, 570px);
    background: #303030;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-car-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.hero-caption {
    padding: 15px 5px 5px;
    color: #ccc;
    font-size: 12px;
}

/* =========================================================
   LEISTUNGEN
========================================================= */

.services-section {
    background: #dcdcdc;
    padding: 100px 7%;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading h2 {
    font-size: 46px;
    line-height: 1;
    letter-spacing: -2px;
    color: #111;
    margin-bottom: 15px;
}

.section-heading p {
    color: #555;
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    min-height: 240px;
    border: 1px solid #ccc;
    transition: 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #9fcde7;
}

.service-number {
    color: #5d9bc2;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 35px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   BERATER – STARTSEITE
========================================================= */

.customer-advisor-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.customer-advisor-card {
    width: 100%;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 15px;
}

.customer-advisor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   STARTSEITE – MITARBEITERFOTO
========================================================= */

.customer-advisor-photo {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.customer-advisor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #e5e5e5;
}

/* =========================================================
   STARTSEITE – BERATER INFORMATION
========================================================= */

.customer-advisor-info {
    flex: 1;
}

.customer-advisor-info h3 {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 5px;
    color: #111;
}

.advisor-position {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    margin-bottom: 7px;
}

.customer-advisor-info p {
    font-size: 11px;
    line-height: 1.5;
    color: #777;
}

/* =========================================================
   MEINE TERMINE
========================================================= */

.my-appointments-section {
    background: #dcdcdc;
    padding: 90px 7%;
}

.my-appointments-container {
    max-width: 1100px;
    margin: 0 auto;
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.appointment-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 18px;
}

.appointment-card-photo {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #ccc;
}

.appointment-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.appointment-card-content {
    flex: 1;
}

.appointment-status {
    margin-bottom: 6px;
}

.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.status.booked {
    background: #111;
    color: #fff;
}

.status.cancelled {
    background: #ddd;
    color: #555;
}

.status.completed {
    background: #a9d8f5;
    color: #111;
}

.appointment-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.appointment-position {
    color: #777;
    font-size: 12px;
    margin-bottom: 12px;
}

.appointment-details {
    display: flex;
    gap: 30px;
}

.appointment-details span {
    display: block;
    font-size: 9px;
    color: #888;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.appointment-details strong {
    font-size: 13px;
}

.cancel-appointment-form {
    margin-top: 15px;
}

.cancel-button {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.cancel-button:hover {
    background: #666;
}

.no-appointments {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 55px 25px;
    text-align: center;
}

.no-appointments-icon {
    font-size: 30px;
    color: #999;
    margin-bottom: 12px;
}

.no-appointments h3 {
    margin-bottom: 8px;
}

.no-appointments p {
    color: #777;
    margin-bottom: 20px;
}

/* =========================================================
   TERMIN BUCHEN
========================================================= */

.appointment-section {
    background: #292929;
    color: #fff;
    padding: 100px 7%;
}

.appointment-container {
    max-width: 1050px;
    margin: 0 auto;
}

.appointment-heading {
    margin-bottom: 45px;
}

.appointment-heading h2 {
    font-size: 45px;
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.appointment-heading p {
    color: #aaa;
    line-height: 1.6;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.appointment-step {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    background: #111;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 25px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #a9d8f5;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.step-content > p {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
}

/* =========================================================
   TERMIN BUCHEN – BERATER
========================================================= */

.appointment-advisors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.appointment-advisor {
    display: block;
    cursor: pointer;
}

.appointment-advisor input {
    display: none;
}

.appointment-advisor-card {
    min-height: 76px;
    background: #303030;
    border: 1px solid #484848;
    border-radius: 9px;
    padding: 9px;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: 0.2s;
}

/* =========================================================
   TERMIN BUCHEN – FOTO
========================================================= */

.appointment-advisor-photo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 7px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appointment-advisor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* =========================================================
   TERMIN BUCHEN – NAME
========================================================= */

.appointment-advisor-info {
    flex: 1;
    min-width: 0;
}

.appointment-advisor-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.appointment-advisor-info span {
    display: block;
    color: #9dcae3;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   RADIO
========================================================= */

.radio-indicator {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid #777;
    border-radius: 50%;
}

.appointment-advisor input:checked + .appointment-advisor-card {
    border-color: #a9d8f5;
    background: #3b4b55;
}

.appointment-advisor input:checked + .appointment-advisor-card .radio-indicator {
    border: 5px solid #a9d8f5;
}

/* =========================================================
   INPUTS
========================================================= */

.appointment-input {
    width: 100%;
    max-width: 400px;
    background: #fff;
    color: #111;
    border: none;
    border-radius: 7px;
    padding: 13px 14px;
    font-size: 14px;
    outline: none;
}

.appointment-input:focus {
    box-shadow: 0 0 0 3px rgba(169, 216, 245, 0.35);
}

/* =========================================================
   BOOKING SUMMARY
========================================================= */

.booking-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.booking-summary > div {
    background: #292929;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 7px;
}

.booking-summary span {
    display: block;
    color: #888;
    font-size: 9px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.booking-summary strong {
    font-size: 12px;
    color: #a9d8f5;
}

.appointment-submit {
    text-align: right;
    padding-top: 15px;
}

.login-required {
    background: #111;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.login-required h3 {
    margin-bottom: 10px;
}

.login-required p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* =========================================================
   ACCOUNT
========================================================= */

.account-section {
    background: #fff;
    padding: 90px 7%;
}

.account-container {
    max-width: 1000px;
    margin: 0 auto;
}

.account-box {
    background: #dcdcdc;
    border: 1px solid #ccc;
    border-radius: 14px;
    padding: 40px;
}

.account-box h2 {
    font-size: 40px;
    letter-spacing: -1px;
    margin-bottom: 35px;
}

.account-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.account-columns h3 {
    margin-bottom: 15px;
}

.account-columns form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-columns input {
    padding: 13px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 13px;
}

.dark-button {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
}

.dark-button:hover {
    background: #333;
}

.outline-button {
    background: transparent;
    color: #111;
    border: 1px solid #111;
    padding: 12px 16px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
}

.outline-button:hover {
    background: #111;
    color: #fff;
}

.logged-in {
    text-align: center;
    padding: 30px;
}

.logged-icon {
    width: 45px;
    height: 45px;
    background: #a9d8f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 800;
}

/* =========================================================
   NOTIZEN
========================================================= */

.notes-section {
    background: #dcdcdc;
    padding: 80px 7%;
}

.notes-container {
    max-width: 1000px;
    margin: 0 auto;
}

.notes-container h2 {
    font-size: 40px;
    margin-bottom: 25px;
}

.note-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.note-form textarea {
    flex: 1;
    min-height: 70px;
    padding: 12px;
    border: 1px solid #aaa;
    border-radius: 7px;
    resize: vertical;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.note-text {
    flex: 1;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

.delete-note-form {
    flex-shrink: 0;
}

.delete-note-button {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.delete-note-button:hover {
    background: #777;
}

/* =========================================================
   FOOTER
========================================================= */

.customer-footer {
    background: #111;
    color: #888;
    padding: 30px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.footer-logo {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
    .customer-advisor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   TABLET / KLEINER LAPTOP
========================================================= */

@media (max-width: 1000px) {
    .navbar nav {
        display: none;
    }
    .hero {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .customer-advisor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   HANDY
========================================================= */

@media (max-width: 700px) {
    .navbar {
        padding: 0 20px;
    }
    .welcome {
        display: none;
    }

    /* HERO */
    .hero {
        padding: 60px 20px;
    }
    .hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }
    .hero-car-image {
        height: 280px;
    }

    /* SECTIONS */
    .services-section,
    .my-appointments-section,
    .appointment-section,
    .account-section,
    .notes-section {
        padding: 65px 20px;
    }
    .section-heading h2,
    .appointment-heading h2 {
        font-size: 36px;
    }

    /* STARTSEITE BERATER */
    .customer-advisor-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* TERMIN BUCHEN */
    .appointment-step {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    .appointment-advisors {
        grid-template-columns: 1fr;
    }
    .booking-summary {
        grid-template-columns: 1fr;
    }

    /* MEINE TERMINE */
    .appointment-card {
        flex-direction: column;
    }
    .appointment-card-photo {
        width: 70px;
        height: 70px;
    }

    /* ACCOUNT */
    .account-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .account-box {
        padding: 25px;
    }

    /* NOTIZEN */
    .note-form {
        flex-direction: column;
    }

    /* FOOTER */
    .customer-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 25px 20px;
    }
}

/* =========================================================
   SEHR KLEINES HANDY
========================================================= */

@media (max-width: 450px) {
    .customer-advisor-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}