/* ============ DASHBOARD-KLIENT ============= Datei: auto-dashboard-ui/assets/css/dashboard-klient.css */
/* Nur Styles, die exklusiv für das Klient-Dashboard gelten */
/* Bspw. Farbanpassungen, spezielle Widgets */

.ad-dashboard-klient-main {
    /* Hier NUR, falls von Standard (core.css) abweichend! */
}

/* Beispiel: spezielle Hintergrundfarbe für Klient */
.ad-dashboard-root.klient-theme {
    background: #f8fbff;
}

/* Beispiel: Klient-spezifische Anpassung der Sidebar */
.ad-dashboard-sidebar.klient {
    border-left: 5px solid #2787c6;
}

/* ---- Menüpunkt Übersicht / Fahrzeuge (Card-Stil) ---- */

.ad-dashboard-quicklinks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.quicklink-box {
    background: #fefeff;
    border-radius: 1.1em;
    border: 1px solid #d6d8ec;
    box-shadow: 0 4px 16px rgba(40, 50, 80, 0.08);
    padding: 1.5em 1.3em;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    justify-content: space-between;
    cursor: pointer;
    transition: box-shadow 0.16s, background 0.15s;
}

.quicklink-box:hover {
    box-shadow: 0 6px 20px rgba(50, 70, 120, 0.15);
    background: #f4f6fc;
}

.quicklink-title {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 0.7em;
    color: #1b1c33;
}

.quicklink-desc {
    color: #60718a;
    font-size: 1em;
    margin-bottom: 0.2em;
}

.quicklink-icon {
    font-size: 2.3em;
    color: #402168;
    align-self: flex-end;
    margin-top: auto;
}


/* ----------- Fahrzeuge Card ------------ */

.ad-dashboard-my-vehicles {
    background: #fff;
    border-radius: 1.1em;
    box-shadow: 0 2px 14px rgba(60,90,120,0.06);
    padding: 1.5em 1.5em 2em 1.5em;
    width: 100%;
    margin-bottom: 1.7em;
    border: 1px solid #e2e3ee;
}

/* Aufteilung in Text links / Button rechts */
.vehicles-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5em;
    padding-bottom: 1.1em;
    border-bottom: 1px solid #e5e5ef;
    margin-bottom: 1.3em;
}

.vehicles-left {
    display: flex;
    align-items: center;
    gap: 0.8em;
    flex: 1 1 auto;
    min-width: 220px;
}

.vehicles-right {
    flex: 0 0 auto;
}

.vehicles-empty-icon {
    font-size: 2em;
    color: #402168;
    font-weight: 700;
    display: flex;
    align-items: center;
    line-height: 1;
}

.vehicles-empty-text {
    font-size: 1.1em;
    color: #23233b;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* Button Desktop: rechts | Mobile: unten, zentriert */
.vehicle-add-btn {
    background: #52017a;
    color: #fff;
    border: none;
    border-radius: 0.6em;
    padding: 0.6em 1.6em;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.13s ease-in-out;
    box-shadow: 0 2px 10px rgba(80, 17, 122, 0.09);
    white-space: nowrap;
    text-align: center;
}
.vehicle-add-btn:hover,
.vehicle-add-btn:focus {
    background: #7a24ae;
}


/* ----------- Info-Liste ------------ */

.vehicles-info-list {
    margin-top: 1.2em;
    font-size: 1.02em;
    color: #272544;
    text-align: left;
}

.vehicles-info-list > b {
    display: block;
    font-size: 1.1em;
    margin-bottom: 0.3em;
    text-align: left;
}

.vehicles-info-list ul {
    list-style: none;
    margin: 0.7em 0 0 0;
    padding: 0 0 0 0.6em;
}

.vehicles-info-list ul li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.37em;
    color: #242548;
    font-size: 1em;
    text-align: left;
}

.vehicles-info-list ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #177554;
    font-size: 1.13em;
    font-weight: bold;
}


/* --------- Responsive Mobile Anpassungen --------- */

@media (max-width: 768px) {
    .ad-dashboard-main-overview {
        padding: 0 1.2rem;
    }

    .ad-dashboard-quicklinks {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quicklink-box {
        padding: 1.3em 1.4em;
    }

    .vehicles-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .vehicles-left {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.6em;
    }

    .vehicles-right {
        align-self: center;
        width: 100%;
        text-align: center;
        margin-top: 0.8em;
    }

    .vehicle-add-btn {
        width: auto;
    }

    .ad-dashboard-main-overview h4 {
        text-align: left;
    }

    .vehicles-info-list > b,
    .vehicles-info-list ul li {
        text-align: left;
    }
}


/* ================================
   DASHBOARD-KLIENT Bereich Einstellungen
================================ */

/* Allgemeines Layout */
.ad-dashboard-main-settings {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: "Inter", sans-serif;
}
.ad-dashboard-main-settings h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1c1d2c;
  margin-bottom: 0.3rem;
}
.ad-user-id {
  color: #767a89;
  font-size: 0.95rem;
  margin-bottom: 2.2rem;
}

/* Kartenstruktur */
.ad-settings-card {
  background: #fff;
  border-radius: 1.1em;
  border: 1px solid #e3e6f0;
  padding: 1.5rem 1.5rem 1.7rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 14px rgba(60, 90, 120, 0.06);
}
.ad-settings-card h3 {
  font-size: 1.3rem;
  color: #1c1d2c;
  margin-bottom: 1.4rem;
}

/* Avatarbereich */
.ad-profile-block {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  justify-content: space-between;
}
/* ========== AVATAR-STYLES ========== */
.ad-avatar-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ad-avatar-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.ad-avatar-initials {
  width: 56px;
  height: 56px;
  background-color: #ccc;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-family: sans-serif;
}

/* ========== PROFILAVATAR IM EINSTELLUNGSBEREICH ========== */
#ad-profile-avatar,
#ad-delete-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e4e4e4;
  font-weight: 600;
  font-size: 1rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#ad-profile-avatar img,
#ad-delete-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ========== HOVER-EFFEKT BEIM BUTTON (optional) ========== */
#ad-avatar-btn {
  margin-left: auto;
  background-color: #5a2a82;
  color: #fff;
  border: none;
  padding: 0.4em 1.2em;
  border-radius: 1.6em;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

#ad-avatar-btn:hover {
  background-color: #411c5f;

}
.ad-profile-label {
  flex-grow: 1;
  font-size: 1rem;
  color: #1c1d2c;
}
.ad-note {
  font-size: 0.88rem;
  color: #767a89;
}

/* Formzeilen */
.ad-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.3rem;
  gap: 1.3rem;
}
.ad-settings-block {
  flex: 1;
}
.ad-settings-block label {
  display: block;
  font-weight: 600;
  color: #23233b;
  margin-bottom: 0.5rem;
}

/* E-Mail Status */
.ad-email-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ad-email {
  font-size: 1rem;
  font-weight: 500;
  color: #1c1d2c;
}
.ad-badge-success,
.ad-badge-danger {
  font-size: 0.75rem;
  padding: 0.2em 0.6em;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
}
.ad-badge-success {
  background: #198754;
}
.ad-badge-danger {
  background: #dc3545;
}
.ad-info-box {
  margin-top: 0.6rem;
  background: #edf0f6;
  color: #555f6a;
  font-size: 0.92rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.ad-icon-info {
  width: 18px;
  height: 18px;
  background-color: #9ba2b2;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
}
.ad-password {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-top: 0.3rem;
}

/* Buttons */
.ad-btn {
  background: #52017a;
  color: #fff;
  font-weight: 700;
  padding: 0.6em 1.4em;
  border: none;
  border-radius: 0.6em;
  cursor: pointer;
  transition: background 0.15s ease-in-out;
}
.ad-btn:hover {
  background: #7a24ae;
}
.ad-btn.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* Kontaktdaten */
.ad-contact-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e3e6f0;
  padding: 1rem 0;
  gap: 1rem;
}
.ad-contact-entry:first-of-type {
  border-top: none;
}
.ad-contact-entry label {
  font-weight: 600;
  color: #23233b;
  display: block;
  margin-bottom: 0.3rem;
  min-width: 140px;
}
.ad-contact-entry-content {
  flex-grow: 1;
}
.ad-contact-entry-content span {
  display: block;
  color: #1c1d2c;
}

/* Löschbereich */
.ad-delete-user-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.ad-delete-info {
  flex-grow: 1;
  font-size: 1rem;
  color: #1c1d2c;
}

/* Newsletter Opt-In */
.ad-switch-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}
.ad-news-label {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #1c1d2c;
}
.ad-switch-wrapper input[type="checkbox"] {
  display: none;
}
.ad-switch {
  width: 42px;
  height: 22px;
  border-radius: 22px;
  background: #ccc;
  position: relative;
  display: inline-block;
}
.ad-switch::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s ease-in-out;
}
.ad-switch-wrapper input[type="checkbox"]:checked + .ad-switch::before {
  left: 22px;
}
.ad-switch-wrapper input[type="checkbox"]:checked + .ad-switch {
  background: #5a2a82;
}

/* Responsive Layout */
@media (max-width: 600px) {
  .ad-settings-row,
  .ad-contact-entry,
  .ad-profile-block,
  .ad-delete-user-box,
  .ad-switch-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .ad-btn {
    width: 100%;
    text-align: center;
  }
  .ad-settings-card {
    padding: 1.2rem;
  }
  .ad-contact-entry label {
    margin-bottom: 0.1rem;
  }
}

