/* Startseite – öffentliche Ansicht
   Ruhige Fläche, die Vorschaubilder tragen die Seite.
   Keine externen Schriften oder Skripte (Datenschutz). */

:root {
  --papier:    #f6f6f4;
  --flaeche:   #ffffff;
  --tinte:     #1b2430;
  --gedaempft: #64707d;
  --linie:     #e2e4df;
  --akzent:    #2f6f62;
  --radius:    7px;
  --schrift:   "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier:    #14181d;
    --flaeche:   #1c2128;
    --tinte:     #e8ebe8;
    --gedaempft: #98a3ad;
    --linie:     #2b323a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
}

.visuell-versteckt {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Kopfbereich */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}

.kopf-inhalt {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.marke {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-right: auto;
}

.marke-logo {
  height: 42px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.marke-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.marke-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marke-zusatz {
  font-size: 0.82rem;
  color: var(--gedaempft);
}

.suche input {
  width: 240px;
  max-width: 46vw;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--tinte);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 999px;
}

.suche input:focus {
  outline: 2px solid var(--akzent);
  outline-offset: 1px;
  border-color: transparent;
}

/* Inhalt */
.inhalt {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.rubrik + .rubrik { margin-top: 44px; }

.rubrik-titel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gedaempft);
}

.rubrik-titel::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--linie);
}

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 28px 22px;
}

/* Kachel: das Vorschaubild ist das Objekt, der Name die Bildunterschrift */
.kachel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
}

.kachel-bild {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  transition: border-color .16s ease, transform .16s ease;
}

.kachel-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kachel-fuss {
  display: flex;
  flex-direction: column;
  padding: 0 2px;
}

.kachel-name {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
}

.kachel-host {
  font-size: 0.78rem;
  color: var(--gedaempft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kachel:hover .kachel-bild,
.kachel:focus-visible .kachel-bild {
  border-color: var(--akzent);
  transform: translateY(-2px);
}

.kachel:hover .kachel-name { color: var(--akzent); }

.kachel:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .kachel-bild { transition: none; }
  .kachel:hover .kachel-bild { transform: none; }
}

.leer, .kein-treffer {
  color: var(--gedaempft);
  font-size: 0.95rem;
}

.leer a, .fuss a { color: var(--akzent); }

.fuss {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
  font-size: 0.82rem;
}

.fuss a {
  color: var(--gedaempft);
  text-decoration: none;
}

.fuss a:hover { color: var(--akzent); }

@media (max-width: 560px) {
  .raster { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; }
  .kopf-inhalt { padding: 12px 16px; }
  .inhalt { padding: 26px 16px 44px; }
}
