/* ============================================================
   visit-magdeburg.de — Layout v2
   Hero · Startseite-Sections · Footer · Mobile-Menu
   ============================================================ */

/* ============================================================
   HERO (Modul-Position bannerstart)
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-banner {
  position: relative;
  height: clamp(400px, 55vw, 700px);
  background: var(--ink-2);
  overflow: hidden;
}
.hero-banner img,
.hero-banner .hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.25) 60%,
    rgba(0,0,0,0.0)  100%
  );
}
.hero-inner {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding-bottom: var(--s-8);
}
.hero-copy {
  max-width: 580px;
}
.hero-copy .season {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: var(--s-3);
}
.hero-copy h1 {
  font-size: clamp(40px, 6vw, 80px); font-weight: 700;
  line-height: 0.95; letter-spacing: -0.03em;
  color: #fff; margin: 0 0 var(--s-5);
}
.hero-copy .lede {
  font-size: 17px; color: rgba(255,255,255,0.85);
  line-height: 1.5; margin: 0 0 var(--s-6); max-width: 480px;
}
.hero-copy .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero Pagination */
.hero-pagination {
  position: absolute; bottom: 24px; right: var(--gutter);
  display: flex; align-items: center; gap: 16px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
}
.hero-dots { display: flex; gap: 6px; }
.hero-dot {
  width: 6px; height: 6px; background: rgba(255,255,255,0.4);
  border: 0; cursor: pointer; transition: background 200ms ease;
  padding: 0;
}
.hero-dot.on { background: #fff; width: 20px; }

/* Hero Rail (Prev/Next) */
.hero-rail {
  position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
}
.hero-rail button {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  color: #fff; display: grid; place-items: center;
  transition: background 160ms ease;
}
.hero-rail button:hover { background: rgba(255,255,255,0.3); }

/* Kein Abstand zwischen Breadcrumb und erstem Inhalt darunter */
#main-content > .breadcrumb-bar + * { margin-top: 0 !important; }
#main-content > .breadcrumb-bar + * > *:first-child { margin-top: 0; }

/* ============================================================
   HOMEPAGE SECTIONS (Modul-Positionen)
   ============================================================ */

/* Gemeinsamer Wrapper für jede Homepage-Section */
.hp-section { padding: var(--s-9) 0; }
.hp-section.on-grey { background: var(--paper-2); }

/* Modul-Positionen als leere Blöcke — werden befüllt wenn Modul zugewiesen */
.mod-wrap { /* Kein eigenes Styling — Modul bringt eigenes Layout */ }

/* ============================================================
   FOOTER — hell
   ============================================================ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
  margin-top: var(--s-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .logo-block { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-3); margin: 0 0 20px; max-width: 340px;
}
/* Kontaktblock der Tourist Information. Bewusst enger gesetzt als der
   Beschreibungssatz darüber: mit `gap: 6px` und `line-height: 1.6` standen
   rund 14px zwischen den Zeilen, die drei Angaben zerfielen optisch in drei
   Einzelzeilen. Jetzt kein Gap, engere Zeilenhöhe und mittlere Strichstärke
   in voller Ink-Farbe — damit liest es sich als ein Block und hebt sich vom
   grauen Fließtext ab. <address> ist per Default kursiv, zurücksetzen. */
.footer-kontakt {
  display: grid; gap: 0;
  font-style: normal; font-size: 14px; line-height: 1.5;
  font-weight: 500; color: var(--ink);
  margin: 0 0 30px; max-width: 340px;   /* etwas mehr Luft zu den Social-Icons */
}
.footer-kontakt a {
  color: var(--ink);
  transition: color 120ms ease;
}
.footer-kontakt a:hover { color: var(--md-rot); }

.footer-brand .social-row {
  display: flex; gap: 10px;
}
.footer-brand .social-row a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: border-color 140ms ease, color 140ms ease;
}
.footer-brand .social-row a:hover {
  border-color: var(--ink); color: var(--ink);
}
/* Footer-Spaltenlabels sind seit 29.07.2026 <h2 class="foot-h"> statt <h5>:
   nach dem <h1> der Seite war Ebene 5 ein Sprung (axe: heading-order). */
.site-footer h5, .site-footer .foot-h {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4, rgba(17,22,36,0.35));
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a {
  font-size: 14px; color: var(--ink-2);
  transition: color 120ms ease;
}
.site-footer ul a:hover { color: var(--md-rot); }

/* ---- Footer-Spalten als <details> ----------------------------------------
   Markup: <details class="foot-col" open><summary class="foot-h">…
   Auf Desktop bleiben alle Spalten offen (das `open` steht im HTML, damit sie
   auch ohne JavaScript sichtbar sind) und die Summary ist nur Überschrift.
   Mobil klappt v2/js/footer-acc.js sie zu — 21 Links hintereinander waren dort
   fast die halbe Seitenlänge (Mobil-Test 15.09.2026). */
.foot-col > summary {
  list-style: none;
  cursor: default;
  pointer-events: none;          /* Desktop: reine Überschrift, nicht klickbar */
  display: flex; align-items: center; justify-content: space-between;
}
.foot-col > summary::-webkit-details-marker { display: none; }
.foot-col__chev { display: none; }

/* Footer-Sponsoren */
.footer-sponsors {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.footer-sponsors .label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.footer-sponsors img { height: 36px; width: auto; opacity: 0.75; }

/* KI-Hinweis (26.08.2026) — sitzt rechts in der Foerderer-Zeile, nicht als
   eigene Zeile darunter. Fliesstext statt Mono: der Satz ist zum Lesen da. */
.footer-ai {
  margin: 0 0 0 auto;
  max-width: 46ch;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-4, rgba(17,22,36,0.4));
}

/* Footer-Meta */
.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 0;
  font-size: 12.5px; color: var(--ink-4, rgba(17,22,36,0.4));
  font-family: var(--font-mono); letter-spacing: 0.06em;
}
.footer-meta .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-meta .legal a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 120ms ease;
}
.footer-meta .legal a:hover { color: var(--md-rot); }

/* ============================================================
   MOBILE HEADER (< 768px)
   ============================================================ */
.m-topbar {
  display: none; /* wird per responsive.css aktiviert */
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 60px;
  padding: 0 var(--s-4);
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.m-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
}
/* width:auto ist Pflicht — ohne sie gewinnt das width-Attribut aus dem Markup
   und quetscht das Logo (Datei ist 580×421). */
.m-logo img { height: 36px; width: auto; }
.m-logo .wm { display: flex; flex-direction: column; line-height: 1; }
.m-logo .s1 { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.m-logo .s2 { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.m-iconbtn {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--ink-2);
}
.m-menubtn {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  padding: 0 var(--s-3); height: 40px;
  border: 1px solid var(--line);
}
/* Sprachwahl in der Topbar. margin-left:auto schiebt sie samt Menü-Button nach
   rechts, das Logo bleibt links. z-index über der Topbar, damit das Dropdown
   des Widgets nicht unter der Seite verschwindet. */
.m-topbar-lang {
  display: inline-flex; flex: none;
  position: relative; z-index: 2;
  /* auto schiebt Sprache + Menü nach rechts. Seit 02.10.2026 Flagge + Sprachname
     im Rahmen statt Globus – das frühere margin-right:-6px entfällt, die beiden
     Kästchen stehen mit normalem Abstand nebeneinander. */
  margin-left: auto;
}
/* Schmale Geräte (~360px): Logo-Wortmarke weicht, damit Sprache + Menü in einer
   Zeile bleiben. Das Bildlogo trägt die Marke allein. */
@media (max-width: 389px) {
  .m-topbar .m-logo .wm { display: none; }
}

/* Mobile Navigation Overlay */
/* Zwei-Ebenen-Menü: .m-nav ist der feste Rahmen (Kopf + Body), gescrollt wird
   in .m-l1 bzw. .m-panel — nicht im .m-nav selbst. Sonst nimmt ein Panel die
   Scrollposition der Ebene 1 mit. */
.m-nav {
  position: fixed; inset: 0; z-index: 300;
  background: #fff;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  /* visibility hält das geschlossene Menü aus dem Tab-Fokus (auch auf Desktop,
     wo .m-topbar zwar display:none ist, .m-nav aber weiter im DOM steht) */
  visibility: hidden;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 280ms;
}
.m-nav.open { transform: none; visibility: visible; transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .m-nav, .m-l1, .m-panel { transition: none !important; }
}
/* Kopfzeile bewusst flach (44px Inhalt + 2×8px): jeder Pixel hier fehlt unten
   beim Sprach-/Barrierefreiheits-Block. Ebene 1 soll komplett ohne Scrollen
   sichtbar sein — Rechnung siehe Kommentar bei .m-cards. */
.m-nav-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-2) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.m-nav-close {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--ink-3);
}
.m-nav ul { list-style: none; margin: 0; padding: 0; }

/* Body = Bühne für die zwei Ebenen */
.m-nav-body { position: relative; flex: 1 1 auto; overflow: hidden; }
.m-l1, .m-panel {
  position: absolute; inset: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff;
  padding: var(--s-4) var(--s-5);
  padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom));
}
.m-l1 { transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1); }
/* Ebene 1 rutscht ein Stück nach links weg, während Ebene 2 darüber kommt */
.m-nav.l2 .m-l1 { transform: translateX(-24%); }
.m-panel {
  z-index: 2;
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.m-panel.open { transform: none; }

/* ---- Ebene 1: Suchfeld ----
   Erstes Element der Ebene 1. Bewusst ein Feld und kein Link: der Weg zum
   Ergebnis ist ein Schritt, und ein Eingabefeld wird als Suche erkannt, ohne
   dass man das Wort liest. */
.m-search {
  display: flex; align-items: stretch;
  height: 64px; margin-bottom: var(--s-5);
  border: 1px solid var(--ink-4);
  background: #fff;
}
.m-search-ico {
  flex: none; align-self: center;
  margin: 0 12px 0 var(--s-4);
  color: var(--ink-3);
}
/* type="search" bringt in Safari/Chrome eigene Rundungen, Innenabstände und
   ein Lösch-Kreuz mit — alles zurücksetzen, sonst sitzt der Text nicht auf der
   Grundlinie der Lupe und das Feld wirkt kleiner, als es ist. */
.m-search input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none;
  font: inherit;
  font-size: 17px;                 /* < 16px lässt iOS beim Fokus zoomen */
  line-height: 1.2; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.m-search input::-webkit-search-decoration,
.m-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.m-search input::placeholder { color: var(--ink-3); opacity: 1; }
.m-search input:focus { outline: 0; }
/* Fokusring am Rahmen, nicht am Feld — sonst klebt er innen an der Kante */
.m-search:focus-within { border-color: var(--md-rot); outline: 2px solid var(--md-rot); outline-offset: 1px; }
/* Roter Block bis an die Feldkante: macht aus dem Feld eine Handlung, nicht nur
   eine Eingabe — und ist zugleich das größte Tap-Target der Ebene 1. */
.m-search-go {
  flex: none; width: 64px;
  display: grid; place-items: center;
  background: var(--md-rot); color: #fff;
}

/* ---- Ebene 1: vier Besucherfragen als Karten ----
   Höhenbudget Ebene 1 (Ziel: alles above the fold, auch auf ~700px Viewport):
   Kopf 61 + Padding 32 + Suchfeld 72 + 4 Karten à 56 + 3 Lücken à 8 + CTA 65
   + Sprache/Barrierefreiheit 100 ≈ 580px. Wer hier Werte erhöht, drückt den
   Barrierefreiheits-Block wieder unter die Kante. */
.m-cards { display: flex; flex-direction: column; gap: var(--s-2); }
.m-card {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%; min-height: 56px;
  padding: 10px var(--s-4);
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease;
}
.m-card:hover, .m-card:active { border-color: var(--md-rot); background: var(--md-rot-50); }
.m-card-txt { display: flex; flex-direction: column; gap: 2px; }
.m-card-q {
  font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--ink);
}
.m-card-p {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4);
}
.m-card-arr { flex: none; color: var(--md-rot); }

/* ---- Ebene 2: Linkliste ---- */
.m-back {
  display: flex; align-items: center; gap: 6px;
  min-height: 44px; margin-bottom: var(--s-3);
  font-size: 14px; color: var(--ink-3);
}
.m-back:hover { color: var(--md-rot); }
.m-panel-title {
  margin: 0 0 var(--s-4);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4);
}
.m-panel li + li { border-top: 1px solid var(--paper-2); }
.m-panel a {
  display: flex; align-items: center;
  min-height: 52px; padding: 8px 0;   /* >= 44px Tap-Target */
  font-size: 17px; color: var(--ink);
}
.m-panel a:hover { color: var(--md-rot); }
/* Übersichtsseite der Säule — eigener Block über der Liste.
   Vorher war sie die erste von sieben gleich gebauten Zeilen (nur rot und fett)
   und wurde im Persona-Test übersehen; jetzt steht sie als erstes nach dem
   Panel-Titel.

   Seit 15.09.2026 ohne Kasten: Rahmen plus rosa Fläche plus weit rechts
   abgesetzter Pfeil sahen im schmalen Panel wie ein halb gerendertes Eingabe-
   feld aus. Rot, etwas größer und mit dem Pfeil direkt hinter dem Wort reicht
   völlig, um sie von der Liste darunter abzuheben. */
.m-panel-overview {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; margin-bottom: var(--s-3); padding: 8px 0;
  font-size: 18px; font-weight: 500; color: var(--md-rot);
}
/* `.m-panel a` (Klasse + Element) schlägt `.m-panel-overview` — die Farbe
   deshalb mit derselben Spezifität setzen, sonst bleibt die Zeile schwarz wie
   die Liste darunter und hebt sich ohne den früheren Kasten kaum noch ab. */
.m-panel .m-panel-overview { color: var(--md-rot); }
.m-panel-overview svg { flex: none; }
.m-panel .m-panel-overview:hover,
.m-panel .m-panel-overview:active { color: var(--ink); }

/* .m-quick (Suche + Telefon unter den Karten) ist entfallen: Suche steht oben
   als Feld, die Telefonnummer im Footer. Die Trennlinie ging mit. */

/* Leichte Sprache als schwebender Button über dem Eye-Able-Symbol.
   Nur mobil — auf Desktop sitzt dieselbe Funktion in der Utility-Bar.
   Sichtbar geschaltet wird er in responsive.css, wie .m-topbar.
   Größe, Farbe und Position kommen aus den HTML-Attributen (Shadow-DOM). */
/* Cookie-Button (v2/js/cookie-fab.js) — ersetzt den Wiederöffner von
   CCM19. Unten links, gegenüber dem Barrierefreiheits-Stapel rechts.
   Gleiche Form wie Eye-Able und Leichte Sprache, damit die schwebenden
   Schaltflächen als eine Familie lesbar sind. */
.vm-cookiefab {
  position: fixed; left: 16px; bottom: 24px; z-index: 320;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 12px;
  background: #1a1a1a; color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
  cursor: pointer;
  transition: background 140ms ease;
}
.vm-cookiefab:hover { background: var(--md-rot); }
/* Beschriftung: mobil in der ausgeklappten Gruppe sichtbar, auf Desktop erst
   beim Überfahren des Reiters (s. unten). Sie steht immer im Markup, damit
   Screenreader sie lesen. */
.vm-cookiefab > .vm-fab__lbl { display: none; }

/* ---- Barrierefreiheit: klebender Reiter am rechten Rand (Desktop) ----
   Ersetzt die Eye-Able-Bubble (Markup in index.php). Senkrecht mittig, damit er
   unabhängig von der Scrollposition an derselben Stelle steht, und mit
   Beschriftung — als reines Symbol war er in der Utility-Bar nicht zu finden.
   Mobil übernimmt die Gruppe unten rechts, dort ist der Reiter aus. */
.vm-a11y-sticky {
  position: fixed; right: 0; z-index: 180;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 0; border-radius: 12px 0 0 12px;
  background: var(--md-rot); color: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.28);
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease;
}
.vm-a11y-sticky:hover,
.vm-a11y-sticky:focus-visible { background: #1a1a1a; }
.vm-a11y-sticky svg { flex: none; }

/* ---- Desktop: Barrierefreiheit und Cookies als Paar am rechten Rand ----
   Bis 15.09.2026 lagen die beiden auf gegenüberliegenden Seiten (Cookie unten
   links), dazu unten rechts noch der Scroll-to-top — drei Schaltflächen, die
   nichts miteinander zu tun hatten. Jetzt stehen beide untereinander rechts,
   unterhalb der Mitte, in derselben Form und Farbe. Ein gemeinsamer Anker hält
   den Abstand: die Cookie-Kachel hängt rechnerisch am a11y-Reiter.

   `--fab-anker` ist der Abstand der Oberkante des oberen Reiters vom Fenster-
   rand, `--fab-hoehe` seine Höhe (14px Polster + 24px Symbol + 14px Polster). */
@media (min-width: 901px) {
  :root { --fab-anker: 58vh; --fab-hoehe: 52px; }

  .vm-a11y-sticky { top: var(--fab-anker); }

  .vm-cookiefab {
    left: auto; right: 0;
    top: calc(var(--fab-anker) + var(--fab-hoehe) + 8px);
    bottom: auto;
    width: auto; height: auto;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    border-radius: 12px 0 0 12px;
    background: var(--md-rot);
    box-shadow: 0 2px 14px rgba(0,0,0,0.28);
    font-family: inherit; font-size: 14px; font-weight: 500;
    z-index: 180;
  }
  .vm-cookiefab:hover,
  .vm-cookiefab:focus-visible { background: #1a1a1a; }
  .vm-cookiefab svg { flex: none; }
  .vm-cookiefab > .vm-fab__lbl { display: block; }

  /* Im Ruhezustand nur das Symbol; die Beschriftung fährt beim Überfahren aus.
     Sie bleibt im Accessibility-Tree, Screenreader lesen sie also immer. */
  .vm-a11y-sticky .vm-a11y-sticky__lbl,
  .vm-cookiefab > .vm-fab__lbl {
    max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
    transition: max-width 220ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 160ms ease;
  }
  .vm-a11y-sticky:hover .vm-a11y-sticky__lbl,
  .vm-a11y-sticky:focus-visible .vm-a11y-sticky__lbl,
  .vm-cookiefab:hover > .vm-fab__lbl,
  .vm-cookiefab:focus-visible > .vm-fab__lbl { max-width: 180px; opacity: 1; }
}


.m-easyfab { display: none; }
/* Liefert das Widget nichts (Sprache ohne Leichte-Sprache-Unterstützung),
   blendet Eye-Able es per inline-Style aus — dann bleibt kein leerer Kasten. */
.m-easyfab:has(easy-speech[style*="visibility: hidden"]) { display: none; }

/* ---- Schwebende Schaltflächen-Gruppe (Markup in index.php, Logik fabs.js) ----
   Auf Desktop unsichtbar: dort sitzen Barrierefreiheit und Einfache Sprache in
   der Utility-Bar, der Cookie-Knopf unten links. Sichtbar geschaltet wird die
   Gruppe in responsive.css, wie .m-topbar. */
.vm-fabs { display: none; }
.vm-fabs__toggle,
.vm-fabs .vm-fab {
  display: flex; align-items: center;
  border: 0; cursor: pointer;
  background: #1a1a1a; color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
  transition: background 140ms ease;
}
.vm-fabs__toggle:hover,
.vm-fabs .vm-fab:hover { background: var(--md-rot); }
.vm-fabs__toggle {
  justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  margin-left: auto;
}
.vm-fabs__ico-close { display: none; }
.vm-fabs.is-open .vm-fabs__ico-open { display: none; }
.vm-fabs.is-open .vm-fabs__ico-close { display: block; }

.vm-fabs__panel {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 8px; margin-bottom: 8px;
}
/* `display: flex` schlägt das UA-Stylesheet für [hidden] — ohne diese Zeile
   steht das Panel trotz hidden-Attribut offen da. */
.vm-fabs__panel[hidden] { display: none; }
.vm-fabs .vm-fab {
  gap: 10px; padding: 0 14px 0 12px;
  min-height: 44px; border-radius: 12px;
  font-size: 14px; font-weight: 500; text-align: left;
}
.vm-fab__lbl { white-space: nowrap; }
/* Der Cookie-Knopf wird von cookie-fab.js erzeugt und behält seine eigene
   Klasse. In der Gruppe muss er aus dem `position: fixed` zurück in die Zeile. */
.vm-fabs__panel .vm-cookiefab {
  position: static; width: auto; height: auto;
  border-radius: 12px; box-shadow: none;
}
/* Die Grundregel oben blendet die Beschriftung aus; aufgehoben wurde das nur im
   Desktop-Block. Mobil stand deshalb ein leeres schwarzes Feld mit Keks da
   (gemeldet 02.10.2026). */
.vm-fabs__panel .vm-cookiefab > .vm-fab__lbl { display: block; }
/* Das Widget „Einfache Sprache" bringt sein eigenes Icon im Shadow-DOM mit und
   sitzt hier als statisches Kästchen in der Zeile — deshalb .vm-fab als <span>
   mit dem Widget darin statt als <button>. */
.vm-fabs .vm-fab--easy { padding-left: 11px; }
.vm-fabs .vm-fab--easy easy-speech { display: block; flex: none; line-height: 0; }
.vm-fabs .vm-fab--easy:has(easy-speech[style*="visibility: hidden"]) { display: none; }

/* CTA nach den Quick-Links — die Trennlinie liefert schon .m-quick darüber */
.m-nav .m-cta { margin-top: var(--s-4); }
.m-nav .m-cta a {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 13px;
  background: var(--md-rot); color: #fff;
  font-weight: 500; font-size: 15px;
}
/* „Magdeburg aufs Handy holen" unter dem CTA (php/pwa-install.php schaltet ihn
   sichtbar). Rahmen statt Fläche, damit die Stadtführung der Hauptknopf bleibt. */
.m-nav .m-cta a.m-install {
  margin-top: 10px;
  background: #fff; color: var(--md-rot);
  border: 1px solid var(--md-rot);
}
.m-nav .m-cta a.m-install[hidden] { display: none; }

/* Sehr flache Viewports (Landscape, kleine Geräte, große Systemschrift):
   letzte Reserve, damit Ebene 1 auch dort ohne Scrollen auskommt. */
@media (max-height: 620px) {
  .m-nav-head { padding: var(--s-1) var(--s-5); }
  .m-l1, .m-panel { padding: var(--s-3) var(--s-5); }
  .m-search { height: 56px; margin-bottom: var(--s-3); }
  .m-search-go { width: 56px; }
  .m-card { min-height: 50px; padding: var(--s-2) var(--s-4); }
  .m-nav .m-a11y { margin-top: var(--s-3); padding-top: var(--s-3); }
  .m-nav .m-cta { margin-top: var(--s-3); }
}

/* Backdrop für Mobile-Menu */
.m-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,0.4);
}
.m-backdrop.open { display: block; }
