/*
 * Ausbildungsplattform BAWZ Florian Deutschlandsberg
 * Design-Tokens: hell, ruhig, Feuerwehr-Rot als einziger Akzent.
 * Alle Komponenten greifen ausschließlich auf die Variablen zu.
 */

:root {
  /* Flächen */
  --bg: #f2f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --hover: #eef1f4;

  /* Schrift */
  --ink: #14181c;
  --ink-2: #545d66;
  --ink-3: #8a949d;

  /* Akzent — abgeleitet vom Kopfbanner des BFV Deutschlandsberg */
  --rot: #b3202b;
  --rot-dunkel: #8e1922;
  --rot-hell: #fdeced;
  --orange: #e0761c;
  --orange-hell: #fdf2e6;

  /* Status */
  --gruen: #12805c;
  --gruen-hell: #e6f5ef;
  --gelb: #a86a06;
  --gelb-hell: #fdf3e0;
  --blau: #1c5fa8;
  --blau-hell: #e9f1fa;

  /* Linien & Schatten */
  --linie: #e2e6ea;
  --linie-stark: #cdd4da;
  --schatten-s: 0 1px 2px rgba(20, 24, 28, 0.05);
  --schatten-m: 0 2px 8px rgba(20, 24, 28, 0.07), 0 1px 2px rgba(20, 24, 28, 0.04);
  --schatten-l: 0 12px 32px rgba(20, 24, 28, 0.12), 0 2px 8px rgba(20, 24, 28, 0.06);

  --radius: 12px;
  --radius-s: 8px;
  --radius-l: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);

  --sidebar: 258px;
  --topbar: 60px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Dezente Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--linie-stark) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--linie-stark);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

/* ------------------------------------------------------------------ Ladeanzeige */

.app-lade {
  display: grid;
  place-items: center;
  min-height: 100dvh;
}
.spinner {
  display: block;
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--linie-stark);
  border-top-color: var(--rot);
  border-radius: 50%;
  animation: dreh 0.7s linear infinite;
}
@keyframes dreh {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------ Anmeldung */

.login {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background:
    radial-gradient(1100px 520px at 50% -10%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f7f8fa 0%, #eceff2 100%);
}
.login-karte {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--linie);
  border-radius: var(--radius-l);
  box-shadow: var(--schatten-l);
  overflow: hidden;
}
.login-banner {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--linie);
}
.login-inhalt {
  padding: 26px 28px 28px;
}
.login-inhalt h1 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.login-inhalt p.sub {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
}
.login form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

/* ------------------------------------------------------------------ Grundlayout */

.shell {
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--linie);
  z-index: 40;
}

.sidebar-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar);
  padding: 0 18px;
  border-bottom: 1px solid var(--linie);
  flex-shrink: 0;
}
.sidebar-kopf .marke {
  min-width: 0;
}
.sidebar-kopf .marke b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sidebar-kopf .marke span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.flamme {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}
.nav-gruppe + .nav-gruppe {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--linie);
}
.nav-titel {
  padding: 0 10px 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8.5px 11px;
  border-radius: var(--radius-s);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  border-left: 2px solid transparent;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.nav a:hover {
  background: var(--hover);
  color: var(--ink);
}
.nav a.aktiv {
  background: var(--rot-hell);
  color: var(--rot-dunkel);
  border-left-color: var(--rot);
  font-weight: 550;
}
.nav a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
.nav a .zahl {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 0 6px;
}

.sidebar-fuss {
  border-top: 1px solid var(--linie);
  padding: 10px 12px;
  flex-shrink: 0;
}

.profil-knopf {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}
.profil-knopf:hover {
  background: var(--hover);
  border-color: var(--linie-stark);
}
.profil-knopf .name {
  min-width: 0;
  flex: 1;
}
.profil-knopf .name b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profil-knopf .name span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
}
.profil-knopf > svg,
.profil-eintrag > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-3);
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--rot);
  color: #fff;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.avatar.gross {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.inhalt {
  margin-left: var(--sidebar);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar);
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.topbar h1 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.topbar .rechts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Höhere Spezifität als .btn, damit der Burger auf Desktop verborgen bleibt. */
.btn.burger {
  display: none;
}

main {
  flex: 1;
  padding: 26px 24px 60px;
  max-width: 1360px;
  width: 100%;
  animation: rein 0.2s var(--ease);
}
@keyframes rein {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

/* ------------------------------------------------------------------ Bausteine */

.karte {
  background: var(--surface);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-s);
}
.karte-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--linie);
}
.karte-kopf > svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--ink-3);
}
.karte-kopf h2 {
  font-size: 14px;
  font-weight: 650;
}
.karte-kopf .rechts {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.karte-inhalt {
  padding: 18px;
}

.raster {
  display: grid;
  gap: 16px;
}
.raster.k2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.raster.k3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.raster.k4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.raster.auto {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.seitenkopf {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.seitenkopf h2 {
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.02em;
}
.seitenkopf p {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 13.5px;
  max-width: 72ch;
}
.seitenkopf .rechts {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Kennzahl-Kachel */
.kennzahl {
  padding: 16px 18px;
}
.kennzahl .label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kennzahl .wert {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.kennzahl .fussnote {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease),
    transform 0.08s var(--ease);
}
.btn:hover {
  background: var(--hover);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}
.btn.primaer {
  background: var(--rot);
  border-color: var(--rot);
  color: #fff;
}
.btn.primaer:hover {
  background: var(--rot-dunkel);
  border-color: var(--rot-dunkel);
}
.btn.still {
  border-color: transparent;
  background: transparent;
  color: var(--ink-2);
}
.btn.still:hover {
  background: var(--hover);
  color: var(--ink);
}
.btn.gefahr {
  color: var(--rot);
  border-color: var(--linie-stark);
}
.btn.gefahr:hover {
  background: var(--rot-hell);
  border-color: var(--rot);
}
.btn.gross {
  height: 42px;
  padding: 0 20px;
  font-size: 14.5px;
}
.btn.klein {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}
.btn.voll {
  width: 100%;
}
.btn.icon {
  width: 36px;
  padding: 0;
}
.btn.icon.klein {
  width: 30px;
}

/* Formularfelder */
.feld {
  display: grid;
  gap: 5px;
}
.feld > label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.feld .hilfe {
  font-size: 11.5px;
  color: var(--ink-3);
}
.eingabe,
select.eingabe,
textarea.eingabe {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-size: 13.5px;
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}
textarea.eingabe {
  height: auto;
  min-height: 72px;
  padding: 9px 11px;
  resize: vertical;
  line-height: 1.5;
}
.eingabe:focus {
  outline: none;
  border-color: var(--rot);
  box-shadow: 0 0 0 3px var(--rot-hell);
}
.eingabe::placeholder {
  color: var(--ink-3);
}
select.eingabe {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a949d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

/* Abzeichen */
.abzeichen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--linie);
  white-space: nowrap;
}
.abzeichen.gruen {
  background: var(--gruen-hell);
  color: var(--gruen);
  border-color: transparent;
}
.abzeichen.gelb {
  background: var(--gelb-hell);
  color: var(--gelb);
  border-color: transparent;
}
.abzeichen.rot {
  background: var(--rot-hell);
  color: var(--rot);
  border-color: transparent;
}
.abzeichen.blau {
  background: var(--blau-hell);
  color: var(--blau);
  border-color: transparent;
}

/* Fortschrittsbalken */
.balken {
  height: 6px;
  border-radius: 999px;
  background: var(--linie);
  overflow: hidden;
}
.balken > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--rot);
  transition: width 0.4s var(--ease);
}
.balken.gruen > i {
  background: var(--gruen);
}
.balken.gelb > i {
  background: var(--gelb);
}

/* Tabellen */
.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.tabelle th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 9px 14px;
  border-bottom: 1px solid var(--linie);
  background: var(--surface-2);
  white-space: nowrap;
}
.tabelle td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--linie);
  vertical-align: middle;
}
.tabelle tr:last-child td {
  border-bottom: 0;
}
.tabelle tbody tr:hover {
  background: var(--surface-2);
}
.tabelle .rechts {
  text-align: right;
}
.tabellen-huelle {
  overflow-x: auto;
}

/* Leerzustand */
.leer {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-3);
}
.leer svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
  color: var(--linie-stark);
}
.leer b {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
}
.leer p {
  font-size: 13px;
  max-width: 46ch;
}

/* Dialog */
.dialog-huelle {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 24, 28, 0.42);
  backdrop-filter: blur(2px);
  animation: einblenden 0.16s var(--ease);
}
@keyframes einblenden {
  from {
    opacity: 0;
  }
}
.dialog {
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--schatten-l);
  animation: hoch 0.18s var(--ease);
}
.dialog.breit {
  max-width: 760px;
}
@keyframes hoch {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
}
.dialog-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--linie);
}
.dialog-kopf h3 {
  font-size: 15px;
  font-weight: 650;
}
.dialog-kopf .btn {
  margin-left: auto;
}
.dialog-inhalt {
  padding: 20px;
  display: grid;
  gap: 14px;
}
.dialog-fuss {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--linie);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
}

/* Hinweise */
.hinweis {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  font-size: 13px;
  background: var(--blau-hell);
  color: #14406f;
  border: 1px solid rgba(28, 95, 168, 0.16);
}
.hinweis svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hinweis.warn {
  background: var(--gelb-hell);
  color: #7a4d04;
  border-color: rgba(168, 106, 6, 0.18);
}
.hinweis.gut {
  background: var(--gruen-hell);
  color: #0c5c42;
  border-color: rgba(18, 128, 92, 0.18);
}

/* Toasts */
.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 8px;
  justify-items: end;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--schatten-l);
  animation: hoch 0.2s var(--ease);
  max-width: 420px;
}
.toast.fehler {
  background: var(--rot-dunkel);
}
.toast.gut {
  background: #0f6d4f;
}

/* ------------------------------------------------------------- Profilauswahl */

.profilwahl {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 30px 20px;
  background: linear-gradient(180deg, #f7f8fa 0%, #eceff2 100%);
}
.profilwahl-box {
  width: 100%;
  max-width: 620px;
}
.profil-liste {
  display: grid;
  gap: 8px;
}
.profil-eintrag {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease),
    transform 0.1s var(--ease);
}
.profil-eintrag:hover {
  border-color: var(--rot);
  box-shadow: var(--schatten-m);
  transform: translateY(-1px);
}
.profil-eintrag .name b {
  display: block;
  font-size: 14.5px;
  font-weight: 620;
}
.profil-eintrag .name span {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ------------------------------------------------------ Übungsprogramm-Editor */

.uep-kopf {
  display: grid;
  gap: 14px;
  grid-template-columns: 220px repeat(3, minmax(0, 1fr));
}

.beispiel {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--schatten-s);
  overflow: hidden;
}
.beispiel + .beispiel {
  margin-top: 14px;
}
.beispiel-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--linie);
}
.beispiel-nr {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--rot);
  color: #fff;
  font-size: 12px;
  font-weight: 680;
  flex-shrink: 0;
}
.beispiel-kopf .rechts {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.beispiel-koerper {
  padding: 16px;
  display: grid;
  gap: 14px;
}
.beispiel-zeile {
  display: grid;
  gap: 14px;
  grid-template-columns: 260px minmax(0, 1fr);
}
.stichwort-info {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* Vorschau der gedruckten Tabelle */
.druck-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid #000;
}
.druck-tabelle td {
  border: 1px solid #000;
  padding: 2px 5px;
  height: 17px;
}
.druck-tabelle td.kopf {
  background: #d99594;
  text-align: center;
  font-weight: 700;
}
.druck-tabelle td.label {
  width: 33%;
  font-weight: 700;
}

/* ------------------------------------------------------------------ Test-Modul */

.test-frage {
  border-bottom: 1px solid var(--linie);
  padding: 14px 18px;
}
.test-frage:last-child {
  border-bottom: 0;
}
.test-frage.falsch {
  background: var(--rot-hell);
}
.test-frage.richtig {
  background: var(--gruen-hell);
}
.test-frage .frage-kopf {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.test-frage .frage-nr {
  font-size: 12px;
  font-weight: 680;
  color: var(--ink-3);
  min-width: 26px;
}
.test-frage .frage-text {
  font-weight: 600;
  font-size: 13.5px;
}
.test-frage .frage-punkte {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.loesung {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.loesung b {
  color: var(--gruen);
}

.antwort-raster {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.test-fortschritt {
  position: sticky;
  top: var(--topbar);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-s);
  margin-bottom: 16px;
}
.test-fortschritt .balken {
  flex: 1;
}

.pdf-rahmen {
  width: 100%;
  height: min(78dvh, 900px);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--surface-2);
}

/* ------------------------------------------------------------------- Mobil */

@media (max-width: 1000px) {
  .raster.k4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .raster.k3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .uep-kopf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s var(--ease);
    box-shadow: var(--schatten-l);
  }
  body.nav-offen .sidebar {
    transform: none;
  }
  body.nav-offen::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(20, 24, 28, 0.4);
  }
  .inhalt {
    margin-left: 0;
  }
  .btn.burger {
    display: inline-flex;
  }
  main {
    padding: 18px 14px 60px;
  }
  .topbar {
    padding: 0 14px;
  }
  .raster.k2,
  .raster.k3,
  .raster.k4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .beispiel-zeile,
  .uep-kopf {
    grid-template-columns: minmax(0, 1fr);
  }
  .seitenkopf {
    flex-direction: column;
  }
  .seitenkopf .rechts {
    margin-left: 0;
    width: 100%;
  }
}

@media print {
  .sidebar,
  .topbar,
  .toasts {
    display: none !important;
  }
  .inhalt {
    margin-left: 0;
  }
}
