/* ===============================
   Fahrzeugübersicht – Mein(e) Fahrzeuge
   Datei: auto-dashboard-ui/assets/css/mycar.css
================================= */

.ad-mycar-container {
  padding: 1rem 1rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.ad-vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===============================
   Fahrzeugkarte
================================= */
.ad-vehicle-card {
  display: grid;
  grid-template-columns: 180px 1fr 250px;
  min-width 1600;
  gap: 2.5rem;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  align-items: center;
  transition: box-shadow 0.2s ease;
  margin-top: -20; /* falls gesetzt */
}

.ad-vehicle-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* ===============================
   Bildbereich (180x180px)
================================= */
.ad-vehicle-image {
  width: 200px;
  height: 200px;
  position: relative;
  border-radius: 0.75rem;
  background: #f3f3f3;
  overflow: hidden;
  text-align: center;
}

.ad-vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
}

/* ===============================
   ID mit gelbem Hintergrundrahmen
================================= */
.ad-vehicle-id-wrapper {
  display: inline-block;
  padding: 4px 12px;
  width: 150px;
  margin-bottom: 0.5rem; /* oder 0.3rem, je nach Geschmack */
  margin-left: 0.2rem; /* reduziert linken Abstand */
  background-color: #ffe066;
  border: 1px solid #f3c100;
  border-radius: 6px;
  line-height: 1.4;
}

.ad-vehicle-id-global {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0078d7;
  white-space: nowrap;
}

.ad-vehicle-id-global a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
}

/* ===============================
   Mittelspalte: Info
================================= */
.ad-vehicle-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.ad-vehicle-title-block {
  line-height: 1.4;
  margin-bottom: 1rem;
}

.ad-vehicle-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1d2c;
}


.ad-vehicle-meta {
  font-size: 0.95rem;
  color: #444;
}

/* ===============================
   Rechte Spalte: Button + Angebot
================================= */
.ad-vehicle-reserve-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: #444;
  text-align: right;
  margin-bottom: 0.4rem;
  margin-top: -0.2rem;
}

.ad-vehicle-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1.9rem;
  white-space: nowrap;
  width: 240px;
}

.ad-vehicle-accept-btn {
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 0.6rem;
  font-weight: 600;
	height: 40px;
	width: 240px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.ad-vehicle-accept-btn:hover {
  background: #1b5d20;
}

.ad-vehicle-price-wrapper {
  padding: 0.7rem 1rem;
  border: 1px solid #cfd7e3;
  border-radius: 0.6rem;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  width: 100%;
}

.ad-vehicle-offer-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
	text-align: left;
}

.ad-vehicle-price-display {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1c1d2c;
}
/* ===============================
   Status + Laufzeit Header (oberhalb der Card)
================================= */
.ad-vehicle-status-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.85rem 1.2rem 0.6rem 1.2rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  font-size: 0.9rem;
  color: #444;
  gap: 0.6rem;
}

/* ID + Laufzeit nebeneinander, ganz oben */
.ad-vehicle-header-row {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 1.1rem;
}

/* ID-Block innerhalb des Headers, linksbündig */
.ad-vehicle-id-inline {
  background: #ffe585;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-right: 0.8rem;
}

/* Laufzeit immer ganz rechts */
.ad-vehicle-timer {
  font-size: 1rem;
  font-weight: 600;
  color: #2a3b70;
  white-space: nowrap;
  margin-left: auto;
}

/* Statuszeile darunter */
.ad-vehicle-status-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
  margin-top: 0.1rem;
}

/* Statuspunkte */
.ad-vehicle-status {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: #555;
}

.ad-vehicle-status i {
  margin-right: 0.35rem;
  color: #777;
  font-size: 1rem;
}


/* ===============================
   Toolbar mit Buttons
================================= */
.ad-vehicle-toolbar {
  display: flex;
  gap: 1rem;
  margin-top: -1rem;
  margin-bottom: 2.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ad-btn-outline,
.ad-btn-primary {
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.ad-btn-outline {
  background: #fff;
  color: #52017a;
  border: 2px solid #52017a;
}

.ad-btn-outline:hover {
  background: #f6f2ff;
}

.ad-btn-primary {
  background: #d63000;
  color: #fff;
  border: none;
}

.ad-btn-primary:hover {
  background: #b22000;
}
/* ===============================
   Desktop: Mobile-Toolbar ausblenden
================================= */
.ad-toolbar-mobile {
  display: none !important;
}

/* ===============================
   Responsive Anpassungen (Mobil)
================================= */
@media (max-width: 768px) {
  .ad-mycar-container {
    padding: 1.5rem 1rem;
  }

  .ad-vehicle-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ad-vehicle-image {
    width: 100%;
    height: auto;
  }

  .ad-vehicle-info,
  .ad-vehicle-actions {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .ad-vehicle-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem;
  }

  /* Desktop-Toolbar ausblenden */
  .ad-toolbar-desktop {
    display: none !important;
  }

  /* Mobile-Toolbar sichtbar + Styling wie Statusbox */
  .ad-toolbar-mobile {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    padding: 1rem 0.5rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-top: -1px; /* optischer Übergang zur Card */
  }

  .ad-toolbar-mobile button {
    background: none;
    border: none;
    padding: 0.3rem;
    cursor: pointer;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .ad-toolbar-mobile svg {
    width: 28px;
    height: 28px;
    fill: #2c2c2c;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s ease;
  }

  .ad-toolbar-mobile button[data-action="delete"] svg {
    fill: #c00;
  }

  .ad-toolbar-mobile button:hover svg {
    transform: scale(1.05);
  }

  .ad-btn-outline,
  .ad-btn-primary {
    width: 100%;
    padding: 0.8rem 1.2rem;
    box-sizing: border-box;
    text-align: center;
  }

  .ad-vehicle-price-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #fff;
    margin-bottom: 1rem;
    box-sizing: border-box;
  }

  .ad-vehicle-price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111;
  }

 .ad-vehicle-accept-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 64px; /* Fixhöhe statt vertikalem Padding */
  background-color: #1f8b3f;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: center;
}


  .ad-vehicle-accept-btn:hover {
    background-color: #166d30;
  }
}
