/* Ergänzungen für den Verwaltungsbereich */
.seite.breit { max-width: 64rem; }
.admin-nav { background: #163f6c; }
.admin-nav-innen { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: center; }
.admin-nav a { color: #dce7f3; text-decoration: none; padding: .6rem 0; border-bottom: 3px solid transparent; font-size: .95rem; }
.admin-nav a:hover { color: #fff; }
.admin-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; font-weight: 600; }
.nav-rechts { margin-left: auto; display: flex; gap: 1.25rem; }
.kopf + main, .admin-nav + main { margin-top: 0; }
.admin .kopf-innen { max-width: 64rem; padding-bottom: 1rem; }

.admin textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; min-height: 28rem; }
.admin table.uebersicht { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin .uebersicht td { padding: .35rem .4rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.test-ok { color: var(--gruen); }
.test-fehlt { color: var(--rot); }

.regel-liste { padding-left: 1.2rem; margin: .25rem 0 1rem; }
.regel-liste li { margin: .45rem 0; max-width: 46rem; }
.regel-liste li.wirkung-hinweis::marker { color: var(--ocker); }
.regel-liste li.wirkung-nicht { color: var(--leise); }
.anlage2 { border-top: 1px solid var(--linie); padding: .6rem 0; }
.anlage2 summary { cursor: pointer; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.anlage2 h4 { margin: 1rem 0 .3rem; font-size: .95rem; }

/* Editor */
.einleitung { max-width: 46rem; }
.regel, .fach {
    border: 1px solid var(--linie); border-left: 4px solid var(--blau);
    border-radius: 4px; padding: .9rem 1rem; margin: 0 0 .9rem; background: #fff;
}
.regel-kopf, .fach-kopf { display: flex; gap: .75rem; align-items: center; margin-bottom: .6rem; }
.regel-name { font-weight: 600; flex: 1; }
.fach-kopf h3 { margin: 0; flex: 1; }
.fach-aktionen { display: flex; gap: .25rem; }
.klartext { margin: .7rem 0 0; padding: .5rem .7rem; background: var(--flaeche); border-radius: 3px; font-family: var(--serif); }
.satz { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 .6rem; }
.satz select { width: auto; }
.feld { margin: .5rem 0; min-width: 0; }
.feld-titel { display: block; font-size: .85rem; font-weight: 600; color: var(--leise); margin-bottom: .2rem; }
.feld.klein { max-width: 7rem; }
.feld summary { cursor: pointer; font-size: .9rem; color: var(--blau); }
.haken-raster { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.haken-raster.eng { gap: .2rem .8rem; }
.haken.inline { display: inline-flex; padding: .15rem 0; }
.bedingung { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .25rem 0; }
.bedingung select { width: auto; }
.chips { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { background: var(--blau-hell); border-radius: 999px; padding: .2rem .25rem .2rem .7rem; display: inline-flex; align-items: center; gap: .2rem; }
.chip button { border: 0; background: none; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--blau); padding: 0 .35rem; border-radius: 50%; }
.chip button:hover { background: #fff; }
.zeile select { width: auto; flex: 1; }
.raster-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; align-items: start; }
.raster-2 .feld { display: grid; grid-template-rows: minmax(2.9em, auto) auto auto; align-content: start; }
.raster-2 .feld-titel { align-self: end; }
.feld-hilfe { margin: .3rem 0 0; font-size: .85rem; }
.raster-fach { display: grid; grid-template-columns: 2fr 3fr 2fr 7rem; gap: 0 1rem; align-items: start; }
.raster-fach.zwei { grid-template-columns: 2fr 10rem 10rem 2fr; }
.raster-fach .feld.klein { max-width: none; }
.admin input[type=number] { font: inherit; width: 100%; padding: .5rem .6rem; border: 1px solid #b9c2cd; border-radius: 4px; }
@media (max-width: 48rem) { .raster-fach, .raster-fach.zwei { grid-template-columns: 1fr 1fr; } }
input[readonly] { background: var(--flaeche); color: var(--leise); }
.textknopf:disabled { color: #a9b3bf; cursor: default; text-decoration: none; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.speicherleiste {
    position: fixed; left: 0; right: 0; bottom: 0; background: #fff;
    border-top: 1px solid var(--linie); box-shadow: 0 -2px 10px rgba(28, 36, 48, .08);
}
.speicherleiste .leiste-innen { max-width: 64rem; justify-content: flex-end; }
.speicherleiste .status { margin-right: auto; }
.speicher-ergebnis:empty { display: none; }
.speicher-ergebnis ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Testfälle */
.testfall { background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--gruen); border-radius: 4px; padding: .9rem 1rem; margin-bottom: .8rem; }
.testfall.abweichend { border-left-color: var(--rot); }
.testfall-kopf { display: flex; gap: .75rem; align-items: center; margin-bottom: .5rem; }
.testfall-kopf input { font-weight: 600; flex: 1; }
.testfall-status { font-size: .85rem; font-weight: 600; color: var(--gruen); white-space: nowrap; }
.testfall.abweichend .testfall-status { color: var(--rot); }
.testfall-daten { display: grid; grid-template-columns: 9rem 1fr; gap: .25rem 1rem; margin: 0; font-size: .95rem; }
.testfall-daten dt { color: var(--leise); }
.testfall-daten dd { margin: 0; }
.testfall-daten select { width: auto; padding: .2rem .4rem; }
.slotfach { margin-right: 1rem; white-space: nowrap; }
.slotfach strong { color: var(--blau); }
.testfall-aktionen { display: flex; gap: .75rem; align-items: center; margin-top: .6rem; }
.testfall .meldungen { margin: .6rem 0 0; }
.testfall .meldungen li.leise { color: var(--leise); }
.slotfaecher { display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
.slotfaecher .slotfach { margin-right: 0; }
.admin textarea.hinweis-text { font-family: var(--sans); font-size: .95rem; min-height: 0; }

/* Alphabetisches Verzeichnis im Fächerangebot */
.verzeichnis { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin: 0 0 1.1rem; padding: .7rem .8rem; background: var(--flaeche); border-radius: 4px; }
.verzeichnis a { padding: .15rem .55rem; border-radius: 999px; background: #fff; border: 1px solid var(--linie); text-decoration: none; font-size: .9rem; }
.verzeichnis a:hover { border-color: var(--blau); }
.fach { scroll-margin-top: 1rem; }
.feldwert { margin: .45rem 0 0; font-weight: 600; }

/* Abmelden als Formular (POST), aussehend wie die übrigen Navigationslinks */
.abmelden-form { display: inline; margin: 0; }
.abmelden-form button { font: inherit; font-size: .95rem; color: #dce7f3; background: none; border: 0; padding: .6rem 0; cursor: pointer; border-bottom: 3px solid transparent; }
.abmelden-form button:hover { color: #fff; }
.admin .uebersicht th { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--linie); font-size: .85rem; color: var(--leise); font-weight: 600; }
.admin .uebersicht td.eng { white-space: nowrap; }
.protokoll td { font-size: .9rem; }
.protokoll ul.details { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--leise); }
.protokoll td.quelle { max-width: 18rem; }
