/* Waffbrett im Leichtmeisterei-Design.
   Tokens und Muster aus dem Stylesheet von Waffeleisen (agent/we-design,
   projects/waffeleisen/app/web/static/web/style.css), dort aus Vereinswebseite und Styleguide:
   Verlauf Dunkellila → Helllila, Hintergrundgrafik weiß 10 %, goldener Doppelrahmen um den Inhalt
   (Dunkellila 80 %), Überschriften und Links gold, Text weiß 90 %, Schrift Lexend, Gold-Knöpfe.
   Keine externen Ressourcen (CSP: nur eigene Dateien). */

@font-face {
  font-family: "Lexend";
  src: url("fonts/Lexend-VariableFont_wght.568877957c46.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Vereinsfarben (Theme-style.css, Styleguide) */
  --weiss: rgba(255, 255, 255, 0.9);
  --gold: #F2C560;
  --violettDark: #100231;
  --violettLight: #5916AB;
  --cyan: #33BEF3;
  --verlauf: linear-gradient(180deg, rgb(16, 2, 49) 0%, rgb(89, 22, 171) 100%);

  /* Größen wie theme.json (fluid) */
  --fs-small: 0.875rem;
  --fs-medium: clamp(1rem, 1rem + (1vw - 0.2rem) * 0.156, 1.125rem);
  --fs-large: clamp(1.125rem, 1.125rem + (1vw - 0.2rem) * 0.313, 1.375rem);
  --fs-x-large: clamp(1.75rem, 1.75rem + (1vw - 0.2rem) * 0.313, 2rem);
  --fs-xx-large: clamp(2.15rem, 2.15rem + (1vw - 0.2rem) * 1.063, 3rem);

  /* Eigene Schicht wie Waffeleisen (--lm-…) */
  --lm-text: var(--weiss);
  --lm-muted: rgba(255, 255, 255, 0.7);
  --lm-panel: rgba(16, 2, 49, 0.8);
  --lm-surface: rgba(255, 255, 255, 0.05);
  --lm-surface-hover: rgba(255, 255, 255, 0.09);
  --lm-line: rgba(242, 197, 96, 0.35);
  --lm-line-strong: rgba(242, 197, 96, 0.6);
  --lm-glow: 0 0 12px rgba(242, 197, 96, 0.15);
  --lm-radius: 12px;
  --lm-radius-inner: 8px;
  --lm-radius-button: 10px;
  --lm-gutter: clamp(16px, 4vw, 22px);
  --illu: url("img/bg/lhfBackground_1.efb0e641bf64.svg");   /* ohne JavaScript; sonst wählt kosmos-schalter.js */
  --illu-opacity: .1;
  --illu-size: min(2400px, 95vw);
  --illu-pos: center 15vh;

  /* Zustände */
  --ok: #5FD3A8;
  --warten: #FFEE58;
  --stoerung: #FF8D8D;
  --aus: #B8B4C8;

  color-scheme: dark;
  accent-color: var(--gold);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background-color: var(--violettDark); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--lm-text); background: transparent;
  font-family: Lexend, sans-serif; font-weight: 300;
  font-size: var(--fs-medium); line-height: 1.45; letter-spacing: -0.1px;
}
/* Ebene 1 und 2: Farbverlauf, darüber die Hintergrundgrafik, beide fest */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body::before { background: var(--verlauf); }
body::after { background: var(--illu) no-repeat var(--illu-pos) / var(--illu-size); opacity: var(--illu-opacity); }

h1, h2, h3 { color: var(--gold); font-weight: 300; line-height: 1.125; margin: 1.4em 0 .5em; text-wrap: balance;
  overflow-wrap: break-word; }   /* lange Wörter brechen notfalls um, statt die Seite zu verbreitern */
h1 { font-size: var(--fs-xx-large); margin-top: .3em; }
h2 { font-size: var(--fs-x-large); }
h3 { font-size: var(--fs-large); }
strong { font-weight: 600; }
p { hyphens: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(242, 197, 96, .5); }
a:hover { text-decoration-color: currentColor; }
code { font-size: .9em; background: rgba(255, 255, 255, .08); padding: .05em .35em; border-radius: 4px; overflow-wrap: anywhere; user-select: all; }
.muted { color: var(--lm-muted); }
.small { font-size: var(--fs-small); }
.lead { font-size: var(--fs-large); max-width: 46rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(242, 197, 96, .35); color: #fff; }

/* Kopf: Logo frei über dem Hintergrund, Goldlinie darunter. Kopf, Rahmen und Fuß liegen über dem
   bewegten Hintergrund (Kosmos, z-index 0) */
.site-header { position: relative; z-index: 1; }
.site-header:has(.profil[open]) { z-index: 3; }      /* offene Profil-Tafel über dem Rahmen */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--lm-gutter); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; padding-top: 18px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: .9rem; color: var(--lm-text); text-decoration: none; }
.brand img { display: block; height: 72px; width: auto; }
.brand .app-name { color: var(--gold); font-size: var(--fs-x-large); line-height: 1; padding-left: .9rem; border-left: 1px solid var(--lm-line-strong); }
/* Profil oben rechts (portal.profil, basis.html): Bild oder Initialen im Kreis, Name und Rollen; ein Klick klappt
   Anmeldung und Abmelden auf (details/summary, ohne JavaScript). Die Initialen liegen unter dem Bild: lädt es nicht,
   bleiben sie sichtbar. */
.profil { position: relative; order: 1; margin-left: auto; }
.profil-knopf { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: .2rem .5rem .2rem .25rem;
  list-style: none; cursor: pointer; border: 1px solid transparent; border-radius: 999px; }
.profil-knopf::-webkit-details-marker { display: none; }
.profil-knopf:hover, .profil-knopf:focus-visible, .profil[open] .profil-knopf { border-color: var(--lm-line-strong);
  background: rgba(242, 197, 96, .08); }
.profil-bild { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 1px solid var(--gold);
  background: rgba(242, 197, 96, .16); color: var(--gold); font-weight: 500; font-size: .95rem; letter-spacing: .02em; }
.profil-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profil-text { display: flex; flex-direction: column; min-width: 0; max-width: 9.5rem; line-height: 1.25;
  font-size: .95rem; }
.profil-name, .profil-rollen { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-rollen { font-size: .8rem; color: var(--lm-muted); }
.profil-tafel { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 5; width: max-content;
  max-width: min(20rem, calc(100vw - 2 * var(--lm-gutter))); display: flex; flex-direction: column; gap: .5rem;
  padding: .8rem 1rem; border: 1px solid var(--lm-line-strong); border-radius: var(--lm-radius-inner);
  background: rgb(16, 2, 49); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.profil-tafel p { margin: 0; overflow-wrap: anywhere; }
.profil-rollen-voll { font-size: var(--fs-small); color: var(--lm-muted); }
.profil-tafel form { margin: 0; }
/* Alpha-Kennzeichen, Feedback-Knopf und „Animation an/aus“ oben rechts (ENT-032). Die Leiste nimmt den
   Schalter aus dem Baustein Kosmos auf (sonst absolut positioniert) */
.kopf-werkzeuge {
  position: absolute; top: 6px; z-index: 2; display: flex; align-items: center; gap: .45rem;
  right: max(var(--lm-gutter), calc((100% - 1200px) / 2 + var(--lm-gutter)));
}
.kopf-werkzeuge .kosmos-schalter { position: static; }
.alpha-marke, .feedback-knopf {
  display: inline-flex; align-items: center; font-size: .75rem; line-height: 1.3; padding: .12rem .6rem;
  border-radius: 999px; border: 1px solid var(--lm-line-strong); background: rgba(16, 2, 49, .55);
}
.alpha-marke { color: var(--cyan); border-color: rgba(51, 190, 243, .6); letter-spacing: .04em; cursor: help; }
.feedback-knopf { color: var(--gold); text-decoration: none; font-weight: 500; }
.feedback-knopf:hover, .feedback-knopf:focus-visible { background: rgba(242, 197, 96, .14); border-color: var(--gold); }
/* Bereiche (nur angemeldet) */
.hauptnav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-right: auto; padding-left: .4rem; }
.hauptnav a { color: var(--lm-text); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.hauptnav a:hover { color: var(--gold); }
.hauptnav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
/* Reiter unter dem Menü (ENT-058): der Menüpunkt und seine Seiten, zugleich der Pfad */
.unternav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; margin: -.3rem 0 .4rem;
  padding-bottom: .45rem; border-bottom: 1px solid var(--lm-line); font-size: var(--fs-small); }
.unternav a { color: var(--lm-text); text-decoration: none; padding: .15rem 0; border-bottom: 2px solid transparent; }
.unternav a:hover { color: var(--gold); }
.unternav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.unternav .unternav-menue { color: var(--lm-muted); }
.unternav .unternav-menue::after { content: " ›"; }

/* Ebene 3: goldener Doppelrahmen um den Inhalt */
main.frame {
  position: relative; z-index: 1; width: min(1280px, 100% - 2 * var(--lm-gutter)); margin: clamp(30px, 5vw, 50px) auto;
  padding: 2rem clamp(1rem, 5vw, 4.25rem) 2.5rem; flex: 1 0 auto;
  background-color: var(--lm-panel); border: 3px double var(--gold); border-radius: var(--lm-radius); box-shadow: var(--lm-glow);
}
main.frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--lm-line-strong); border-radius: var(--lm-radius-inner); pointer-events: none; }
main.frame > :first-child { margin-top: 0; }

/* Knöpfe: Gold mit Dunkellila; zweitrangig als Goldrahmen */
button, .button {
  font: inherit; font-weight: 600; display: inline-block; padding: .55rem 1.1rem; border-radius: var(--lm-radius-button);
  border: 1px solid var(--gold); background: var(--gold); color: var(--violettDark); cursor: pointer;
  text-decoration: none; line-height: 1.25; box-shadow: 0 6px 16px rgba(242, 197, 96, .2);
  transition: transform .06s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}
button:hover, .button:hover { filter: brightness(.95); box-shadow: 0 8px 22px rgba(242, 197, 96, .35); }
button:active, .button:active { transform: translateY(1px) scale(.99); }
.button.secondary { background: transparent; color: var(--gold); border-color: var(--lm-line-strong); box-shadow: none; font-weight: 400; }
.button.secondary:hover { background: rgba(242, 197, 96, .1); border-color: var(--gold); filter: none; box-shadow: var(--lm-glow); }
.button.warnung { color: #FFB7B7; border-color: rgba(255, 141, 141, .55); }
.button.warnung:hover { background: rgba(255, 141, 141, .12); border-color: var(--stoerung); box-shadow: none; }
.button.klein { padding: .3rem .8rem; font-size: var(--fs-small); }
.button.gross { font-size: var(--fs-large); padding: .7rem 1.4rem; }
form.anmelden { margin: 1em 0; }

/* Zierlinie mit Raute */
.ornament { display: flex; align-items: center; gap: .6rem; color: var(--gold); margin: .8rem 0 1.2rem; max-width: 22rem; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.ornament span { width: .55rem; height: .55rem; border: 1px solid currentColor; transform: rotate(45deg); }

.hero { padding: .5rem 0; text-align: center; }
.hero h1 { margin-bottom: .2em; }
.hero .ornament, .hero .lead, .hero p { margin-inline: auto; }
.hero p { max-width: 40rem; }
.hero.links { text-align: left; }
.hero.links .ornament, .hero.links .lead { margin-inline: 0; }
.fehlercode { font-size: clamp(3.5rem, 12vw, 6rem); color: var(--gold); font-weight: 200; line-height: 1; margin: 0 auto; }

/* Meldungen und Hinweise */
.meldungen { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.meldung, .hinweis {
  padding: .65rem 1rem; border-radius: var(--lm-radius-inner); border: 1px solid var(--lm-line-strong);
  background: rgba(242, 197, 96, .1); margin: .8rem 0;
}
.meldungen .meldung { margin: 0; }
.meldung.success { border-color: rgba(95, 211, 168, .6); background: rgba(95, 211, 168, .12); }
.meldung.error { border-color: rgba(255, 141, 141, .6); background: rgba(255, 141, 141, .12); }
.meldung.info { border-color: rgba(51, 190, 243, .55); background: rgba(51, 190, 243, .1); }
/* Sperre an der Stelle der Knöpfe (Vorstand ohne Zwei-Faktor): groß, Warnrot, nicht zu übersehen */
.sperre {
  margin: 1rem 0; padding: 1rem 1.2rem 1.1rem; border-radius: var(--lm-radius-inner);
  border: 2px solid var(--stoerung); border-left-width: 8px; background: rgba(255, 141, 141, .16);
}
.sperre-titel { margin: 0 0 .4rem; font-size: var(--fs-large); font-weight: 600; color: #FFD0D0; }
.sperre p { margin: .4rem 0; }
.sperre ol { margin: .5rem 0 .9rem; padding-left: 1.4rem; }
.sperre li { margin: .25rem 0; }
.sperre form { margin: 0; }

/* Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.card {
  background: var(--lm-surface); border: 1px solid var(--lm-line-strong); border-radius: var(--lm-radius-inner);
  padding: 1.1rem 1.3rem 1.3rem; min-width: 0;
}
.card h2 { margin: 0 0 .35rem; font-size: var(--fs-x-large); }
.card h3 { font-size: var(--fs-large); margin: 1.4rem 0 .5rem; }
.card > p { margin: .5rem 0; }
.kachel-breit { grid-column: 1 / -1; }
.kachel-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
.card.bald { border-style: dashed; border-color: var(--lm-line); }
.card.bald p { color: var(--lm-muted); }

.zustand { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: var(--fs-large);
  padding: .2rem .9rem; border-radius: 999px; border: 1px solid var(--c, var(--aus)); color: var(--c, var(--aus)); }
.zustand strong { font-weight: 500; }
.zustand .punkt { width: .7em; height: .7em; border-radius: 50%; background: currentColor; flex: none; }
.zustand-an { --c: var(--ok); }
.zustand-aus { --c: var(--aus); }
.zustand-startet, .zustand-stoppt, .zustand-teilweise { --c: var(--warten); }
.zustand-startet .punkt, .zustand-stoppt .punkt, .zustand-teilweise .punkt { animation: blinken 1.2s ease-in-out infinite; }
.zustand-nicht_erreichbar, .zustand-unbekannt { --c: var(--stoerung); }
@keyframes blinken { 50% { opacity: .25; } }

.fakten { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .8rem 0; }
dt { color: var(--lm-muted); }
dd { margin: 0; overflow-wrap: anywhere; }
/* Harte Obergrenze (SRV-10): „Aus spätestens …“, unauffällig mit Goldrand links */
.frist { margin: .6rem 0; padding: .3rem 0 .3rem .8rem; border-left: 3px solid var(--gold); }
.frist strong { color: var(--gold); font-weight: 500; white-space: nowrap; }
.frist .muted { display: block; font-size: var(--fs-small, .9rem); }
.zustand-nicht_eingerichtet { --c: var(--aus); }
/* MV-Modus (AP69): Nebendienste mit Zustand, Name links, Zustand rechts (am Handy darunter, wenn es eng wird) */
.mv-dienste li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .3rem 0;
  border-bottom: 1px solid var(--lm-line); }
.mv-dienste .stand { display: inline-flex; align-items: center; gap: .4rem; color: var(--c, var(--aus)); white-space: nowrap; }
.mv-dienste .punkt { width: .6em; height: .6em; border-radius: 50%; background: currentColor; flex: none; }
.aktionen { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .4rem; }
.aktionen form { margin: 0; }
.aktionen.mittig { justify-content: center; }

.aufklapp {
  margin: 1rem 0; border: 1px solid var(--lm-line); border-radius: var(--lm-radius-inner); padding: .5rem 1rem;
  background: rgba(255, 255, 255, .03);
}
.aufklapp summary { cursor: pointer; color: var(--gold); }
.aufklapp summary::marker { color: var(--gold); }
.aufklapp[open] summary { margin-bottom: .3rem; }

.protokoll { list-style: none; padding: 0; margin: 0; }
.protokoll li { padding: .4rem 0; border-bottom: 1px solid var(--lm-line); }
.protokoll li:last-child { border-bottom: 0; }
.protokoll .wann { color: var(--gold); font-variant-numeric: tabular-nums; margin-right: .4rem; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 500; padding: .08rem .55rem; border-radius: 6px;
  background: rgba(255, 238, 88, .14); border: 1px solid rgba(255, 238, 88, .55); color: #FFF3A0; vertical-align: middle;
}
.badge.fehler { background: rgba(255, 141, 141, .14); border-color: rgba(255, 141, 141, .55); color: #FFB7B7; }

/* Fuß */
.site-footer { position: relative; z-index: 1; background: linear-gradient(to bottom, var(--violettDark) 0%, #0b0422 100%); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.3rem; padding-bottom: 1.3rem; font-size: var(--fs-small); color: rgba(255, 255, 255, .7); }
/* Impressum und Datenschutz (ENT-053): Links im Fuß jeder Seite, Seiten aus portal/recht/ (portal.rechtstexte) */
.recht-links { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.recht { max-width: 46rem; }
.recht h2 { margin-top: 1.8rem; }
.recht h3 { margin-top: 1.2rem; }
.recht li { margin-bottom: .35rem; }
.recht .entwurf { padding: .6rem .9rem; border: 1px solid rgba(255, 238, 88, .55); border-radius: 8px;
  background: rgba(255, 238, 88, .1); color: #FFF3A0; }
.recht mark.platzhalter { background: rgba(255, 238, 88, .18); color: #FFF3A0; border-radius: 4px; padding: 0 .25rem; }
.recht .tabelle { overflow-x: auto; margin: .8rem 0; }
.recht table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); }
.recht th, .recht td { text-align: left; vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid var(--lm-line); }
.recht th { color: var(--gold); font-weight: 500; }

@media (max-width: 768px) {
  :root { --illu-size: 250vw; --illu-pos: center 10vh; --illu-opacity: .15; }
  main.frame { width: calc(100% - 12px); margin: .8rem auto; padding: 1.4rem 1.1rem 1.6rem; border-width: 2px; border-radius: 10px; }
  main.frame::before { inset: 4px; border-radius: 7px; }
  /* Leiste mit Alpha, Feedback und Animation als eigene Zeile über dem Logo (44 px hohe Knöpfe) */
  .site-header { display: flex; flex-direction: column; }
  .kopf-werkzeuge { position: static; order: -1; justify-content: flex-end; flex-wrap: wrap;
    width: min(1200px, 100%); margin: 0 auto; padding: 6px var(--lm-gutter) 0; }
  .header-row { padding-top: .3rem; padding-bottom: .8rem; }
  .brand img { height: 52px; }
  .brand .app-name { font-size: var(--fs-large); padding-left: .7rem; }
  .hauptnav { order: 3; width: 100%; padding-left: 0; }
  .kacheln { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 1rem; }
  .aktionen form, .aktionen button { flex: 1 1 auto; }
  .aktionen button { width: 100%; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
}

/* Bedienelemente am Handy, am Tablet und bei Touch mindestens 44 × 44 px (Apple HIG, WCAG 2.5.5).
   Geprüft mit projects/vereinsplattform/werkzeug/mobil (360, 390, 768 px). Links im Fließtext sind
   ausgenommen (auch Einträge der Linkliste mit Beschreibung dahinter); Navigation, Sprungmarken und
   Links ohne Beschreibung bekommen die volle Größe. */
@media (max-width: 768px), (pointer: coarse) {
  button, .button, .feedback-knopf, .kopf-werkzeuge .kosmos-schalter { min-height: 44px; min-width: 44px; }
  button, .button { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
  .button.klein { padding: .45rem .9rem; }
  .feedback-knopf, .kopf-werkzeuge .kosmos-schalter { padding: .3rem .9rem; font-size: .8rem; }
  .hauptnav a, .unternav a, .sprungmarken a, .linkliste a:only-child, .recht-links a { display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; min-width: 44px; }
  .aufklapp summary, details > summary { min-height: 44px; padding-block: .6rem; }
}

/* Menü am Handy (bis 640 px): Bereiche und Konto hinter dem Knopf „Menü“ (menue.js, kein Inline-Code).
   Breiter oder ohne JavaScript steht die Navigation offen im Kopf; .kopf-menue ist dann unsichtbar
   für das Layout (display: contents). */
.kopf-menue { display: contents; }
.menue-knopf, .menue-knopf[hidden] { display: none; }
@media (max-width: 640px) {
  .js-menue .menue-knopf:not([hidden]) {
    display: inline-flex; align-items: center; gap: .55rem; margin-left: auto; padding: .5rem .9rem;
    background: transparent; color: var(--gold); border: 1px solid var(--lm-line-strong); box-shadow: none; font-weight: 500;
  }
  .js-menue .menue-knopf[aria-expanded="true"] { background: rgba(242, 197, 96, .14); border-color: var(--gold); }
  .menue-symbol {
    width: 18px; height: 14px; flex: none;
    background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
                linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
                linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
  }
  .js-menue .kopf-menue { display: none; }
  .js-menue .kopf-menue.offen {
    display: flex; flex-direction: column; gap: .8rem; order: 4; flex-basis: 100%;
    padding: .6rem 1rem 1rem; border: 1px solid var(--lm-line-strong); border-radius: var(--lm-radius-inner);
    background: var(--lm-panel);
  }
  .js-menue .header-row { column-gap: .6rem; }
  .js-menue .brand { gap: .6rem; }
  .js-menue .brand img { height: 44px; }
  .js-menue .brand .app-name { padding-left: .6rem; }
  .js-menue .kopf-menue .hauptnav { order: 0; flex-direction: column; gap: 0; margin: 0; padding: 0; width: 100%; }
  .js-menue .kopf-menue .hauptnav a {
    display: flex; justify-content: flex-start; min-height: 48px; padding: 0 .2rem; border-bottom: 1px solid var(--lm-line);
  }
  .js-menue .kopf-menue .hauptnav a[aria-current="page"] { border-bottom-color: var(--gold); }
}
/* Handy: vom Profil nur das Bild (Name und Rollen stehen in der Tafel; für Bildschirmleser bleibt der Text) */
@media (max-width: 640px) {
  .profil { position: static; margin-left: 0; }       /* Tafel über die ganze Breite unter dem Kopf */
  .profil-tafel { left: var(--lm-gutter); right: var(--lm-gutter); top: calc(100% - .4rem); width: auto;
    max-width: none; }
  .profil-knopf { padding: 1px; min-width: 44px; justify-content: center; }
  .profil-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 340px) {
  .fakten { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fakten dd { margin-bottom: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
