/* Aufgeklapptes Fahrerprofil (templates/driver-profile.php) – schlichte Variante, 02.12.2026.
   Nur .is-expanded – die eingeklappte Liste bleibt wie bisher (assets-src/scss/inc/_common.scss).
   Vorherige, farbigere Variante: Theme-Commit 810e79a. */

.driver-profile.is-expanded {
  background: #fff;
  border: 1px solid #ececec !important;
  border-radius: 14px;
  margin: 1rem 0;
  padding: 1.5rem 1.5rem 1.3rem;
}

.driver-profile.is-expanded:hover {
  background: #fff;
}

/* Foto */
.driver-profile.is-expanded .driver-profile__image {
  border-radius: 10px;
}

/* Kopf */
.driver-profile.is-expanded .driver-profile__data {
  max-width: none;
}

.driver-profile.is-expanded .driver-profile__firstname {
  font-size: 30px;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.driver-profile.is-expanded .expandible-toggle {
  top: 1.3rem;
  right: 1.1rem;
}

/* Infos: ruhiges Raster, nur eine feine Trennlinie */
.driver-profile.is-expanded .driver-profile__infos {
  border-top: 1px solid #f0f0f0;
  color: #333;
  display: grid;
  font-size: 15px;
  gap: 1.1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  line-height: 1.55;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}

.driver-profile.is-expanded .driver-profile__info {
  min-width: 0;
  padding: 0;
}

.driver-profile.is-expanded .driver-profile__info.info--lebensmotto,
.driver-profile.is-expanded .driver-profile__info.info--offer,
.driver-profile.is-expanded .driver-profile__info.info--custom_offer,
.driver-profile.is-expanded .driver-profile__info.info--freemium_member,
.driver-profile.is-expanded .driver-profile__info.info--charge {
  grid-column: 1 / -1;
}

.driver-profile.is-expanded .driver-profile__info .info--label {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: .2em;
  padding: 0;
  text-transform: none;
}

/* „Über mich“: einfacher Fließtext */
.driver-profile.is-expanded .info--lebensmotto .info--value {
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.7;
}

/* Sprachen, Fahrzeug: Text mit Mittelpunkt statt Chips */
.driver-profile .rg-chips {
  display: inline;
}

.driver-profile .rg-chip {
  display: inline;
}

.driver-profile .rg-chip + .rg-chip::before {
  color: #bbb;
  content: " · ";
}

/* „Dabei seit“: Jahr und Dauer in einer Zeile */
.driver-profile .rg-since__note {
  color: #9a9a9a;
}

.driver-profile .rg-since__note::before {
  content: " · ";
}

/* Touren: schlichte Liste mit kleinem grünen Häkchen */
.driver-profile.is-expanded .info--offer ul,
.driver-profile.is-expanded .info--custom_offer ul {
  display: grid;
  gap: .3em;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.driver-profile.is-expanded .info--offer li,
.driver-profile.is-expanded .info--custom_offer li {
  align-items: baseline;
  display: flex;
  gap: .5em;
  line-height: 1.45;
  margin: 0;
  padding: 0;
}

/* Touren am Desktop: jede Tour in einer Zeile (Falk 02.12.2026) */
@media (min-width: 768px) {
  .driver-profile.is-expanded .info--offer li,
  .driver-profile.is-expanded .info--custom_offer li {
    white-space: nowrap;
  }
}

.driver-profile.is-expanded .info--offer li::before,
.driver-profile.is-expanded .info--custom_offer li::before {
  color: #2ac644;
  content: "✓";
  display: inline-block !important;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  position: static !important;
}

.driver-profile.is-expanded .info--offer li a,
.driver-profile.is-expanded .info--custom_offer li a {
  border-bottom: 0;
  color: #333;
  padding: 0 !important;
  text-decoration: none;
}

.driver-profile.is-expanded .info--offer li a:hover,
.driver-profile.is-expanded .info--custom_offer li a:hover {
  color: #1f7a33;
  text-decoration: underline;
}

/* Storno: kleine graue Zeile */
.driver-profile.is-expanded .info--charge .info--label {
  display: none;
}

.driver-profile.is-expanded .info--charge .info--value {
  align-items: center;
  color: #9a9a9a;
  display: flex;
  font-size: 13px;
  gap: .5em;
}

/* kleines Symbol vor „Kostenlose Stornierung …“: Kalender mit Haken, in Grün */
.driver-profile.is-expanded .info--charge .info--value::before {
  background-color: #2ac644;
  content: "";
  flex: 0 0 15px;
  height: 15px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm-2 7h14v11H5V9zm10.3 2.3-4.3 4.3-2.3-2.3-1.4 1.4 3.7 3.7 5.7-5.7-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm-2 7h14v11H5V9zm10.3 2.3-4.3 4.3-2.3-2.3-1.4 1.4 3.7 3.7 5.7-5.7-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 15px;
}

/* Breite Bildschirme: Foto links, Kopf daneben, alle Infos darunter über die volle Kartenbreite (Falk 01.12.2026) */
@media (min-width: 600px) {
  .driver-profile.is-expanded {
    align-items: start;
    column-gap: 1.6rem;
    display: grid;
    grid-template-columns: minmax(150px, 24%) minmax(0, 1fr);
  }

  .driver-profile.is-expanded .driver-profile__image {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
  }

  .driver-profile.is-expanded .driver-profile__data {
    display: contents;
  }

  .driver-profile.is-expanded .driver-profile__header {
    align-self: center;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding-right: 2.5rem; /* Platz für das × */
  }

  .driver-profile.is-expanded .driver-profile__infos {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 1.4rem;
  }
}

/* Schmale Bildschirme: Foto oben über die ganze Breite */
@media (max-width: 599px) {
  .driver-profile.is-expanded {
    flex-direction: column;
    padding: 1.1rem;
  }

  .driver-profile.is-expanded .driver-profile__image {
    max-width: 360px;
    width: 100%;
  }

  .driver-profile.is-expanded .driver-profile__data {
    margin-top: 1.1rem;
    padding: 0;
  }

  .driver-profile.is-expanded .driver-profile__firstname {
    font-size: 26px;
  }

  .driver-profile.is-expanded .expandible-toggle {
    background: rgba(255, 255, 255, .9) !important;
    border-radius: 50%;
    height: 34px;
    right: 1.6rem;
    top: 1.6rem;
    width: 34px;
    z-index: 5;
  }
}

/* Filter über der Fahrerliste (templates/drivers-profiles-head.php), passend zum übrigen Design (Falk 02.12.2026) */
.driver-profiles-head {
  padding: 1rem 2.2rem 1rem 0;
}

.driver-profiles-head .drivers-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.driver-profiles-head .form-control {
  flex: 1 1 0;
  margin: 0;
  min-width: 140px;
  padding: 0;
  width: auto;
}

.driver-profiles-head select,
.driver-profiles-head .rah-dropdown-button {
  background-color: #fff;
  background-position: right 14px center;
  background-size: 9px;
  border: 1px solid #e2e2e2 !important;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  color: #333;
  font-size: 15px;
  height: 42px;
  line-height: 40px;
  padding: 0 2.4em 0 .95em;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.driver-profiles-head select:hover,
.driver-profiles-head .rah-dropdown-button:hover {
  background-color: #fff;
  border-color: #9fe3ac !important;
  color: #333;
}

.driver-profiles-head select:focus,
.driver-profiles-head .rah-dropdown-button:focus {
  background-color: #fff;
  border-color: #2ac644 !important;
  box-shadow: 0 0 0 3px rgba(42, 198, 68, .15);
}

/* gewählter Filter: grün hinterlegt */
.driver-profiles-head select:not(:has(option[value="0"]:checked)),
.driver-profiles-head .rah-dropdown-button.is-active,
.driver-profiles-head .specials-choices.is-open ~ * .rah-dropdown-button {
  background-color: #f1fbf3;
  border-color: #2ac644 !important;
  color: #1f7a33;
}

/* Ausstattung: Auswahl als Pillen */
.driver-profiles-head .specials-choices {
  flex: 0 0 100%;
  padding: .4em 0 0;
}

.driver-profiles-head .choice {
  font-size: 14px;
}

.driver-profiles-head .choice label {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  color: #444;
  line-height: 2.2;
  margin: 0 6px 6px 0;
  padding: 0 .9em;
  transition: border-color .15s, background-color .15s;
}

.driver-profiles-head .choice label:hover {
  border-color: #9fe3ac;
}

.driver-profiles-head .choice input:checked + label {
  background: #f1fbf3;
  border-color: #2ac644;
  color: #1f7a33;
}

.driver-profiles-head .choice label::before {
  border: 1.5px solid #bbb;
  border-radius: 4px;
}

.driver-profiles-head .choice input:checked + label::before {
  border-color: #2ac644;
}

/* Alles zurücksetzen (×) */
.driver-profiles-head__clear {
  font-size: 1.6em;
  top: 1.15rem;
}
