/* Funktionen-Menue: beim Ueberfahren oeffnet sich ein Fenster mit allen Themen in Gruppen. Auf Touch-Geraeten per Klick. */
.fm-wrap { position: relative; }
.fm-ausloeser { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.fm-ausloeser .material-icons { font-size: 18px; transition: transform .15s; }
.fm-wrap.offen .fm-ausloeser .material-icons { transform: rotate(180deg); }
.fm-fenster { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%) translateY(6px); width: min(1040px, calc(100vw - 32px)); background: var(--flaeche, #111018); color: var(--text, #f2f1f8); border: 1px solid var(--rand, rgba(255,255,255,.1)); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); padding: 22px 22px 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 230px; gap: 18px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; z-index: 30; text-align: left; }
.fm-wrap.offen .fm-fenster { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
.fm-gruppe h4 { margin: 0 0 8px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent, #a78bfa); font-weight: 700; }
.fm-gruppe a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 7px 8px; border-radius: 10px; color: inherit; text-decoration: none; }
.fm-gruppe a:hover, .fm-gruppe a:focus-visible { background: var(--akzent-weich, rgba(124,92,252,.14)); }
.fm-gruppe a .material-icons { font-size: 20px; color: var(--akzent, #a78bfa); margin-top: 1px; }
.fm-gruppe a b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.25; }
.fm-gruppe a span { display: block; font-size: .78rem; color: var(--text-2, #a4a1b8); line-height: 1.3; }
.fm-neu { border-radius: 14px; padding: 14px; background: linear-gradient(160deg, var(--akzent-weich, rgba(124,92,252,.18)), transparent 70%), var(--flaeche-2, #17161f); border: 1px solid var(--rand, rgba(255,255,255,.1)); display: flex; flex-direction: column; gap: 8px; }
.fm-neu .tag { align-self: flex-start; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--akzent-tief, #7c5cfc); border-radius: 999px; padding: 2px 8px; }
.fm-neu img { width: 100%; border-radius: 8px; border: 1px solid var(--rand, rgba(255,255,255,.1)); }
.fm-neu b { font-size: .95rem; }
.fm-neu span { font-size: .8rem; color: var(--text-2, #a4a1b8); }
.fm-neu a { color: var(--akzent, #a78bfa); font-weight: 700; font-size: .85rem; text-decoration: none; }
.fm-fuss { grid-column: 1 / -1; border-top: 1px solid var(--rand, rgba(255,255,255,.1)); padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--text-2, #a4a1b8); }
.fm-fuss a { color: var(--akzent, #a78bfa); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .fm-fenster { grid-template-columns: 1fr 1fr; left: 0; transform: none; width: calc(100vw - 32px); } .fm-wrap.offen .fm-fenster { transform: none; } .fm-neu { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fm-fenster { grid-template-columns: 1fr; } }
/* Auf der Startseite (eigene Farbwelt, keine Token): Fenster dunkel, im hellen Modus hell */
body:not(.fk-seite) .fm-fenster { --flaeche: #111018; --flaeche-2: #17161f; --rand: rgba(255,255,255,.1); --text: #f2f1f8; --text-2: #a4a1b8; --akzent: #a78bfa; --akzent-tief: #7c5cfc; --akzent-weich: rgba(124,92,252,.14); }
:root[data-theme="hell"] body:not(.fk-seite) .fm-fenster { --flaeche: #ffffff; --flaeche-2: #f8f7fc; --rand: rgba(23,22,34,.1); --text: #17161f; --text-2: #5b5870; --akzent: #5b3fd6; --akzent-tief: #5b3fd6; --akzent-weich: #ece7fb; }
/* v2: fuenf Spalten, Neu-Kachel als Leiste unten, Einzeiler auf zwei Zeilen begrenzt */
.fm-fenster { grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(1180px, calc(100vw - 32px)); gap: 14px 16px; padding: 20px 20px 14px; max-height: calc(100vh - 100px); overflow: auto; }
.fm-gruppe a { padding: 6px 6px; }
.fm-gruppe a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .76rem; }
.fm-gruppe a b { font-size: .86rem; }
.fm-neu { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px; }
.fm-neu img { width: 150px; flex: none; }
.fm-neu .tag { align-self: center; }
.fm-neu b { font-size: .92rem; } .fm-neu span { flex: 1; }
@media (max-width: 1100px) { .fm-fenster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .fm-fenster { grid-template-columns: 1fr 1fr; } .fm-neu { flex-direction: column; align-items: flex-start; } .fm-neu img { width: 100%; } }
@media (max-width: 480px) { .fm-fenster { grid-template-columns: 1fr; } }
/* v3: Fenster immer mittig im Bildschirm verankert, unabhaengig davon, wo der Menuepunkt steht */
.fm-fenster { position: fixed; left: 50vw; top: var(--fm-top, 78px); transform: translate(-50%, 6px); }
.fm-wrap.offen .fm-fenster { transform: translate(-50%, 0); }
.fm-neu .tag { flex: none; width: auto; display: inline-block; }
@media (max-width: 900px) { .fm-fenster { left: 16px; transform: translateY(6px); } .fm-wrap.offen .fm-fenster { transform: none; } }

/* v4 (07.09.2026, Leon: „das Dropdown ist nicht schön“): ruhiger und aufgeräumt — je Eintrag nur Symbol und Name in
   fester Zeilenhöhe, fünf gleich gebaute Spalten mit feiner Kopflinie, eine richtige Neu-Karte statt des gequetschten
   Streifens, weiche Öffnung. Die Beschreibungen bleiben den Funktionsseiten vorbehalten. */
.fm-fenster { width: min(1120px, calc(100vw - 32px)); gap: 4px 22px; padding: 22px 26px 16px; border-radius: 18px;
  box-shadow: 0 32px 70px -22px rgba(0,0,0,.5), 0 0 0 1px var(--rand, rgba(255,255,255,.08)); border: none;
  transition: opacity .18s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .18s; transform: translate(-50%, -8px) scale(.985); }
.fm-wrap.offen .fm-fenster { transform: translate(-50%, 0) scale(1); }
.fm-wrap.offen .fm-ausloeser { color: var(--akzent, #a78bfa) !important; }
.fm-gruppe { min-width: 0; }
.fm-gruppe h4 { font-size: .64rem; letter-spacing: .14em; margin: 0 0 6px; padding: 0 10px 8px; border-bottom: 1px solid var(--rand, rgba(255,255,255,.1)); color: var(--text-2, #a4a1b8); font-weight: 700; }
.fm-gruppe a { grid-template-columns: 22px 1fr; gap: 10px; padding: 7px 10px; border-radius: 9px; align-items: center; transition: background .12s, transform .12s; }
.fm-gruppe a:hover, .fm-gruppe a:focus-visible { background: var(--akzent-weich, rgba(124,92,252,.14)); transform: translateX(2px); }
.fm-gruppe a .material-icons { font-size: 18px; margin: 0; opacity: .9; }
.fm-gruppe a b { font-size: .88rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-gruppe a span:not(.material-icons) { display: none; }
.fm-gruppe a .material-icons { display: inline-block; }
.fm-neu { margin-top: 14px; display: grid; grid-template-columns: 200px auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 14px;
  background: linear-gradient(120deg, var(--akzent-weich, rgba(124,92,252,.16)), transparent 60%), var(--flaeche-2, #17161f); border: 1px solid var(--rand, rgba(255,255,255,.1)); }
.fm-neu img { grid-column: 1; grid-row: 1 / 3; width: 200px; height: 104px; object-fit: cover; object-position: top; border-radius: 10px; margin: 0; }
.fm-neu .tag { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
.fm-neu b { grid-column: 3; grid-row: 1; font-size: .95rem; line-height: 1.3; }
.fm-neu span { grid-column: 2 / 4; grid-row: 2; font-size: .8rem; line-height: 1.4; }
.fm-neu a { grid-column: 4; grid-row: 1 / 3; align-self: center; padding: 9px 16px; border-radius: 999px; background: var(--akzent-tief, #7c5cfc); color: #fff; font-size: .82rem; font-weight: 700; white-space: nowrap; transition: transform .12s, filter .12s; }
.fm-neu a:hover { transform: translateY(-1px); filter: brightness(1.08); }
.fm-fuss { margin-top: 12px; padding-top: 12px; font-size: .8rem; }
.fm-fuss a { padding: 6px 12px; border-radius: 999px; background: var(--akzent-weich, rgba(124,92,252,.14)); }
@media (max-width: 1100px) { .fm-fenster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .fm-fenster { transform: translateY(-8px) scale(.985); } .fm-wrap.offen .fm-fenster { transform: none; } .fm-neu { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; } .fm-neu img { grid-column: 1 / -1; grid-row: 1; width: 100%; height: 120px; } .fm-neu .tag { grid-column: 1; grid-row: 2; } .fm-neu b { grid-column: 1; grid-row: 2; margin-left: 64px; } .fm-neu span { grid-column: 1 / -1; grid-row: 3; } .fm-neu a { grid-column: 2; grid-row: 2; } }

/* v6: lange Namen brechen um statt in die Nachbarspalte zu laufen; Sams Startseiten-Sprechblase tritt zurück, solange das Menü offen ist */
.fm-gruppe a b { white-space: normal; overflow: visible; text-overflow: clip; }
body:has(.fm-wrap.offen) .nova-pub-container, body:has(.fm-wrap.offen) [class^="nova-pub"], body:has(.fm-wrap.offen) [class*=" nova-pub"] { opacity: 0 !important; pointer-events: none !important; transition: opacity .15s; }
/* v7: etwas breiter, damit weniger Namen umbrechen */
.fm-fenster { width: min(1180px, calc(100vw - 32px)); gap: 4px 18px; }

/* v8 (07.09., Leon): keine Neu-Karte mehr; unten nur noch ein ruhiger Balken, der zur Gesamtübersicht führt —
   die Einträge oben führen zu den einzelnen Bereichen. */
.fm-neu { display: none !important; }
.fm-fuss { display: block; margin-top: 14px; padding-top: 0; border-top: none; }
.fm-fuss > span { display: none; }
.fm-fuss a { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--flaeche-2, #17161f); border: 1px solid var(--rand, rgba(255,255,255,.1)); color: var(--text, #f2f1f8); font-size: .9rem; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s; }
.fm-fuss a::before { content: 'grid_view'; font-family: 'Material Icons'; font-size: 18px; color: var(--akzent, #a78bfa); line-height: 1; }
.fm-fuss a:hover { background: var(--akzent-weich, rgba(124,92,252,.14)); border-color: var(--akzent, #a78bfa); color: var(--akzent, #a78bfa); }
