/* Glaskugel — Gestaltung
 *
 * Aufbau dieser Datei:
 *   1. Farbwerte (hell, dunkel, Umschalter)
 *   2. Grundlagen
 *   3. Kopf und Fuss
 *   4. Kacheln der Startseite
 *   5. Bundesland: Kampagnen und Klausuren
 *   6. Uebersicht, Suche, Verwaltung
 *   7. Bedienelemente, Dialoge, Meldungen
 *
 * Alle Farben stehen als Variablen ganz oben. Wer den Farbton der Seite
 * aendern will, aendert dort einen Wert und sonst nichts.
 */

/* ========================================================================
   1. Farbwerte
   ======================================================================== */

:root {
  /* Hell ist der Ausgangszustand: Der volle Satz steht auf bare :root,
     damit keine Farbe ausschliesslich in einem @media-Block definiert ist.
     Sonst faellt beim Umschalten irgendwann eine durchs Raster. */
  --grund:        #fbfbfc;
  --flaeche:      #ffffff;
  --flaeche-2:    #f4f5f7;
  --flaeche-3:    #eceef1;
  --rand:         #e4e6eb;
  --rand-stark:   #cfd3da;
  --text:         #14161b;
  --text-leise:   #596072;
  --text-still:   #878e9d;
  --akzent:       #4f46e5;
  --akzent-hell:  #eeeefe;
  --akzent-text:  #ffffff;
  --gut:          #0f766e;
  --gut-hell:     #e3f5f1;
  --warn:         #b45309;
  --warn-hell:    #fdf0e0;
  --schlecht:     #be123c;
  --schlecht-hell:#fdeaee;

  --zivil:        #1d4ed8;
  --zivil-hell:   #e9effd;
  --straf:        #be123c;
  --straf-hell:   #fdeaee;
  --oeff:         #0f766e;
  --oeff-hell:    #e2f5f1;

  --schatten-1: 0 1px 2px rgba(16, 20, 30, .05), 0 1px 1px rgba(16, 20, 30, .03);
  --schatten-2: 0 4px 16px rgba(16, 20, 30, .08), 0 1px 3px rgba(16, 20, 30, .05);
  --schatten-3: 0 18px 48px rgba(16, 20, 30, .18);

  --rundung:    14px;
  --rundung-s:  9px;
  --breite:     1180px;

  --schrift-titel: 'Sora', system-ui, sans-serif;
  --schrift: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --schrift-fest: 'IBM Plex Mono', ui-monospace, monospace;
}

/* Dunkel als Systemeinstellung — greift nur, wenn nicht ausdruecklich
   "hell" gewaehlt wurde. */
@media (prefers-color-scheme: dark) {
  :root:not([data-farben="hell"]) {
    color-scheme: dark;
    --grund:        #0d0f13;
    --flaeche:      #15181e;
    --flaeche-2:    #1b1f26;
    --flaeche-3:    #232830;
    --rand:         #272c35;
    --rand-stark:   #39404c;
    --text:         #e8ebf1;
    --text-leise:   #a2aab8;
    --text-still:   #79818f;
    --akzent:       #8e8cfa;
    --akzent-hell:  #1e1c3a;
    --akzent-text:  #14121f;
    --gut:          #5fcfbd;
    --gut-hell:     #11312d;
    --warn:         #e0a662;
    --warn-hell:    #33260f;
    --schlecht:     #ff8ea3;
    --schlecht-hell:#37151f;

    --zivil:        #9fb8ff;
    --zivil-hell:   #182241;
    --straf:        #ff9db0;
    --straf-hell:   #351620;
    --oeff:         #6fd6c4;
    --oeff-hell:    #10302b;

    --schatten-1: 0 1px 2px rgba(0, 0, 0, .4);
    --schatten-2: 0 4px 18px rgba(0, 0, 0, .45);
    --schatten-3: 0 20px 52px rgba(0, 0, 0, .6);
  }
}

/* Ausdrueckliche Wahl "dunkel" — schlaegt die Systemeinstellung. */
:root[data-farben="dunkel"] {
  color-scheme: dark;
  --grund:        #0d0f13;
  --flaeche:      #15181e;
  --flaeche-2:    #1b1f26;
  --flaeche-3:    #232830;
  --rand:         #272c35;
  --rand-stark:   #39404c;
  --text:         #e8ebf1;
  --text-leise:   #a2aab8;
  --text-still:   #79818f;
  --akzent:       #8e8cfa;
  --akzent-hell:  #1e1c3a;
  --akzent-text:  #14121f;
  --gut:          #5fcfbd;
  --gut-hell:     #11312d;
  --warn:         #e0a662;
  --warn-hell:    #33260f;
  --schlecht:     #ff8ea3;
  --schlecht-hell:#37151f;

  --zivil:        #9fb8ff;
  --zivil-hell:   #182241;
  --straf:        #ff9db0;
  --straf-hell:   #351620;
  --oeff:         #6fd6c4;
  --oeff-hell:    #10302b;

  --schatten-1: 0 1px 2px rgba(0, 0, 0, .4);
  --schatten-2: 0 4px 18px rgba(0, 0, 0, .45);
  --schatten-3: 0 20px 52px rgba(0, 0, 0, .6);
}

/* ========================================================================
   2. Grundlagen
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Sichtbarer Fokus fuer alle, die mit der Tastatur bedienen. Ohne das ist
   die Seite mit Tab nicht benutzbar — man sieht nicht, wo man steht. */
:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: 4px;
}

.zum-inhalt {
  position: absolute; left: -9999px;
  background: var(--akzent); color: var(--akzent-text);
  padding: .6rem 1rem; border-radius: 0 0 var(--rundung-s) 0; z-index: 100;
}
.zum-inhalt:focus { left: 0; top: 0; }

.inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 5rem;
  outline: none;
}

.laden { color: var(--text-still); padding: 3rem 0; text-align: center; }

/* ========================================================================
   3. Kopf und Fuss
   ======================================================================== */

.kopf {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--grund) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rand);
}

.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex; align-items: center; gap: 1.2rem;
}

.marke {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text); text-decoration: none; flex: none;
}
.marke:hover { text-decoration: none; }
.marke-zeichen { width: 26px; height: 26px; color: var(--akzent); flex: none; }
.marke-text {
  font-family: var(--schrift-titel); font-weight: 800;
  font-size: 1.12rem; letter-spacing: -0.03em;
}

.leiste {
  display: flex; gap: .15rem; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.leiste::-webkit-scrollbar { display: none; }
.leiste a {
  color: var(--text-leise); padding: .42rem .68rem;
  border-radius: var(--rundung-s); white-space: nowrap;
  font-size: .93rem; font-weight: 500;
}
.leiste a:hover { background: var(--flaeche-2); color: var(--text); text-decoration: none; }
.leiste a[aria-current="page"] { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }

.punkt {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--akzent); color: var(--akzent-text);
  border-radius: 9px; font-size: .72rem; font-weight: 700;
  line-height: 18px; text-align: center; vertical-align: 1px;
}

.kopf-knoepfe { display: flex; gap: .4rem; flex: none; align-items: center; }

/* Der jeweils unpassende Zeichensatz wird ausgeblendet — in der hellen
   Fassung der Mond, in der dunklen die Sonne. */
.zeichen-dunkel { display: none; }
:root[data-farben="dunkel"] .zeichen-hell { display: none; }
:root[data-farben="dunkel"] .zeichen-dunkel { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-farben="hell"]) .zeichen-hell { display: none; }
  :root:not([data-farben="hell"]) .zeichen-dunkel { display: block; }
}

body:not(.ist-admin) .nur-admin { display: none; }

.fuss {
  border-top: 1px solid var(--rand);
  background: var(--flaeche-2);
  padding: 2rem 1.25rem;
  margin-top: 3rem;
}
.fuss-innen { max-width: var(--breite); margin: 0 auto; }
.fuss p { margin: 0 0 .4rem; color: var(--text-leise); font-size: .88rem; }
.fuss-kontakt { color: var(--text-still); }

/* ========================================================================
   4. Startseite
   ======================================================================== */

.titelblock { margin-bottom: 2rem; }
.titelblock h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.titelblock .unterzeile {
  color: var(--text-leise); font-size: 1.02rem; max-width: 62ch; margin: 0;
}

.zahlenband {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  margin: 1.4rem 0 0; padding: 1rem 1.2rem;
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--rundung); box-shadow: var(--schatten-1);
}
.zahl { display: flex; flex-direction: column; }
.zahl b {
  font-family: var(--schrift-titel); font-size: 1.5rem;
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.zahl span { color: var(--text-still); font-size: .82rem; }

.kacheln {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.kachel {
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--rundung); padding: 1.1rem 1.15rem 1rem;
  color: var(--text); text-decoration: none;
  box-shadow: var(--schatten-1);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.kachel:hover {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--schatten-2); border-color: var(--rand-stark);
}
@media (prefers-reduced-motion: reduce) {
  .kachel { transition: none; }
  .kachel:hover { transform: none; }
}

.kachel h2 { font-size: 1.08rem; }
.kachel-monate { display: flex; flex-wrap: wrap; gap: .3rem; }

.monatsmarke {
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  padding: .12rem .45rem; border-radius: 5px;
  background: var(--flaeche-3); color: var(--text-leise);
}
.monatsmarke.hat-inhalt { background: var(--akzent-hell); color: var(--akzent); }

.balken {
  height: 6px; border-radius: 3px; background: var(--flaeche-3);
  overflow: hidden; margin-top: auto;
}
.balken i { display: block; height: 100%; background: var(--akzent); border-radius: 3px; }
.balken.voll i { background: var(--gut); }

.kachel-fuss {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .82rem; color: var(--text-still);
}
.kachel-fuss b { font-family: var(--schrift-fest); font-weight: 500; color: var(--text-leise); }

/* Anzeigenstreifen — muss sich sichtbar vom Inhalt abheben, damit niemand
   ihn fuer eine neutrale Empfehlung der Liste haelt. */
.anzeige {
  margin-top: 2.5rem; padding: 1.1rem 1.25rem;
  border: 1px dashed var(--rand-stark); border-radius: var(--rundung);
  background: var(--flaeche-2);
}
.anzeige-marke {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-still); border: 1px solid var(--rand-stark);
  border-radius: 4px; padding: .05rem .4rem; margin-bottom: .5rem;
}
.anzeige p { margin: 0 0 .5rem; color: var(--text-leise); font-size: .92rem; }
.anzeige p:last-child { margin-bottom: 0; }

/* ========================================================================
   5. Bundesland
   ======================================================================== */

.zurueck {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--text-leise); font-size: .9rem; margin-bottom: 1rem;
}

.kampagne {
  border: 1px solid var(--rand); border-radius: var(--rundung);
  background: var(--flaeche); margin-bottom: 1rem;
  box-shadow: var(--schatten-1); overflow: hidden;
}

.kampagne > summary {
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1.2rem; cursor: pointer; list-style: none;
  font-family: var(--schrift-titel); font-weight: 700; font-size: 1.08rem;
}
.kampagne > summary::-webkit-details-marker { display: none; }
.kampagne > summary:hover { background: var(--flaeche-2); }
.kampagne > summary::before {
  content: '▸'; color: var(--text-still); font-size: .85rem;
  transition: transform .15s ease; flex: none;
}
.kampagne[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .kampagne > summary::before { transition: none; }
}

.kampagne-stand {
  margin-left: auto; font-family: var(--schrift-fest);
  font-size: .78rem; font-weight: 400; color: var(--text-still);
}

.kampagne-koerper { padding: 0 1.2rem 1.2rem; }

.kampagne-notiz {
  margin: 0 0 1rem; padding: .7rem .9rem;
  background: var(--warn-hell); border-radius: var(--rundung-s);
  font-size: .88rem; color: var(--text-leise);
  /* Notizen aus der Mappe sind teils mehrzeilig — ohne pre-wrap liefe
     alles zu einem Absatz zusammen. */
  white-space: pre-wrap; overflow-wrap: anywhere;
}

/* Eine Klausur ist ein eigener aufklappbarer Abschnitt. Zugeklappt zeigt die
   Zeile schon Bezeichnung, Rechtsgebiet und Füllstand — damit sieht man, was
   sich zu öffnen lohnt, ohne alles durchscrollen zu müssen. */
.klausur {
  border-top: 1px solid var(--rand);
  /* Abstand zur klebenden Kopfzeile beim Anspringen einer Klausur --
     ohne das verschwindet die Überschrift darunter. */
  scroll-margin-top: 5.5rem;
}
.klausur:first-of-type { border-top: none; }

.klausur > summary {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .75rem .3rem; cursor: pointer; list-style: none;
  border-radius: var(--rundung-s);
}
.klausur > summary::-webkit-details-marker { display: none; }
.klausur > summary:hover { background: var(--flaeche-2); }
.klausur > summary::before {
  content: '▸'; color: var(--text-still); font-size: .8rem; flex: none;
  transition: transform .15s ease;
}
.klausur[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .klausur > summary::before { transition: none; }
}

.klausur > summary h3 {
  font-size: 1rem; font-family: var(--schrift); font-weight: 600;
  display: inline;
}

.klausur-stand {
  margin-left: auto; font-family: var(--schrift-fest);
  font-size: .76rem; color: var(--text-leise); white-space: nowrap;
}
.klausur-stand.leer { color: var(--text-still); font-style: italic; }

.klausur-koerper { padding: .2rem .3rem 1rem; }

.chip {
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  padding: .13rem .5rem; border-radius: 20px;
}
.chip.zivilrecht { background: var(--zivil-hell); color: var(--zivil); }
.chip.strafrecht { background: var(--straf-hell); color: var(--straf); }
.chip.oeffentliches-recht { background: var(--oeff-hell); color: var(--oeff); }

.klausur-werkzeuge {
  display: flex; gap: .35rem; flex-wrap: wrap;
  margin-bottom: .8rem;
}

.felder { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .feld-sachverhalt { grid-row: span 2; }
}

.textfeld { min-width: 0; }
.textfeld > .bezeichnung {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-still); margin-bottom: .25rem;
}

.wert {
  scroll-margin-top: 5.5rem;
  white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: .93rem; color: var(--text);
  background: var(--flaeche-2); border: 1px solid transparent;
  border-radius: var(--rundung-s); padding: .55rem .7rem;
  min-height: 2.2rem;
}
.wert.leer { color: var(--text-still); font-style: italic; }

body.ist-admin .wert {
  cursor: text; border-color: var(--rand);
}
body.ist-admin .wert:hover { border-color: var(--rand-stark); background: var(--flaeche); }

.wert-eingabe {
  width: 100%; font: inherit; font-size: .93rem; color: var(--text);
  background: var(--flaeche); border: 1px solid var(--akzent);
  border-radius: var(--rundung-s); padding: .55rem .7rem;
  resize: vertical; min-height: 8rem; line-height: 1.55;
}
.eingabe-hilfe {
  font-size: .76rem; color: var(--text-still); margin: .3rem 0 0;
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
}
kbd {
  font-family: var(--schrift-fest); font-size: .72rem;
  background: var(--flaeche-3); border: 1px solid var(--rand-stark);
  border-bottom-width: 2px; border-radius: 4px; padding: .05rem .3rem;
}

/* ========================================================================
   6. Uebersicht, Suche, Verwaltung
   ======================================================================== */

.tabellenrahmen {
  overflow-x: auto; border: 1px solid var(--rand);
  border-radius: var(--rundung); background: var(--flaeche);
  box-shadow: var(--schatten-1);
}
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--rand); }
thead th {
  position: sticky; top: 0; background: var(--flaeche);
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-still); font-weight: 700; z-index: 1;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--flaeche-2); }
td.mitte, th.mitte { text-align: center; }
.matrix td.land { font-weight: 600; white-space: nowrap; }

.kreuz {
  display: inline-block; width: 22px; height: 22px; line-height: 22px;
  border-radius: 6px; font-size: .78rem; font-weight: 700;
}
.kreuz.offen { background: var(--flaeche-3); color: var(--text-still); }
.kreuz.teilweise { background: var(--warn-hell); color: var(--warn); }
.kreuz.fertig { background: var(--gut-hell); color: var(--gut); }

.filterleiste {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end;
  margin-bottom: 1.4rem; padding: 1rem 1.1rem;
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--rundung); box-shadow: var(--schatten-1);
}
.filterleiste .feld { flex: 1 1 150px; min-width: 0; }
.filterleiste .feld.weit { flex: 2 1 260px; }

.feld { display: flex; flex-direction: column; gap: .25rem; }
.feld > span {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-still);
}
/*
 * Eingabefelder -- AUSSCHLIESSEND ausgewaehlt, nicht aufzaehlend.
 *
 * Hier stand bis zum 27.09.2026 eine Liste:
 *     input[type="text"], input[type="password"], input[type="search"]
 *
 * Als mit dem Kontensystem vier Felder vom Typ "email" dazukamen, traf die
 * Regel sie nicht. Sie sahen anders aus als alles daneben -- andere Schrift,
 * andere Hoehe, andere Ecken -- weil der Browser seine eigene Vorgabe nahm.
 * Auf der Anmeldeseite standen dadurch zwei Felder untereinander, die
 * sichtbar nicht zusammenpassten.
 *
 * Eine Aufzaehlung ist bei so etwas die falsche Form: Sie vergisst still. Die
 * Umkehrung -- "alles ausser dem, was ausdruecklich anders aussehen soll" --
 * nimmt jeden kuenftigen Typ von selbst mit: email, tel, url, number, date.
 * Vergessen faellt damit in die harmlose Richtung.
 *
 * Ausgenommen sind nur die Typen, die gar keine Textfelder sind.
 */
input:not([type="checkbox"], [type="radio"], [type="file"],
          [type="submit"], [type="button"], [type="reset"],
          [type="range"], [type="color"], [type="image"], [type="hidden"]),
select, textarea {
  font: inherit;
  font-size: .93rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--rand-stark);
  border-radius: var(--rundung-s);
  padding: .48rem .65rem;
  width: 100%;
  /* Ohne das nimmt Safari auf dem iPhone eigene Rundungen und Schatten --
     und die Felder sehen dort wieder unterschiedlich aus. */
  -webkit-appearance: none;
  appearance: none;
}


/*
 * Das Ausfuellen durch den Browser.
 *
 * Chrome faerbt automatisch ausgefuellte Felder hellblau und ueberschreibt
 * dabei Hintergrund UND Schriftfarbe -- im dunklen Farbschema wird daraus
 * heller Text auf hellem Grund, also unlesbar. Der Schatten-Trick ist der
 * einzige Weg, das zu uebersteuern: Chrome laesst die Hintergrundfarbe nicht
 * ueberschreiben, einen Innenschatten aber schon.
 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px var(--flaeche) inset;
  caret-color: var(--text);
}
select { cursor: pointer; }
textarea { resize: vertical; line-height: 1.55; }

.treffer { display: flex; flex-direction: column; gap: .8rem; }
.treffer-karte {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--rundung); padding: 1rem 1.1rem;
  box-shadow: var(--schatten-1);
}
.treffer-pfad {
  font-size: .8rem; color: var(--text-still); margin-bottom: .45rem;
  display: flex; gap: .4rem; align-items: center; flex-wrap: wrap;
}
.treffer-karte h3 { font-size: .98rem; font-family: var(--schrift); font-weight: 600; margin-bottom: .5rem; }
.treffer-zeile { font-size: .88rem; margin: 0 0 .35rem; }
.treffer-zeile b { color: var(--text-still); font-weight: 600; font-size: .78rem;
  letter-spacing: .05em; text-transform: uppercase; display: block; }
.treffer-zeile span { white-space: pre-wrap; overflow-wrap: anywhere; }

.reiter { display: flex; gap: .3rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.reiter button {
  font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer;
  background: none; border: 1px solid transparent; color: var(--text-leise);
  padding: .42rem .8rem; border-radius: var(--rundung-s);
}
.reiter button:hover { background: var(--flaeche-2); color: var(--text); }
.reiter button[aria-selected="true"] {
  background: var(--akzent-hell); color: var(--akzent);
  border-color: color-mix(in srgb, var(--akzent) 25%, transparent); font-weight: 600;
}

.vorschlag {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--rundung); padding: 1.1rem 1.15rem;
  margin-bottom: 1rem; box-shadow: var(--schatten-1);
}
.vorschlag-kopf { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.vorschlag-art {
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .12rem .45rem; border-radius: 5px;
  background: var(--akzent-hell); color: var(--akzent);
}
.vorschlag-art.fehler { background: var(--schlecht-hell); color: var(--schlecht); }
.vorschlag-art.neue_kampagne { background: var(--warn-hell); color: var(--warn); }
.vorschlag-zeit { margin-left: auto; font-size: .8rem; color: var(--text-still); }

.gegenueber { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gegenueber { grid-template-columns: 1fr 1fr; } }
.gegenueber .seite > span {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-still); margin-bottom: .25rem;
}
.gegenueber .seite pre {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--schrift); font-size: .88rem;
  background: var(--flaeche-2); border-radius: var(--rundung-s);
  padding: .6rem .7rem; min-height: 3rem;
}
.gegenueber .seite.neu pre { background: var(--gut-hell); }

.verlaufzeile {
  display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap;
  padding: .6rem 0; border-bottom: 1px solid var(--rand); font-size: .88rem;
}
.verlaufzeile:last-child { border-bottom: none; }
.verlaufzeile time { font-family: var(--schrift-fest); font-size: .78rem; color: var(--text-still); }

.leerhinweis {
  text-align: center; color: var(--text-still);
  padding: 3rem 1rem; border: 1px dashed var(--rand-stark);
  border-radius: var(--rundung);
}

.textblock { max-width: 68ch; }
.textblock p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ========================================================================
   7. Bedienelemente, Dialoge, Meldungen
   ======================================================================== */

.knopf-haupt, .knopf-still, .knopf-klein {
  font: inherit; cursor: pointer; border-radius: var(--rundung-s);
  display: inline-flex; align-items: center; gap: .35rem;
  transition: background .13s ease, border-color .13s ease;
}
@media (prefers-reduced-motion: reduce) {
  .knopf-haupt, .knopf-still, .knopf-klein { transition: none; }
}

.knopf-haupt {
  background: var(--akzent); color: var(--akzent-text);
  border: 1px solid var(--akzent); padding: .48rem 1rem;
  font-weight: 600; font-size: .93rem;
}
.knopf-haupt:hover { background: color-mix(in srgb, var(--akzent) 85%, #000); }

.knopf-still {
  background: var(--flaeche); color: var(--text-leise);
  border: 1px solid var(--rand-stark); padding: .42rem .75rem; font-size: .9rem;
}
.knopf-still:hover { background: var(--flaeche-2); color: var(--text); }

.knopf-klein {
  background: none; border: 1px solid var(--rand); color: var(--text-still);
  padding: .18rem .5rem; font-size: .78rem;
}
.knopf-klein:hover { background: var(--flaeche-2); color: var(--text); border-color: var(--rand-stark); }
.knopf-klein.gefahr:hover { background: var(--schlecht-hell); color: var(--schlecht); border-color: var(--schlecht); }

.verweis-knopf {
  font: inherit; font-size: inherit; background: none; border: none;
  color: var(--akzent); cursor: pointer; padding: 0; text-decoration: underline;
}

.dialog {
  border: 1px solid var(--rand); border-radius: var(--rundung);
  background: var(--flaeche); color: var(--text);
  padding: 0; max-width: 720px; width: calc(100% - 2rem);
  box-shadow: var(--schatten-3);
}
.dialog-schmal { max-width: 420px; }
.dialog::backdrop { background: rgba(10, 12, 18, .55); backdrop-filter: blur(2px); }

.dialog-kopf {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem .6rem;
}
.dialog-kopf h2 { font-size: 1.2rem; flex: 1; }

.knopf-schliessen {
  font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
  background: none; border: none; color: var(--text-still);
  padding: .1rem .35rem; border-radius: 6px;
}
.knopf-schliessen:hover { background: var(--flaeche-2); color: var(--text); }

.dialog-koerper {
  padding: .4rem 1.3rem 1rem; max-height: min(62vh, 560px); overflow-y: auto;
  display: flex; flex-direction: column; gap: .9rem;
}
.dialog-koerper p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-koerper h3 { font-size: .95rem; margin-top: .3rem; }

.dialog-fuss {
  display: flex; gap: .5rem; justify-content: flex-end; align-items: center;
  padding: .9rem 1.3rem 1.2rem; border-top: 1px solid var(--rand);
  flex-wrap: wrap;
}

/* Der Honigtopf: fuer Menschen unsichtbar, fuer einfache Skripte ein
   ganz normales Feld. display:none waere zu offensichtlich — manche
   Skripte ueberspringen ausgeblendete Felder. */
.honigtopf {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.fehler {
  color: var(--schlecht); font-size: .88rem; margin: 0; flex: 1;
}

.meldung {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  background: var(--text); color: var(--grund);
  padding: .65rem 1.1rem; border-radius: 22px; font-size: .9rem;
  box-shadow: var(--schatten-3); z-index: 60; max-width: calc(100% - 2rem);
}
.meldung.schlecht { background: var(--schlecht); color: #fff; }

.hinweis-anzeige {
  font-size: .8rem; color: var(--text-still);
  border-left: 2px solid var(--rand-stark); padding-left: .7rem;
}

/* --- Ergänzungsformular: bildet die Klausur-Karte nach ------------------ */

.formular-hinweis {
  margin: 0; padding: .75rem .9rem;
  background: var(--akzent-hell); border-radius: var(--rundung-s);
  font-size: .88rem; color: var(--text-leise); line-height: 1.5;
}
.formular-hinweis b { color: var(--akzent); }

.formularfeld {
  border-left: 3px solid transparent; padding-left: .7rem;
  margin-left: -.7rem; transition: border-color .15s ease;
}
.formularfeld.ist-geaendert { border-left-color: var(--gut); }
@media (prefers-reduced-motion: reduce) { .formularfeld { transition: none; } }

.feld-stand {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  color: var(--gut); background: var(--gut-hell);
  border-radius: 4px; padding: .05rem .35rem; margin-left: .4rem;
}
.feld-stand[hidden] { display: none; }

.formularfeld textarea { line-height: 1.55; }
.formularfeld .eingabe-hilfe { margin-top: .25rem; }

/* --- Postfach: eine Einreichung, mehrere Felder -------------------------- */

.vorschlag-anzahl {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: var(--flaeche-3); color: var(--text-leise);
  border-radius: 5px; padding: .1rem .4rem;
}

.feldvergleich {
  border-top: 1px solid var(--rand);
  padding: .8rem 0 .2rem;
}
.feldvergleich:first-of-type { border-top: none; }
.feldvergleich.entschieden { opacity: .55; }

.feldvergleich-kopf {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .5rem; flex-wrap: wrap;
}
.feldvergleich-kopf b {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-still);
}
.feldvergleich-knoepfe { margin-left: auto; display: flex; gap: .3rem; }

/* In der Seitenansicht steht wenig Platz zur Verfügung — dort untereinander. */
.meldung-feldblock {
  border-top: 1px solid var(--rand);
  padding-top: .7rem; margin-top: .7rem;
}
.meldung-feldblock.entschieden { opacity: .55; }
.meldung-feldblock .meldung-feld {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.meldung-feldknoepfe { margin-left: auto; display: flex; gap: .25rem; }

/* Die Kopfzeile des Dialogs trägt jetzt eine Ortsangabe über dem Titel. */
.dialog-kopf > div { flex: 1; min-width: 0; }

/* --- Tea: Gerüchte ------------------------------------------------------ */

.leiste-tee { font-weight: 600; }

.tee-leiste {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.4rem;
}
.tee-leiste .reiter { margin-bottom: 0; flex: 1; }

.tee-karte {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--rundung); padding: 1rem 1.1rem;
  margin-bottom: .9rem; box-shadow: var(--schatten-1);
}

.tee-kopfzeile {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .6rem; flex-wrap: wrap;
}
.tee-zeit { margin-left: auto; font-size: .78rem; color: var(--text-still); }

.tee-text {
  margin: 0 0 .9rem; font-size: .97rem; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere;
}

.tee-daumen { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Die Daumen. Gewählt = deutlich abgesetzt, damit man die eigene Stimme
   auch ohne Farbwahrnehmung erkennt (Rahmen UND Hintergrund UND Fettung). */
.daumen {
  display: inline-flex; align-items: center; gap: .4rem;
  font: inherit; font-size: .9rem; cursor: pointer;
  background: var(--flaeche-2); color: var(--text-leise);
  border: 1px solid var(--rand); border-radius: 20px;
  padding: .3rem .75rem;
  transition: background .13s ease, border-color .13s ease;
}
.daumen:hover { background: var(--flaeche-3); border-color: var(--rand-stark); }
.daumen b { font-family: var(--schrift-fest); font-weight: 500; }
.daumen.gewaehlt {
  background: var(--akzent-hell); border-color: var(--akzent);
  color: var(--akzent);
}
.daumen.gewaehlt b { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .daumen { transition: none; } }

.tee-waage {
  font-size: .78rem; color: var(--text-still);
  border-left: 1px solid var(--rand); padding-left: .7rem; margin-left: .2rem;
}
.tee-waage.zu { color: var(--gut); }
.tee-waage.gegen { color: var(--schlecht); }

.tee-formular {
  border: 1px solid var(--rand); border-radius: var(--rundung);
  background: var(--flaeche); padding: 1.2rem 1.3rem; margin-top: 1.6rem;
  box-shadow: var(--schatten-1);
}
.tee-formular[hidden] { display: none; }
.tee-formular h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.tee-formular form { display: flex; flex-direction: column; gap: .9rem; }

/* Der Hinweis vor dem Bereich — bewusst groß und nicht wegklickbar. */
.dialog-tee { max-width: 640px; }
.dialog-tee::backdrop { background: rgba(10, 12, 18, .72); }
.tee-kopf { align-items: center; gap: .7rem; padding-bottom: .3rem; }
.tee-kanne { font-size: 2rem; line-height: 1; }
.dialog-tee .dialog-kopf h2 { font-size: 1.6rem; }
.dialog-tee .dialog-koerper p { font-size: .95rem; }

/* Nur für Vorleseprogramme — sichtbar ist der Zähler daneben. */
.nur-vorleser {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* --- Rechtliches ------------------------------------------------------- */

.fuss-leiste {
  display: flex; flex-wrap: wrap; gap: .2rem 1rem;
  margin: .8rem 0 .6rem;
}
.fuss-leiste a { font-size: .88rem; color: var(--text-leise); text-decoration: underline; }
.fuss-leiste a:hover { color: var(--akzent); }

.rechtstext h2 {
  font-size: 1.05rem; margin: 1.8rem 0 .5rem;
}
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext p { margin: 0 0 .8rem; }
.rechtstext code { font-family: var(--schrift-fest); font-size: .88em; }

/* Eine noch nicht ausgefüllte Pflichtangabe. Muss ins Auge springen —
   ein Impressum mit Platzhalter ist schlimmer als eine sichtbare Baustelle. */
mark.luecke {
  background: var(--warn-hell); color: var(--warn);
  border: 1px dashed color-mix(in srgb, var(--warn) 50%, transparent);
  border-radius: 4px; padding: 0 .3rem; font-weight: 600;
}

.warnband, .gutband {
  border-radius: var(--rundung); padding: .8rem 1rem;
  margin-bottom: 1.4rem; font-size: .92rem;
}
.warnband {
  background: var(--warn-hell); color: var(--text-leise);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
}
.warnband b { color: var(--warn); }
.gutband {
  background: var(--gut-hell); color: var(--text-leise);
  border: 1px solid color-mix(in srgb, var(--gut) 35%, transparent);
}

.lueckenliste {
  margin: .4rem 0 0; padding-left: 1.2rem;
  font-size: .84rem; color: var(--text-still);
}

.ankreuzfeld {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .87rem; color: var(--text-leise); line-height: 1.5;
  background: var(--flaeche-2); border: 1px solid var(--rand);
  border-radius: var(--rundung-s); padding: .7rem .8rem;
}
.ankreuzfeld input { margin-top: .18rem; flex: none; width: auto; }

/* Testsystem: dasselbe Programm, andere Datenbank. Das Band muss auf den
   ersten Blick anders aussehen als das Gastansicht-Band — wer beide Systeme
   offen hat, darf sie nicht verwechseln. Deshalb kräftiges Violett statt
   Gelb, und ein durchgehender Streifen statt einer Zeile. */
.testband {
  background: var(--akzent);
  color: var(--akzent-text);
  border-bottom: 1px solid var(--akzent);
}
.testband[hidden] { display: none; }

.testband-innen {
  max-width: var(--breite); margin: 0 auto;
  padding: .6rem 1.25rem;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
}
.testband-innen p {
  margin: 0; flex: 1; min-width: 240px;
  font-size: .87rem; color: inherit; opacity: .92;
}
.testband-innen p b { opacity: 1; }
/* Der Import-Kasten in der Verwaltung des Testsystems. */
.importkasten {
  border: 1px solid color-mix(in srgb, var(--akzent) 30%, var(--rand));
  border-radius: var(--rundung);
  background: var(--flaeche);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--schatten-1);
}
.importkasten-kopf {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: .6rem;
}
.importkasten-kopf h2 { font-size: 1.1rem; flex: 1; }
.importkasten code {
  font-family: var(--schrift-fest); font-size: .88em;
  background: var(--flaeche-2); border-radius: 4px; padding: .05rem .3rem;
}
.importkasten .warnband, .importkasten .gutband { margin-bottom: 0; }

.testband-stand {
  display: block; margin-top: .15rem;
  font-family: var(--schrift-fest); font-size: .74rem; opacity: .75;
}
.testband-marke {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; flex: none;
  border: 1px solid currentColor; border-radius: 4px; padding: .08rem .45rem;
}
.testband .knopf-still {
  background: transparent; color: inherit; border-color: currentColor;
}
.testband .knopf-still:hover {
  background: color-mix(in srgb, var(--akzent-text) 18%, transparent);
  color: inherit;
}

/* Im Testsystem trägt auch die Marke oben links einen Hinweis. */
body.ist-testsystem .marke-text::after {
  content: ' · Test';
  font-weight: 600; font-size: .8em; color: var(--akzent);
}

/* Gastansicht: ein unübersehbares Band, damit niemand darin festsitzt und
   sich fragt, warum plötzlich nichts mehr bearbeitbar ist. */
.gastband {
  background: var(--warn-hell);
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
}
.gastband[hidden] { display: none; }

.gastband-innen {
  max-width: var(--breite); margin: 0 auto;
  padding: .6rem 1.25rem;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
}
.gastband-innen p {
  margin: 0; flex: 1; min-width: 220px;
  font-size: .87rem; color: var(--text-leise);
}
.gastband-marke {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  border-radius: 4px; padding: .08rem .45rem; flex: none;
}

/* ========================================================================
   8. Seitenansicht — von der Meldung an die Stelle
   ======================================================================== */

/* Kein modales Fenster: Der Bericht soll lesbar bleiben, WÄHREND das Feld
   darunter bearbeitet wird. Auf breiten Bildschirmen steht er deshalb
   daneben, auf schmalen unten als Leiste. */
.seitenansicht {
  position: fixed; right: 0; top: 0; bottom: 0; width: 380px; z-index: 45;
  background: var(--flaeche); border-left: 1px solid var(--rand);
  box-shadow: var(--schatten-3);
  display: flex; flex-direction: column;
}
.seitenansicht[hidden] { display: none; }

.seitenansicht-kopf {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: 1rem 1.1rem .8rem; border-bottom: 1px solid var(--rand);
}
.seitenansicht-kopf h2 { font-size: 1.05rem; }
.seitenansicht-oben {
  display: block; font-size: .76rem; color: var(--text-still); margin-bottom: .15rem;
}

.seitenansicht-koerper {
  flex: 1; overflow-y: auto; padding: 1rem 1.1rem 2rem;
}
.seitenansicht-leer { color: var(--text-still); font-size: .9rem; margin: 0; }

.seitenansicht-alt { margin-top: 1.2rem; }
.seitenansicht-alt > summary {
  cursor: pointer; font-size: .82rem; color: var(--text-still);
  padding: .3rem 0;
}

/* Damit die Seitenansicht den Inhalt nicht verdeckt, rückt der Text nach
   links — nur dort, wo genug Platz dafür ist. */
@media (min-width: 1100px) {
  body.hat-seitenansicht .inhalt,
  body.hat-seitenansicht .kopf-innen,
  body.hat-seitenansicht .fuss-innen { margin-right: 380px; }
}

@media (max-width: 1099px) {
  .seitenansicht {
    top: auto; left: 0; width: auto; max-height: 62vh;
    border-left: none; border-top: 1px solid var(--rand);
    border-radius: var(--rundung) var(--rundung) 0 0;
  }
  body.hat-seitenansicht .fuss { margin-bottom: 62vh; }
}

.meldung-karte {
  border: 1px solid var(--rand); border-radius: var(--rundung-s);
  padding: .85rem .9rem; margin-bottom: .9rem; background: var(--flaeche-2);
}
.meldung-karte.entschieden { opacity: .65; }

.meldung-kopf {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .55rem; flex-wrap: wrap;
}
.meldung-zeit { margin-left: auto; font-size: .75rem; color: var(--text-still); }

.meldung-feld { margin: 0 0 .6rem; font-size: .82rem; color: var(--text-leise); }

.meldung-block { margin-bottom: .7rem; }
.meldung-block > span {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-still); margin-bottom: .2rem;
}
.meldung-block > p {
  margin: 0; font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--flaeche); border-radius: 6px; padding: .5rem .6rem;
  max-height: 16rem; overflow-y: auto;
}
.meldung-block > p.alt { border-left: 3px solid var(--rand-stark); }
.meldung-block > p.neu { border-left: 3px solid var(--gut); background: var(--gut-hell); }

.meldung-absender { margin: 0 0 .7rem; font-size: .78rem; color: var(--text-still); }
.meldung-stand { margin: 0; font-size: .78rem; color: var(--text-still); }

.meldung-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }
.knopf-haupt.klein, .knopf-still.klein { padding: .3rem .65rem; font-size: .84rem; }

.vorschlag-knoepfe {
  display: flex; gap: .5rem; margin-top: 1rem; align-items: center; flex-wrap: wrap;
}

/* Der Zähler an einer Klausur ist anklickbar, wenn Emily angemeldet ist. */
.punkt-knopf { border: none; cursor: pointer; font-family: inherit; }
.punkt-knopf:hover { background: color-mix(in srgb, var(--akzent) 80%, #000); }

/* Die angesprungene Klausur und das bemängelte Feld hervorheben. Ohne das
   landet man zwar an der richtigen Stelle, sieht aber nicht, welche. */
.klausur.hervorgehoben {
  background: var(--akzent-hell); border-radius: var(--rundung-s);
  box-shadow: 0 0 0 2px var(--akzent);
  border-top-color: transparent;
}
.wert.bemaengelt {
  border-color: var(--schlecht) !important;
  box-shadow: 0 0 0 1px var(--schlecht);
}

@media (max-width: 620px) {
  .kopf-innen { flex-wrap: wrap; gap: .6rem .9rem; }
  .leiste { order: 3; flex-basis: 100%; }
  .kopf-knoepfe { margin-left: auto; }
  .inhalt { padding-top: 1.5rem; }
}

/* Werkzeuge am Fuß eines Prüfungsmonats: Klausur ergänzen, Monat löschen. */
.kampagne-werkzeuge {
  display: flex; align-items: flex-end; gap: .8rem;
  flex-wrap: wrap; margin-top: 1.2rem;
  padding-top: 1rem; border-top: 1px solid var(--rand);
}
.feld-quer { flex: 0 1 260px; }
.kampagne-werkzeuge .knopf-klein { margin-left: auto; }

/* ==========================================================================
   Kontensystem: Landingpage, Anmeldung, eigenes Konto, Kontenverwaltung
   Seit 27.09.2026. Vorher hing vor der ganzen Seite ein Caddy-Passwort.
   ========================================================================== */

/* --- Schmale Formularseiten (Anmelden, Registrieren, Konto) --------------- */

.schmalseite {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}
.schmalseite h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: .5rem; }
.schmalseite h2 { font-size: 1.05rem; margin-bottom: .6rem; }

.hinweiszeile {
  color: var(--text-leise);
  font-size: .94rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.hinweiszeile code {
  font-family: var(--schrift-fest);
  font-size: .86em;
  background: var(--flaeche-2);
  padding: .1rem .35rem;
  border-radius: 4px;
}

.kontoformular { display: flex; flex-direction: column; gap: 1rem; }
.kontoformular .eingabe-hilfe { margin-top: -.6rem; }

/* Der Knopf trägt die Seite -- er darf nicht wie eine Nebensache aussehen. */
.knopf-haupt.gross, .knopf-still.gross {
  padding: .8rem 1.4rem;
  font-size: 1rem;
  border-radius: var(--rundung-s);
}
.kontoformular .knopf-haupt { align-self: stretch; text-align: center; }

.kontowege {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rand);
  font-size: .92rem;
}
.kontowege a { color: var(--akzent); text-decoration: none; }
.kontowege a:hover { text-decoration: underline; }

.gross-band { padding: 1.5rem; margin-bottom: 1.5rem; }
.gross-band h1 { margin-bottom: .4rem; }

/* Ankreuzfeld in den Kontoformularen. Eigene Klasse und nicht .ankreuzfeld,
   weil hier die Zeilenhöhe und der Abstand zum Text anders sitzen müssen --
   der Text ist länger und enthält Verweise. */
.ankreuz {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--text-leise);
  cursor: pointer;
}
.ankreuz input {
  margin-top: .2rem;
  flex: none;
  width: auto;
  accent-color: var(--akzent);
}
.ankreuz a { color: var(--akzent); }

/* --- Der Anonymitätshinweis ---------------------------------------------- */
/*
   Steht an drei Stellen: Ergänzungsformular, Tea-Bereich, eigenes Konto.
   Bewusst in der Akzentfarbe und nicht als Warnung: Es ist eine Zusage, keine
   Gefahr -- ein gelber Kasten würde das Gegenteil signalisieren.
*/
.anonymkasten {
  background: var(--akzent-hell);
  border: 1px solid color-mix(in srgb, var(--akzent) 25%, transparent);
  border-radius: var(--rundung-s);
  padding: .9rem 1rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text);
}
.anonymkasten p { margin: 0 0 .5rem; }
.anonymkasten p:last-child { margin-bottom: 0; }
.anonym-titel { font-weight: 600; color: var(--akzent); }
.anonym-kehrseite { color: var(--text-leise); font-size: .86rem; }

.anonym-knapp {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--akzent-hell);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .86rem;
  color: var(--text);
  margin-top: .75rem;
}

/* --- Turnstile ----------------------------------------------------------- */
/* Fester Platz, damit das Formular beim Erscheinen des Kästchens nicht
   springt -- ein Knopf, der sich unter dem Finger wegbewegt, wird falsch
   getroffen. */
.turnstile { min-height: 65px; }

/* --- Landingpage --------------------------------------------------------- */

.landung { max-width: 56rem; margin: 0 auto; }

.landung-kopf { text-align: center; padding: 2.5rem 0 2rem; }
.landung-oben {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--akzent);
  margin-bottom: .75rem;
}
.landung-kopf h1 {
  font-family: var(--schrift-titel);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.landung-unterzeile {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-leise);
  max-width: 34rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.landung-knoepfe {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.landung-knoepfe a { text-decoration: none; }
.landung-klein {
  margin-top: .9rem;
  font-size: .86rem;
  color: var(--text-still);
}

.landung-zahlen { justify-content: center; margin-bottom: 3rem; }

.landung-punkte {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-bottom: 3rem;
}
.landung-punkt {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--rundung);
  padding: 1.25rem;
  box-shadow: var(--schatten-1);
}
.landung-punkt h2 {
  font-size: 1rem;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.landung-punkt p {
  font-size: .92rem;
  color: var(--text-leise);
  line-height: 1.6;
}

.landung-text {
  background: var(--flaeche-2);
  border-radius: var(--rundung);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.landung-text h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.landung-text p { margin-bottom: .75rem; line-height: 1.65; color: var(--text-leise); }
.landung-text p:last-child { margin-bottom: 0; }

.landung-fuss { text-align: center; padding-bottom: 2rem; }
.landung-fuss a { text-decoration: none; }

/* --- Eigenes Konto ------------------------------------------------------- */

.kontodaten {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .4rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: .94rem;
}
.kontodaten dt { color: var(--text-still); }
.kontodaten dd { color: var(--text); font-weight: 500; }

.kontoabschnitt {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rand);
}

/* Der Löschbereich ist rot eingefasst. Nicht Zierde: Er trennt die
   unumkehrbare Handlung sichtbar von allem anderen auf der Seite. */
.gefahrbereich {
  border: 1px solid color-mix(in srgb, var(--schlecht) 35%, transparent);
  border-radius: var(--rundung-s);
  padding: 1.25rem;
  background: var(--schlecht-hell);
}
.gefahrbereich h2 { color: var(--schlecht); }
.gefahrbereich p {
  font-size: .9rem;
  color: var(--text-leise);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.knopf-gefahr {
  font: inherit;
  font-size: .92rem;
  font-weight: 500;
  padding: .55rem 1rem;
  border-radius: var(--rundung-s);
  border: 1px solid var(--schlecht);
  background: transparent;
  color: var(--schlecht);
  cursor: pointer;
}
.knopf-gefahr:hover { background: var(--schlecht); color: #fff; }

/* --- Kontenverwaltung ---------------------------------------------------- */

.kontenliste { display: flex; flex-direction: column; gap: .6rem; }

.kontozeile {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--rundung-s);
  overflow: hidden;
}
.kontozeile.gesperrt { opacity: .6; border-color: var(--schlecht); }
.kontozeile.eigenes { border-color: var(--akzent); }

.kontozeile > summary {
  padding: .75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  list-style: none;
}
.kontozeile > summary::-webkit-details-marker { display: none; }
.kontozeile > summary:hover { background: var(--flaeche-2); }

.konto-email { font-weight: 500; word-break: break-all; }
.konto-marken { display: flex; gap: .35rem; flex-wrap: wrap; margin-left: auto; }

.konto-marke {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--flaeche-3);
  color: var(--text-leise);
  white-space: nowrap;
}
.konto-marke.rolle-admin { background: var(--akzent-hell); color: var(--akzent); }
.konto-marke.rolle-vip { background: var(--gut-hell); color: var(--gut); }
.konto-marke.offen { background: var(--warn-hell); color: var(--warn); }
.konto-marke.gesperrt { background: var(--schlecht-hell); color: var(--schlecht); }

.konto-koerper {
  padding: 1rem;
  border-top: 1px solid var(--rand);
  background: var(--flaeche-2);
}
.konto-werkzeuge {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Die dreizehn Rechteschalter. Drei Zustände je Recht -- deshalb ein
   <select> und keine Ankreuzfelder: Mit einem Haken ließe sich
   "Vorgabe der Rolle" nicht von "ausdrücklich verboten" unterscheiden. */
.rechteraster {
  display: grid;
  gap: .4rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}
.rechtzeile {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .6rem;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 6px;
  font-size: .88rem;
}
.rechtzeile.abweichend { border-color: var(--akzent); background: var(--akzent-hell); }
.rechtzeile-name { flex: 1; }
.rechtzeile-name small {
  display: block;
  color: var(--text-still);
  font-size: .78rem;
  line-height: 1.35;
  margin-top: .1rem;
}
.rechtzeile select { width: auto; flex: none; font-size: .82rem; padding: .2rem .4rem; }
.rechtzeile-zustand {
  font-size: .8rem;
  width: 1.2rem;
  text-align: center;
  flex: none;
}
.rechtzeile-zustand.ja { color: var(--gut); }
.rechtzeile-zustand.nein { color: var(--text-still); }

/* --- Betrieb: Dienste und Ereignisse ------------------------------------- */

.dienstliste {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-bottom: 1.5rem;
}
.dienst {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .75rem;
  border: 1px solid var(--rand);
  border-radius: var(--rundung-s);
  background: var(--flaeche);
  font-size: .9rem;
}
.dienst.schlaeft { color: var(--text-still); }
.dienst-punkt {
  width: .55rem; height: .55rem;
  border-radius: 999px;
  flex: none;
  background: var(--rand-stark);
}
.dienst.an .dienst-punkt { background: var(--gut); }

.ereignisliste { display: flex; flex-direction: column; gap: .3rem; }
.ereignis {
  display: flex;
  gap: .75rem;
  padding: .5rem .75rem;
  border-left: 3px solid var(--rand-stark);
  background: var(--flaeche-2);
  border-radius: 0 6px 6px 0;
  font-size: .86rem;
}
.ereignis.fehler { border-left-color: var(--schlecht); }
.ereignis.warnung { border-left-color: var(--warn); }
.ereignis.hinweis { border-left-color: var(--gut); }
.ereignis-zeit {
  font-family: var(--schrift-fest);
  font-size: .78rem;
  color: var(--text-still);
  flex: none;
}
.ereignis-art { font-weight: 600; flex: none; }
.ereignis-text { color: var(--text-leise); word-break: break-word; }

@media (max-width: 640px) {
  .kontodaten { grid-template-columns: 1fr; gap: .1rem 0; }
  .kontodaten dd { margin-bottom: .6rem; }
  .landung-kopf { padding: 1.5rem 0; }
  .ereignis { flex-direction: column; gap: .15rem; }
}

/* ==========================================================================
   Export für Instagram — die Vorschau
   ========================================================================== */

/* Breiter als die übrigen Fenster: Bei drei oder mehr Bildern nebeneinander
   wäre die Standardbreite zu eng, und man sähe nur Briefmarken. */
.dialog-breit { max-width: min(62rem, 94vw); }

.bildvorschau {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  /* Bei vielen Bildern wird waagerecht gescrollt statt umgebrochen — so
     bleibt die Reihenfolge sichtbar, und die stimmt hier mit der Reihenfolge
     der Stories überein. */
  scroll-snap-type: x proximity;
}

.bildvorschau figure {
  margin: 0;
  flex: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bildvorschau img {
  /* 9:16 — die Höhe gibt das Maß vor, damit mehrere Bilder nebeneinander
     passen. 460px entspricht etwa 259px Breite. */
  height: 460px;
  width: auto;
  display: block;
  border-radius: var(--rundung-s);
  box-shadow: var(--schatten-2);
  /* Der eigene Hintergrund hilft, wenn ein Bild mal nicht lädt. */
  background: var(--flaeche-2);
}

.bildvorschau figcaption {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--text-leise);
}

.instagram-hinweis {
  flex: 1;
  margin: 0;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--text-leise);
}

@media (max-width: 640px) {
  .bildvorschau img { height: 340px; }
  .instagram-hinweis { flex: 1 1 100%; margin-bottom: .5rem; }
}

/* Der Löschkasten auf der Seite „Cookies und Speicherung".
   Abgesetzt, weil die Handlung nicht umkehrbar ist — wer darauf drückt, ist
   danach abgemeldet. */
.loeschkasten {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--rand-stark);
  border-radius: var(--rundung);
  background: var(--flaeche-2);
  max-width: 44rem;
}
.loeschkasten h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.loeschkasten p { font-size: .92rem; color: var(--text-leise); margin-bottom: 1rem; }
.loeschkasten .eingabe-hilfe { margin: .75rem 0 0; }
