/* Sunny3D – gemeinsame Gestaltung für Navigation (index.html) und Viewer (viewer.html) */
:root {
  --hg: #f4f5f7;
  --flaeche: #ffffff;
  --flaeche-2: #eef0f3;
  --rand: #dfe2e7;
  --text: #1d2229;
  --text-2: #5d6673;
  --akzent: #2c6db0;
  --akzent-hell: #e3eefa;
  --warn: #a35a00;
  --warn-hell: #fff3e0;
  --schatten: 0 1px 2px rgba(20, 30, 45, .06), 0 4px 14px rgba(20, 30, 45, .06);
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hg: #15181d;
    --flaeche: #1d2128;
    --flaeche-2: #252a33;
    --rand: #313743;
    --text: #e7eaee;
    --text-2: #9aa3af;
    --akzent: #6aa8eb;
    --akzent-hell: #1f2f44;
    --warn: #ffb74d;
    --warn-hell: #3a2c17;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--hg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.zahl { font-variant-numeric: tabular-nums; }

/* --- Navigation ------------------------------------------------------------------------------------------ */
.kopf {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--flaeche) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rand);
}
.kopf-innen {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.marke { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.marke-zeichen {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--akzent); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px;
}
.marke h1 { font-size: 17px; margin: 0; font-weight: 650; }
.marke small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: -1px; }
.suche { position: relative; flex: 0 1 340px; min-width: 200px; }
.suche input {
  width: 100%; padding: 9px 12px 9px 36px; border-radius: 10px;
  border: 1px solid var(--rand); background: var(--flaeche-2); outline: none;
}
.suche input:focus { border-color: var(--akzent); background: var(--flaeche); }
.suche svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-2); }

.inhalt { max-width: 1200px; margin: 0 auto; padding: 8px 20px 48px; }
.zusammenfassung { color: var(--text-2); font-size: 13.5px; margin: 14px 0 4px; }

.standort { margin-top: 26px; }
.standort > h2 {
  font-size: 20px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-weight: 640;
}
.standort > h2 svg { color: var(--akzent); }
.standort > h2 span { color: var(--text-2); font-weight: 400; font-size: 14px; margin-left: 4px; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.karte {
  display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.karte:hover, .karte:focus-visible { transform: translateY(-2px); border-color: var(--akzent); outline: none; }
.bild {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--flaeche-2), var(--rand));
  display: grid; place-items: center; color: var(--text-2);
}
.bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.karte-text { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.karte-text strong { font-size: 16.5px; font-weight: 640; }
.karte-text .modell { font-size: 14.5px; }
.datum { color: var(--text-2); font-size: 13.5px; }
.kennzahlen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  font-size: 12.5px; padding: 2px 8px; border-radius: 999px;
  background: var(--flaeche-2); color: var(--text-2); white-space: nowrap;
}
.chip.warn { background: var(--warn-hell); color: var(--warn); }

.leer {
  margin: 60px auto; max-width: 460px; text-align: center; color: var(--text-2);
  background: var(--flaeche); border: 1px dashed var(--rand); border-radius: var(--radius); padding: 28px 24px;
}
.leer strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

@media (max-width: 600px) {
  .kopf-innen { padding: 10px 14px; gap: 10px; }
  .suche { flex: 1 1 100%; }
  .inhalt { padding: 4px 14px 40px; }
  .raster { grid-template-columns: 1fr; gap: 10px; }
  .karte { flex-direction: row; }
  .bild { aspect-ratio: auto; width: 110px; flex: none; }
  .bild svg { width: 40px; height: 40px; }
  .karte-text { padding: 10px 12px; min-width: 0; }
}
