/* ================================================
   FlohCheck — Stylesheet
   Mobile-First, Dark Theme, BEM-Namenskonvention
   ================================================ */

/* --- CSS-Variablen --- */
:root {
  --farbe-gruen:        #2e7d32;
  --farbe-gruen-hell:   #4caf50;
  --farbe-orange:       #e65100;
  --farbe-orange-hell:  #ff6d00;
  --farbe-hintergrund:  #121212;
  --farbe-flaeche:      #1e1e1e;
  --farbe-flaeche-2:    #2a2a2a;
  --farbe-rand:         #333333;
  --farbe-text:         #e0e0e0;
  --farbe-text-gedimmt: #888888;
  --farbe-weiss:        #ffffff;
  --farbe-scrollbar-spur: rgba(255, 255, 255, 0.05);
  --farbe-scrollbar-daumen: #3f9b45;
  --farbe-scrollbar-daumen-hover: #58b95e;
  --schrift:            -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --schrift-marke:      'Trebuchet MS', 'Avenir Next', 'Segoe UI Semibold', 'Segoe UI', sans-serif;
  --radius:             12px;
  --radius-klein:       8px;
  --schatten:           0 2px 8px rgba(0, 0, 0, 0.5);
}

/* --- Reset & Basis --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--schrift);
  background-color: var(--farbe-hintergrund);
  background-image:
    radial-gradient(circle at top right, rgba(46, 125, 50, 0.16), transparent 34%),
    radial-gradient(circle at top left, rgba(230, 81, 0, 0.12), transparent 28%);
  color: var(--farbe-text);
  min-height: 100dvh;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 80px; /* Platz für untere Navigation */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.screen-detail::-webkit-scrollbar,
.bereich__blatt::-webkit-scrollbar,
.detail__blatt::-webkit-scrollbar,
.formular__blatt::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.screen-detail::-webkit-scrollbar-track,
.bereich__blatt::-webkit-scrollbar-track,
.detail__blatt::-webkit-scrollbar-track,
.formular__blatt::-webkit-scrollbar-track {
  background: var(--farbe-scrollbar-spur);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.screen-detail::-webkit-scrollbar-thumb,
.bereich__blatt::-webkit-scrollbar-thumb,
.detail__blatt::-webkit-scrollbar-thumb,
.formular__blatt::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--farbe-gruen-hell) 0%, var(--farbe-gruen) 100%);
  border-radius: 999px;
  border: 2px solid rgba(18, 18, 18, 0.96);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.screen-detail::-webkit-scrollbar-thumb:hover,
.bereich__blatt::-webkit-scrollbar-thumb:hover,
.detail__blatt::-webkit-scrollbar-thumb:hover,
.formular__blatt::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--farbe-scrollbar-daumen-hover) 0%, var(--farbe-gruen-hell) 100%);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
.screen-detail::-webkit-scrollbar-corner,
.bereich__blatt::-webkit-scrollbar-corner,
.detail__blatt::-webkit-scrollbar-corner,
.formular__blatt::-webkit-scrollbar-corner {
  background: transparent;
}

/* --- Untere Navigation --- */
.navigation {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background-color: var(--farbe-flaeche);
  border-top: 1px solid var(--farbe-rand);
  display: flex;
  z-index: 100;
}

.navigation__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 2px 7px;
  background: none;
  border: none;
  color: var(--farbe-text-gedimmt);
  font-family: var(--schrift);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.15s;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.navigation__tab--aktiv {
  color: var(--farbe-gruen-hell);
}

.navigation__tab svg {
  width: 20px;
  height: 20px;
}

/* --- App Header --- */
.kopf {
  background-color: rgba(18, 18, 18, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--farbe-rand);
  padding: 16px 68px 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.kopf__logo {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.kopf__titel {
  display: inline-flex;
  align-items: baseline;
  gap: 0.015em;
  font-family: var(--schrift-marke);
  font-size: clamp(1.26rem, 1.1rem + 0.68vw, 1.5rem);
  font-weight: 700;
  color: var(--farbe-weiss);
  letter-spacing: -0.025em;
  line-height: 0.95;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.kopf__titel-akzent {
  color: #79ef7f;
  font-style: italic;
  text-shadow: 0 0 18px rgba(121, 239, 127, 0.28);
}

.kopf__untertitel {
  font-size: 12px;
  color: var(--farbe-text-gedimmt);
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Screens (Seiteninhalt) --- */
.screen {
  display: none;
  padding: 16px;
}

.screen--aktiv {
  display: block;
}

/* --- Suchfeld --- */
.suche {
  margin-bottom: 14px;
}

#suche-slot-home:empty,
#suche-slot-datenbank:empty {
  display: none;
}

#suche-slot-datenbank .suche {
  padding: 0;
  margin-bottom: 0;
}

.suche__wrapper {
  position: relative;
}

.suche__feld {
  width: 100%;
  background-color: var(--farbe-flaeche);
  border: 1px solid var(--farbe-rand);
  border-radius: 12px;
  color: var(--farbe-text);
  font-family: var(--schrift);
  font-size: 0.94rem;
  line-height: 1.2;
  min-height: 41px;
  padding: 8px 40px 8px 42px;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.suche__feld::placeholder {
  color: var(--farbe-text-gedimmt);
}

.suche__feld::-webkit-search-decoration,
.suche__feld::-webkit-search-cancel-button,
.suche__feld::-webkit-search-results-button,
.suche__feld::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.suche__feld:focus {
  border-color: var(--farbe-gruen-hell);
  background-color: rgba(34, 34, 34, 0.96);
}

.suche__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--farbe-text-gedimmt);
  pointer-events: none;
  width: 17px;
  height: 17px;
}

.suche__loeschen {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--farbe-text-gedimmt);
  cursor: pointer;
  padding: 4px;
  display: none;
  line-height: 0;
}

.suche__loeschen--sichtbar {
  display: block;
}

.abschnitt__kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.abschnitt__kopf--treffer {
  margin-top: 8px;
}

.abschnitt__nebeninfo,
.ergebnis__meta {
  font-size: 12px;
  color: var(--farbe-text-gedimmt);
  line-height: 1.4;
}

/* --- Ergebnisliste --- */
.ergebnis-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ergebnis-liste__eintrag {
  list-style: none;
}

.ergebnis-liste__leer {
  text-align: center;
  color: var(--farbe-text-gedimmt);
  padding: 40px 16px;
  font-size: 15px;
}

/* --- Artikel-Karte (Listenansicht) --- */
.artikel__karte {
  background-color: var(--farbe-flaeche);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}

.artikel__karte:active {
  background-color: var(--farbe-flaeche-2);
}

.artikel__karte--bereich {
  align-items: center;
}

.artikel__karte--bereich::after {
  content: '';
  width: 44px;
  flex-shrink: 0;
}

.artikel__karte--bereich .artikel__karte-links {
  display: flex;
  align-items: center;
  justify-content: center;
}

.artikel__karte--bereich .artikel__name {
  width: 100%;
  margin-bottom: 0;
  text-align: center;
}

.artikel__karte-links {
  flex: 1;
  min-width: 0;
}

.artikel__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--farbe-weiss);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  margin-bottom: 3px;
}

.artikel__kategorie-badge {
  font-size: 10px;
  color: var(--farbe-text-gedimmt);
  background-color: var(--farbe-flaeche-2);
  padding: 2px 7px;
  border-radius: 20px;
  display: inline-block;
}

.artikel__karte-rechts {
  text-align: right;
  flex-shrink: 0;
}

.artikel__max-preis {
  font-size: 18px;
  font-weight: 700;
  color: var(--farbe-gruen-hell);
}

.artikel__max-preis-label {
  font-size: 10px;
  color: var(--farbe-text-gedimmt);
  display: block;
}

.treffergruppe {
  background-color: rgba(30, 30, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--schatten);
}

.treffergruppe__kopf {
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  padding: 14px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.treffergruppe__bild,
.treffergruppe__bild--emoji {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background-color: var(--farbe-flaeche-2);
}

.treffergruppe__bild--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  border: 1px solid var(--farbe-rand);
}

.treffergruppe__inhalt {
  min-width: 0;
}

.treffergruppe__badge-zeile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.treffergruppe__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  border-radius: 999px;
  padding: 4px 8px;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--farbe-text);
}

.treffergruppe__badge--gruen {
  background-color: rgba(46, 125, 50, 0.14);
  color: var(--farbe-gruen-hell);
}

.treffergruppe__titelzeile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.treffergruppe__titel {
  font-size: 20px;
  line-height: 1.1;
  color: var(--farbe-weiss);
  letter-spacing: 0;
}

.treffergruppe__preis {
  flex-shrink: 0;
  text-align: right;
}

.treffergruppe__preis-wert {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--farbe-gruen-hell);
}

.treffergruppe__preis-label {
  display: block;
  font-size: 10px;
  color: var(--farbe-text-gedimmt);
}

.treffergruppe__untertitel {
  font-size: 13px;
  color: var(--farbe-text);
  line-height: 1.45;
  margin-bottom: 8px;
}

.treffergruppe__info {
  font-size: 12px;
  line-height: 1.45;
  color: var(--farbe-text-gedimmt);
}

.treffergruppe__unterliste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px;
}

.treffergruppe__unterliste--scrollbar,
.zuletzt-rolle {
  overflow-x: auto;
}

.treffergruppe__unterliste--scrollbar {
  flex-direction: row;
  padding-bottom: 12px;
}

.treffergruppe__unterliste--scrollbar::-webkit-scrollbar,
.zuletzt-rolle::-webkit-scrollbar {
  display: none;
}

.treffergruppe__modell,
.treffergruppe__artikel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background-color: var(--farbe-flaeche-2);
  border-radius: 14px;
  color: inherit;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.treffergruppe__modell {
  min-width: 220px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
}

.treffergruppe__modellbild,
.treffergruppe__modellbild--emoji {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.04);
}

.treffergruppe__modellbild--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.treffergruppe__modelltitel,
.treffergruppe__artikeltitel {
  font-size: 14px;
  font-weight: 700;
  color: var(--farbe-weiss);
  line-height: 1.3;
}

.treffergruppe__modellpreis,
.treffergruppe__artikelpreis {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--farbe-gruen-hell);
  margin-top: 4px;
}

.treffergruppe__modellinfo,
.treffergruppe__artikelinfo {
  display: block;
  font-size: 12px;
  color: var(--farbe-text-gedimmt);
  line-height: 1.45;
  margin-top: 4px;
}

.treffergruppe__leer {
  font-size: 12px;
  color: var(--farbe-text-gedimmt);
  padding: 2px 2px 0;
}

/* --- Artikel-Detail (eigene Vollansicht) --- */
.screen-detail {
  position: fixed;
  inset: 0;
  padding: 0 0 calc(78px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at top right, rgba(46, 125, 50, 0.18), transparent 36%),
    linear-gradient(180deg, #0b0d0f 0%, #111417 100%);
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
}

.screen-detail.screen--aktiv {
  display: block;
}

.bereich-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 190;
  align-items: flex-end;
  justify-content: center;
}

.bereich-overlay--offen {
  display: flex;
}

.bereich__blatt {
  background-color: var(--farbe-flaeche);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 78dvh;
  overflow-y: auto;
  padding: 0 0 22px;
  box-shadow: var(--schatten);
  animation: hochschieben 0.22s ease-out;
  position: relative;
}

.bereich__kopf {
  padding: 6px 14px 10px;
  border-bottom: 1px solid var(--farbe-rand);
}

.bereich__kopfzeile {
  margin-bottom: 8px;
}

.bereich__pfad {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.detail__zurueck {
  margin: 0 16px 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--farbe-text-gedimmt);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.16s ease, transform 0.16s ease;
}

.overlay-zurueck__icon {
  font-size: 15px;
  line-height: 1;
  transform: translateX(-1px);
}

.overlay-zurueck__text {
  font-size: inherit;
  letter-spacing: 0.01em;
}

.detail__zurueck:hover {
  color: var(--farbe-weiss);
}

.detail__zurueck:active {
  transform: translateX(-1px);
}

.detail__zurueck:focus-visible {
  outline: 2px solid rgba(118, 255, 123, 0.88);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .detail__zurueck {
    margin: 0 16px 8px;
  }
}

.bereich__pfad-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.bereich__pfad-chip--link {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--farbe-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.bereich__pfad-chip--link:hover {
  border-color: rgba(76, 175, 80, 0.24);
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--farbe-weiss);
}

.bereich__pfad-chip--link:active {
  background-color: rgba(76, 175, 80, 0.16);
}

.bereich__pfad-chip--aktiv {
  border: 1px solid rgba(76, 175, 80, 0.24);
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.18) 0%, rgba(46, 125, 50, 0.08) 100%);
  color: var(--farbe-gruen-hell);
}

.bereich__kategorie {
  font-size: 10px;
  color: var(--farbe-gruen-hell);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.bereich__titel {
  font-size: 18px;
  line-height: 1.1;
  color: var(--farbe-weiss);
  margin-bottom: 6px;
}

.bereich__hinweis {
  font-size: 11.5px;
  line-height: 1.38;
  color: var(--farbe-text);
}

.bereich__liste {
  list-style: none;
  margin: 0;
  padding: 10px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bereich__listenpunkt {
  list-style: none;
}

.bereich__eintrag {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(19, 19, 19, 0.96) 100%),
    var(--farbe-flaeche-2);
  border-radius: 13px;
  color: inherit;
  padding: 8px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bereich__eintrag:active {
  background-color: rgba(255, 255, 255, 0.06);
}

.bereich__bild {
  width: 50px;
  height: 50px;
  border-radius: 11px;
  object-fit: cover;
  background-color: var(--farbe-flaeche);
}

[data-zoom-src] {
  cursor: zoom-in;
}

[data-zoom-src]:active {
  opacity: 0.86;
}

.bereich__bild--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--farbe-rand);
}

.bereich__eintrag-inhalt {
  min-width: 0;
}

.bereich__eintrag-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.bereich__eintrag-titel {
  font-size: 12.5px;
  line-height: 1.28;
  color: var(--farbe-weiss);
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bereich__eintrag-preis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(76, 175, 80, 0.18);
  background-color: rgba(76, 175, 80, 0.1);
  font-size: 10px;
  font-weight: 700;
  color: var(--farbe-gruen-hell);
  line-height: 1.15;
  white-space: nowrap;
  flex-shrink: 0;
}

.bereich__eintrag-info {
  font-size: 10.8px;
  line-height: 1.35;
  color: var(--farbe-text-gedimmt);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail__blatt {
  background:
    radial-gradient(circle at top right, rgba(46, 125, 50, 0.16), transparent 34%),
    linear-gradient(180deg, #0f1112 0%, #15181a 100%);
  border-radius: 0;
  width: 100%;
  max-width: 560px;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  overflow-y: auto;
  padding: 0 0 26px;
  box-shadow: none;
  animation: hochschieben 0.22s ease-out;
  position: relative;
}

@keyframes hochschieben {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.detail__schliessen {
  width: 40px;
  height: 40px;
  background: rgba(17, 18, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  color: var(--farbe-text);
}

.detail__schliessen-icon {
  width: 18px;
  height: 18px;
}

/* --- Kopfbereich: Bild links + Text rechts --- */
.detail__kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 14px;
}

.detail__bild-container {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--farbe-flaeche-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  appearance: none;
}

.detail__bild {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail__bild-emoji {
  margin: 0;
  height: 76px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--farbe-text);
  border: 1px solid var(--farbe-rand);
  display: flex;
  justify-content: center;
  gap: 0;
  font-size: 32px;
}

.detail__kopf-text {
  flex: 1;
  min-width: 0;
}

.detail__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--farbe-weiss);
  line-height: 1.25;
  word-break: break-word;
}

.detail__untertitel {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.38;
  color: var(--farbe-text-gedimmt);
}

.detail__zahlen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 18px 16px;
}

.detail__spotlight {
  margin: 0 18px 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(76, 175, 80, 0.18);
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.14) 0%, rgba(30, 30, 30, 0.96) 100%);
}

.detail__spotlight-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--farbe-gruen-hell);
}

.detail__spotlight-text {
  font-size: 12px;
  line-height: 1.48;
  color: var(--farbe-weiss);
  overflow-wrap: anywhere;
}

.detail__hinweise-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--farbe-weiss);
  font-family: inherit;
  font-size: 10.2px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.detail__hinweise-toggle--aktiv {
  border-color: rgba(76, 175, 80, 0.24);
  background-color: rgba(76, 175, 80, 0.12);
  color: var(--farbe-gruen-hell);
}

.detail__hinweise-liste {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 82%);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
}

.detail__hinweiskarte {
  display: grid;
  grid-template-rows: auto auto;
  gap: 9px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--farbe-weiss);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  appearance: none;
}

.detail__hinweisbild {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  background-color: var(--farbe-flaeche);
}

.detail__hinweistext {
  min-width: 0;
}

.detail__hinweislabel {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--farbe-text-gedimmt);
}

.detail__hinweistitel {
  margin-top: 7px;
  font-size: 11.2px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--farbe-weiss);
}

.detail__hinweisdetail {
  margin-top: 4px;
  font-size: 10.4px;
  line-height: 1.4;
  color: var(--farbe-text);
}

.detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 16px;
}

.detail__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  appearance: none;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--farbe-weiss);
  text-decoration: none;
  font-family: inherit;
  font-size: 10.2px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.detail__link--preis {
  border-color: rgba(76, 175, 80, 0.22);
  background-color: rgba(76, 175, 80, 0.12);
  color: var(--farbe-gruen-hell);
}

.detail__link--bild {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 560px) {
  .detail__blatt {
    max-width: 100%;
  }

  .detail__kopf {
    padding: 10px 16px 12px;
  }

  .detail__hinweise-liste {
    grid-auto-columns: minmax(190px, 88%);
  }
}

.bild-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background-color: rgba(0, 0, 0, 0.92);
}

.bild-lightbox__inner {
  position: relative;
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bild-pager {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bild-pager__punkt {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgba(16, 18, 20, 0.76);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.78),
    0 4px 10px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.bild-pager__punkt--aktiv {
  background-color: #a7c96c;
  box-shadow:
    0 0 0 2px rgba(16, 18, 20, 0.78),
    0 0 0 4px rgba(255, 255, 255, 0.7),
    0 5px 12px rgba(0, 0, 0, 0.34);
  transform: scale(1.14);
}

.detail-bild-dots {
  position: absolute;
  left: 50%;
  top: 26px;
  z-index: 3;
  transform: translateX(-50%);
}

.bild-lightbox__bild {
  width: 100%;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.04);
}

.bild-lightbox__titel {
  color: var(--farbe-weiss);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.bild-lightbox__dots {
  position: absolute;
  top: 8px;
  left: 50%;
  min-height: 11px;
  z-index: 2;
  transform: translateX(-50%);
}

.bild-lightbox__schliessen {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--farbe-weiss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
}

.bild-lightbox__schliessen svg,
.hinweise-popup__schliessen svg {
  width: 18px;
  height: 18px;
}

.bild-lightbox__nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background-color: rgba(12, 12, 12, 0.72);
  color: var(--farbe-weiss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
}

.bild-lightbox__nav--zurueck {
  left: 18px;
}

.bild-lightbox__nav--weiter {
  right: 18px;
}

.bild-lightbox__nav svg {
  width: 21px;
  height: 21px;
}

.hinweise-popup {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.78);
}

.hinweise-popup__blatt {
  position: relative;
  width: min(960px, 100%);
  max-height: min(78dvh, 720px);
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 24, 25, 0.98), rgba(12, 13, 14, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.hinweise-popup__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-right: 46px;
  margin-bottom: 12px;
}

.hinweise-popup__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: rgba(76, 175, 80, 0.16);
  color: var(--farbe-gruen-hell);
  font-size: 9.4px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hinweise-popup__titel {
  font-size: 14px;
  font-weight: 700;
  color: var(--farbe-weiss);
}

.hinweise-popup__liste {
  grid-auto-columns: minmax(250px, 42%);
  padding-bottom: 10px;
}

.hinweise-popup__schliessen {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--farbe-weiss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
}

@media (max-width: 640px) {
  .hinweise-popup {
    padding: 12px;
  }

  .hinweise-popup__blatt {
    width: 100%;
    max-height: min(82dvh, 760px);
    padding: 16px 14px 14px;
    border-radius: 20px;
  }

  .hinweise-popup__liste {
    grid-auto-columns: minmax(220px, 86%);
  }
}

/* --- Eigene Artikel Screen --- */
.eigene__kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.eigene__ueberschrift {
  font-size: 18px;
  font-weight: 700;
  color: var(--farbe-weiss);
}

.btn--hinzufuegen {
  background-color: var(--farbe-gruen);
  color: var(--farbe-weiss);
  border: none;
  border-radius: var(--radius-klein);
  padding: 10px 16px;
  font-family: var(--schrift);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}

.btn--hinzufuegen:active {
  background-color: var(--farbe-gruen-hell);
}

/* --- Formular (eigene Artikel hinzufügen) --- */
.formular-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}

.formular-overlay--offen {
  display: flex;
}

.formular__blatt {
  background-color: var(--farbe-flaeche);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 600px;
  padding: 24px 20px 40px;
  box-shadow: var(--schatten);
  animation: hochschieben 0.25s ease-out;
  max-height: 95dvh;
  overflow-y: auto;
}

.formular__titel {
  font-size: 18px;
  font-weight: 700;
  color: var(--farbe-weiss);
  margin-bottom: 20px;
}

.formular__gruppe {
  margin-bottom: 16px;
}

.formular__label {
  display: block;
  font-size: 13px;
  color: var(--farbe-text-gedimmt);
  margin-bottom: 6px;
}

.formular__eingabe,
.formular__auswahl {
  width: 100%;
  background-color: var(--farbe-flaeche-2);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius-klein);
  color: var(--farbe-text);
  font-family: var(--schrift);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}

.formular__eingabe:focus,
.formular__auswahl:focus {
  border-color: var(--farbe-gruen-hell);
}

.formular__auswahl option {
  background-color: var(--farbe-flaeche-2);
}

.formular__reihe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.formular__aktionen {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn--abbrechen {
  flex: 1;
  background-color: var(--farbe-flaeche-2);
  color: var(--farbe-text);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius-klein);
  padding: 14px;
  font-family: var(--schrift);
  font-size: 15px;
  cursor: pointer;
}

.btn--speichern {
  flex: 2;
  background-color: var(--farbe-gruen);
  color: var(--farbe-weiss);
  border: none;
  border-radius: var(--radius-klein);
  padding: 14px;
  font-family: var(--schrift);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn--speichern:active { background-color: var(--farbe-gruen-hell); }

.check-overlay__blatt {
  padding-bottom: 32px;
}

.check-overlay__artikel {
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--farbe-weiss);
  margin-bottom: 8px;
}

.check-overlay__hinweis {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--farbe-text-gedimmt);
  margin-bottom: 18px;
}

.check-overlay__vorschau {
  border: 1px solid rgba(76, 175, 80, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.14) 0%, rgba(18, 18, 18, 0.96) 100%);
  padding: 14px 15px;
  margin-top: 4px;
}

.check-overlay__vorschau-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--farbe-gruen-hell);
  margin-bottom: 8px;
}

.check-overlay__vorschau-wert {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--farbe-weiss);
}

.check-overlay__vorschau-wert--plus {
  color: var(--farbe-gruen-hell);
}

.check-overlay__vorschau-wert--minus {
  color: #ff8a65;
}

.check-overlay__vorschau-wert--neutral {
  color: #ffd166;
}

.check-overlay__untertext {
  margin-top: 8px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--farbe-text);
}

/* Eigene Artikel — Löschen-Button auf Karte */
.artikel__loeschen {
  background: none;
  border: none;
  color: var(--farbe-text-gedimmt);
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}

.artikel__loeschen:active { color: #ef5350; }

/* --- Einstellungen Screen --- */
.einstellungen__liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.einstellungen__eintrag {
  background-color: var(--farbe-flaeche);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.einstellungen__info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--farbe-weiss);
  margin-bottom: 4px;
}

.einstellungen__info p {
  font-size: 12px;
  color: var(--farbe-text-gedimmt);
}

.btn--aktion {
  background-color: var(--farbe-flaeche-2);
  color: var(--farbe-text);
  border: 1px solid var(--farbe-rand);
  border-radius: var(--radius-klein);
  padding: 8px 14px;
  font-family: var(--schrift);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn--gefahr {
  background-color: rgba(183, 28, 28, 0.2);
  border-color: #b71c1c;
  color: #ef5350;
}

/* --- Abschnitt-Überschriften --- */
.abschnitt__ueberschrift {
  font-size: 12px;
  font-weight: 600;
  color: var(--farbe-text-gedimmt);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  margin-top: 4px;
}

/* --- Toast-Benachrichtigung --- */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--farbe-flaeche-2);
  border: 1px solid var(--farbe-rand);
  color: var(--farbe-text);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 300;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}

.toast--sichtbar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Screenreader-only Hilfsklasse --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* --- A-Z Schnellfilter --- */
.az-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 6px;
  padding: 4px 16px 10px;
}

.az-filter__btn {
  min-width: 0;
  width: 100%;
  height: 34px;
  border-radius: var(--radius-klein);
  border: 1px solid var(--farbe-rand);
  background: var(--farbe-flaeche-2);
  color: var(--farbe-text);
  font-family: var(--schrift);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.az-filter__btn:active {
  opacity: 0.7;
}

.az-filter__btn--aktiv {
  background: var(--farbe-gruen);
  color: var(--farbe-weiss);
  border-color: var(--farbe-gruen);
}

/* --- Artikel-Thumbnail (in Karte) --- */
.artikel__thumbnail {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-klein);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--farbe-flaeche-2);
}

.artikel__thumbnail--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background-color: var(--farbe-flaeche-2);
  border: 1px solid var(--farbe-rand);
}

/* --- Responsive: Tablet+ --- */
@media (min-width: 768px) {
  .detail__name {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .treffergruppe__kopf {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .treffergruppe__bild,
  .treffergruppe__bild--emoji {
    width: 58px;
    height: 58px;
  }

  .treffergruppe__titelzeile {
    flex-direction: column;
    gap: 6px;
  }

  .treffergruppe__preis {
    text-align: left;
  }

  .detail__kopf {
    align-items: flex-start;
  }

  .detail__bild-container,
  .detail__bild-emoji {
    width: 76px;
    height: 76px;
  }

}

/* ================================================
   REDESIGN v2.61 — Neue Komponenten
   ================================================ */

/* --- Header: Settings-Shortcut oben rechts --- */
.kopf {
  position: relative;
}

.kopf__settings {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--farbe-flaeche);
  border: 1px solid var(--farbe-rand);
  border-radius: 50%;
  color: var(--farbe-text);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.kopf__settings:hover {
  background: var(--farbe-flaeche-2);
  transform: rotate(30deg);
}
.kopf__settings svg {
  width: 18px;
  height: 18px;
}

/* --- Suche: Barcode-Icon rechts (visuell) --- */
.suche__barcode {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--farbe-text-gedimmt);
  pointer-events: none;
  opacity: 0.7;
}

/* --- Startseite: Sektions-Header --- */
.startseite-sektion {
  padding: 4px 0 0;
  margin-top: 18px;
}
.startseite-sektion__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.startseite-sektion__titel {
  font-size: 1rem;
  font-weight: 800;
  color: var(--farbe-weiss);
  letter-spacing: 0.01em;
}
.startseite-sektion__link {
  font-size: 0.78rem;
  color: var(--farbe-gruen-hell);
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
}
.startseite-sektion__link svg {
  width: 12px;
  height: 12px;
}

/* --- Kategorien-Grid --- */
.kategorien-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.kategorie-kachel {
  min-height: 86px;
  background:
    linear-gradient(180deg, rgba(34, 34, 34, 0.96), rgba(27, 27, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 9px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--farbe-text);
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.1s, box-shadow 0.16s;
  font-family: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
}
.kategorie-kachel--bild {
  position: relative;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 18px;
  isolation: isolate;
}
.kategorie-kachel--bild::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(8, 12, 18, 0.94),
    inset 0 0 0 3px rgba(255, 255, 255, 0.018),
    inset 0 -18px 28px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  z-index: 2;
}
.kategorie-kachel:hover,
.kategorie-kachel:focus-visible {
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.98), rgba(29, 29, 29, 1));
  border-color: rgba(115, 115, 115, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 20px rgba(0, 0, 0, 0.2);
  outline: none;
}
.kategorie-kachel--bild:hover,
.kategorie-kachel--bild:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.kategorie-kachel:active {
  transform: translateY(1px);
}
.kategorie-kachel__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #0d1218;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}
.kategorie-kachel--bild:hover .kategorie-kachel__bild,
.kategorie-kachel--bild:focus-visible .kategorie-kachel__bild {
  /* Reines Leuchten, kein Zoom. */
  filter: saturate(1.08) brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(127, 214, 163, 0.28),
    0 0 18px rgba(46, 125, 50, 0.45),
    0 0 32px rgba(46, 125, 50, 0.32),
    0 16px 30px rgba(0, 0, 0, 0.36);
}
.kategorie-kachel--bild:hover,
.kategorie-kachel--bild:focus-visible {
  box-shadow:
    0 0 0 1px rgba(127, 214, 163, 0.32),
    0 0 22px rgba(46, 125, 50, 0.40);
}
.kategorie-kachel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  font-size: 1.42rem;
  line-height: 1;
  background: none;
  box-shadow: none;
  color: rgba(235, 235, 235, 0.92);
}
.kategorie-kachel__icon img,
.kategorie-kachel__icon svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.kategorie-kachel__icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kategorie-kachel__name {
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.12;
  color: var(--farbe-weiss);
  letter-spacing: 0;
  width: 100%;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leerer-bereich {
  border: 1px solid var(--farbe-rand);
  background: var(--farbe-flaeche);
  border-radius: 14px;
  padding: 18px 16px;
}
.leerer-bereich__titel {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--farbe-weiss);
  margin-bottom: 6px;
}
.leerer-bereich__text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--farbe-text-gedimmt);
}

/* --- Zuletzt-angesehen: Horizontaler Scroller --- */
.zuletzt-rolle {
  display: flex;
  gap: 10px;
  padding: 2px 0 4px;
  margin: 0;
  scroll-snap-type: x mandatory;
}

.zuletzt-karte {
  flex: 0 0 110px;
  background: var(--farbe-flaeche);
  border: 1px solid var(--farbe-rand);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  scroll-snap-align: start;
  font-family: inherit;
  color: var(--farbe-text);
  text-align: left;
  transition: border-color 0.15s, transform 0.1s;
}
.zuletzt-karte:hover { border-color: var(--farbe-gruen); }
.zuletzt-karte:active { transform: scale(0.97); }
.zuletzt-karte__bild {
  width: 100%;
  height: 70px;
  border-radius: 8px;
  background: var(--farbe-flaeche-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 6px;
}
.zuletzt-karte__bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.zuletzt-karte__bild--emoji { font-size: 1.8rem; }
.zuletzt-karte__name {
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.zuletzt-karte__preis {
  font-size: 0.7rem;
  color: var(--farbe-text-gedimmt);
}

.favoriten-karte {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(20, 22, 25, 0.96) 0%, rgba(13, 15, 18, 0.96) 100%);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  -webkit-tap-highlight-color: transparent;
}

.favoriten-karte:active {
  transform: scale(0.99);
}

.favoriten-karte__bild {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(33, 37, 42, 0.98) 0%, rgba(15, 17, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.favoriten-karte__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favoriten-karte__bild--emoji {
  font-size: 1.8rem;
}

.favoriten-karte__inhalt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.favoriten-karte__name {
  font-size: 0.98rem;
  line-height: 1.32;
  font-weight: 700;
  color: var(--farbe-weiss);
}

.favoriten-karte__preis {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--farbe-gruen-hell);
}

.checkliste-karte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: stretch;
}

.checkliste-karte__haupt {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(20, 22, 25, 0.96) 0%, rgba(13, 15, 18, 0.96) 100%);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  -webkit-tap-highlight-color: transparent;
}

.checkliste-karte__haupt:active {
  transform: scale(0.99);
}

.checkliste-karte__bild {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(33, 37, 42, 0.98) 0%, rgba(15, 17, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkliste-karte__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkliste-karte__bild--emoji {
  font-size: 1.8rem;
}

.checkliste-karte__inhalt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkliste-karte__kopfzeile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.checkliste-karte__name {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.32;
  font-weight: 700;
  color: var(--farbe-weiss);
}

.checkliste-karte__gewinn {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkliste-karte__gewinn--plus {
  color: var(--farbe-gruen-hell);
  background-color: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.18);
}

.checkliste-karte__gewinn--minus {
  color: #ff8a65;
  background-color: rgba(255, 138, 101, 0.12);
  border-color: rgba(255, 138, 101, 0.18);
}

.checkliste-karte__gewinn--neutral {
  color: #ffd166;
  background-color: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.18);
}

.checkliste-karte__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.checkliste-karte__badge,
.checkliste-karte__detail {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.checkliste-karte__badge {
  font-weight: 700;
  color: var(--farbe-weiss);
  background-color: rgba(255, 255, 255, 0.08);
}

.checkliste-karte__detail {
  color: var(--farbe-text-gedimmt);
  background-color: rgba(255, 255, 255, 0.04);
}

.checkliste-karte__loeschen {
  width: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--farbe-text-gedimmt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.checkliste-karte__loeschen:active {
  color: #ff8a65;
  background: rgba(255, 138, 101, 0.08);
}

.checkliste-karte__loeschen svg {
  width: 18px;
  height: 18px;
}

/* --- Schnellzugriff-Tiles --- */
.schnellzugriff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.schnell-kachel {
  background: var(--farbe-flaeche);
  border: 1px solid var(--farbe-rand);
  border-radius: 14px;
  padding: 14px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--farbe-text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.schnell-kachel:hover,
.schnell-kachel:focus-visible {
  background: var(--farbe-flaeche-2);
  border-color: var(--farbe-gruen);
  outline: none;
}
.schnell-kachel:active { transform: scale(0.96); }
.schnell-kachel__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(46, 125, 50, 0.18);
  color: var(--farbe-gruen-hell);
}
.schnell-kachel__icon svg { width: 20px; height: 20px; }
.schnell-kachel__name {
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
}

.detail__blatt {
  background:
    radial-gradient(circle at top right, rgba(60, 148, 85, 0.22), transparent 28%),
    linear-gradient(180deg, #090b0d 0%, #0e1013 44%, #111418 100%);
  width: 100%;
  max-width: 600px;
  min-height: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
  box-shadow: none;
  animation: none;
}

.detail__kopfleiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 14px;
}

.detail__kopfaktionen {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail__zurueck,
.detail__favorit,
.detail__schliessen {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(24, 27, 31, 0.96) 0%, rgba(12, 14, 17, 0.96) 100%);
  color: rgba(247, 248, 250, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.detail__favorit,
.detail__schliessen {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
}

.detail__zurueck:hover,
.detail__favorit:hover,
.detail__schliessen:hover {
  border-color: rgba(118, 255, 123, 0.22);
  color: var(--farbe-weiss);
}

.detail__zurueck:active,
.detail__favorit:active,
.detail__schliessen:active {
  transform: translateY(1px) scale(0.98);
}

.detail__zurueck:focus-visible,
.detail__favorit:focus-visible,
.detail__schliessen:focus-visible {
  outline: 2px solid rgba(118, 255, 123, 0.88);
  outline-offset: 2px;
}

.overlay-zurueck__icon,
.detail__favorit-icon,
.detail__schliessen-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.detail__favorit--aktiv {
  color: #ff748f;
  border-color: rgba(255, 116, 143, 0.28);
  background: linear-gradient(180deg, rgba(48, 22, 30, 0.98) 0%, rgba(22, 12, 16, 0.98) 100%);
}

.detail__favorit--aktiv .detail__favorit-icon {
  fill: currentColor;
}

.overlay-zurueck__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0 18px;
  align-items: start;
}

.detail-hero__bildrahmen {
  min-width: 0;
  min-height: 170px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 29, 33, 0.98) 0%, rgba(11, 12, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.detail-hero__bildrahmen img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
}

.detail-hero__bildrahmen--emoji {
  font-size: 4rem;
  background: linear-gradient(180deg, rgba(24, 27, 31, 0.98) 0%, rgba(14, 17, 20, 0.98) 100%);
}

.detail-hero__badges,
.status-pill {
  display: none;
}

.detail-hero-titel {
  padding: 14px 18px 0;
}

.detail-hero-titel__kategorie {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: #8c939b;
  letter-spacing: 0.01em;
}

.detail-hero-titel__name {
  margin: 0;
  font-size: clamp(1.74rem, 5vw, 2.08rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.06;
  color: #f3f5f7;
}

.detail-hero-titel__untertitel {
  margin: 6px 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #8d949b;
}

.detail-highlight {
  display: none;
  margin: 14px 18px 0;
  background: linear-gradient(180deg, rgba(20, 51, 29, 0.97) 0%, rgba(10, 27, 17, 0.97) 100%);
  border: 1px solid rgba(81, 188, 101, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(118, 255, 123, 0.04);
}

.detail-highlight__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(86, 176, 98, 0.18);
}

.detail-highlight__zeile:last-child {
  border-bottom: 0;
}

.detail-highlight__label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #63d57b;
}

.detail-highlight__label svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.detail-highlight__wert {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5f7f9;
  text-align: right;
}

.detail-highlight__wert--preis {
  color: #63d57b;
  font-size: 1.07rem;
}

.detail__spotlight {
  background: linear-gradient(180deg, rgba(19, 22, 26, 0.96) 0%, rgba(13, 15, 19, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.detail__spotlight {
  display: none;
  margin: 14px 18px 0;
  padding: 14px 16px;
  border-color: rgba(76, 175, 80, 0.16);
}

.detail__spotlight-label {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #63d57b;
}

.detail__spotlight-text {
  font-size: 0.83rem;
  line-height: 1.45;
  color: #eef2f4;
}

.detail__hinweise-toggle {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.67rem;
  letter-spacing: 0.02em;
}

.detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.detail__link {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
  font-weight: 700;
}

.detail__link--preis {
  border-color: rgba(98, 205, 118, 0.22);
  background: rgba(76, 175, 80, 0.12);
  color: #63d57b;
}

.detail__link--bild {
  background: rgba(255, 255, 255, 0.08);
}

.punkte {
  display: inline-flex;
  gap: 5px;
}

.punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.punkt--an {
  background: #67d37a;
}

.punkt--warn {
  background: #ffb068;
}

@media (max-width: 560px) {
  .detail__blatt {
    max-width: 100%;
  }

  .detail__kopfleiste,
  .detail-hero,
  .detail-hero-titel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-highlight,
  .detail__spotlight {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 420px) {
  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .detail-hero__bildrahmen {
    min-height: 156px;
    padding: 12px;
  }

  .detail-hero__bildrahmen img {
    max-height: 176px;
  }

  .detail-highlight__zeile,
  .detail__spotlight {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 380px) {
  .detail__kopfleiste {
    padding-top: calc(8px + env(safe-area-inset-top));
  }

  .detail-hero-titel__name {
    font-size: 1.56rem;
  }
}

/* --- Bottom-Nav: stylischer --- */
.navigation {
  border-top: 1px solid var(--farbe-rand);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  background: rgba(30, 30, 30, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.navigation__tab {
  position: relative;
  padding: 8px 2px 6px;
  gap: 3px;
}
.navigation__tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--farbe-gruen-hell);
  transition: width 0.2s;
}
.navigation__tab--aktiv::before { width: 28px; }

/* --- Schmal: Phone --- */
@media (max-width: 380px) {
  .kategorien-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .schnellzugriff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  .kategorie-kachel,
  .schnell-kachel { padding: 8px 3px 7px; }
  .kategorie-kachel__name,
  .schnell-kachel__name { font-size: 0.64rem; }
  .kategorie-kachel--bild {
    padding: 0;
    border-radius: 12px;
  }
  .navigation__tab {
    font-size: 9px;
  }
  .detail-hero__bildrahmen { min-height: 150px; }
  .detail-hero__bildrahmen img { max-height: 160px; }
}

/* ================================================
   REDESIGN v2.62 — Datenbank-Ansicht (3-Ebenen-Navigation)
   ================================================ */

/* --- Datenbank Bereich (Wrapper) --- */
.datenbank-bereich {
  padding: 8px 0 24px;
  background: transparent;
}

/* --- Datenbank Kopf --- */
.datenbank-kopf {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 6px 16px 12px;
}
.datenbank-kopf__accent {
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(110, 255, 128, 0.96) 0%, rgba(46, 125, 50, 0.12) 100%);
  box-shadow: 0 0 18px rgba(88, 223, 101, 0.28);
}
.datenbank-kopf__icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(91, 255, 116, 0.2);
  background:
    linear-gradient(180deg, rgba(49, 120, 56, 0.28) 0%, rgba(15, 23, 17, 0.94) 100%),
    rgba(16, 22, 18, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(78, 196, 84, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.datenbank-kopf__icon .kategorie-kachel__icon {
  min-height: 0;
}
.datenbank-kopf__icon-symbol {
  width: 32px;
  height: 32px;
}
.datenbank-kopf__icon-symbol img,
.datenbank-kopf__icon-symbol svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(60, 225, 108, 0.2));
}
.datenbank-kopf__icon--bild {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.datenbank-kopf__icon--bild::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(8, 12, 18, 0.94),
    inset 0 0 0 3px rgba(255, 255, 255, 0.018),
    inset 0 -18px 28px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  z-index: 2;
}
.datenbank-kopf__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #0d1218;
  transform: scale(1.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}
.datenbank-kopf__icon-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(235, 235, 235, 0.92);
}
.datenbank-kopf__icon-text {
  font-size: 1.6rem;
  line-height: 1;
}
.datenbank-kopf__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.datenbank-kopf__titel {
  margin: 0;
  font-size: clamp(1.5rem, 5.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}
.datenbank-kopf__untertitel {
  margin: 0;
  color: rgba(232, 238, 233, 0.62);
  font-size: 0.78rem;
  line-height: 1.3;
}
.datenbank-kopf--kompakt {
  padding-bottom: 8px;
}
.datenbank-kopf--kompakt .datenbank-kopf__titel {
  font-size: clamp(1.35rem, 5vw, 1.7rem);
}

.datenbank-suchezeile {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0 16px 10px;
}

.datenbank-suchezeile #suche-slot-datenbank {
  flex: 1;
  min-width: 0;
}

#suche-slot-datenbank .suche__wrapper {
  position: relative;
}

#suche-slot-datenbank .suche__feld {
  min-height: 48px;
  padding: 10px 48px 10px 48px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(21, 24, 22, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

#suche-slot-datenbank .suche__feld::placeholder {
  color: rgba(212, 218, 214, 0.54);
}

#suche-slot-datenbank .suche__feld:focus {
  border-color: rgba(101, 244, 110, 0.44);
  background: rgba(22, 26, 24, 0.97);
}

#suche-slot-datenbank .suche__icon {
  left: 18px;
  right: auto;
  width: 20px;
  height: 20px;
  color: var(--farbe-gruen-hell);
}

#suche-slot-datenbank .suche__wrapper::after {
  content: '';
  position: absolute;
  right: 52px;
  top: 50%;
  width: 1px;
  height: 24px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

#suche-slot-datenbank .suche__loeschen {
  right: 0;
  width: 48px;
  height: 48px;
  color: var(--farbe-gruen-hell);
}

.datenbank-zurueck {
  flex-shrink: 0;
  background: rgba(24, 27, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--farbe-text);
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.12s;
}
.datenbank-zurueck[hidden] {
  display: none;
}
.datenbank-zurueck:hover {
  background: rgba(39, 53, 42, 0.96);
  border-color: rgba(101, 244, 110, 0.28);
  color: var(--farbe-gruen-hell);
}
.datenbank-zurueck:active { transform: translateY(1px); }
.datenbank-zurueck svg { width: 18px; height: 18px; }

/* --- Filter-Chips --- */
.datenbank-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
  min-height: 0;
}
.datenbank-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 10px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  border: 1px solid var(--farbe-rand);
  background: var(--farbe-flaeche);
  color: var(--farbe-text-gedimmt);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.datenbank-chip:hover { border-color: var(--farbe-gruen); color: var(--farbe-text); }
.datenbank-chip--aktiv {
  background: rgba(46, 125, 50, 0.18);
  border-color: var(--farbe-gruen);
  color: var(--farbe-gruen-hell);
}
.datenbank-chip--passiv {
  cursor: default;
  color: var(--farbe-text);
}
.datenbank-chip svg { width: 11px; height: 11px; }

/* --- Datenbank-Filterleiste --- */
.datenbank-filterleiste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 10px;
}
.datenbank-filterleiste--einspaltig {
  grid-template-columns: minmax(0, 1fr);
}
.datenbank-filter__select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
  background-color: rgba(21, 24, 22, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpolyline points='1 1 6 7 11 1' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--farbe-text);
  font-weight: 600;
  font-size: 0.86rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0 40px 0 16px;
  min-width: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
}
.datenbank-filter__select:focus {
  outline: none;
  border-color: rgba(101, 244, 110, 0.42);
}
.datenbank-filter__select option {
  background: #1a1a1a;
  color: #e0e0e0;
}

/* --- Steuerungs-Pills --- */
.datenbank-spalten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
}
.datenbank-spalten::-webkit-scrollbar {
  display: none;
}
.datenbank-spalten__steuerung {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(22, 25, 23, 0.9);
  color: rgba(233, 238, 234, 0.78);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.datenbank-spalten__steuerung--artikel,
.datenbank-spalten__steuerung--preis {
  text-align: left;
}
.datenbank-spalten__steuerung--zustand {
  min-width: 0;
}
.datenbank-spalten__steuerung:hover,
.datenbank-spalten__steuerung:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--farbe-text);
}
button.datenbank-spalten__steuerung { font: inherit; }
button.datenbank-spalten__steuerung:active { transform: scale(0.97); }
.datenbank-spalten__steuerung--aktiv {
  border-color: rgba(98, 248, 109, 0.86);
  color: #ffffff;
  background: rgba(30, 52, 32, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(98, 248, 109, 0.18),
    0 10px 24px rgba(10, 29, 12, 0.28);
}
.datenbank-spalten__pill-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.82;
}
.datenbank-spalten__titel {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}
.datenbank-spalten__status {
  display: none;
}
.datenbank-spalten__icon {
  width: 11px;
  height: 11px;
  opacity: 0.62;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.datenbank-spalten__steuerung[data-richtung="desc"] .datenbank-spalten__icon svg {
  transform: rotate(180deg);
}
.datenbank-spalten__icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.16s ease;
}
.datenbank-spalten__select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  font-size: inherit;
}
.datenbank-spalten__select option {
  background: #1a1a1a;
  color: #e0e0e0;
}

/* --- Custom Zustand-Popover --- */
.datenbank-spalten__steuerung--zustand {
  cursor: pointer;
}
.zustand-menue {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 23, 21, 0.98);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: zustand-menue-in 0.14s ease-out;
}
@keyframes zustand-menue-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.zustand-menue[hidden] { display: none; }
.zustand-menue__item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--farbe-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}
.zustand-menue__item:hover,
.zustand-menue__item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.zustand-menue__item--aktiv {
  background: rgba(46, 125, 50, 0.18);
  color: #b9f4b3;
}
.zustand-menue__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

/* --- Datenbank-Liste --- */
.datenbank-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}
.datenbank-bereich--knoten .datenbank-liste {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.datenbank-bereich--home .datenbank-liste {
  padding-top: 4px;
}
.datenbank-bereich--artikel .datenbank-liste {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.datenbank-gruppe {
  list-style: none;
}
.datenbank-gruppe__btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(19, 19, 19, 0.96) 100%),
    var(--farbe-flaeche-2);
  color: inherit;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
}
.datenbank-gruppe__btn:hover {
  border-color: rgba(76, 175, 80, 0.26);
}
.datenbank-gruppe__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--farbe-text-gedimmt);
  flex-shrink: 0;
}
.datenbank-gruppe__anzahl {
  font-size: 0.7rem;
  font-weight: 600;
}
.datenbank-gruppe__pfeil {
  width: 16px;
  height: 16px;
}
.datenbank__zeile {
  display: flex;
  align-items: center;
  min-height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(18, 21, 21, 0.98) 100%),
    rgba(19, 22, 21, 0.96);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.datenbank__zeile:hover {
  border-color: rgba(85, 223, 96, 0.22);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.24);
}
.datenbank__zeile--knoten {
  display: block;
  overflow: hidden;
  min-height: 0;
}

/* Artikel-Button (Thumb + Info) */
.datenbank__artikel-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: var(--farbe-text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  padding: 8px 0 8px 8px;
  transition: background 0.1s;
}
.datenbank__artikel-btn:hover { background: rgba(255, 255, 255, 0.03); }
.datenbank__artikel-btn:active { background: rgba(46, 125, 50, 0.07); }

.datenbank__knoten-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--farbe-text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  padding: 12px 14px;
  transition: background 0.1s;
}
.datenbank__knoten-btn:hover { background: rgba(255, 255, 255, 0.04); }
.datenbank__knoten-btn:active { background: rgba(46, 125, 50, 0.08); }

/* Thumbnail */
.datenbank__thumb {
  width: 52px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(18, 18, 18, 0.68) 100%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.datenbank__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 3px;
}
.datenbank__thumb--emoji {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.datenbank__zeile--knoten .datenbank__thumb {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.datenbank__zeile--knoten .datenbank__thumb img {
  object-fit: contain;
  padding: 0;
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.34))
    drop-shadow(0 2px 6px rgba(75, 135, 255, 0.18));
  transform: scale(1.06);
}

/* Info */
.datenbank__info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 0;
}
.datenbank__name {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  color: var(--farbe-text);
}
.datenbank__sub {
  font-size: 0.7rem;
  line-height: 1.28;
  color: rgba(221, 225, 221, 0.62);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow: hidden;
}

@media (min-width: 561px) {
  .artikel__name,
  .datenbank__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow: hidden;
  }
  .datenbank__sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow: hidden;
  }
}

/* Rechte Seite (Zustand + Preis + Chevron) - tabellarisch ausgerichtet */
.datenbank__rechts {
  display: grid;
  grid-template-columns: minmax(58px, auto) 14px;
  align-items: center;
  column-gap: 10px;
  padding: 0 14px 0 4px;
  flex-shrink: 0;
}
.datenbank__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.datenbank__zustand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  padding-top: 7px;
}
.datenbank__zustand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6px;
  right: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 18%, rgba(85, 223, 96, 0.22) 50%, rgba(255, 255, 255, 0.12) 82%, transparent 100%);
}
.datenbank__zustand .zustand-pill {
  width: auto;
  min-width: 58px;
  justify-content: center;
}

/* Preis */
.datenbank__preis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--farbe-text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1;
}

/* Chevron */
.datenbank__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--farbe-text-gedimmt);
  opacity: 0.58;
  flex-shrink: 0;
  width: 14px;
}
.datenbank__chevron svg {
  width: 12px;
  height: 12px;
}

/* Zustand */
.datenbank__zustand--alt {
  display: none;
}

/* Zustand-Pill */
.zustand-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-user-select: none;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.zustand-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.zustand-pill__select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  font-size: inherit;
}
.zustand-pill__select option {
  background: #1e1e1e;
  color: #e0e0e0;
}
/* Pill-Farben — logisch: Lose=orange · CI=gelb · CIB/SG=grün · Neu=hellgrün · Bastler=rot */
.zustand-pill.zustand-badge--neu      { background: rgba(100, 230, 110, 0.16); color: #8ff08a; }
.zustand-pill.zustand-badge--sehr-gut { background: rgba(80,  210,  90, 0.18); color: #5de66a; }
.zustand-pill.zustand-badge--gut      { background: rgba(250, 210,  50, 0.18); color: #f0c830; }
.zustand-pill.zustand-badge--gebraucht{ background: rgba(224, 112,  36, 0.18); color: #e07830; }
.zustand-pill.zustand-badge--selten   { background: rgba(255, 208, 112, 0.18); color: #ffd070; }
.zustand-pill.zustand-badge--bastler  { background: rgba(255, 100,  90, 0.20); color: #ff6b62; }

/* Zustand-Badge (statisch) */
.zustand-badge {
  display: inline-block;
}
.zustand-badge--neu      { color: #8ff08a; }
.zustand-badge--sehr-gut { color: #5de66a; }
.zustand-badge--gut      { color: #f0c830; }
.zustand-badge--selten   { color: #ffd070; }
.zustand-badge--bastler  { color: #ff6b62; }
.zustand-badge--gebraucht { color: #e07830; }

/* Leer-Zustand */
.datenbank__leer {
  padding: 48px 24px;
  text-align: center;
  color: var(--farbe-text-gedimmt);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Alte Klassen ausgeblendet (Kompatibilitaet) */
.datenbank__zustand-feld { display: none !important; }
.datenbank__zustand-pfeil { display: none !important; }
.datenbank__weiter { display: none !important; }
.zustand-select { display: none !important; }

/* Responsive */
@media (max-width: 560px) {
  .datenbank-kopf {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 4px 14px 10px;
  }
  .datenbank-kopf__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .datenbank-kopf__icon > img,
  .datenbank-kopf__icon-symbol {
    width: 30px;
    height: 30px;
  }
  .datenbank-kopf__titel {
    font-size: clamp(1.4rem, 6vw, 1.7rem);
  }
  .datenbank-kopf__untertitel {
    font-size: 0.74rem;
  }
  .datenbank-suchezeile {
    padding: 0 14px 8px;
    gap: 8px;
  }
  .datenbank-zurueck {
    width: 42px;
    min-height: 42px;
    border-radius: 13px;
  }
  #suche-slot-datenbank .suche__feld {
    min-height: 46px;
    padding: 10px 44px 10px 44px;
    border-radius: 14px;
    font-size: 0.88rem;
  }
  #suche-slot-datenbank .suche__icon {
    left: 14px;
    width: 18px;
    height: 18px;
  }
  #suche-slot-datenbank .suche__wrapper::after {
    right: 44px;
    height: 20px;
  }
  #suche-slot-datenbank .suche__loeschen {
    width: 44px;
    height: 46px;
  }
  .datenbank-filterleiste {
    padding: 0 14px 8px;
    gap: 8px;
  }
  .datenbank-filter__select {
    min-height: 44px;
    padding: 0 36px 0 14px;
    border-radius: 13px;
    font-size: 0.8rem;
    background-position: right 14px center;
  }
  .datenbank-spalten {
    grid-template-columns: minmax(0, 1.44fr) minmax(86px, 0.8fr) minmax(74px, 0.64fr);
    gap: 6px;
    padding: 0 14px 10px;
  }
  .datenbank-spalten__steuerung {
    gap: 5px;
    min-height: 38px;
    padding: 0 9px;
    font-size: 0.72rem;
  }
  .datenbank-spalten__steuerung--zustand .datenbank-spalten__pill-icon {
    display: none;
  }
  .datenbank-spalten__steuerung--zustand {
    padding-inline: 8px;
  }
  .datenbank-spalten__steuerung--preis {
    padding-inline: 8px;
  }
  .datenbank-spalten__titel {
    font-size: 0.72rem;
  }
  .datenbank-spalten__pill-icon {
    width: 12px;
    height: 12px;
  }
  .datenbank-bereich--knoten .datenbank-liste,
  .datenbank-bereich--artikel .datenbank-liste {
    padding: 0 14px 14px;
    gap: 7px;
  }
  .datenbank__zeile {
    border-radius: 14px;
    min-height: 74px;
  }
  .datenbank__artikel-btn,
  .datenbank__knoten-btn {
    gap: 10px;
    padding: 7px 0 7px 6px;
  }
  .datenbank__thumb {
    width: 46px;
    height: 54px;
    border-radius: 9px;
  }
  .datenbank__zeile--knoten .datenbank__thumb {
    width: 44px;
    height: 44px;
  }
  .datenbank__name {
    font-size: 0.83rem;
    line-height: 1.16;
  }
  .datenbank__sub {
    font-size: 0.64rem;
  }
  .datenbank__rechts {
    grid-template-columns: minmax(50px, auto) 10px;
    column-gap: 6px;
    padding: 0 8px 0 4px;
  }
  .datenbank__meta {
    gap: 0;
  }
  .datenbank__preis { font-size: 0.72rem; }
  .datenbank__zustand { margin-top: 5px; padding-top: 6px; }
  .datenbank__zustand .zustand-pill {
    min-width: 50px;
  }
  .zustand-pill {
    font-size: 0.6rem;
    padding: 4px 6px;
    gap: 3px;
  }
  .zustand-pill__dot {
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 380px) {
  .datenbank-filterleiste {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 12px 8px;
  }
  .datenbank-filter__select {
    min-height: 42px;
    font-size: 0.76rem;
    padding: 0 34px 0 12px;
    background-position: right 12px center;
  }
  .datenbank-kopf {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
    padding: 4px 12px 8px;
  }
  .datenbank-kopf__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
  .datenbank-spalten {
    grid-template-columns: minmax(0, 1.34fr) minmax(82px, 0.78fr) minmax(66px, 0.62fr);
    padding: 0 12px 8px;
    gap: 5px;
  }
  .datenbank-spalten__steuerung {
    min-height: 36px;
    padding: 0 7px;
    font-size: 0.68rem;
  }
  .datenbank-spalten__steuerung--zustand,
  .datenbank-spalten__steuerung--preis {
    padding-inline: 7px;
  }
  .datenbank-spalten__titel {
    font-size: 0.68rem;
  }
  .datenbank__rechts {
    grid-template-columns: minmax(48px, auto) 10px;
    column-gap: 4px;
    padding: 0 7px 0 3px;
  }
  .datenbank__thumb {
    width: 42px;
    height: 50px;
  }
  .datenbank__zeile--knoten .datenbank__thumb {
    width: 40px;
    height: 40px;
  }
  .datenbank__name { font-size: 0.78rem; line-height: 1.14; }
  .datenbank__sub { font-size: 0.6rem; }
  .datenbank__meta { gap: 0; }
  .datenbank__preis { font-size: 0.66rem; }
  .datenbank__zustand { margin-top: 4px; padding-top: 5px; }
  .datenbank__zustand .zustand-pill { min-width: 46px; }
  .zustand-pill { font-size: 0.56rem; padding: 3px 5px; }
}

/* --- Detail-Redesign Standardansicht --- */
.screen-detail {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: min(100vw, 600px);
  max-width: 600px;
  transform: translateX(-50%);
  padding: 8px 0 calc(96px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at top, rgba(76, 175, 80, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, #101010 100%);
}

.detail__blatt {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 14px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
}

.detail-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: start;
  gap: 10px;
  position: relative;
  z-index: 16;
  padding-top: 4px;
}

.detail-header__back,
.detail-header__menu-button {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(24, 24, 24, 0.96) 100%),
    rgba(24, 24, 24, 0.92);
  color: var(--farbe-weiss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.detail-header__back-icon,
.detail-header__menu-button svg {
  width: 20px;
  height: 20px;
}

.detail-header__titelblock {
  min-width: 0;
  text-align: center;
  padding-top: 3px;
}

.detail-header__titel {
  font-size: 1.16rem;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--farbe-weiss);
}

.detail-header__untertitel {
  margin-top: 4px;
  font-size: 0.74rem;
  color: #a7c96c;
}

.detail-header__kategorie {
  display: none;
}

.detail-header__aktionen {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.detail-menu {
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  gap: 4px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.detail-menu__item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--farbe-text);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.detail-menu__item:hover,
.detail-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.detail-menu__item svg {
  width: 18px;
  height: 18px;
}

.detail-menu__item--favorit.detail__favorit--aktiv {
  color: #8fe089;
}

.detail-menu__item--favorit.detail__favorit--aktiv .detail__favorit-icon {
  fill: rgba(76, 175, 80, 0.24);
  stroke: #8fe089;
}

.detail-menu__item--check {
  color: #b7e486;
}

.detail-hero-card {
  position: relative;
}

.detail-hero-card__rahmen {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(230, 81, 0, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(19, 19, 19, 0.98) 100%),
    #161616;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.detail-hero-card__rahmen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 30%);
  pointer-events: none;
}

.detail-hero-card__bild {
  width: 100%;
  min-height: 286px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
  cursor: zoom-in;
  touch-action: pan-y;
}

.detail-hero-card__bild img {
  width: 100%;
  height: 286px;
  object-fit: contain;
  padding: 6px;
}

.detail-hero-card__bild--emoji {
  font-size: 4.4rem;
  color: var(--farbe-weiss);
}

.detail-meta-chips {
  --detail-meta-scale: 1;
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: calc((100% - 28px) / var(--detail-meta-scale));
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  transform: translateX(-50%) scale(var(--detail-meta-scale));
  transform-origin: center bottom;
}

.detail-meta-chip {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 14px auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.detail-meta-chip__icon {
  width: 14px;
  height: 14px;
  color: rgba(214, 231, 214, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-meta-chip__icon svg {
  width: 14px;
  height: 14px;
}

.detail-meta-chip__wert {
  font-size: 0.62rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--farbe-weiss);
}

.detail-meta-chip--warnung {
  border-color: rgba(230, 81, 0, 0.26);
}

.detail-meta-chip--ruhig {
  border-color: rgba(76, 175, 80, 0.24);
}

.detail-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-layout--top {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.detail-layout--mitte,
.detail-layout--unten {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.detail-card {
  min-width: 0;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(24, 24, 24, 0.98) 100%),
    #171717;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
}

.detail-card--ampel,
.detail-card--wertkiller {
  background:
    radial-gradient(circle at top right, rgba(230, 81, 0, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(24, 24, 24, 0.98) 100%),
    #171717;
}

.detail-card--ergebnis {
  display: flex;
  align-items: stretch;
}

.detail-card__kopf {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-card__kopficon {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: rgba(170, 206, 113, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-card__kopficon svg {
  width: 18px;
  height: 18px;
}

.detail-card__nummer {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.16);
  color: #8fe089;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.detail-card__nummer--warnung {
  background: rgba(230, 81, 0, 0.16);
  color: #ffae70;
}

.detail-card__titelblock {
  min-width: 0;
}

.detail-card__titel {
  font-size: 0.89rem;
  line-height: 1.12;
  color: var(--farbe-weiss);
}

.detail-card--ampel .detail-card__titel,
.detail-card--check .detail-card__titel {
  color: #a7c96c;
}

.detail-card__untertitel {
  margin-top: 4px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--farbe-text-gedimmt);
}

.detail-card--markt .detail-card__titel {
  color: #a7c96c;
}

.detail-card--markt .detail-card__kopf,
.detail-card--check .detail-card__kopf,
.detail-card--wertkiller .detail-card__kopf {
  align-items: center;
}

.detail-card--markt .detail-card__untertitel {
  display: none;
}

.detail-zustandsliste,
.detail-checkliste,
.detail-wertkillerliste,
.detail-ampel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-card--markt .detail-zustandsliste {
  gap: 0;
  padding: 2px 0 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(14, 14, 14, 0.56) 100%);
  overflow: hidden;
}

.detail-markt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-markt-row__label {
  min-width: 0;
  font-size: 0.74rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.detail-markt-row__preis {
  font-size: 0.74rem;
  font-weight: 700;
  color: #a7c96c;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.detail-markt-zusammenfassung {
  margin: 0;
  padding: 10px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, rgba(164, 198, 112, 0.34) 0%, rgba(119, 143, 82, 0.38) 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.detail-markt-zusammenfassung__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a7c96c;
}

.detail-markt-zusammenfassung__wert {
  font-size: 0.96rem;
  font-weight: 800;
  color: rgba(251, 255, 245, 0.98);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.detail-zustand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.detail-zustand-row--aktiv {
  border-color: rgba(76, 175, 80, 0.34);
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.11) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.detail-zustand-row--warnung {
  border-color: rgba(230, 81, 0, 0.18);
}

.detail-zustand-row__text {
  min-width: 0;
}

.detail-zustand-row__label {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--farbe-weiss);
}

.detail-zustand-row__hinweis {
  margin-top: 4px;
  font-size: 0.64rem;
  line-height: 1.35;
  color: var(--farbe-text-gedimmt);
}

.detail-zustand-row__preis {
  font-size: 0.74rem;
  font-weight: 700;
  color: #d8f1d8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.detail-ampel__zeile {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(18, 18, 18, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.detail-ampel__zeile:last-child {
  margin-bottom: 0;
}

.detail-ampel__signal {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.detail-ampel__zeile--gruen .detail-ampel__signal {
  background: #59c85f;
  box-shadow: 0 0 0 6px rgba(89, 200, 95, 0.12);
}

.detail-ampel__zeile--gelb .detail-ampel__signal {
  background: #f2c94c;
  box-shadow: 0 0 0 6px rgba(242, 201, 76, 0.12);
}

.detail-ampel__zeile--rot .detail-ampel__signal {
  background: #ef6c47;
  box-shadow: 0 0 0 6px rgba(239, 108, 71, 0.12);
}

.detail-ampel__textblock {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.detail-ampel__titel {
  font-size: 0.75rem;
  line-height: 1.1;
}

.detail-ampel__zeile--gruen .detail-ampel__titel {
  color: #7bdc7d;
}

.detail-ampel__zeile--gelb .detail-ampel__titel {
  color: #ffd451;
}

.detail-ampel__zeile--rot .detail-ampel__titel {
  color: #ff8369;
}

.detail-ampel__text {
  font-size: 0.76rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--farbe-weiss);
  white-space: nowrap;
}

.detail-card--check,
.detail-card--wertkiller {
  position: relative;
  overflow: hidden;
}

.detail-card--modelle {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(92, 149, 225, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(24, 24, 24, 0.98) 100%),
    #171717;
}

.detail-card--check {
  background:
    radial-gradient(circle at top right, rgba(167, 201, 108, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(24, 24, 24, 0.98) 100%),
    #171717;
}

.detail-card--check .detail-card__titelblock,
.detail-card--wertkiller .detail-card__titelblock {
  padding-right: 0;
}

.detail-card--check .detail-card__titel {
  color: #a7c96c;
}

.detail-card--wertkiller .detail-card__titel {
  color: #ef8b63;
}

.detail-card--modelle .detail-card__titel {
  color: #8fc4ff;
}

.detail-card__deko {
  display: none;
}

.detail-listenkarte {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.detail-listenkarte__punkt {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.detail-listenkarte__icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

.detail-listenkarte__icon--check {
  background: rgba(167, 201, 108, 0.18);
  color: #cbe989;
}

.detail-listenkarte__icon--wertkiller {
  background: rgba(239, 139, 99, 0.18);
  color: #ffae8a;
}

.detail-listenkarte__text {
  font-size: 0.7rem;
  line-height: 1.22;
  color: var(--farbe-weiss);
}

.detail-listenkarte--check .detail-listenkarte__text {
  color: #ebf1dd;
}

.detail-listenkarte--wertkiller .detail-listenkarte__text {
  color: #f0c4b3;
}

.detail-listenkarte--modelle {
  gap: 10px;
}

.detail-listenkarte__eintrag--modell {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.detail-listenkarte__eintrag--modell:hover {
  border-color: rgba(143, 196, 255, 0.32);
  background: rgba(143, 196, 255, 0.08);
}

.detail-listenkarte__modell-bild {
  appearance: none;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: var(--farbe-text-gedimmt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  font: inherit;
}

.detail-listenkarte__modell-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-listenkarte__modell-bild:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(143, 196, 255, 0.18);
}

.detail-listenkarte__modell-bild--leer {
  cursor: default;
  font-size: 0.66rem;
  font-weight: 700;
}

.detail-listenkarte__modell-text {
  min-width: 0;
}

.detail-listenkarte__modell-name {
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--farbe-weiss);
}

.detail-listenkarte__modell-hinweis {
  margin-top: 4px;
  font-size: 0.64rem;
  line-height: 1.35;
  color: var(--farbe-text-gedimmt);
}

.detail-listenkarte__modell-preis {
  font-size: 0.74rem;
  font-weight: 700;
  color: #d8f1d8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.detail-zustandswahl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.detail-zustandswahl__button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--farbe-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.detail-zustandswahl__button--aktiv {
  border-color: rgba(76, 175, 80, 0.36);
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: var(--farbe-weiss);
}

.detail-zustandswahl__label {
  font-size: 0.8rem;
  font-weight: 700;
}

.detail-zustandswahl__preis {
  font-size: 0.68rem;
  color: var(--farbe-text-gedimmt);
  font-variant-numeric: tabular-nums;
}

.detail-ergebnis {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.detail-ergebnis__block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-ergebnis__label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.detail-ergebnis__wert {
  font-size: 1.12rem;
  line-height: 1.15;
  color: var(--farbe-weiss);
  font-variant-numeric: tabular-nums;
}

.detail-ergebnis__wert--kauf {
  color: #95e88c;
}

.detail-ergebnis__trenner {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.02) 100%);
}

.detail-ergebnis__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--farbe-text-gedimmt);
  font-size: 0.67rem;
}

.detail-checkpunkt {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.detail-checkpunkt__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.14);
  color: #92e589;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-checkpunkt__inhalt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-checkpunkt__text {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--farbe-weiss);
}

.detail-checkpunkt__fundort,
.detail-checkpunkt__detail {
  font-size: 0.66rem;
  line-height: 1.4;
  color: var(--farbe-text-gedimmt);
}

.detail-card__aktionen {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail__link,
.detail__hinweise-toggle {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--farbe-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.detail__link--preis {
  border-color: rgba(76, 175, 80, 0.24);
  color: #93e98b;
}

.detail-wertkiller__punkt {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(230, 81, 0, 0.2);
  background: rgba(230, 81, 0, 0.08);
}

.detail-wertkiller__marker {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(230, 81, 0, 0.2);
  color: #ffba82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-wertkiller__text {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #f4d2bf;
}

.detail__spotlight {
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.detail__spotlight-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.detail__spotlight-text {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--farbe-text);
}

@media (max-width: 480px) {
  .detail-layout,
  .detail-layout--top,
  .detail-layout--mitte,
  .detail-layout--unten {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-ampel__text {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .detail-listenkarte__eintrag--modell {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
  }

  .detail-listenkarte__modell-preis {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .detail__blatt {
    padding-left: 12px;
    padding-right: 12px;
  }

  .detail-hero-card__bild,
  .detail-hero-card__bild img {
    min-height: 252px;
    height: 252px;
  }

  .detail-bild-dots {
    top: 22px;
  }

  .detail-meta-chips {
    --detail-meta-scale: clamp(0.74, calc((100vw - 24px) / 360px), 1);
    gap: 6px;
  }

  .detail-meta-chip {
    padding: 7px 9px;
    gap: 5px;
  }

  .detail-meta-chip__wert {
    font-size: 0.58rem;
  }

  .detail-card {
    padding: 12px;
    border-radius: 22px;
  }
}

@media (max-width: 360px) {
  .detail-layout,
  .detail-layout--top,
  .detail-layout--mitte,
  .detail-layout--unten {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-header {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .detail-header__back,
  .detail-header__menu-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .detail-meta-chips {
    --detail-meta-scale: clamp(0.72, calc((100vw - 20px) / 340px), 0.92);
  }

  .bild-lightbox__nav {
    width: 42px;
    height: 42px;
  }

  .bild-lightbox__nav--zurueck {
    left: 10px;
  }

  .bild-lightbox__nav--weiter {
    right: 10px;
  }
}


/* ================================================
   Redesign v4.48 — Hauptmenue (Willkommen-Hero, Markt im Blick,
   Suchfeld mit Lupe links)
   ================================================ */

/* Such-Icon links */
.suche__icon--links {
  left: 14px;
  right: auto;
  width: 18px;
  height: 18px;
}

/* Willkommen-Hero — Text links, Bild rechts, mobil mit sanfter Überlagerung */
.willkommen-hero {
  position: relative;
  margin: 14px 0 4px;
  padding: 22px 18px 20px 22px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #16170f 0%, #101109 100%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  min-height: 172px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.willkommen-hero__inhalt {
  position: relative;
  flex: 1 1 56%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}
.willkommen-hero__bild {
  flex: 0 0 60%;
  align-self: stretch;
  width: 60%;
  max-width: 270px;
  height: auto;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}
.willkommen-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--farbe-gruen-hell);
}
.willkommen-hero__titel {
  font-size: 1.45rem;
  line-height: 1.18;
  font-weight: 800;
  color: var(--farbe-weiss);
  letter-spacing: -0.005em;
}
.willkommen-hero__akzent {
  color: var(--farbe-gruen-hell);
}
.willkommen-hero__text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(224, 224, 224, 0.78);
  max-width: 22ch;
}

@media (max-width: 620px) {
  .willkommen-hero {
    min-height: 158px;
    padding: 16px 16px 16px 16px;
    align-items: flex-start;
    gap: 0;
  }
  /* Dunkler Verlauf links unter dem Text, damit das Lampenbild rechts
     den Titel "deiner Schaetze" nicht ueberlagert. */
  .willkommen-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
      rgba(10, 12, 8, 0.92) 0%,
      rgba(10, 12, 8, 0.82) 38%,
      rgba(10, 12, 8, 0.45) 62%,
      rgba(10, 12, 8, 0) 88%);
    pointer-events: none;
    z-index: 1;
  }

  .willkommen-hero__inhalt {
    flex: 0 0 82%;
    width: 82%;
    max-width: 82%;
    gap: 6px;
    z-index: 2;
  }

  .willkommen-hero__bild {
    position: absolute;
    right: -14px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: min(54%, 196px);
    max-width: 196px;
    max-height: 128px;
    z-index: 0;
  }

  .willkommen-hero__eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .willkommen-hero__titel {
    font-size: 0.98rem;
    line-height: 1.1;
  }

  .willkommen-hero__text {
    font-size: 0.68rem;
    line-height: 1.32;
    max-width: 28ch;
  }

  /* Section-Ueberschriften (Kategorien, Zuletzt angesehen, ...) auf
     dem Handy deutlich kleiner. */
  .startseite-sektion { margin-top: 14px; }
  .startseite-sektion__kopf { margin-bottom: 6px; }
  .startseite-sektion__titel { font-size: 0.86rem; }
  .startseite-sektion__link { font-size: 0.7rem; }
}

/* Schmal: Hero kompakter */
@media (max-width: 380px) {
  .kategorien-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .willkommen-hero {
    padding: 14px 14px 15px 14px;
    min-height: 138px;
  }
  .willkommen-hero__inhalt {
    flex-basis: 82%;
    width: 82%;
    max-width: 82%;
  }
  .willkommen-hero__bild {
    right: -10px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: min(50%, 152px);
    max-width: 152px;
    max-height: 106px;
  }
  .willkommen-hero__titel {
    font-size: 0.86rem;
    line-height: 1.1;
  }
  .willkommen-hero__text {
    font-size: 0.62rem;
    line-height: 1.3;
    max-width: 26ch;
  }
  .startseite-sektion__titel { font-size: 0.78rem; }
  .startseite-sektion__link { font-size: 0.64rem; }
}