/* Campus-Rahmen im Business-Guild-Stil (Tokens aus gemeinsam/guild/guild.css, hier nicht kopiert). Keine Inline-Styles (CSP).
   Name, Logo, Farben und Schriften setzt erscheinungsbild.js aus der Konfiguration (--messing, --tinte, --tinte-hell, --linie, --papier, --leise, --feldrand, --serif, --sans).
   Knopf, Meldung und Schalter stehen in gemeinsam/guild/komponenten.css (auch von der Plattform-Hülle genutzt). */
:root {
  --kopf-hoehe: 56px;
  --seite-breite: 240px;
}
body.campus-seite { background: var(--tinte); }
.c-laden { padding: 40px 20px; color: var(--leise); }
.c-sprung { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--messing); color: var(--tinte); border-radius: 8px; }
.c-sprung:focus { left: 8px; }
.c-unten .c-eintrag:focus-visible { outline-offset: -3px; } /* die untere Leiste schneidet außen liegende Ringe ab */
#campus-wurzel { display: flex; flex-direction: column; flex: 1 0 auto; min-height: 100vh; min-height: 100dvh; }

/* Dachstreifen: .c-dach steht in gemeinsam/guild/komponenten.css */

/* Kopfleiste 56 px */
.c-kopf { flex: none; height: var(--kopf-hoehe); display: flex; align-items: center; gap: 12px; padding: 0 20px; background: var(--tinte-hell); border-bottom: 1px solid var(--linie); }
.c-logo { width: 28px; height: 28px; flex: none; display: block; }
.c-wortmarke { font-size: 11px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--leise); white-space: nowrap; }
.c-trenner { color: var(--linie); }
.c-name { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1; color: var(--papier); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-name:hover { color: var(--papier); }
.c-platz { flex: 1; }
.c-glocke, .c-profil { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--linie); background: var(--tinte); color: var(--papier); text-decoration: none; }
.c-profil { border-color: var(--messing); color: var(--messing); font-size: 13px; font-weight: 600; }
.c-glocke:hover { border-color: var(--messing); color: var(--messing); }
.c-glocke svg { width: 26px; height: 26px; display: block; }
.c-glocke-zeichen path { stroke: currentColor; }
.c-zahl { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--messing); color: var(--tinte); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }

/* Rahmen: Seitenleiste 240 px + Inhalt */
.c-rahmen { flex: 1 0 auto; display: flex; align-items: stretch; min-width: 0; }
.c-seite { flex: 0 0 var(--seite-breite); width: var(--seite-breite); padding: 20px 14px; border-right: 1px solid var(--linie); display: flex; flex-direction: column; gap: 4px; }
.c-abschnitt { padding: 0 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--leise); }
.c-trennlinie { height: 1px; background: var(--linie); margin: 14px 10px; }
.c-eintrag { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; color: var(--papier); text-decoration: none; font-size: 15px; }
.c-eintrag:hover { color: var(--messing); }
.c-eintrag[aria-current="page"] { background: var(--messing-leise); border-color: var(--messing-rand); font-weight: 600; }
.c-eintrag .c-raute { width: 26px; height: 26px; flex: none; display: block; }
.c-eintrag .c-raute path { stroke: var(--leise); }
.c-eintrag[aria-current="page"] .c-raute path { stroke: var(--messing); }
.c-eintrag.c-text { min-height: 40px; }
.c-eintrag.c-text[aria-current="page"] { color: var(--messing); background: none; border-color: transparent; }
.c-eintrag .c-zahl { position: static; margin-left: auto; }
.c-fuss-knopf { margin-top: auto; }
.c-farbwahl { padding: 4px 0 8px; }
.c-haupt { flex: 1 1 0; min-width: 0; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 22px; }
.c-haupt:focus { outline: none; }

/* Seitenkopf: Titel, Zusatz, genau ein Messing-Knopf */
.c-seitenkopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.c-seitenkopf h1 { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.c-untertitel { display: block; color: var(--leise); }
.c-seitenkopf .c-platz { flex: 1 1 0; }

/* Knöpfe: .knopf in komponenten.css */
.c-textknopf { min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--leise); font: 500 13px var(--sans); cursor: pointer; }
.c-textknopf:hover { color: var(--messing); }
.c-textknopf.gefahr:hover { color: var(--gefahr); }
.c-textknopf[aria-pressed="true"] { color: var(--messing); font-weight: 600; }

/* Karten, Tabs, Spalten */
.c-karte { background: var(--tinte-hell); border: 1px solid var(--linie); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.c-karte.c-fest { border-color: var(--messing-rand); }
.c-spalten { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.c-liste { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.c-neben { flex: 1 1 260px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; }
.c-tabs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.c-tab { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie); color: var(--papier); font: 400 13px var(--sans); text-decoration: none; white-space: nowrap; }
.c-tab[aria-current="page"] { border-color: var(--messing-rand); background: var(--messing-leise); color: var(--messing); font-weight: 600; }
.c-tab:hover { color: var(--messing); }
.c-tab small { margin-left: 6px; color: var(--leise); font-size: 11px; }

/* Beitrag und Kommentar */
.c-kopfzeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.c-initialen { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--messing); color: var(--tinte); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.c-initialen { overflow: hidden; }
.c-avatar-bild, .c-profil img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } /* Profilbild statt Initialen (V005) */
.bf-initialen { display: grid; place-items: center; width: 100%; height: 100%; background: var(--messing); color: var(--tinte); font-weight: 600; font-size: 28px; }
.c-autor { font-weight: 600; overflow-wrap: anywhere; }
.c-rang { padding: 2px 10px; border-radius: 999px; background: var(--messing-leise); color: var(--messing); font-size: 12px; }
.c-sterne { letter-spacing: .06em; white-space: nowrap; }
.c-sterne-gross { display: block; margin: 2px 0 6px; font-size: 22px; letter-spacing: .12em; color: var(--messing); }
.c-meta { color: var(--leise); font-size: 13px; }
.c-fest-marke { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--messing-rand); color: var(--messing); font-size: 12px; }
.c-titel { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.c-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Audio zum Beitrag: Player über die ganze Kartenbreite, Farbschema (hell/dunkel) kommt von color-scheme der Gildenvariablen, Bedienhöhe >= 44px */
.c-audio { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c-audio-text { font-weight: 600; color: var(--messing); }
.c-audio-spieler { display: block; width: 100%; min-width: 0; min-height: 44px; color-scheme: inherit; accent-color: var(--messing); }
/* K1: Etikett "KI-Stimme" neben "Anhören" (antippbar, Erklärung auch ohne Hover); Druck: kein Player, nur der Hinweis */
.c-audio-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.c-ki-etikett { min-height: 28px; padding: 2px 10px; border: 1px solid var(--messing-rand); border-radius: 999px; background: transparent; color: var(--messing); font: 600 12px var(--sans); cursor: pointer; }
.c-ki-etikett[aria-expanded="true"] { background: var(--messing-leise); }
.c-ki-etikett:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
.c-ki-erklaerung[hidden], .c-audio-druck { display: none; }
@media print {
  .c-audio-spieler, .c-tempo, .c-audio-kopf, .c-ki-erklaerung, .c-audio-hinweis { display: none !important; }
  .c-audio-druck { display: block; }
}
.c-fusszeile { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--linie); }
.c-fusszeile .c-platz { flex: 1 1 0; }
.c-kommentare { display: flex; flex-direction: column; gap: 10px; }
.c-kommentar { background: var(--tinte); border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c-leer { color: var(--leise); text-align: center; padding: 28px 12px; }
.c-weiter { align-self: center; }

/* Formulare */
.c-form { display: flex; flex-direction: column; gap: 10px; }
.c-form label { font-size: 14px; font-weight: 500; }
.c-form input, .c-form textarea { width: 100%; padding: 10px 12px; font: 400 16px var(--sans); color: var(--papier); background: var(--tinte); border: 1px solid var(--feldrand); border-radius: 10px; }
.c-form input { height: 46px; padding-top: 0; padding-bottom: 0; }
.c-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.c-form input:focus, .c-form textarea:focus { outline: none; border-color: var(--messing); box-shadow: var(--ring); }
.c-form-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.c-zaehler { margin-left: auto; font-size: 12px; color: var(--leise); }

/* Benachrichtigungen */
.c-benachr { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--linie); background: var(--tinte-hell); color: var(--papier); text-decoration: none; min-width: 0; }
.c-benachr:hover { border-color: var(--messing-rand); color: var(--papier); }
.c-benachr.c-neu { border-color: var(--messing-rand); }
.c-punkt { width: 9px; height: 9px; margin-top: 8px; flex: none; transform: rotate(45deg); background: transparent; border: 1px solid var(--linie); }
.c-neu .c-punkt { background: var(--messing); border-color: var(--messing); }
.c-benachr-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.c-fortschritt { width: 100%; height: 8px; accent-color: var(--messing); }

/* Rechtliche Links unter dem Inhalt */
.c-fuss { flex: none; align-items: center; margin: 0; padding: 4px 16px 14px; }
.c-fuss a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* Handy: untere Leiste statt Seitenleiste */
.c-unten { display: none; }
@media (max-width: 719px) {
  .c-seite { display: none; }
  .c-kopf { padding: 0 14px; gap: 10px; }
  .c-wortmarke, .c-trenner { display: none; }
  .c-haupt { padding: 18px 16px 24px; gap: 16px; }
  .c-fuss { padding-bottom: 72px; }
  .c-seitenkopf h1 { font-size: 30px; }
  .c-karte { padding: 16px; }
  .c-unten { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--tinte-hell); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
  .c-unten .c-eintrag { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 4px 2px; border-radius: 0; font-size: 12px; text-align: center; position: relative; }
  .c-unten .c-eintrag[aria-current="page"] { background: none; border-color: transparent; color: var(--messing); }
  .c-unten .c-zahl { position: absolute; top: 4px; left: 50%; margin-left: 6px; }
  .c-unten svg { width: 22px; height: 22px; }
  .c-neben { flex-basis: 100%; }
  .c-liste { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .c-karte, .knopf { transition: none; } }

/* Feinschliff */
.c-wurzel { display: flex; flex-direction: column; flex: 1 0 auto; }
.c-liste > div:empty, .c-neben > div:empty { display: none; }
.c-karte > .c-abschnitt { padding: 0; }
.c-glocke svg { width: 32px; height: 32px; }
a.c-textknopf { display: inline-flex; align-items: center; text-decoration: none; }
a.c-textknopf:hover { text-decoration: underline; }
.c-seite .c-textknopf { align-self: flex-start; min-height: 40px; padding: 0 10px; font-size: 15px; color: var(--leise); }

/* Phase 7: Abgleich mit Campus.dc.html / Main.dc.html */
.c-liste-beitraege { display: flex; flex-direction: column; gap: 14px; }
.c-haupt > div:empty, .c-karte > div:empty, .c-karte > form > div:empty { display: none; }
article .c-titel { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.2; }
article .c-text, .c-karte > .c-text { color: var(--papier-gedaempft); }
.c-kopfzeile .c-fest-marke { padding: 0; border: 0; color: var(--messing); font-size: 13px; }
.c-fest-marke { padding: 0; border: 0; }
.c-fortschritt { appearance: none; -webkit-appearance: none; display: block; border: 0; border-radius: 4px; background: var(--linie); overflow: hidden; }
.c-fortschritt::-webkit-progress-bar { background: var(--linie); border-radius: 4px; }
.c-fortschritt::-webkit-progress-value { background: var(--messing); border-radius: 4px; }
.c-fortschritt::-moz-progress-bar { background: var(--messing); border-radius: 4px; }
.c-rang-name { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.2; }
.c-stufen { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--leise); }
.c-stufen .c-an { color: var(--papier); font-weight: 600; }
.c-unten .c-eintrag .c-zahl { width: auto; right: auto; }
@media (max-width: 719px) {
  .c-unten .c-eintrag { font-size: 11px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
}

/* Campus-Update 2, P4: eingeklappte Karten, Player-Tempo, Suche, Hörfassung */
.c-karte [hidden], .c-suche [hidden], .c-hoerfassung [hidden] { display: none !important; }
.c-kartenkopf { display: flex; align-items: flex-start; gap: 8px; }
.c-kartenkopf .c-kopfzeile { flex: 1 1 0; min-width: 0; }
.c-chevron { flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: 50%; background: var(--tinte); color: var(--papier); cursor: pointer; }
.c-chevron:hover { border-color: var(--messing); color: var(--messing); }
.c-merken { flex: none; width: 44px; height: 44px; margin: -8px 0 0 0; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: 50%; background: var(--tinte); color: var(--leise); cursor: pointer; }
.c-merken:hover { border-color: var(--messing); color: var(--messing); }
.c-merken-zeichen { width: 22px; height: 22px; stroke: currentColor; }
.c-merken[aria-pressed="true"] { border-color: var(--messing-rand); background: var(--messing-leise); color: var(--messing); }
.c-merken[aria-pressed="true"] .c-merken-zeichen path { fill: currentColor; }
.c-merken:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
.c-chevron-zeichen { width: 22px; height: 22px; stroke: currentColor; transition: transform .15s; }
.c-chevron[aria-expanded="true"] .c-chevron-zeichen { transform: rotate(180deg); }
.c-titelzeile { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.c-titelzeile .c-neu { padding: 2px 10px; border-radius: 999px; background: var(--messing); color: var(--tinte); font-size: 12px; font-weight: 600; }
.c-hoer-zeichen { display: inline-grid; place-items: center; color: var(--messing); }
.c-hoer-svg { width: 20px; height: 20px; stroke: currentColor; }
.c-titel-knopf { all: unset; box-sizing: border-box; cursor: pointer; overflow-wrap: anywhere; }
.c-titel-knopf:hover { color: var(--messing); }
.c-titel-knopf:focus-visible, .c-chevron:focus-visible, .c-tempo-knopf:focus-visible, .c-nach-oben:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
.c-auszug { margin: 0; color: var(--papier-gedaempft); overflow-wrap: anywhere; cursor: pointer; }
.c-kennzahlen { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--leise); font-size: 13px; }
.c-koerper-rest { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
mark { background: var(--messing-leise); color: inherit; border-bottom: 2px solid var(--messing); border-radius: 2px; }
.c-tempo { display: flex; flex-wrap: wrap; gap: 6px; }
.c-tempo-knopf { min-width: 52px; min-height: 40px; padding: 0 10px; border: 1px solid var(--linie); border-radius: 10px; background: var(--tinte); color: var(--papier); font: 500 14px var(--sans); cursor: pointer; }
.c-tempo-knopf[aria-pressed="true"] { border-color: var(--messing); background: var(--messing-leise); color: var(--messing); font-weight: 600; }
.c-audio-hinweis { color: var(--messing); }
.c-suche { display: flex; flex-direction: column; gap: 6px; }
.c-suche-etikett { position: absolute; left: -999px; }
.c-suche-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.c-suche-feld { flex: 1 1 200px; min-width: 0; min-height: 44px; padding: 8px 12px; font: 400 16px var(--sans); color: var(--papier); background: var(--tinte); border: 1px solid var(--feldrand); border-radius: 10px; }
.c-suche-feld:focus { outline: none; border-color: var(--messing); box-shadow: var(--ring); }
.c-suche-schalter { display: flex; align-items: center; gap: 6px; color: var(--leise); font-size: 14px; min-height: 36px; }
.c-suche-info { margin: 0; min-height: 0; }
.c-suche-info:empty { display: none; }
.c-nach-oben { position: fixed; right: 16px; bottom: 76px; z-index: 15; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--messing-rand); background: var(--tinte-hell); color: var(--messing); font: 600 20px var(--sans); cursor: pointer; box-shadow: 0 2px 8px var(--tinte); }
.c-nach-oben[hidden] { display: none; }
.c-hoerfassung { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.c-hf-flaeche, .c-hf-status { align-self: stretch; }
.c-hf-flaeche:empty, .c-hf-status:empty { display: none; }
.c-hf-dialog { margin-top: 4px; }
.c-hf-dialog .c-hf-text { min-height: 220px; }
.c-hf-dialog select { width: 100%; min-height: 44px; padding: 8px 12px; font: 400 16px var(--sans); color: var(--papier); background: var(--tinte); border: 1px solid var(--feldrand); border-radius: 10px; }
.c-hf-veraltet { margin: 0; color: var(--messing); }
.c-fehler-text { margin: 0; color: var(--gefahr); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .c-chevron-zeichen { transition: none; } }

/* Kennzeichnungen neben dem Namen (Campus 3b): KI-Konto (EU AI Act Art. 50), Moderator, Gildenmeister. Sie hängen nicht am Rang und lassen sich nicht verbergen. */
.c-ki, .c-moderator, .c-gilde, .c-beta { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid currentColor; }
.c-ki { background: var(--messing); color: var(--tinte); border-color: var(--messing); }
.c-moderator:not(.c-ki) { color: var(--messing); background: transparent; }
.c-gilde, .c-beta { color: var(--messing); background: var(--messing-leise); }
/* Status-Abzeichen (K3.2): Aktiv, Ruhend, Ehemalig */
.c-status { margin-left: 8px; padding: 2px 10px; border-radius: 999px; font: 600 12px/1.4 var(--sans); white-space: nowrap; border: 1px solid currentColor; }
.c-status-aktiv { color: var(--messing); background: var(--messing-leise); }
.c-status-ruhend, .c-status-ehemalig { color: var(--leise); background: transparent; }
.c-ki-hinweis { margin: 0; padding: 8px 12px; border-left: 3px solid var(--messing); background: var(--messing-leise); }

/* Ankündigungen (Campus 3b): Etikett im Kartenkopf, Vorbereitung, Editor-Felder */
.c-ank-etikett { padding: 2px 10px; border-radius: 999px; background: var(--messing); color: var(--tinte); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.c-vorb-bereich { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.c-vorbereitung { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border: 1px dashed var(--messing-rand); border-radius: 8px; }
.c-vorb-etikett { align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--messing-rand); color: var(--messing); font-size: 12px; font-weight: 600; }
.c-ank-felder { display: flex; flex-direction: column; gap: 8px; }
.c-ank-haken { display: flex; align-items: center; gap: 10px; }
.c-ank-haken input { width: 22px; height: 22px; accent-color: var(--messing); flex: none; }
.c-stimmenliste { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.c-stimme { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* N10: Gefällt mir in der eingeklappten Kartenzeile, Trefferfläche mindestens 44 px (auch bei 360 px Breite) */
.c-kennzahlen { align-items: center; }
.c-kennzahlen .c-like-klein { min-height: 44px; min-width: 44px; padding: 0 8px; font-size: 13px; }

/* Moderation (S-02): Melden, Ausblenden, ausgeblendete Inhalte (nur Admin/Moderatoren sehen sie), Meldeliste */
.c-modknopf { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 100%; }
.c-moddialog { flex-basis: 100%; padding: 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--tinte); min-width: 0; }
.c-ausgeblendet { opacity: .75; border-style: dashed; border-color: var(--gefahr); }
.c-ausgeblendet-hinweis { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--gefahr); font-size: 13px; overflow-wrap: anywhere; }
.c-meldung-auszug { margin: 4px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.c-meldung .c-fusszeile { flex-wrap: wrap; }

/* Fix-Review C: Handy-Zugang zur Moderation im Kopf, Kurz-Erklärung in der Rangkarte */
.c-modlink { display: none; position: relative; flex: none; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 20px; background: var(--tinte); color: var(--papier); font-size: 13px; text-decoration: none; }
.c-modlink .c-zahl { position: absolute; top: -6px; right: -6px; }
.c-team-karte { flex-direction: row; flex-wrap: wrap; align-items: center; }
.c-team-karte .c-abschnitt { flex: 1 0 100%; }
.c-erklaerung { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--papier-gedaempft); }
.c-erklaerung li { padding-left: 12px; border-left: 2px solid var(--messing-rand); }
@media (max-width: 719px) {
  .c-modlink { display: inline-flex; }
  .c-neben { order: -1; } /* Rang und Erklärung vor dem Feed statt weit darunter */
}

/* Nachrichten (V001): Kuvert im Kopf mit rotem Zähler; die Farben --rot/--rot-text stehen in gemeinsam/guild/guild.css (Kontrast dort geprüft: dunkel 4,6:1, hell 5,6:1). */
.c-zahl.c-zahl-rot { background: var(--rot); color: var(--rot-text); }
.c-nachricht-link { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--leise); text-decoration: none; flex: none; }
.c-nachricht-link:hover { color: var(--messing); }
.c-nachricht-link svg { width: 22px; height: 22px; display: block; }
.c-nachricht-link path { stroke: currentColor; }

/* Postfach: Liste links, Gespräch rechts; unter 860 px untereinander (data-ansicht zeigt eins von beiden) */
.c-nl { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.c-nl-liste, .c-nl-gespraech { background: var(--tinte-hell); border: 1px solid var(--linie); border-radius: 14px; min-width: 0; }
.c-nl-liste { display: flex; flex-direction: column; overflow: hidden; }
.c-nl-eintraege { display: flex; flex-direction: column; max-height: 62vh; overflow-y: auto; }
.c-nl-eintrag { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--linie); background: none; color: var(--papier); text-align: left; font: 400 14px var(--sans); cursor: pointer; }
.c-nl-eintrag:hover, .c-nl-eintrag[aria-current="true"] { background: var(--messing-dezent); }
.c-nl-eintrag:focus-visible { outline-offset: -3px; }
.c-nl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.c-nl-name { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.c-nl-namentext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.c-nl-ungelesen .c-nl-name { color: var(--messing); }
.c-nl-vorschau { color: var(--leise); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-nl-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--leise); font-size: 12px; flex: none; }
.c-nl-neu { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--messing); color: var(--tinte); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.c-nl-system { flex: none; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--messing-rand); border-radius: 8px; color: var(--messing); font: 600 11px var(--sans); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.c-nl-gespraech { display: flex; flex-direction: column; min-height: 320px; }
.c-nl-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.c-nl-kopf h2 { margin: 0; font: 700 20px var(--serif); overflow-wrap: anywhere; }
.c-nl-zurueck { display: none; }
.c-nl-aktionen { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.c-nl-verlauf { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; max-height: 56vh; overflow-y: auto; }
.c-nl-leer { color: var(--leise); text-align: center; padding: 28px 12px; }
.c-nl-nachricht { max-width: 86%; padding: 10px 14px; border: 1px solid var(--linie); border-radius: 12px; background: var(--tinte); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c-nl-ich { align-self: flex-end; border-color: var(--messing-rand); background: var(--messing-dezent); }
.c-nl-du { align-self: flex-start; }
.c-nl-sys { align-self: stretch; max-width: 100%; border-color: var(--messing-rand); }
.c-nl-betreff { margin: 0; font: 700 18px var(--serif); }
.c-nachrichtentext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.c-nachrichtentext a { color: var(--messing); text-decoration: underline; }
.c-nl-fuss { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c-nl-form { padding: 12px 16px 16px; border-top: 1px solid var(--linie); }
.c-nl-hinweis { margin: 0; padding: 12px 16px; color: var(--papier); background: var(--messing-dezent); border-top: 1px solid var(--linie); line-height: 1.5; }
.c-nl-form .c-nl-hinweis { padding: 0; background: none; border: 0; color: var(--messing); }
.c-nl-einst { padding: 8px 14px 14px; }
.c-nl-details { border-top: 1px solid var(--linie); }
.c-nl-details summary { padding: 12px 14px; cursor: pointer; color: var(--leise); font-weight: 500; }
.c-nl-details h3 { margin: 6px 14px 4px; font-size: 15px; }
.c-nl-blockiert { list-style: none; margin: 0; padding: 0 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.c-nl-blockiert li { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.c-meldung .c-beweis { border-left: 2px solid var(--messing-rand); padding-left: 12px; }
@media (max-width: 859px) {
  .c-nl { grid-template-columns: minmax(0, 1fr); }
  .c-nl[data-ansicht="liste"] .c-nl-gespraech { display: none; }
  .c-nl[data-ansicht="gespraech"] .c-nl-liste { display: none; }
  .c-nl-zurueck { display: inline-flex; align-items: center; }
  .c-nl-eintraege { max-height: none; }
  .c-nl-verlauf { max-height: none; }
  .c-nl-nachricht { max-width: 100%; }
}

/* Ausschreibungs-Radar (V001-NACHRICHTEN K1.7): Häkchen-Gruppen; Farben nur über die Variablen */
.c-radar-gruppe { margin: 0; padding: 12px 14px 8px; border: 1px solid var(--linie); border-radius: 10px; min-width: 0; }
.c-radar-gruppe legend { padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--papier); }
.c-radar-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 16px; }
.c-radar-wahl { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.c-radar-wahl input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--messing); }
.c-radar-wahl label { font-size: 15px; cursor: pointer; }
.c-radar-rueck:empty { display: none; }

/* Gilden-Mail (V002 M6, Teil C) */
.c-mail-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.c-mail-kopf h1 {
  margin: 0;
  font-family: var(--serif);
}
.c-mail-kopf img { flex: none; }
.c-mail-kopf a { min-height: 44px; display: inline-flex; align-items: center; }
.c-mail-layout {
  display: grid;
  grid-template-columns: minmax(130px, .65fr) minmax(210px, 1fr) minmax(0, 2fr);
  gap: 14px;
  align-items: start;
}
.c-mail-ordner,
.c-mail-liste,
.c-mail-lesen,
.c-mail-karte,
.c-mail-form,
.c-mail-geheim {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: var(--tinte-hell);
  color: var(--papier);
  overflow-wrap: anywhere;
}
.c-mail-ordner,
.c-mail-liste,
.c-mail-lesen,
.c-mail-karte,
.c-mail-form,
.c-mail-einstellungen,
.c-mail-geheim {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.c-mail-ordner h2,
.c-mail-liste h2,
.c-mail-lesen h2,
.c-mail-karte h2 { margin: 0; font-family: var(--serif); }
.c-mail-ordnerlink {
  display: block;
  min-height: 44px;
  padding: 10px 6px;
  color: var(--papier);
}
.c-mail-ordnerlink[aria-current="page"] {
  color: var(--messing);
  font-weight: 700;
}
.c-mail-eintraege { display: flex; flex-direction: column; }
.c-mail-eintrag {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--linie);
  color: var(--papier);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.c-mail-eintrag:hover { background: var(--messing-leise); }
.c-mail-ungelesen { font-weight: 700; }
.c-mail-meta,
.c-mail-vorschau { color: var(--leise); font-size: 13px; }
.c-mail-vorschau { font-weight: 400; }
.c-mail-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.c-mail-aktionen > * { max-width: 100%; }
.c-mail-form label { display: block; margin-bottom: 6px; }
.c-mail-form input:not([type="checkbox"]),
.c-mail-form textarea,
.c-mail-form select,
.c-mail-aktionen select,
.c-mail-geheim input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--feldrand);
  border-radius: 8px;
  background: var(--tinte);
  color: var(--papier);
  font: 400 16px var(--sans);
}
.c-mail-aktionen select { width: auto; }
.c-mail-form textarea {
  min-height: 280px;
  resize: vertical;
  line-height: 1.5;
}
.c-mail-form input:focus-visible,
.c-mail-form textarea:focus-visible,
.c-mail-form select:focus-visible,
.c-mail-aktionen select:focus-visible,
.c-mail-geheim input:focus-visible {
  outline: 2px solid var(--messing);
  outline-offset: 2px;
}
.c-mail-iframe {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 60vh;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--lese-flaeche);
  color-scheme: light;
}
.c-mail-anhaenge,
.c-mail-geraete {
  margin: 0;
  padding-left: 20px;
}
.c-mail-anhaenge li,
.c-mail-geraete li { padding: 6px 0; overflow-wrap: anywhere; }
.c-mail-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.c-mail-balken {
  display: block;
  width: 100%;
  height: 16px;
  accent-color: var(--messing);
}
.c-mail-dialog {
  box-sizing: border-box;
  max-width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--messing);
  border-radius: 14px;
  background: var(--tinte-hell);
  color: var(--papier);
}
.c-mail-dialog::backdrop { background: color-mix(in srgb, var(--tinte) 72%, transparent); }
.c-mail-dialog h2 { margin-top: 0; font-family: var(--serif); }
.c-mail-dialog p { overflow-wrap: anywhere; }
.c-mail-status {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  gap: 8px 16px;
}
.c-mail-status dt { font-weight: 600; }
.c-mail-status dd { margin: 0; overflow-wrap: anywhere; }
.c-mail-haken { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.c-mail-haken input { width: 22px; height: 22px; accent-color: var(--messing); }
.c-mail-haken label { margin: 0; }
.c-mail-hinweis { color: var(--leise); }
.c-mail-unterpunkt { padding-left: 38px; }
.c-mail-zahl {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--rot);
  color: var(--rot-text);
  font: 600 11px/18px var(--sans);
  text-align: center;
}
.c-taube-zeichen path { stroke: currentColor; }
.c-taube[hidden],
.c-mail-zahl[hidden],
.c-mail-geheim[hidden],
.c-mail-form [hidden] { display: none !important; }
@media (max-width: 759px) {
  .c-mail-dashboard,
  .c-mail-status { grid-template-columns: minmax(0, 1fr); }
  .c-mail-status dd { margin-bottom: 8px; }
  .c-taube { width: 34px; height: 34px; }
}
.c-mail-lesen p,
.c-mail-karte p,
.c-mail-dialog p { margin: 0; }
.c-mail-lesen h3 { margin: 0; }
.c-mail-ordnerlink { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; }
.c-mail-ordnerzahl { min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--messing); color: var(--tinte); font: 600 12px/18px var(--sans); text-align: center; }
.c-mail-suche { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.c-mail-suche > label { flex: 1 0 100%; }
.c-mail-suche input { box-sizing: border-box; flex: 1 1 140px; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid var(--feldrand); border-radius: 8px; background: var(--tinte); color: var(--papier); font: 400 16px var(--sans); }
.c-mail-suche input:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
.c-mail-menuebild { flex: none; margin-right: 8px; }
.c-mail-eintrag > span:first-child { font-weight: inherit; }
@media (max-width: 759px) {
  .c-mail-ordner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .c-mail-ordner h2 { flex: 1 0 100%; }
  .c-mail-ordnerlink { min-height: 44px; padding: 8px 14px; border: 1px solid var(--linie); border-radius: 22px; }
}
.c-mail-karte > .c-mail-form { padding: 0; border: 0; background: none; }
.c-mail-dialog p + p { margin-top: 6px; }
.c-mail-dialog .c-mail-aktionen { margin-top: 18px; }

/* Gilden-Mail Layout V003: Postfach wie ein gewohntes Mailprogramm (schmales Menü, Ordnerleiste, dichte Liste, eine Symbolleiste, große Lesefläche).
   Alles nur für die Mail-Seiten (c-mail-*, .c-mail-seite); andere Campus-Seiten bleiben unverändert. Farben nur über die Gildenvariablen. */
.c-mail-lesen { --lese-flaeche: var(--papier); container-type: inline-size; }                  /* dunkel: Papier #F3EEE3; Mailtext bleibt im iframe in dessen eigener Farbe (Standard schwarz, > 17:1) */
:root[data-farbschema="hell"] .c-mail-lesen { --lese-flaeche: var(--tinte-hell); }  /* hell: helles Pergament #FBF8F1 */

/* Menü: schmale Symbolleiste (64 px), nur auf den Mail-Seiten umschaltbar */
.c-menueknopf { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--leise); font: 500 14px var(--sans); cursor: pointer; }
.c-menueknopf:hover { color: var(--messing); }
.c-menueknopf:focus-visible, .c-mail-werkzeug:focus-visible, .c-mail-menue :is(a, button):focus-visible, .c-mail-eintrag:focus-visible, .c-mail-ordnerlink:focus-visible, .c-mail-kopf a:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
.c-menue-symbol { width: 26px; height: 26px; flex: none; }
.c-menue-symbol path, .c-mail-sym path { stroke: currentColor; }
.c-mail-seite .c-menueknopf { display: flex; }
.c-menue-schmal { --seite-breite: 64px; }
.c-menue-schmal .c-seite { box-sizing: border-box; padding: 12px 8px; align-items: stretch; overflow: hidden; }
.c-menue-schmal .c-eintrag { position: relative; justify-content: center; gap: 0; padding: 0; }
.c-menue-schmal .c-menueknopf { justify-content: center; padding: 0; }
.c-mini { display: none; }
.c-mini path { stroke: var(--leise); }
.c-eintrag[aria-current="page"] .c-mini path { stroke: var(--messing); }
.c-menue-schmal .c-seite .c-eintrag { font-size: 0; min-height: 44px; }                 /* Text nur noch für Screenreader (Name), sichtbar bleibt das Symbol */
.c-menue-schmal .c-eintrag .c-mini, .c-menue-schmal .c-eintrag .c-raute, .c-menue-schmal .c-eintrag .c-mail-menuebild { display: block; flex: none; width: 26px; height: 26px; margin: 0; }
.c-menue-schmal .c-eintrag .c-zahl { position: absolute; top: 2px; right: 2px; margin: 0; }
.c-menue-schmal .c-etikett { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.c-menue-schmal .c-nur-breit { display: none; }
.c-menue-schmal .c-mail-unterpunkt { padding-left: 0; }
.c-menue-schmal .c-trennlinie { margin: 8px 6px; }

/* Platz: Mail-Seiten bekommen weniger Rand, das Postfach füllt die Fensterhöhe; Liste und Lesefläche scrollen für sich */
.c-haupt:has(.c-mail-layout) { padding: 12px 16px 16px; gap: 10px; }
.c-mail-kopf { flex-wrap: nowrap; gap: 10px; }
.c-mail-kopf h1 { font-size: 24px; line-height: 1.1; }
.c-mail-kopf a { min-height: 36px; }
.c-mail-kopf .knopf { min-height: 36px; padding: 0 16px; }
.c-mail-kopf .c-mail-dashlink, .c-mail-kopf .c-mail-zurueck { display: none; }
.c-mail-kopf .c-mail-zurueck { align-items: center; gap: 2px; color: var(--messing); text-decoration: none; }
.c-mail-sym { width: 20px; height: 20px; flex: none; display: block; }
.c-mail-layout {
  display: grid;
  grid-template-columns: 160px clamp(320px, 24vw, 460px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  height: max(460px, calc(100dvh - 164px));
}
.c-mail-ordner, .c-mail-liste, .c-mail-lesen { padding: 0; gap: 0; min-height: 0; overflow: hidden; }
.c-mail-ordner { padding: 8px 6px; gap: 2px; overflow-y: auto; }
.c-mail-ordnerlink { min-height: 36px; padding: 6px 10px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.c-mail-ordnerlink:hover { background: var(--messing-leise); }
.c-mail-ordnerlink[aria-current="page"] { background: var(--messing-leise); }
.c-mail-ordnerzahl { min-width: 20px; padding: 0 6px; font-size: 12px; line-height: 18px; }

.c-mail-listenkopf { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.c-mail-listenkopf h2 { flex: none; font-size: 17px; }
.c-mail-suche { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; align-items: center; gap: 6px; }
.c-mail-nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.c-mail-suche input { flex: 1 1 60px; min-height: 34px; padding: 4px 10px; font-size: 14px; }
.c-mail-suche .knopf { flex: none; min-height: 34px; padding: 0 12px; white-space: nowrap; }
.c-mail-eintraege { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.c-mail-eintrag {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 0; align-items: center;
  box-sizing: border-box; flex: none; height: 52px; padding: 6px 10px; border-left: 3px solid transparent; overflow: hidden;
}
.c-mail-eintrag[aria-current="true"] { background: var(--messing-leise); border-left-color: var(--messing); }
.c-mail-von, .c-mail-betreff { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; line-height: 1.35; }
.c-mail-von { font-size: 14px; }
.c-mail-datum { font-size: 12.5px; white-space: nowrap; }
.c-mail-betreff { font-size: 13.5px; font-weight: 400; color: var(--papier-gedaempft); }
.c-mail-ungelesen .c-mail-betreff { font-weight: 600; color: var(--papier); }
.c-mail-klammer { display: inline-flex; color: var(--leise); }
.c-mail-klammer .c-mail-sym { width: 15px; height: 15px; }
.c-mail-liste > .c-mail-aktionen { flex: none; justify-content: space-between; padding: 6px 10px; border-top: 1px solid var(--linie); }
.c-mail-liste > .c-mail-aktionen .knopf { min-height: 32px; padding: 0 12px; }

/* V004: Mehrfachauswahl und Schnelllöschen */
.c-mail-zeile { display: flex; flex: none; align-items: stretch; }
.c-mail-zeile > .c-mail-eintrag { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
/* Trennlinie über die ganze Zeile, auch unter dem Häkchen (Walter 16.11.2026) */
.c-mail-zeile { border-bottom: 1px solid var(--linie); }
.c-mail-leer { margin: 0; padding: 18px 16px; color: var(--papier-gedaempft); }
.c-mail-auswahlkopf[hidden] { display: none; }
.c-mail-zeile.c-mail-gewaehlt { background: var(--messing-leise); }
.c-mail-wahl { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; min-height: 40px; cursor: pointer; }
.c-mail-wahl input { width: 24px; height: 24px; margin: 0; accent-color: var(--messing); cursor: pointer; }
.c-mail-auswahlkopf { display: flex; flex: none; align-items: center; gap: 4px; padding: 0 10px 0 0; border-bottom: 1px solid var(--linie); font-size: 13px; }
.c-mail-auswahlzahl { color: var(--papier-gedaempft); }
.c-mail-loeschleiste { position: sticky; bottom: 0; z-index: 5; flex: none; display: flex; justify-content: flex-end; padding: 8px 10px; border-top: 1px solid var(--linie); background: var(--tinte-hell); }
.c-mail-sammel-loeschen { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; background: transparent; border: 1px solid var(--linie); color: var(--papier); }
.c-mail-sammel-loeschen .c-mail-sym { width: 18px; height: 18px; }
.c-mail-sammel-loeschen[disabled] { opacity: .45; cursor: not-allowed; }
.c-mail-sammel-loeschen.c-mail-bereit { background: var(--messing); border-color: var(--messing); color: var(--akzent-text); font-weight: 700; box-shadow: 0 0 0 3px var(--messing-leise), 0 0 14px var(--messing-leise); }
.c-mail-sammel-loeschen:focus-visible, .c-mail-wahl input:focus-visible, #c-mail-alle:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
.c-mail-rueckgaengig { min-height: 32px; margin-left: 8px; padding: 0 12px; }

/* Lesefläche: Symbolleiste in einer Zeile, Kopf in drei Zeilen, Mail füllt den Rest */
.c-mail-lesen { overflow-y: auto; }
.c-mail-lesen > p { padding: 16px; }
.c-mail-lesen .c-mail-aktionen { flex: none; flex-wrap: nowrap; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--linie); }
.c-mail-werkzeug { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; min-width: 40px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--papier); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.c-mail-werkzeug:hover { background: var(--messing-leise); color: var(--messing); }
.c-mail-werkzeug[disabled] { opacity: .5; cursor: default; }
.c-mail-werkzeug[aria-pressed="true"] .c-mail-sym path { fill: var(--messing); stroke: var(--messing); }
.c-mail-werkzeugtext { display: none; }
@container (min-width: 1000px) { .c-mail-werkzeugtext { display: inline; } .c-mail-menue .c-mail-werkzeugtext { display: inline; } .c-mail-werkzeug { padding: 0 10px; } }
.c-mail-menue .c-mail-werkzeugtext { display: inline; }
.c-mail-loeschen { margin-left: auto; }
.c-mail-loeschen:hover { color: var(--gefahr); }
.c-mail-menuebox.c-mehr { display: none; }
.c-mail-menuebox { position: relative; display: inline-flex; }
.c-mail-menue { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 200px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; padding: 4px; border: 1px solid var(--linie); border-radius: 10px; background: var(--tinte-hell); box-shadow: 0 8px 24px color-mix(in srgb, var(--tinte) 60%, transparent); }
.c-mail-menue[hidden] { display: none; }
.c-mail-menue > :is(a, button) { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--papier); font: 400 14px var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.c-mail-menue > :is(a, button):hover { background: var(--messing-leise); color: var(--messing); }
.c-mehr .c-mail-menue { left: auto; right: 0; }
.c-mail-lesekopf { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px 6px; }
.c-mail-lesekopf h2 { font-size: 20px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-mail-adressen { display: flex; gap: 8px; min-width: 0; font-size: 14px; }
.c-mail-adressen > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.c-mail-adressen > .c-mail-pfeil { flex: none; color: var(--leise); }
.c-mail-adressen > span:first-child { flex: 0 1 auto; }
.c-mail-lesen .c-mail-meta { font-size: 13px; }
.c-mail-lesen > [aria-live] { flex: none; padding: 0 14px; }
.c-mail-bilder { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 14px 8px; padding: 6px 10px; border: 1px solid var(--linie); border-radius: 8px; font-size: 13px; }
.c-mail-bilder .knopf { min-height: 32px; padding: 0 12px; }
.c-mail-iframe { flex: 1 1 auto; width: auto; min-height: 280px; margin: 0 14px 12px; }
.c-mail-lesen > h3 { padding: 0 14px; font-size: 15px; }
.c-mail-lesen > .c-mail-anhaenge { flex: none; margin: 0 14px 12px; }

@media (max-width: 1099px) {
  .c-mail-layout { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .c-mail-ordner { grid-column: 1 / -1; flex-direction: row; flex-wrap: nowrap; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 4px 6px; }
  .c-mail-ordnerlink { flex: none; gap: 8px; }
  .c-mail-lesen { grid-row: 2; grid-column: 2; }
  .c-mail-liste { grid-row: 2; grid-column: 1; }
  .c-mail-layout { height: max(440px, calc(100dvh - 164px)); }
  .c-mail-lesen .c-rar { display: none; }
  .c-mail-menuebox.c-mehr { display: inline-flex; }
}
@media (max-width: 759px) {
  .c-haupt:has(.c-mail-layout) { padding: 10px 12px 16px; }
  .c-mail-kopf h1, .c-mail-kopf .knopf, .c-mail-kopf a { white-space: nowrap; }
  .c-mail-kopf h1 { font-size: 22px; }
  .c-mail-kopf > picture img { width: 28px; height: 28px; }
  .c-mail-kopf-tief > picture { display: none; }
  .c-mail-kopf-tief h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .c-mail-kopf .c-mail-dashlink, .c-mail-kopf .c-mail-zurueck { display: inline-flex; }
  .c-mail-layout { display: block; height: auto; }
  .c-mail-layout[data-ansicht="liste"] .c-mail-lesen, .c-mail-layout[data-ansicht="lesen"] .c-mail-ordner, .c-mail-layout[data-ansicht="lesen"] .c-mail-liste { display: none; }
  .c-mail-layout[data-ansicht="liste"] .c-mail-ordner { margin-bottom: 10px; }
  .c-mail-ordner { flex-direction: row; overflow-x: auto; }
  .c-mail-ordnerlink { min-height: 40px; border: 1px solid var(--linie); border-radius: 20px; }
  .c-mail-liste { min-height: 0; }
  .c-mail-eintraege { overflow: visible; }
  .c-mail-eintrag { height: 58px; }
  .c-mail-wahl { width: 44px; min-height: 58px; }
  .c-mail-lesen { min-height: 70vh; overflow: visible; }
  .c-mail-iframe { min-height: 55vh; }
  .c-mail-lesen .c-mail-aktionen { justify-content: space-between; }
}
/* Handy: die Löschen-Leiste sitzt über der unteren Navigation (c-unten, 56 px) */
@media (max-width: 719px) {
  .c-mail-loeschleiste { position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 11; }
  .c-mail-liste { padding-bottom: 64px; }
}

/* Gilden-Mail: runder Aktualisieren-Knopf rechts neben der Überschrift (V005 M4) */
.c-mail-kopf .c-mail-aktualisieren {
  flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--messing); background: transparent; color: var(--messing); cursor: pointer;
}
.c-mail-kopf .c-mail-aktualisieren:hover:not(:disabled) { background: var(--messing-leise); }
.c-mail-kopf .c-mail-aktualisieren:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
.c-mail-kopf .c-mail-aktualisieren .c-mail-sym { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.c-mail-aktualisieren[data-laedt] { cursor: progress; opacity: .85; }
.c-mail-aktualisieren[data-laedt] .c-mail-sym { animation: c-mail-dreh .9s linear infinite; }
@keyframes c-mail-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  /* ohne Drehung: der Knopf wird gefüllt und blass, das reicht als Signal */
  .c-mail-aktualisieren[data-laedt] .c-mail-sym { animation: none; }
  .c-mail-aktualisieren[data-laedt] { background: var(--messing-leise); opacity: .55; }
}
@media (max-width: 759px) {
  /* Handy: der Kopf hat jetzt einen Knopf mehr, also etwas enger setzen (kein waagrechter Überlauf bei 390 px) */
  .c-mail-kopf { gap: 6px; }
  .c-mail-kopf .c-mail-aktualisieren { width: 32px; height: 32px; min-height: 32px; }
  .c-mail-kopf .knopf { padding: 0 12px; }
}
