/* ==========================================================================
   vulonieth.de – Aussehen „Bento“
   --------------------------------------------------------------------------
   Aufbau dieser Datei:
     1. Schriften (lokal, nichts von Google)
     2. Grundfarben und Grundlagen
     3. Seitengerüst: Kopfzeile, Fußzeile
     4. Raster (die Kachelwand) und Kachelgrößen
     5. Kachel allgemein: Etikett, Titel, Text, Knöpfe
     6. Die einzelnen Kacheltypen
     7. Sonderseiten: Neuigkeiten, Patchnotes, Bewertungen
   Bereichsfarben kommen als Variablen (--akzent, --knopf, --knopftext, --grund)
   aus aussehen.yaml und werden je Kachel bzw. Seite gesetzt.
   ========================================================================== */

/* 1. Schriften ------------------------------------------------------------ */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("schriften/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("schriften/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("schriften/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("schriften/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("schriften/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("schriften/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("schriften/space-grotesk-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("schriften/space-grotesk-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("schriften/space-grotesk-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("schriften/space-grotesk-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 2. Grundfarben und Grundlagen ------------------------------------------- */
:root {
  --hintergrund: #121218;
  --kachel: #1d1d26;
  --kachel-hell: #24242f;
  --rand: #2c2b38;
  --rand-hover: #5a5870;
  --schrift: #ecebf2;
  --gedaempft: #b9b7c8;     /* Fließtext auf Kacheln */
  --leise: #9a98ad;         /* kleine Zusatzinfos (Kontrast ≥ 4.5:1 auf --kachel) */
  --titelschrift: "Space Grotesk", system-ui, sans-serif;
  --textschrift: "Inter", system-ui, sans-serif;
  --abstand: 20px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--schrift);
  font: 16px/1.55 var(--textschrift);
}
a { color: var(--akzent); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

.springen { position: absolute; left: -9999px; top: 8px; background: var(--schrift); color: var(--hintergrund); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.springen:focus { left: 8px; }

/* 3. Seitengerüst --------------------------------------------------------- */
.seite { max-width: 1240px; margin: 0 auto; padding: 24px 40px 40px; display: flex; flex-direction: column; gap: var(--abstand); }

.kopfzeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--leise); min-height: 44px; }
.pfad { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pfad a { color: var(--schrift); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pfad .hier { color: var(--akzent); }
.sprachen { display: flex; gap: 12px; align-items: center; }
.sprachen span { color: var(--schrift); font-weight: 500; }
.sprachen a { color: var(--leise); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.sprachen a:hover { color: var(--schrift); }

.fusszeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--leise); margin-top: 12px; }
.fusslinks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fusslinks a { color: var(--gedaempft); }

/* 4. Raster: die Kachelwand ------------------------------------------------
   PC: 3 Spalten · Tablet: 2 Spalten · Handy: 1 Spalte.
   „grid-auto-flow: dense“ füllt Lücken automatisch mit kleineren Kacheln. */
.wand {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: minmax(150px, auto);
  gap: var(--abstand);
}
.g-klein { grid-column: span 1; }
.g-breit { grid-column: span 2; }
.g-hoch  { grid-column: span 1; grid-row: span 2; }
.g-gross { grid-column: span 2; grid-row: span 2; }
.g-voll  { grid-column: 1 / -1; }

@media (max-width: 959px) {
  .seite { padding: 20px 24px 32px; }
  .wand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .seite { padding: 16px 16px 28px; }
  .wand { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .g-breit, .g-gross, .g-klein, .g-hoch { grid-column: 1 / -1; grid-row: auto; }
  .motiv, .g-hoch .motiv, .g-gross .motiv { min-height: 0; height: 130px; }
  .motiv svg { min-height: 0; }
}

/* 5. Kachel allgemein ----------------------------------------------------- */
.kachel {
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--kachel);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--schrift);
  text-decoration: none;
}
a.kachel:hover { border-color: var(--rand-hover); color: var(--schrift); }
a.kachel:hover .titel { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.kachel.oben-rand { border-top: 4px solid var(--knopf); }

.innen { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.etikett { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--akzent); }
.titel { margin: 0; font-family: var(--titelschrift); font-weight: 700; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.titel.klein { font-size: 20px; }
.g-breit .titel, .g-gross .titel { font-size: 30px; }
.text { font-size: 15px; color: var(--gedaempft); }
.text p, .text ul, .text ol { margin: 0 0 .7em; }
.text > :last-child { margin-bottom: 0; }
.text h2, .text h3, .text h4 { font-family: var(--titelschrift); color: var(--schrift); margin: 1em 0 .4em; }
.text a { color: var(--akzent); }
.fuss { font-size: 13px; color: var(--leise); margin-top: auto; }
.leise { color: var(--leise); font-size: 14px; margin: 0; }
.mehr { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--rand); margin: 6px 0; width: 100%; }

.nur-deutsch {
  align-self: flex-start; margin: 14px 0 0 18px; padding: 3px 10px; border-radius: 10px;
  background: #2a2416; color: #ecd58f; font-size: 12px; position: relative; z-index: 1;
}
.innen .nur-deutsch { margin: 0; }

/* Knöpfe: voll (gefüllt), rand (nur Rahmen), aus (ausgegraut, nicht anklickbar) */
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.knopf {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 500;
}
.knopf.voll { background: var(--knopf); color: var(--knopftext); }
.knopf.voll:hover { filter: brightness(1.1); color: var(--knopftext); }
.knopf.rand { border: 1px solid var(--knopf); color: var(--akzent); }
.knopf.rand:hover { background: var(--kachel-hell); color: var(--schrift); }
.knopf.aus { border: 1px dashed #4a4858; color: var(--leise); cursor: not-allowed; }

/* 6. Kacheltypen ---------------------------------------------------------- */

/* Text: Kopfkachel */
.k-kopf { background: var(--grund); justify-content: flex-end; min-height: 220px; }
.k-kopf .innen { justify-content: flex-end; padding: 28px; gap: 12px; flex-grow: 0; }
.k-kopf .titel { font-size: 52px; line-height: 1; }
.k-kopf .text { font-size: 16px; color: #d8d6e2; max-width: 620px; }
.k-kopf .motiv { flex-grow: 1; }
@media (max-width: 639px) { .k-kopf .titel { font-size: 38px; } }

/* Text: Motiv und Bild oben */
.motiv { min-height: 110px; background: var(--grund); display: flex; }
.motiv svg { width: 100%; height: 100%; min-height: 110px; display: block; }
.g-hoch .motiv, .g-gross .motiv { min-height: 200px; }
.bildkopf img { width: 100%; height: 160px; object-fit: cover; }
.g-gross .bildkopf img, .g-hoch .bildkopf img { height: 260px; }
.avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--knopf); }
.k-kopf .avatar { width: 96px; height: 96px; }

/* Bild */
.k-bild figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.k-bild img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; flex-grow: 1; }
.k-bild figcaption { padding: 10px 16px; font-size: 13px; color: var(--gedaempft); }

/* Zahlen und Steckbrief */
.zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px 14px; }
.zahl-feld { display: flex; flex-direction: column; gap: 4px; }
.zahl { font-family: var(--titelschrift); font-weight: 700; font-size: 34px; line-height: 1; }
.zahl-text { font-size: 13px; color: var(--gedaempft); }
.steckbrief { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.steckbrief dt { color: var(--leise); }
.steckbrief dd { margin: 0; }

/* Neuigkeiten */
.meldungen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.meldung { display: flex; flex-direction: column; gap: 3px; padding-left: 12px; border-left: 3px solid var(--knopf); }
.meldung-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--leise); }
.meldung-titel { font-size: 15px; }
.meldung-text { font-size: 14px; color: var(--gedaempft); }
.marke { font-size: 12px; padding: 2px 10px; border-radius: 12px; background: var(--kachel-hell); color: var(--akzent); }
.ausfuehrlich .meldung { padding-bottom: 6px; }

/* Mod-Liste */
.modliste-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid #3a3948; background: transparent; color: #d6d4e2; font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--schrift); color: var(--hintergrund); border-color: var(--schrift); }
.modraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--abstand); margin-top: 6px; }
.mod { background: var(--kachel-hell); border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.mod[hidden] { display: none; }
.modbild { width: 100%; height: 170px; object-fit: cover; background: #0d0d12; border-bottom: 1px solid var(--rand); }
.mod-innen { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.mod-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.mod-kopf .leise { font-size: 12px; }
.mod h3 { margin: 0; font-family: var(--titelschrift); font-size: 18px; line-height: 1.25; }
.mod p { margin: 0; font-size: 14px; color: var(--gedaempft); }
.mod .knopf { margin-top: auto; align-self: flex-start; border-color: #3a3948; color: var(--schrift); }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Karte */
.karte-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--rand); }
.karte { width: 100%; border: 0; display: block; background: var(--grund); }

/* Downloads und Patchnotes */
.punkte { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #d6d4e2; }

/* Sterne */
.sterne { display: inline-flex; gap: 2px; }
.stern { width: 18px; height: 18px; }
.sterne.gross .stern { width: 32px; height: 32px; }
.stern .fuellung { fill: var(--akzent); stroke: var(--akzent); stroke-width: 1.2; }
.stern .umriss { fill: none; stroke: var(--akzent); stroke-width: 1.2; }

/* Bewertungen */
.bewertungsraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.bewertung { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: var(--kachel-hell); border: 1px solid var(--rand); color: var(--schrift); text-decoration: none; }
.bewertung:hover { border-color: var(--rand-hover); color: var(--schrift); }
.bewertung-name { font-family: var(--titelschrift); font-weight: 700; font-size: 18px; }
.bewertung-fazit { font-size: 14px; color: var(--gedaempft); }

/* Tabellen aus Markdown */
.tabelle { overflow-x: auto; }
.tabelle table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rand); }
.tabelle th { color: var(--leise); font-weight: 500; }
blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--knopf); }
code { font-family: ui-monospace, monospace; font-size: .92em; background: var(--kachel-hell); padding: 1px 5px; border-radius: 5px; }
pre code { display: block; padding: 12px; overflow-x: auto; }

/* 7. Sonderseiten: lange Lesetexte ---------------------------------------- */
.lesetext .innen { max-width: 820px; padding: 28px; gap: 14px; }
.lesetext h2 { font-family: var(--titelschrift); margin: 10px 0 0; font-size: 22px; }
.lesetext .titel { font-size: 42px; }
.patchnote { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.gesamt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; }
.gesamt-zahl { font-family: var(--titelschrift); font-size: 22px; font-weight: 700; }
.kriterien { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kriterien li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--rand); padding-bottom: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .kachel, .bewertung, .knopf { transition: border-color .15s, background-color .15s, filter .15s; }
}
