/* ==================================================================
   SSI Quiz – Aufbau wie Tauchalben und Dart, Farben nach SSI
   (divessi.com: Rot #e32119, Schwarz, Neutralgrau, Petrol #005161)
   ================================================================== */

:root {
  /* Kopfbereich */
  --kopf:        #111111;
  --kopf-text:   #c9c9c9;
  --kopf-marke:  #ff5147;   /* SSI-Rot, auf Schwarz etwas heller für Lesbarkeit */

  /* SSI-Rot: Hauptschaltflächen, Fortschritt, Kartenkante */
  --brand:       #e32119;
  --brand-dark:  #c11b14;
  --brand-soft:  #fdecea;

  /* SSI-Petrol: Links, Zweitschaltflächen, Fokus, Marken */
  --accent:      #005161;
  --accent-dark: #003a46;
  --accent-soft: #e2eff1;

  --ink:         #262626;
  --bg:          #f6f6f6;
  --surface:     #ffffff;
  --surface-2:   #fafafa;
  --line:        #e0e0e0;
  --line-soft:   #ececec;
  --muted:       #666666;

  /* Rückmeldung: falsch bewusst dunkler als das Marken-Rot */
  --danger:      #b3261e;
  --danger-line: #e8c3c0;
  --danger-soft: #fbefee;
  --ok:          #1f7a46;
  --ok-line:     #a3d9b7;
  --ok-soft:     #ebf7ef;

  --radius:      12px;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md:   0 10px 24px -12px rgba(0, 0, 0, .3);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* ------------------------------------------------------------------
   Dunkle Werte – ZWEIMAL vorhanden, beide Blöcke gemeinsam pflegen:
   1. erzwungen über den Schalter  (data-ansicht="dunkel")
   2. automatisch nach System, außer der Schalter steht auf „hell“
   In reinem CSS lässt sich das nicht zu einem Block zusammenfassen.
   ------------------------------------------------------------------ */
:root[data-ansicht="dunkel"] {
  --kopf:        #0b0b0b;

  --brand:       #e32119;
  --brand-dark:  #f0372f;
  --brand-soft:  #3a1715;

  --accent:      #54b9ca;
  --accent-dark: #7fcfdc;
  --accent-soft: #16323a;

  --ink:         #ececec;
  --bg:          #141414;
  --surface:     #1e1e1e;
  --surface-2:   #191919;
  --line:        #333333;
  --line-soft:   #2a2a2a;
  --muted:       #a0a0a0;

  --danger:      #ff8a80;
  --danger-line: #5c2a26;
  --danger-soft: #2b1816;
  --ok:          #6fd39a;
  --ok-line:     #2d5a3e;
  --ok-soft:     #15281c;

  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:   0 10px 24px -12px rgba(0, 0, 0, .8);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-ansicht="hell"]) {
    --kopf:        #0b0b0b;

    --brand:       #e32119;
    --brand-dark:  #f0372f;
    --brand-soft:  #3a1715;

    --accent:      #54b9ca;
    --accent-dark: #7fcfdc;
    --accent-soft: #16323a;

    --ink:         #ececec;
    --bg:          #141414;
    --surface:     #1e1e1e;
    --surface-2:   #191919;
    --line:        #333333;
    --line-soft:   #2a2a2a;
    --muted:       #a0a0a0;

    --danger:      #ff8a80;
    --danger-line: #5c2a26;
    --danger-soft: #2b1816;
    --ok:          #6fd39a;
    --ok-line:     #2d5a3e;
    --ok-soft:     #15281c;

    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md:   0 10px 24px -12px rgba(0, 0, 0, .8);

    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

code {
  padding: 1px 5px;
  font-size: .9em;
  background: var(--accent-soft);
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Kopfbereich ---------- */

.masthead {
  background: var(--kopf);
  color: #ffffff;
  border-bottom: 3px solid var(--brand);
  padding-top: env(safe-area-inset-top);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link,
.brand-text .titel a {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--kopf-marke);
}

.brand-text .titel {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.kopf-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.kopf-nav a,
.nav-knopf {
  padding: 6px 11px;
  font: inherit;
  font-size: 14px;
  color: var(--kopf-text);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.kopf-nav a:hover,
.nav-knopf:hover {
  color: #fff;
  background: rgba(255, 255, 255, .10);
}

.nav-form { margin: 0; }

@media (min-width: 640px) {
  .masthead-inner { padding-block: 24px; }
  .brand-mark { width: 56px; height: 56px; border-radius: 13px; }
  .brand-text .titel { font-size: 1.8rem; }
}

/* ---------- Hauptbereich ---------- */

.haupt {
  flex: 1 0 auto;
  padding-block: 22px 40px;
}

.seitenkopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 6px 0 18px;
}
.seitenkopf h1,
.seitenkopf h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -.01em;
}
.seitenkopf h2 { font-size: 1.15rem; }

.meta-line {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.brotkrumen {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Hinweise ---------- */

.notice {
  padding: 11px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  margin: 0 0 18px;
}
.notice-info  { background: var(--accent-soft); }
.notice-ok    { border-color: var(--ok-line); background: var(--ok-soft); color: var(--ok); }
.notice-error { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); }

.empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty h2 { margin: 0 0 8px; font-size: 1.15rem; }
.empty p  { margin: 0; color: var(--muted); }

.hinweis { opacity: .75; font-weight: 400; }

.hinweis-klein {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-quiet {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--line);
}
.btn-quiet:hover { background: var(--accent-soft); }
.btn-danger {
  background: var(--surface);
  color: var(--danger);
  border-color: var(--danger-line);
}
.btn-danger:hover { background: var(--danger-soft); }

.btn-gross {
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 600;
}

.btn-link {
  padding: 4px;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
.btn-link:hover { color: var(--accent); }

.zaehler {
  font-size: 12px;
  font-weight: 400;
  opacity: .85;
}

/* ---------- Panels und Formulare ---------- */

.panel {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-schmal {
  max-width: 420px;
  margin: 10px auto 20px;
  box-shadow: var(--shadow-md);
}

.panel-titel {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 650;
}

.panel-intro {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.formular {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .raster-2 { grid-template-columns: 1fr 1fr; }
  .raster-3 { grid-template-columns: repeat(3, 1fr); }
  .raster-2 .breit,
  .raster-3 .breit { grid-column: 1 / -1; }
}

.field { display: block; font-size: 13px; color: var(--muted); }
.field input,
.field select,
.field textarea,
.antwort-zeile input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;    /* unter 16px zoomt iOS beim Fokus hinein */
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.panel-schmal .form-actions .btn { flex: 1 1 auto; }

.gruppe {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.gruppe legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.loeschen-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ==================================================================
   Kursauswahl
   ================================================================== */

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}

.kachel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.kachel:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kachel-bild {
  display: block;
  aspect-ratio: 598 / 380;
  background: var(--accent-soft);
}
.kachel-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kachel-platzhalter {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand);
}

.kachel-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
}

.kachel-text h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}

.kachel-meta {
  margin: 2px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.kachel-aktionen {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.kachel-aktionen .btn { flex: 1 1 0; }

/* ==================================================================
   Quiz
   ================================================================== */

.quiz {
  max-width: 760px;
  margin-inline: auto;
}

.quiz-kopf { margin-bottom: 16px; }

.quiz-kopf h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.marke {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.fortschritt-text {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.fortschritt {
  display: block;
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-soft);
  color: var(--brand);
}
.fortschritt::-webkit-progress-bar   { background: var(--line-soft); }
.fortschritt::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
.fortschritt::-moz-progress-bar      { background: var(--brand); border-radius: 999px; }

.karte-frage {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.karte-frage.ist-richtig { border-top-color: var(--ok); }
.karte-frage.ist-falsch  { border-top-color: var(--danger); }

@media (min-width: 640px) {
  .karte-frage { padding: 28px 30px; }
}

.frage-kurs {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.frage-text {
  margin: 0 0 20px;
  font-size: clamp(1.1rem, 3.6vw, 1.35rem);
  font-weight: 650;
  line-height: 1.4;
}

.ergebnis {
  margin: 0 0 8px;
  font-weight: 700;
}
.ist-richtig .ergebnis { color: var(--ok); }
.ist-falsch  .ergebnis { color: var(--danger); }

/* Antworten zum Anklicken */
.antworten {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.antwort-knopf {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.antwort-knopf:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Aufgelöste Antworten */
.aufgeloest { margin-bottom: 22px; }

/* „Nächste Frage“ auf dem Handy über die volle Breite – Daumenreichweite */
@media (max-width: 639px) {
  .karte-frage > .form-actions .btn { flex: 1 1 auto; }
}

.antwort {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.45;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}
.antwort.korrekt {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: var(--ok-line);
}
.antwort.gewaehlt { border-width: 2px; font-weight: 600; }
.antwort.falsch {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: var(--danger);
}

.antwort-zeichen {
  flex: 0 0 1.1em;
  font-weight: 700;
}

/* Statistik unter der Frage */
.statistik {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 18px 0 0;
  text-align: center;
}
.statistik dt {
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.statistik dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.statistik .gut      { color: var(--ok); }
.statistik .schlecht { color: var(--danger); }

.neustart {
  margin-top: 22px;
  text-align: center;
}

/* Ende einer Runde / Prüfungsergebnis */
.fertig,
.ergebnis-karte { text-align: center; }
.fertig h2,
.ergebnis-karte h2 { margin: 0 0 6px; font-size: 1.3rem; }
.fertig p,
.ergebnis-karte p { margin: 0 0 18px; color: var(--muted); }

.sieg-symbol {
  margin: 0 0 6px !important;
  font-size: 44px;
  line-height: 1;
}

.ergebnis-zahl {
  margin: 0 0 4px !important;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ist-richtig .ergebnis-zahl { color: var(--ok) !important; }
.ist-falsch  .ergebnis-zahl { color: var(--danger) !important; }

.aktionen-reihe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.aktionen-reihe form { margin: 0; }

/* Fehlerliste nach der Prüfung */
.abschnitt {
  margin: 30px 0 12px;
  font-size: 1.15rem;
}

.fehlerliste {
  margin: 0;
  padding-left: 1.4em;
}
.fehlerliste li {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.fehlerliste li::marker { color: var(--muted); font-weight: 600; }

.fehler-frage {
  margin: 0 0 8px;
  font-weight: 600;
}
.fehler-antwort {
  display: flex;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 15px;
}
.fehler-antwort.falsch  { color: var(--danger); }
.fehler-antwort.korrekt { color: var(--ok); }

/* ==================================================================
   Dialoge
   ================================================================== */

.lage {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lage-karte {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .6);
}
.lage-text { max-width: 560px; }
.lage-karte h2 { margin: 0 0 12px; font-size: 1.15rem; }
.lage-karte p  { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.lage-karte p strong { color: var(--ink); }

.lage-aktionen {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ==================================================================
   Verwaltung
   ================================================================== */

.tabelle-rahmen {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.tabelle th,
.tabelle td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.tabelle th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; }

.bild-vorschau {
  max-width: 260px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.fragenliste {
  margin: 0;
  padding: 0 0 0 1.6em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fragenliste li {
  padding: 11px 14px 11px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.fragenliste li:last-child { border-bottom: 0; }
.fragenliste li::marker { color: var(--muted); font-size: 13px; }
.fragenliste a {
  font-weight: 600;
  text-decoration: none;
}
.fragenliste a:hover { text-decoration: underline; }

.fragenliste-richtig {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.warnung { color: var(--danger); font-weight: 600; }

.antwort-zeile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.antwort-zeile input[type="text"] { margin-top: 0; }

.antwort-richtig {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  cursor: pointer;
}
.antwort-richtig input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ok);
}
.buchstabe {
  width: 1em;
  font-weight: 600;
  color: var(--muted);
}

.zugang-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.zugang-kopf h2 { margin: 0; font-size: 1.1rem; }

.status {
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}
.status-an  { color: var(--ok); background: var(--ok-soft); }
.status-aus { color: var(--danger); background: var(--danger-soft); }

.zugang-gefahr {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.zugang-gefahr form { margin: 0; }

/* ---------- Fuß ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-block: 16px max(16px, env(safe-area-inset-bottom));
  align-items: center;
}

.foot-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

/* ---------- Schalter hell / dunkel ---------- */

.ansicht-schalter {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.ansicht-schalter button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ansicht-schalter button:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.ansicht-schalter button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .kachel:hover { transform: none; }
}
