/* Reiter Setting (seit 21.10.2026): Lead eingeben, Setting-Skript sofort starten, alle Settings gebündelt.
   Eigene Datei, nur Klassen mit Präfix se-, damit nichts anderes in der Zentrale betroffen ist. */

.se-seite {
  max-width: 1080px;
}

/* ---------- Start: das Suchfeld ---------- */

.se-start {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 26px;
}

.se-suchzeile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--flaeche-2);
  box-shadow: inset 0 0 0 1.5px var(--linie);
  color: var(--tinte-3);
  cursor: text;
  transition: box-shadow 160ms var(--ease-out), background 160ms var(--ease-out);
}

.se-suchzeile:focus-within {
  background: var(--flaeche);
  box-shadow: inset 0 0 0 2px var(--marke-tief), 0 0 0 4px var(--marke-zart);
  color: var(--marke-tief);
}

.se-feld {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--tinte);
  font: 560 18px/1.3 'Geist', system-ui, sans-serif;
  letter-spacing: -0.01em;
  outline: none;
}

.se-feld::placeholder {
  color: var(--tinte-3);
  font-weight: 450;
}

.se-feld::-webkit-search-cancel-button {
  cursor: pointer;
}

.se-tipp {
  margin: 0 4px;
  color: var(--tinte-3);
  font-size: 13px;
}

.se-tipp[hidden] {
  display: none;
}

.se-treffer {
  display: grid;
  gap: 14px;
}

.se-treffer:empty {
  display: none;
}

.se-gruppe {
  display: grid;
  gap: 6px;
}

.se-gruppe-titel {
  margin: 2px 6px 0;
  color: var(--tinte-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Ein Treffer: Name und Status, darunter Kontakt, rechts was die Zentrale weiß und der Start */
.se-t {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'haupt los'
    'unter los'
    'wissen los';
  align-items: center;
  column-gap: 16px;
  row-gap: 3px;
  width: 100%;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--linie);
  border-radius: 14px;
  background: var(--flaeche);
  color: var(--tinte);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.se-t[aria-selected='true'] {
  border-color: var(--marke-tief);
  background: var(--marke-zart);
}

.se-t:active {
  transform: scale(0.99);
}

.se-t:focus-visible {
  outline: 2px solid var(--marke-tief);
  outline-offset: 2px;
}

.se-t.laedt {
  opacity: 0.6;
  cursor: progress;
}

.se-t-haupt {
  grid-area: haupt;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}

.se-t-haupt strong {
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.se-t-status,
.se-t-quelle {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--flaeche-3);
  color: var(--tinte-2);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.se-t-quelle {
  background: var(--gelb-zart);
  color: oklch(0.42 0.09 70);
}

.se-t-unter {
  grid-area: unter;
  color: var(--tinte-2);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.se-t-wissen {
  grid-area: wissen;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 3px;
  color: var(--tinte-3);
  font-size: 12.5px;
}

.se-t-los {
  grid-area: los;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  background: var(--nacht);
  color: #fff;
  font-size: 13.5px;
  font-weight: 620;
  white-space: nowrap;
}

.se-t-los.weiter {
  background: var(--marke-tief);
}

.se-t:not([aria-selected='true']) .se-t-los {
  background: var(--flaeche-3);
  color: var(--tinte);
}

.se-t:not([aria-selected='true']) .se-t-los.weiter {
  background: var(--marke-zart);
  color: var(--marke-tief);
}

.se-laden {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 6px;
  color: var(--tinte-3);
  font-size: 14px;
}

.se-punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marke);
  animation: se-pulsen 0.9s ease-in-out infinite alternate;
}

@keyframes se-pulsen {
  from {
    opacity: 0.35;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .se-punkt {
    animation: none;
  }
}

.se-hinweis {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 6px;
  color: var(--tinte-2);
  font-size: 13.5px;
}

.se-hinweis svg {
  flex: none;
  color: var(--gelb);
}

.se-leer-treffer {
  margin: 2px 6px;
  color: var(--tinte-2);
  font-size: 14.5px;
}

/* Ohne Close starten */
.se-ohne {
  border-radius: 14px;
  background: var(--flaeche-2);
  box-shadow: inset 0 0 0 1px var(--linie-2);
}

.se-ohne summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--tinte-2);
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
}

.se-ohne summary::-webkit-details-marker {
  display: none;
}

.se-ohne[open] summary {
  color: var(--tinte);
}

.se-ohne-close {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.se-leise {
  margin: 0;
  color: var(--tinte-3);
  font-size: 13px;
}

.se-of-raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.se-of-feld {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tinte-2);
}

.se-of-feld input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
  color: var(--tinte);
  font: 450 15px/1.3 'Geist', system-ui, sans-serif;
}

.se-of-feld input:focus {
  outline: 2px solid var(--marke-tief);
  outline-offset: 0;
  border-color: transparent;
}

.se-of-fuss {
  display: flex;
  justify-content: flex-end;
}

/* ---------- Alle Settings ---------- */

.se-liste-kopf {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.se-liste-titel {
  margin: 0;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.se-filter {
  margin-left: auto;
}

.se-filter .filterleiste {
  margin: 0;
  padding: 2px 0 4px;
}

.se-liste {
  display: grid;
  gap: 22px;
}

.se-tag {
  display: grid;
  gap: 8px;
}

.se-tag-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--tinte-2);
}

.se-tag-kopf span {
  color: var(--tinte-3);
  font-weight: 500;
}

.se-tag-zeilen {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
}

.se-zeile {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  color: var(--tinte);
  text-decoration: none;
  transition: background 140ms var(--ease-out);
}

.se-zeile + .se-zeile {
  box-shadow: inset 0 1px 0 var(--linie-2);
}

.se-zeile:hover {
  background: var(--flaeche-2);
}

.se-zeile:focus-visible {
  outline: 2px solid var(--marke-tief);
  outline-offset: -2px;
}

.se-z-zeit {
  display: grid;
  gap: 1px;
}

.se-z-zeit strong {
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.se-z-zeit small {
  color: var(--tinte-3);
  font-size: 12px;
}

.se-zeile.offen .se-z-zeit small {
  color: var(--marke-tief);
  font-weight: 600;
}

.se-z-haupt {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.se-z-haupt strong {
  font-size: 15px;
  font-weight: 640;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-z-haupt span {
  color: var(--tinte-2);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-z-stand {
  display: grid;
  gap: 5px;
  justify-items: start;
  min-width: 0;
}

.se-z-ergebnis {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--tinte-2);
}

.se-z-ergebnis[data-ton='laeuft'] {
  color: var(--marke-tief);
}

.se-z-ergebnis[data-ton='gut'] {
  color: oklch(0.42 0.11 155);
}

.se-z-ergebnis[data-ton='warnung'] {
  color: oklch(0.47 0.11 65);
}

.se-z-ergebnis[data-ton='schlecht'] {
  color: var(--rot);
}

.se-gs {
  display: inline-flex;
  gap: 3px;
}

.se-gs-k {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--flaeche-3);
  color: var(--tinte-3);
  font-size: 11px;
  font-weight: 700;
}

.se-gs-k[data-wert='ja'] {
  background: var(--gruen-zart);
  color: oklch(0.42 0.11 155);
}

.se-gs-k[data-wert='nein'] {
  background: var(--rot-zart);
  color: var(--rot);
}

.se-z-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--tinte-3);
}

.se-beratung {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--marke-zart);
  color: var(--marke-tief);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.se-close {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--flaeche-3);
  color: var(--tinte-3);
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.se-close.ok {
  background: var(--gruen-zart);
  color: oklch(0.42 0.11 155);
}

.se-close.fehler {
  background: var(--rot-zart);
  color: var(--rot);
}

.se-leer {
  border-radius: var(--radius-l);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
}

/* ---------- Telefon ---------- */

@media (max-width: 899px) {
  .se-start {
    padding: 10px;
    margin-bottom: 20px;
  }

  .se-suchzeile {
    min-height: 54px;
    padding: 0 14px;
  }

  .se-feld {
    font-size: 17px;
  }

  .se-t {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'haupt'
      'unter'
      'wissen'
      'los';
    padding: 12px 14px;
  }

  .se-t-los {
    justify-self: stretch;
    justify-content: center;
    margin-top: 8px;
  }

  .se-of-raster {
    grid-template-columns: minmax(0, 1fr);
  }

  .se-of-fuss .knopf {
    flex: 1;
  }

  .se-filter {
    margin-left: 0;
    width: 100%;
  }

  .se-filter .filterleiste {
    margin: 0 calc(-1 * var(--seite));
    padding: 2px var(--seite) 4px;
  }

  .se-zeile {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas:
      'zeit haupt chips'
      'zeit stand chips';
    gap: 6px 12px;
    padding: 12px 12px 12px 14px;
  }

  .se-z-zeit {
    grid-area: zeit;
    align-self: start;
  }

  .se-z-haupt {
    grid-area: haupt;
  }

  .se-z-stand {
    grid-area: stand;
  }

  .se-z-chips {
    grid-area: chips;
  }

  .se-z-chips .gp-urteil-chip,
  .se-z-chips .se-close {
    display: none;
  }
}
