/* kubo verwaltung
   gestaltung wie die noch:nicht-seite: archivo black für titel, helvetica für text,
   schwarz auf weiss, das kubo-quadrat als zeichen, pink für den fokus. */

@font-face {
    font-family: "Archivo Black";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../schriften/archivo-black-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Archivo Black";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../schriften/archivo-black-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --papier: #fff;
    --tinte: #000;
    --pink: #e83366;
    --grau: #595959;
    --hell: #f3f2ee;
    --rot: #b3122e;

    --schwer: "Archivo Black", "Arial Black", "Helvetica Neue", Helvetica, sans-serif;
    --text: "Helvetica Neue", Helvetica, Arial, sans-serif;

    --rand: 48px;
    --navi: 270px;
    --kopf: 56px;
}

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

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

/* aufklappbare kästen: der innere teil erbt sonst nichts, und felder darin werden zu breit */
::details-content {
    box-sizing: inherit;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--pink);
    color: #000;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .15em;
}

/* wie auf der kubo-seite: links werden beim drüberfahren kursiv */
a:hover {
    font-style: italic;
}

:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

code {
    padding: .05em .3em;
    background: var(--hell);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .88em;
}

.unsichtbar {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.springen {
    position: absolute;
    top: -80px;
    left: 8px;
    z-index: 100;
    padding: 12px 16px;
    background: var(--tinte);
    color: var(--papier);
    font-weight: bold;
}

.springen:focus {
    top: 8px;
}


/* *** rahmen *** */

.rahmen {
    display: grid;
    grid-template-columns: var(--navi) minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
}


/* *** navigation – wie das inhaltsverzeichnis auf der noch:nicht-seite *** */

.navi {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: 30px 20px 26px 40px;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.3;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    text-decoration: none;
}

.logo:hover {
    font-style: normal;
}

.logo-quadrat {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--tinte);
}

.logo-text {
    font-family: var(--schwer);
    font-size: 26px;
    line-height: .85;
    letter-spacing: -.04em;
}

.logo-text span {
    display: block;
    margin-top: 4px;
    font-family: var(--text);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: -.01em;
}

.navi-aktuell,
.navi-knopf {
    display: none;
}

.navi-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* auf breiten bildschirmen immer sichtbar (auch wenn es auf dem handy ein popover ist) */
.navi-liste {
    position: static;
    inset: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: none;
    color: inherit;
}

.navi-titel {
    display: flex;
    align-items: last baseline;
    margin: 0 0 8px;
    font-family: var(--schwer);
    font-size: 17px;
    letter-spacing: -.01em;
}

.navi-titel span {
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .13em;
}

.navi-titel::after {
    content: "";
    flex: 1 0 1em;
    border-bottom: 1px solid var(--tinte);
    transform: translateY(.21em);
}

.navi ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navi li a {
    position: relative;
    display: block;
    padding: 7px 0;
    font-family: var(--schwer);
    font-size: 19px;
    letter-spacing: -.015em;
    text-decoration: none;
}

/* aktuelle seite: kleines schwarzes quadrat */
.navi li a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -19px;
    top: calc(7px + .34em);
    width: .5em;
    height: .5em;
    background: var(--tinte);
}

.navi-fuss {
    margin-top: auto;
    padding-top: 30px;
    font-weight: bold;
}

.navi-fuss > a {
    display: block;
    margin-bottom: 16px;
}

.navi-person {
    margin: 0 0 4px;
    font-weight: normal;
}

.link-knopf {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .15em;
    cursor: pointer;
}

.link-knopf:hover {
    font-style: italic;
}

.link-knopf--gefahr {
    color: var(--rot);
}


/* *** inhalt *** */

.inhalt {
    width: 100%;
    max-width: calc(820px + 2 * var(--rand));
    padding: 42px var(--rand) 120px;
}

.inhalt:focus {
    outline: none;
}

.titel {
    margin: 0 0 18px;
    font-family: var(--schwer);
    font-weight: 400;
    font-size: clamp(34px, 3.4vw + 8px, 54px);
    line-height: 1.02;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 14px;
}

.kopf .titel {
    margin-bottom: 0;
}

.gross {
    max-width: 36em;
    font-size: 20px;
    line-height: 1.35;
}

.hinweis {
    margin: 4px 0 0;
    color: var(--grau);
    font-size: 15px;
    line-height: 1.35;
}

.leer {
    color: var(--grau);
}

.stand {
    margin: 0 0 26px;
    color: var(--grau);
    font-size: 15px;
}

.stand a {
    color: var(--tinte);
    font-weight: bold;
}

.zurueck {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: bold;
}

.zurueck a {
    text-decoration: none;
}

.technik {
    padding: 12px;
    overflow-x: auto;
    background: var(--hell);
    font-size: 13px;
    white-space: pre-wrap;
}

/* abschnittstitel: schwer, unterstrichen, dünne linie bis zum rand */
.abschnitt {
    margin-top: 56px;
}

.linie {
    display: flex;
    align-items: last baseline;
    margin: 0 0 18px;
    font-family: var(--schwer);
    font-weight: 400;
    font-size: clamp(22px, 1vw + 16px, 27px);
    line-height: 1.14;
    letter-spacing: -.025em;
}

.linie span {
    text-decoration: underline;
    text-decoration-thickness: .075em;
    text-underline-offset: .13em;
    text-decoration-skip-ink: none;
}

.linie::after {
    content: "";
    flex: 1 0 1em;
    border-bottom: 1px solid var(--tinte);
    transform: translateY(.205em);
}


/* *** knöpfe *** */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    min-height: 48px;
    padding: 11px 22px;
    border: 2px solid var(--tinte);
    border-radius: 0;
    background: var(--tinte);
    color: var(--papier);
    font-family: var(--text);
    font-size: 17px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.knopf:hover {
    font-style: italic;
}

.knopf--hell {
    background: var(--papier);
    color: var(--tinte);
}

.knopf--gefahr {
    border-color: var(--rot);
    background: var(--rot);
    color: #fff;
}

.knopf--klein {
    min-height: 40px;
    padding: 7px 14px;
    font-size: 15px;
}

.knopf:disabled {
    opacity: .45;
    cursor: progress;
    font-style: normal;
}

/* der grosse schwarze kasten – wie «open call» auf der noch:nicht-seite */
.gross-knopf {
    display: block;
    max-width: 480px;
    margin: 6px 0 10px;
    padding: 18px 24px 20px;
    background: var(--tinte);
    color: var(--papier);
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none;
}

.gross-knopf:hover {
    font-style: normal;
}

.gross-knopf-titel {
    display: block;
    margin-bottom: 8px;
    font-family: var(--schwer);
    font-weight: 400;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.035em;
}

.gross-knopf-los {
    display: block;
    margin-top: 12px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.gross-knopf:hover .gross-knopf-titel,
.gross-knopf:hover .gross-knopf-los {
    font-style: italic;
}


/* *** meldungen *** */

.meldung {
    margin: 0 0 22px;
    padding: 14px 18px;
    border: 2px solid var(--tinte);
    font-weight: bold;
}

.meldung--ok {
    background: var(--tinte);
    color: var(--papier);
}

.meldung--fehler {
    border: 3px solid var(--rot);
}

.fehler-liste {
    margin: 0 0 26px;
    padding: 16px 20px;
    border: 3px solid var(--rot);
}

.fehler-liste-titel {
    margin: 0 0 6px;
    font-family: var(--schwer);
    font-weight: 400;
    font-size: 20px;
}

.fehler-liste ul {
    margin: 0;
    padding-left: 1.2em;
}

.fehler-liste p {
    margin: 0;
    font-weight: bold;
}

.abgemeldet {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 50;
    margin: 0;
    padding: 14px 18px;
    background: var(--rot);
    color: #fff;
    font-weight: bold;
}

.abgemeldet a {
    color: #fff;
}


/* *** formulare *** */

.formular {
    max-width: 640px;
}

.formular--breit {
    max-width: 760px;
}

.ohne-rahmen {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.gruppe {
    min-width: 0;
    margin: 0 0 36px;
    padding: 0;
    border: 0;
}

.gruppe > legend {
    width: 100%;
    margin-bottom: 16px;
    padding: 0 0 6px;
    border-bottom: 1px solid var(--tinte);
    font-family: var(--schwer);
    font-size: 22px;
    letter-spacing: -.02em;
}

.feld {
    margin: 0 0 20px;
}

.feld > label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.feld > label + .hinweis {
    margin: -2px 0 8px;
}

.pflicht {
    color: var(--grau);
    font-size: 15px;
    font-weight: normal;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: .65rem .8rem;
    border: 2px solid var(--tinte);
    border-radius: 0;
    background: var(--papier);
    color: var(--tinte);
    font: inherit;
    font-size: max(1rem, 1em);
    line-height: 1.35;
}

input[type="date"] {
    max-width: 14em;
}

input[type="time"] {
    max-width: 9em;
}

textarea {
    min-height: 7em;
    resize: vertical;
}

/* titel mit zeilenumbruch: so hoch wie ein normales feld, wächst mit enter */
textarea.titel-zeilen {
    min-height: 48px;
    field-sizing: content;
}

input[type="checkbox"],
input[type="radio"] {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: var(--tinte);
}

[aria-invalid="true"] {
    border-color: var(--rot) !important;
    border-width: 3px !important;
}

/* nicht bei formularen mit vorschau daneben: die vorschau schickt das formular im hintergrund ab, das zählt sonst als «versucht» */
form:not(:has([data-live-vorschau])) input:user-invalid {
    border-color: var(--rot);
    border-width: 3px;
}

.feld-fehler {
    margin: 6px 0 0;
    color: var(--rot);
    font-size: 15px;
    font-weight: bold;
}

.feld-fehler-zeichen {
    display: inline-grid;
    place-items: center;
    width: 1.35em;
    height: 1.35em;
    margin-right: .25em;
    background: var(--rot);
    color: #fff;
    font-family: var(--schwer);
    font-size: .8em;
}

/* «neue seite»: welche art? zwei karten nebeneinander, auf dem handy untereinander */
.seitenart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    max-width: 760px;
    margin: 0 0 26px;
}

.seitenart-wahl {
    display: block;
    padding: 14px 16px;
    border: 2px solid var(--tinte);
    color: var(--tinte);
    text-decoration: none;
    line-height: 1.4;
}

.seitenart-wahl strong {
    display: block;
    margin-bottom: 2px;
    font-family: var(--schwer);
    font-weight: normal;
    font-size: 17px;
}

a.seitenart-wahl {
    border-style: dashed;
    color: var(--grau);
}

a.seitenart-wahl strong {
    color: var(--tinte);
}

a.seitenart-wahl:hover,
a.seitenart-wahl:focus-visible {
    border-style: solid;
    background: var(--hell);
}

.seitenart-wahl--aktiv {
    background: var(--tinte);
    color: var(--papier);
}

/* felder nebeneinander: oben bündig, damit die beschriftungen auf einer linie stehen */
.feld-reihe {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 20px;
}

/* ein häkchen in der reihe steht auf höhe der eingabefelder */
.feld-reihe > .feld--haken {
    margin-top: calc(1.45em + 6px);
}

.feld-reihe > .feld--gross {
    flex: 1 1 18em;
}

.feld--haken {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    min-height: 48px;
}

.feld--haken > label {
    margin: 0;
    font-weight: bold;
    cursor: pointer;
}

.feld--haken > .hinweis,
.feld--haken > .feld-fehler {
    flex-basis: 100%;
}

.wahl {
    display: grid;
    gap: 10px;
}

/* luft zwischen einer auswahl und dem, was darunter folgt */
.wahl:not(:last-child) {
    margin-bottom: 22px;
}

.wahl-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    padding: 12px 14px;
    border: 2px solid var(--tinte);
}

.wahl-option:has(input:checked) {
    background: var(--hell);
    box-shadow: inset 6px 0 0 var(--tinte);
}

.wahl-option > label {
    padding-top: 1px;
    font-weight: bold;
    cursor: pointer;
}

.wahl-option > .hinweis {
    grid-column: 2;
}

.wahl--kompakt .wahl-option {
    padding: 9px 12px;
}

.bereiche {
    margin-top: 14px;
    padding-left: 16px;
    border-left: 4px solid var(--tinte);
}

.bereiche-titel {
    margin: 0 0 8px;
    font-weight: bold;
}

.passwort {
    display: flex;
}

.passwort input {
    flex: 1;
    min-width: 0;
}

.passwort-zeigen {
    flex-shrink: 0;
    min-width: 6.6em;
    padding: 0 12px;
    border: 2px solid var(--tinte);
    border-left: 0;
    background: var(--papier);
    color: var(--tinte);
    font: inherit;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.kopieren {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kopieren input {
    flex: 1 1 16em;
    min-width: 0;
}

/* speichern-leiste klebt unten, damit sie auch auf dem handy immer erreichbar ist */
.aktionen {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px -16px 0;
    padding: 14px 16px;
    border-top: 2px solid var(--tinte);
    background: var(--papier);
}

.aktionen--einfach {
    position: static;
    align-items: center;
    gap: 12px 22px;
    margin: 26px 0 0;
    padding: 0;
    border: 0;
}

.loeschen {
    margin-top: 34px;
}


select {
    appearance: none;
    padding-right: 2.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    background-position: right .9rem center;
    background-repeat: no-repeat;
    background-size: 14px;
    cursor: pointer;
}

.feld-reihe > .feld > select {
    min-width: 15em;
}


.feld--haken-klein {
    min-height: 40px;
    margin-top: 4px;
    font-size: 15px;
}

.feld--haken-klein input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.ueblich {
    color: var(--grau);
    font-weight: normal;
}

.abweichung {
    flex-basis: 100%;
    margin-top: 0;
    padding-left: 32px;
}

.dienst {
    margin: 0 0 18px;
    padding: 2px 0 2px 16px;
    border-left: 4px solid var(--tinte);
}

.dienst .feld {
    margin-bottom: 10px;
}

.wahl--spalten {
    grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
}


/* *** zeilen auf der startseite *** */

.eintraege {
    display: grid;
    /* eine spalte, die nie breiter wird als der platz (sonst schiebt ein langes feld die seite seitwärts) */
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.eintrag {
    padding: 14px 16px 6px;
    border: 2px solid var(--tinte);
}

.eintrag-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 10px;
}

.eintrag-nr {
    font-family: var(--schwer);
    font-size: 17px;
}

/* so wie auf der startseite: helvetica fett */
.eintrag-vorschau {
    margin: 0 0 10px;
    padding: 10px 12px;
    background: var(--hell);
    font-family: helvetica, arial, sans-serif;
    font-weight: bold;
    font-size: 17px;
    overflow-wrap: anywhere;
}


/* *** reiter (rechtliches) *** */

.reiter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.reiter a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 2px solid var(--tinte);
    font-weight: bold;
    text-decoration: none;
}

.reiter a[aria-current="page"] {
    background: var(--tinte);
    color: var(--papier);
}


/* *** banner *** */

.muster {
    flex-shrink: 0;
    display: block;
}

.banner-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
}

.banner-zeile .zeile-link {
    flex: 1 1 22em;
}

.reihenfolge {
    display: flex;
    gap: 6px;
    padding: 0 6px 10px;
}

.farbwahl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.farbwahl-option {
    position: relative;
}

.farbwahl-option input {
    position: absolute;
    opacity: 0;
}

.farbwahl-option label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: 100%;
    padding: 10px 12px;
    border: 2px solid var(--tinte);
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
}

.farbwahl-option input:checked + label {
    background: var(--hell);
    box-shadow: inset 0 -6px 0 var(--tinte);
}

.farbwahl-option input:focus-visible + label {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

.eigene-farben {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
}

.farbe input[type="color"] {
    width: 72px;
    height: 48px;
    padding: 2px;
    border: 2px solid var(--tinte);
    background: var(--papier);
    cursor: pointer;
}

.banner-vorschau {
    margin: 0 0 30px;
    padding: 0 0 14px;
    background: var(--papier);
}

.vorschau-titel {
    margin: 0 0 8px;
    padding: 0 0 6px;
    border-bottom: 1px solid var(--tinte);
    font-family: var(--schwer);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: -.02em;
}

.vorschau-ort {
    margin: 10px 0 6px;
    color: var(--grau);
    font-size: 14px;
    font-weight: bold;
}

/* wie auf der webseite: schriftgrösse 16px */
.vorschau-flaeche {
    padding: 10px;
    border: 1px dashed var(--grau);
    font-size: 16px;
    line-height: normal;
}

@media (min-width: 961px) {
    .banner-vorschau {
        position: sticky;
        top: 0;
        z-index: 4;
    }
}


/* *** texteditor *** */

.editor {
    border: 2px solid var(--tinte);
}

.editor:focus-within {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

.editor-leiste {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--tinte);
    background: var(--hell);
}

.editor-leiste button {
    min-width: 48px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-right: 1px solid var(--tinte);
    background: transparent;
    color: var(--tinte);
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

.editor-leiste button[aria-pressed="true"] {
    background: var(--tinte);
    color: var(--papier);
}

.editor-leiste button:focus-visible {
    outline-offset: -4px;
}

.editor-leiste button:disabled {
    color: var(--grau);
    cursor: default;
}

.editor-flaeche {
    min-height: 9em;
    padding: .7rem .8rem;
    font-size: max(1rem, 1em);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.editor--klein .editor-flaeche {
    min-height: 5em;
}

.editor-flaeche:focus {
    outline: none;
}

.editor-flaeche a {
    color: #0645ad;
}

.editor-flaeche:empty::before {
    content: attr(data-platzhalter);
    color: var(--grau);
}


/* *** bilder *** */

.bilder-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.bilder-liste:empty {
    display: none;
}

.bild-karte {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--tinte);
    background: var(--hell);
}

.bild-karte img {
    width: 100%;
    aspect-ratio: 1 / 1.3;
    object-fit: contain;
}

.bild-karte--laedt img {
    opacity: .4;
}

.bild-karte progress {
    width: 100%;
    height: 8px;
    accent-color: var(--tinte);
}

.bild-nr {
    position: absolute;
    top: 0;
    left: 0;
    padding: 3px 8px;
    background: var(--tinte);
    color: var(--papier);
    font-size: 13px;
    font-weight: bold;
}

.bild-name {
    margin: 0;
    padding: 6px 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.bild-knoepfe {
    display: flex;
    border-top: 2px solid var(--tinte);
}

.bild-knoepfe button {
    flex: 1;
    min-height: 44px;
    border: 0;
    border-right: 1px solid var(--tinte);
    background: var(--papier);
    color: var(--tinte);
    font: inherit;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.bild-knoepfe button:last-child {
    border-right: 0;
}

.bild-knoepfe button:disabled {
    color: #b5b5b5;
    cursor: default;
}

.bilder-wahl {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 120px;
    padding: 20px;
    border: 2px dashed var(--tinte);
    text-align: center;
    cursor: pointer;
}

.bilder-wahl:hover .bilder-wahl-text {
    font-style: italic;
}

.bilder-wahl:focus-within {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

.bilder-wahl--drueber {
    border-style: solid;
    background: var(--hell);
}

.bilder-wahl-text {
    font-family: var(--schwer);
    font-size: 20px;
    letter-spacing: -.01em;
}

.bilder-wahl-oder {
    color: var(--grau);
    font-size: 15px;
}

.bilder-status {
    min-height: 1.4em;
    margin: 8px 0 0;
    font-weight: bold;
}

.bilder-status--fehler {
    color: var(--rot);
}


/* *** listen *** */

.liste {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--tinte);
    list-style: none;
}

.zeile {
    border-bottom: 1px solid var(--tinte);
}

.zeile-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 6px;
    text-decoration: none;
}

.zeile-link:hover {
    background: var(--hell);
    font-style: normal;
}

.zeile-link:hover .zeile-titel {
    font-style: italic;
}

.zeile-bild {
    flex-shrink: 0;
    width: 54px;
    height: 72px;
    object-fit: cover;
    background: var(--hell);
}

/* ohne flyer: das kubo-quadrat */
.zeile-bild--leer {
    display: block;
    width: 54px;
    height: 54px;
    margin: 9px 0;
    background: var(--tinte);
}

.zeile-bild--person {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--tinte);
    color: var(--papier);
    font-family: var(--schwer);
    font-size: 22px;
}

.zeile-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.zeile-datum {
    color: var(--grau);
    font-size: 14px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.zeile-titel {
    font-family: var(--schwer);
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.zeile-ort {
    font-size: 15px;
}

.zeile--geloescht {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 6px;
}

/* *** dateien (pdfs) *** */
.datei {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 14px;
    padding: 14px 6px;
}

.datei .zeile-text {
    flex: 1 1 320px;
}

.datei .zeile-titel {
    color: var(--tinte);
}

.datei-adresse {
    margin-top: 4px;
    color: var(--grau);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.datei-adresse code {
    font-size: 13px;
}

.datei-aktion[open] {
    flex-basis: 100%;
    order: 5;
}

.datei-aktion > summary {
    list-style: none;
    cursor: pointer;
}

.datei-aktion > summary::-webkit-details-marker {
    display: none;
}

.datei-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0 4px;
    padding: 14px;
    background: var(--hell);
}

.datei-form label {
    flex-basis: 100%;
    font-weight: bold;
}

.datei-form input[type=file] {
    max-width: 100%;
}

.datei-fassungen {
    margin: 10px 0 0;
    padding: 0 14px;
    list-style: none;
    background: var(--hell);
}

.datei-fassungen li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    padding: 10px 0;
}

.datei-fassungen li + li {
    border-top: 1px solid var(--tinte);
}

.datei-weg {
    align-self: center;
}

.datei-neu {
    margin-top: 22px;
}

.chip {
    flex-shrink: 0;
    padding: 4px 10px;
    border: 2px solid var(--tinte);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* sehr schmale bildschirme: lange etiketten dürfen umbrechen, statt die seite zu verbreitern */
@media (max-width: 420px) {
    .chip {
        flex-shrink: 1;
        min-width: 0;
        white-space: normal;
    }
}

.chip--online {
    background: var(--tinte);
    color: var(--papier);
}

.chip--entwurf {
    border-style: dashed;
}

.chip--grau {
    border-color: var(--grau);
    color: var(--grau);
}

.geloescht {
    margin-top: 56px;
}

.geloescht summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-weight: bold;
    cursor: pointer;
}

.geloescht summary::before {
    content: "";
    width: .55em;
    height: .55em;
    margin-right: .6em;
    border: 2px solid var(--tinte);
}

.geloescht[open] summary::before {
    background: var(--tinte);
}


/* *** kästen *** */

.kasten {
    margin-top: 56px;
    padding: 22px 24px;
    border-left: 6px solid var(--tinte);
    background: var(--hell);
}

.kasten--hervor {
    margin: 0 0 30px;
    border: 3px solid var(--tinte);
    background: var(--papier);
}

.kasten-titel {
    margin: 0 0 10px;
    font-family: var(--schwer);
    font-weight: 400;
    font-size: 21px;
    letter-spacing: -.02em;
}

/* aufzählung mit kleinen quadraten */
.punkte {
    margin: 0;
    padding: 0;
    list-style: none;
}

.punkte li {
    position: relative;
    margin-bottom: .55em;
    padding-left: 1.2em;
}

.punkte li::before {
    content: "";
    position: absolute;
    top: .45em;
    left: 0;
    width: .5em;
    height: .5em;
    background: var(--tinte);
}


/* *** protokoll und verlauf *** */

.protokoll {
    margin: 0;
    padding: 0;
    list-style: none;
}

.protokoll li {
    padding: 10px 0;
    border-bottom: 1px solid #d4d4d4;
}

.protokoll-zeit {
    display: block;
    color: var(--grau);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.verlauf {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--tinte);
    list-style: none;
}

.verlauf-eintrag {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tinte);
}

.verlauf-zeit {
    margin: 0;
    color: var(--grau);
    font-size: 14px;
}

.verlauf-inhalt {
    margin: 2px 0 0;
}

.seiten {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-top: 26px;
    font-weight: bold;
}


/* *** rückfrage *** */

.dialog {
    width: min(30rem, calc(100vw - 32px));
    padding: 26px 26px 22px;
    border: 3px solid var(--tinte);
    background: var(--papier);
    color: var(--tinte);
}

.dialog:modal {
    overscroll-behavior: contain;
}

.dialog::backdrop {
    overflow: hidden;
    overscroll-behavior: contain;
    background: rgb(0 0 0 / .55);
}

.dialog-titel {
    margin: 0 0 10px;
    font-family: var(--schwer);
    font-weight: 400;
    font-size: 26px;
    letter-spacing: -.03em;
}

.dialog-text {
    margin: 0 0 22px;
}

.dialog-vorschau {
    margin: -6px 0 22px;
    padding: 12px 14px;
    background: var(--hell);
}

.dialog-vorschau-titel {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: bold;
}

.dialog-vorschau-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meldung--entwurf {
    border-style: dashed;
    font-weight: normal;
}

.dialog-knoepfe {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}


/* *** anmelden, einrichten *** */

.einfach-rahmen {
    max-width: 580px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.logo--gross {
    margin-bottom: 44px;
}

.logo--gross .logo-quadrat {
    width: 64px;
    height: 64px;
}

.logo--gross .logo-text {
    font-size: 36px;
}

.logo--gross .logo-text span {
    font-size: 18px;
}


/* *** tablet *** */

@media (max-width: 1180px) {
    :root {
        --navi: 240px;
        --rand: 36px;
    }

    .navi {
        padding-left: 32px;
    }
}


/* *** handy: navigation wird zur leiste oben, das menü klappt über die seite *** */

@media (max-width: 960px) {
    :root {
        --rand: 20px;
    }

    body {
        font-size: 16px;
    }

    .rahmen {
        display: block;
    }

    .navi {
        position: sticky;
        top: 0;
        z-index: 20;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        height: var(--kopf);
        overflow: visible;
        padding: 0 var(--rand);
        border-bottom: 1px solid var(--tinte);
        background: var(--papier);
    }

    .logo {
        flex-shrink: 0;
        gap: 9px;
        margin: 0;
    }

    .logo-quadrat {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 21px;
    }

    .logo-text span {
        display: none;
    }

    .navi-aktuell {
        display: block;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        font-size: 15px;
        font-weight: bold;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navi-nav {
        flex: 0 0 auto;
    }

    .navi-knopf {
        display: block;
        min-height: 44px;
        padding: 6px 0 6px 12px;
        border: 0;
        background: none;
        color: var(--tinte);
        font-family: var(--schwer);
        font-size: 17px;
        letter-spacing: -.01em;
        cursor: pointer;
    }

    .navi-liste {
        position: fixed;
        inset: calc(var(--kopf) + 1px) 0 0 0;
        display: none;
        overflow-y: auto;
        padding: 26px var(--rand) 40px 44px;
        background: var(--papier);
        font-size: 17px;
    }

    .navi-liste:is(:popover-open, .offen) {
        display: flex;
    }

    .navi li a {
        padding: 8px 0;
        font-size: 28px;
    }

    .navi li a[aria-current="page"]::before {
        left: -24px;
        top: calc(8px + .36em);
    }

    .inhalt {
        padding: 28px var(--rand) 110px;
    }

    .aktionen {
        margin-left: calc(-1 * var(--rand));
        margin-right: calc(-1 * var(--rand));
        padding: 12px var(--rand);
    }

    .aktionen .knopf {
        flex: 1 1 auto;
    }

    .gross-knopf-titel {
        font-size: 28px;
    }

    .feld-reihe {
        display: block;
    }

    .feld-reihe > .feld--haken {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .zeile-link {
        gap: 12px;
    }

    .zeile-bild {
        width: 44px;
        height: 58px;
    }

    .zeile-bild--leer {
        width: 44px;
        height: 44px;
        margin: 7px 0;
    }

    .chip {
        padding: 3px 7px;
        font-size: 11px;
    }

    .kopf .knopf {
        width: 100%;
    }

    .dialog-knoepfe .knopf {
        flex: 1 1 auto;
    }

    .bilder-liste {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* *** bewegung – dezent, und nur ohne «bewegung reduzieren» *** */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    /* seitenwechsel: navigation bleibt stehen, inhalt blendet weich über */
    @view-transition {
        navigation: auto;
    }

    .navi {
        view-transition-name: navi;
    }

    ::view-transition-group(navi) {
        animation-duration: .2s;
    }

    ::view-transition-old(root) {
        animation: .14s ease-in both kubo-raus;
    }

    ::view-transition-new(root) {
        animation: .26s cubic-bezier(.2, .75, .25, 1) both kubo-rein;
    }

    /* zurück: von der anderen seite */
    html:active-view-transition-type(zurueck)::view-transition-new(root) {
        animation-name: kubo-rein-zurueck;
    }

    .meldung {
        animation: .3s ease-out both kubo-meldung;
    }

    .knopf,
    .zeile-link,
    .wahl-option,
    .passwort-zeigen,
    .editor-leiste button,
    .bild-knoepfe button,
    .bilder-wahl {
        transition: background-color .12s ease, color .12s ease, border-color .12s ease, box-shadow .12s ease;
    }

    /* rückfrage */
    .dialog,
    .dialog::backdrop {
        opacity: 0;
        transition: opacity .16s ease, scale .16s ease, display .16s, overlay .16s;
        transition-behavior: allow-discrete;
    }

    .dialog {
        scale: .98;
    }

    .dialog[open],
    .dialog[open]::backdrop {
        opacity: 1;
        scale: 1;
    }

    @starting-style {
        .dialog[open],
        .dialog[open]::backdrop {
            opacity: 0;
        }

        .dialog[open] {
            scale: .98;
        }
    }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 960px) {
    /* menü auf dem handy */
    .navi-liste {
        opacity: 0;
        translate: 0 -8px;
        transition: opacity .18s ease, translate .18s ease, display .18s, overlay .18s;
        transition-behavior: allow-discrete;
    }

    .navi-liste:is(:popover-open, .offen) {
        opacity: 1;
        translate: 0 0;
    }

    @starting-style {
        .navi-liste:is(:popover-open, .offen) {
            opacity: 0;
            translate: 0 -8px;
        }
    }
}

@keyframes kubo-raus {
    to {
        opacity: 0;
    }
}

@keyframes kubo-rein {
    from {
        opacity: 0;
        translate: 14px 0;
    }
}

@keyframes kubo-rein-zurueck {
    from {
        opacity: 0;
        translate: -14px 0;
    }
}

@keyframes kubo-meldung {
    from {
        opacity: 0;
        translate: 0 -6px;
    }
}

@media (max-width: 960px) {
    [id] {
        scroll-margin-top: calc(var(--kopf) + 14px);
    }
}

@media (forced-colors: active) {
    .logo-quadrat,
    .navi li a[aria-current="page"]::before,
    .punkte li::before,
    .zeile-bild--leer {
        forced-color-adjust: none;
        background: CanvasText;
    }
}

/* *** schutz vor bots: dieses feld sehen nur programme *** */
.honigtopf {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.passwort-stand:empty {
    display: none;
}

.passwort-stand--gut {
    color: var(--tinte);
    font-weight: bold;
}

/* *** erst später veröffentlichen *** */
.planen {
    margin-top: 30px;
}

.planen + .aktionen {
    margin-top: 18px;
}

.chip--geplant {
    border-color: var(--pink);
    color: var(--tinte);
    box-shadow: inset 4px 0 0 var(--pink);
}

.meldung--geplant {
    border-color: var(--pink);
    box-shadow: inset 6px 0 0 var(--pink);
    font-weight: normal;
}

/* *** eigener code für statistik-dienste *** */
textarea.code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
    font-size: 14px;
    white-space: pre;
    overflow-x: auto;
}

.dienst--eigen {
    padding-top: 18px;
    border-top: 2px dashed var(--tinte);
}

/* *** knöpfe unten: erste zeile speichern & co., zweite zeile vorschau *** */
.aktionen-haupt,
.aktionen-vorschau {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aktionen-vorschau {
    flex-basis: 100%;
}


/* *** vorschau neben dem formular *** */
:root {
    --vorschau-breite: clamp(420px, 36vw, 720px);
    --vorschau-hoehe: 46vh;
}

.live-vorschau-lasche {
    position: fixed;
    z-index: 30;
    right: 0;
    top: 50%;
    translate: 0 -50%;
    rotate: 180deg;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 40px;
    padding: 18px 9px;
    border: 0;
    background: var(--tinte);
    color: var(--papier);
    font-family: var(--schwer);
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    cursor: pointer;
}

.live-vorschau-quadrat {
    width: 12px;
    height: 12px;
    background: var(--pink);
}

.live-vorschau-lasche:hover,
.live-vorschau-lasche:focus-visible {
    background: var(--pink);
    color: var(--tinte);
}

.live-vorschau-lasche:hover .live-vorschau-quadrat,
.live-vorschau-lasche:focus-visible .live-vorschau-quadrat {
    background: var(--tinte);
}

.live-vorschau-inhalt {
    position: fixed;
    z-index: 30;
    display: flex;
    flex-direction: column;
    background: var(--papier);
}

body.vorschau-daneben .live-vorschau-inhalt,
body.vorschau-darueber .live-vorschau-inhalt {
    top: 0;
    right: 0;
    bottom: 0;
    border-left: 3px solid var(--tinte);
}

body.vorschau-daneben .live-vorschau-inhalt {
    width: var(--vorschau-breite);
}

body.vorschau-daneben .rahmen {
    padding-right: var(--vorschau-breite);
}

body.vorschau-darueber .live-vorschau-inhalt {
    width: min(var(--vorschau-breite-ueber, 560px), 100vw);
    box-shadow: -10px 0 0 rgb(0 0 0 / .08);
}

body.vorschau-unten .live-vorschau-inhalt {
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--vorschau-hoehe);
    border-top: 3px solid var(--tinte);
}

body.vorschau-unten .inhalt {
    padding-bottom: calc(var(--vorschau-hoehe) + 120px);
}

body.vorschau-unten .aktionen {
    bottom: var(--vorschau-hoehe);
}

.live-vorschau-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 2px solid var(--tinte);
}

.live-vorschau-reiterliste,
.live-vorschau-werkzeuge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-vorschau-titel {
    font-family: var(--schwer);
    font-size: 17px;
}

.live-vorschau-reiter,
.live-vorschau-knopf {
    min-height: 40px;
    min-width: 40px;
    padding: 6px 12px;
    border: 2px solid var(--tinte);
    background: var(--papier);
    color: var(--tinte);
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.live-vorschau-reiter[aria-pressed="true"] {
    background: var(--tinte);
    color: var(--papier);
}

.live-vorschau-reiter:hover,
.live-vorschau-knopf:hover {
    font-style: italic;
}

.live-vorschau-buehne {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: var(--hell);
}

.live-vorschau-buehne iframe {
    display: block;
    border: 0;
    background: #fff;
    transform-origin: 0 0;
    transition: opacity .2s;
}

.live-vorschau--laedt .live-vorschau-buehne iframe {
    opacity: .55;
}

.live-vorschau-stand {
    margin: 0;
    padding: 6px 12px;
    border-top: 1px solid var(--hell);
    color: var(--grau);
    font-size: 13px;
}

/* am rand ziehen: breite (daneben, darüber) oder höhe (unten) */
.live-vorschau-griff {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: -10px;
    width: 16px;
    cursor: ew-resize;
    touch-action: none;
}

.live-vorschau-griff::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 5px;
    width: 6px;
    height: 56px;
    translate: 0 -50%;
    border-radius: 3px;
    background: var(--tinte);
}

.live-vorschau-griff:hover::after,
.live-vorschau-griff:focus-visible::after,
.live-vorschau--zieht .live-vorschau-griff::after {
    background: var(--pink);
}

.live-vorschau-griff:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: -3px;
}

body.vorschau-unten .live-vorschau-griff {
    top: -10px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 16px;
    cursor: ns-resize;
}

body.vorschau-unten .live-vorschau-griff::after {
    top: 5px;
    left: 50%;
    width: 56px;
    height: 6px;
    translate: -50% 0;
}

.live-vorschau--zieht iframe {
    pointer-events: none;
}

body:has(.live-vorschau--zieht) {
    user-select: none;
}

/* vollbild: die vorschau über dem ganzen fenster */
body.vorschau-vollbild {
    overflow: hidden;
}

body.vorschau-vollbild .live-vorschau-inhalt {
    inset: 0;
    z-index: 60;
    width: auto;
    height: auto;
    border: 0;
    box-shadow: none;
    animation: none;
}

.live-vorschau-knopf[data-vollbild][aria-pressed="true"] {
    background: var(--tinte);
    color: var(--papier);
}

@media (max-width: 640px) {
    .live-vorschau-lasche {
        min-width: 34px;
        padding: 14px 7px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.vorschau-darueber .live-vorschau-inhalt {
        animation: vorschau-rein .25s ease-out both;
    }

    body.vorschau-unten .live-vorschau-inhalt {
        animation: vorschau-hoch .25s ease-out both;
    }
}

@keyframes vorschau-rein {
    from { translate: 40px 0; opacity: 0; }
}

@keyframes vorschau-hoch {
    from { translate: 0 40px; opacity: 0; }
}


/* *** warnung (z.b. schwächere passwort-regeln) *** */
.warnung {
    margin: 30px 0;
    padding: 20px 22px;
    border: 3px solid var(--rot);
    background: var(--papier);
}

.warnung-titel {
    margin: 0 0 10px;
    color: var(--rot);
    font-family: var(--schwer);
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -.01em;
}

.warnung .feld--haken {
    margin-top: 16px;
}


/* *** notfall-anleitung und platzhalter *** */
.notfall {
    margin-top: 48px;
    padding-top: 14px;
    border-top: 2px solid var(--tinte);
}

.notfall summary {
    min-height: 44px;
    padding: 10px 0;
    font-weight: bold;
    cursor: pointer;
}

.schritte {
    padding-left: 1.4em;
}

.schritte li {
    margin-bottom: 12px;
}

.notfall code,
.platzhalter code {
    padding: 1px 5px;
    background: var(--hell);
    font-size: .95em;
}

.platzhalter ul {
    margin: 4px 0 10px;
    padding-left: 1.2em;
}


/* *** nach dem speichern: das quadrat fliegt auf die seite, in die schublade, zur uhr … *** */
.flug {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .flug {
        position: fixed;
        z-index: 70;
        top: calc(var(--kopf) + 14px);
        left: 50%;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px 22px 12px 16px;
        border: 3px solid var(--tinte);
        background: var(--papier);
        box-shadow: 6px 6px 0 var(--tinte);
        pointer-events: none;
        animation: flug-rahmen 2.6s ease both;
    }
}

@media (min-width: 961px) {
    .flug {
        top: 22px;
        left: calc(var(--navi) + (100vw - var(--navi)) / 2);
    }

    body.vorschau-daneben .flug {
        left: calc(var(--navi) + (100vw - var(--navi) - var(--vorschau-breite)) / 2);
    }
}

.flug-buehne {
    position: relative;
    display: block;
    width: 104px;
    height: 64px;
}

.flug-ziel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 62px;
    border: 3px solid var(--tinte);
    background: var(--papier);
}

/* seite: kopfzeile und textzeilen */
.flug--online .flug-ziel::before,
.flug--versteckt .flug-ziel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 9px;
    background: var(--tinte);
}

.flug--online .flug-ziel::after,
.flug--versteckt .flug-ziel::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    top: 17px;
    height: 28px;
    background: repeating-linear-gradient(var(--hell) 0 4px, transparent 4px 8px);
}

.flug-quadrat {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    background: var(--tinte);
    animation: flug-online 1.1s .25s cubic-bezier(.5, 0, .3, 1) both;
}

.flug-text {
    font-family: var(--schwer);
    font-size: 20px;
    letter-spacing: -.01em;
    white-space: nowrap;
    animation: flug-text .35s 1.05s ease-out both;
}

@keyframes flug-rahmen {
    0%       { opacity: 0; transform: translate(-50%, -14px); }
    8%, 84%  { opacity: 1; transform: translate(-50%, 0); }
    100%     { opacity: 0; transform: translate(-50%, -10px); }
}

@keyframes flug-text {
    from { opacity: 0; transform: translateY(5px); }
}

/* veröffentlicht: im bogen auf die seite, die seite leuchtet pink */
@keyframes flug-online {
    0%   { transform: translate(0, 0) rotate(0); }
    45%  { transform: translate(34px, -54px) rotate(135deg); }
    80%  { transform: translate(71px, -24px) rotate(270deg) scale(.85); background: var(--tinte); }
    100% { transform: translate(71px, -24px) rotate(270deg) scale(.85); background: var(--pink); }
}

.flug--online .flug-ziel {
    animation: flug-ziel-online 1.4s .25s both;
}

@keyframes flug-ziel-online {
    0%, 72% { border-color: var(--tinte); transform: scale(1); }
    86%     { border-color: var(--pink); transform: scale(1.08); }
    100%    { border-color: var(--pink); transform: scale(1); }
}

/* entwurf: in die schublade, deckel zu */
.flug--entwurf .flug-ziel {
    height: 30px;
    border-style: dashed;
    border-top-color: transparent;
}

.flug--entwurf .flug-ziel::before {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: -3px;
    height: 3px;
    background: var(--tinte);
    transform-origin: 0 50%;
    animation: flug-deckel 1.4s .25s both;
}

.flug--entwurf .flug-quadrat {
    animation-name: flug-entwurf;
}

@keyframes flug-entwurf {
    0%   { transform: translate(0, -42px); }
    40%  { transform: translate(40px, -58px) rotate(90deg); }
    75%  { transform: translate(71px, -6px) rotate(180deg); }
    100% { transform: translate(71px, -6px) rotate(180deg); }
}

@keyframes flug-deckel {
    0%, 70%   { transform: rotate(-38deg); }
    90%, 100% { transform: rotate(0); }
}

/* geplant: zur uhr, die zeiger drehen */
.flug--geplant .flug-ziel {
    bottom: 5px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.flug--geplant .flug-ziel::before,
.flug--geplant .flug-ziel::after {
    content: "";
    position: absolute;
    left: calc(50% - 1.5px);
    bottom: 50%;
    width: 3px;
    background: var(--tinte);
    transform-origin: 50% 100%;
}

.flug--geplant .flug-ziel::before {
    height: 18px;
    animation: flug-zeiger 1.6s .25s ease-in-out both;
}

.flug--geplant .flug-ziel::after {
    height: 11px;
    background: var(--pink);
    transform: rotate(90deg);
}

.flug--geplant .flug-quadrat {
    animation-name: flug-geplant;
}

@keyframes flug-zeiger {
    to { transform: rotate(360deg); }
}

@keyframes flug-geplant {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(24px, -22px) rotate(90deg); }
    70%  { transform: translate(30px, 0) rotate(90deg); }
    85%  { transform: translate(30px, -7px) rotate(90deg); }
    100% { transform: translate(30px, 0) rotate(90deg); }
}

/* versteckt: das quadrat verlässt die seite */
.flug--versteckt .flug-quadrat {
    animation-name: flug-versteckt;
}

.flug--versteckt .flug-ziel {
    animation: flug-ziel-versteckt 1.3s .25s both;
}

@keyframes flug-versteckt {
    0%   { transform: translate(71px, -24px); opacity: 1; }
    60%  { transform: translate(24px, -24px) rotate(-90deg); opacity: .7; }
    100% { transform: translate(-6px, -24px) rotate(-180deg); opacity: 0; }
}

@keyframes flug-ziel-versteckt {
    to { border-color: var(--grau); opacity: .55; }
}


/* *** zugänge: zeilen ohne link («alles» für andere) und warnung beim bereich «zugänge» *** */
.zeile-link--still {
    cursor: default;
}

.zeile-link--still:hover .zeile-titel {
    font-style: normal;
}

.wahl-option--warnung .hinweis strong {
    color: var(--rot);
}

.knopf--daneben {
    margin-left: 8px;
    vertical-align: middle;
}


/* *** knöpfe unten einklappen (nur auf niedrigen bildschirmen, admin.js) *** */
.aktionen-griff {
    display: none;
}

@media (max-height: 899px) {
    .aktionen--zu {
        padding-top: 0;
        padding-bottom: 0;
    }

    .aktionen--zu .aktionen-haupt,
    .aktionen--zu .aktionen-vorschau {
        display: none;
    }

    .aktionen--zu .aktionen-griff {
        display: flex;
        flex-basis: 100%;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--tinte);
        font: inherit;
        font-weight: bold;
        cursor: pointer;
    }

    .aktionen-griff-pfeil {
        display: inline-grid;
        place-items: center;
        width: 26px;
        height: 26px;
        background: var(--tinte);
        color: var(--papier);
        font-size: 12px;
    }

    .aktionen-griff:hover {
        font-style: italic;
    }
}

@media (max-height: 899px) and (prefers-reduced-motion: no-preference) {
    .aktionen-haupt,
    .aktionen-vorschau {
        animation: aktionen-auf .18s ease-out;
    }
}

@keyframes aktionen-auf {
    from { opacity: 0; translate: 0 8px; }
}


/* *** faq: fragen im formular *** */
.faq-werkzeuge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.faq-eintrag .eintrag-kopf {
    justify-content: flex-start;
}

.faq-eintrag--versteckt {
    border-style: dashed;
    background: var(--hell);
}

.bilder--klein .bild-karte img {
    max-height: 120px;
}

[data-faq-neu] {
    margin-top: 4px;
}


/* *** seiten und startseite: blöcke, abschnitte, termine *** */
.bloecke-neu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.abschnitt-zeile--grau {
    background: var(--hell);
}

.abschnitt-zeile--versteckt {
    border-style: dashed;
    opacity: .7;
}

.termine-liste {
    display: grid;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.termin {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 12px;
}

.termin .feld {
    margin: 0;
}

.termin .feld:last-of-type {
    flex: 1 1 200px;
}

.termin .link-knopf {
    min-height: 48px;
}


/* *** noch:nicht: lange texte im editor, ungefähr wie auf der seite *** */
.editor-flaeche--dokument {
    min-height: 220px;
    max-height: 70vh;
    overflow: auto;
    line-height: 1.5;
}

.editor-flaeche--dokument p,
.editor-flaeche--dokument blockquote,
.editor-flaeche--dokument figure,
.editor-flaeche--dokument dl,
.editor-flaeche--dokument ul {
    margin: 0 0 12px;
}

.editor-flaeche--dokument h4 {
    margin: 18px 0 8px;
    font-size: 1.05em;
}

.editor-flaeche--dokument blockquote {
    padding-left: 12px;
    border-left: 4px solid var(--pink);
    font-style: italic;
}

.editor-flaeche--dokument img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    height: auto;
}

.editor-flaeche--dokument figcaption {
    color: var(--grau);
    font-size: .9em;
}

.editor-flaeche--dokument dl {
    display: grid;
    grid-template-columns: minmax(6em, max-content) 1fr;
    gap: 4px 12px;
}

.editor-flaeche--dokument dt {
    font-weight: bold;
}

.editor-flaeche--dokument dd {
    margin: 0;
}

.editor-flaeche--dokument .reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nn-kapitel {
    background: var(--hell);
}

.nn-kapitel .nn-abschnitt {
    background: var(--papier);
}


/* *** noch:nicht: aufbau, aufklappen, kästen *** */
.aufbau {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 2px solid var(--tinte);
    background: var(--papier);
}

.aufbau-titel {
    margin: 0 0 4px;
    font-family: var(--schwer);
    font-size: 18px;
}

.aufbau-liste,
.aufbau-liste ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aufbau-liste ol {
    margin: 2px 0 10px 18px;
}

.aufbau-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    padding: 3px 4px;
    border: 2px solid transparent;
}

.aufbau-zeile[draggable="true"] {
    cursor: grab;
}

.aufbau-kapitel > .aufbau-zeile .aufbau-name {
    font-weight: bold;
}

.aufbau-versteckt .aufbau-name {
    color: var(--grau);
    text-decoration: line-through;
}

.aufbau-zieht {
    opacity: .4;
}

.aufbau-ziel {
    border-color: var(--pink);
    border-style: dashed;
}

.aufbau-name {
    flex: 1 1 12em;
    min-height: 36px;
    padding: 4px 6px;
    border: 0;
    background: none;
    color: var(--tinte);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.aufbau-name:hover {
    font-style: italic;
}

.aufbau-knopf {
    min-width: 36px;
    min-height: 36px;
    border: 2px solid var(--tinte);
    background: var(--papier);
    color: var(--tinte);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.aufbau-knopf:disabled {
    opacity: .3;
    cursor: default;
}

.aufbau-wahl {
    width: auto;
    min-height: 36px;
    padding: 2px 30px 2px 8px;
    font-size: 14px;
}

.klapp-knopf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--tinte);
    font-family: var(--schwer);
    font-size: 17px;
    text-align: left;
    cursor: pointer;
}

.klapp-knopf:hover {
    font-style: italic;
}

.klapp-pfeil {
    display: inline-block;
    width: 1em;
}

.kasten-art {
    display: inline-block;
    padding: 2px 8px;
    background: var(--tinte);
    color: var(--papier);
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nn-kasten {
    border-width: 1px;
}

.nn-kasten--personen,
.nn-kasten--zitate,
.nn-kasten--bild {
    background: var(--hell);
}

.bloecke-neu-titel {
    align-self: center;
    font-weight: bold;
}

/* bilder im editor: richtiges seitenverhältnis, kleiner zum bearbeiten */
.editor-flaeche--dokument img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    cursor: pointer;
}

.editor-flaeche--dokument figure.bild--klein img {
    max-height: 120px;
}

.editor {
    position: relative;
}

.bild-markierung {
    position: absolute;
    z-index: 2;
    outline: 3px solid var(--pink);
    pointer-events: none;
}

.bild-werkzeug {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 12px);
    padding: 4px;
    background: var(--tinte);
}

.bild-werkzeug button {
    min-height: 36px;
    padding: 4px 10px;
    border: 0;
    background: var(--papier);
    color: var(--tinte);
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.bild-werkzeug button:hover {
    font-style: italic;
}

/* zuschneiden */
.zuschnitt {
    max-width: min(700px, calc(100vw - 24px));
    padding: 22px;
    border: 3px solid var(--tinte);
}

.zuschnitt::backdrop {
    background: rgb(0 0 0 / .45);
}

.zuschnitt-formate {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 14px;
}

.zuschnitt-formate [aria-pressed="true"] {
    background: var(--tinte);
    color: var(--papier);
}

.zuschnitt-flaeche {
    position: relative;
    display: inline-block;
    touch-action: none;
}

.zuschnitt-flaeche canvas {
    display: block;
    max-width: 100%;
    cursor: crosshair;
}

.zuschnitt-rahmen {
    position: absolute;
    outline: 3px solid var(--pink);
    box-shadow: 0 0 0 9999px rgb(0 0 0 / .45);
    pointer-events: none;
}

.zuschnitt .dialog-knoepfe {
    margin-top: 16px;
}


/* *** hilf mir: auswahl und rundgang *** */
.hilfe-knopf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px 6px 6px;
    border: 2px solid var(--tinte);
    border-radius: 999px;
    background: var(--papier);
    color: var(--tinte);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.hilfe-zeichen {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tinte);
    color: var(--papier);
    font-family: var(--schwer);
    font-size: 15px;
}

.hilfe-knopf:hover,
.hilfe-knopf:focus-visible {
    background: var(--pink);
}

/* breit: in der spalte links unter dem logo – verdeckt so nie das formular */
@media (min-width: 961px) {
    .hilfe-knopf {
        align-self: flex-start;
        margin: -8px 0 22px;
    }
}

@media (max-width: 960px) {
    .hilfe-knopf {
        margin-left: auto;
        min-height: 36px;
        padding: 4px 10px 4px 4px;
        font-size: 14px;
    }

    .hilfe-zeichen {
        width: 24px;
        height: 24px;
    }
}

.hilfe-wahl {
    width: min(480px, calc(100vw - 32px));
    padding: 24px;
    border: 3px solid var(--tinte);
    box-shadow: 8px 8px 0 var(--tinte);
}

.hilfe-wahl::backdrop {
    background: rgb(0 0 0 / .35);
}

.hilfe-wahl > .knopf {
    width: 100%;
}

.hilfe-aufgaben {
    display: grid;
    gap: 2px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.hilfe-aufgaben a {
    display: block;
    min-height: 40px;
    padding: 8px 10px;
    border-left: 4px solid var(--tinte);
    background: var(--hell);
    color: var(--tinte);
    font-weight: bold;
    text-decoration: none;
}

.hilfe-aufgaben a:hover,
.hilfe-aufgaben a:focus-visible {
    border-left-color: var(--pink);
    font-style: italic;
}

.rundgang-spot {
    position: fixed;
    z-index: 80;
    border: 3px solid var(--pink);
    box-shadow: 0 0 0 100vmax rgb(0 0 0 / .45);
    pointer-events: none;
}

.rundgang-karte {
    position: fixed;
    z-index: 81;
    width: min(400px, calc(100vw - 20px));
    padding: 18px 20px 16px;
    border: 3px solid var(--tinte);
    background: var(--papier);
    box-shadow: 8px 8px 0 var(--tinte);
}

.rundgang-karte--unten {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
}

.rundgang-balken {
    height: 6px;
    margin: -4px 0 10px;
    background: var(--hell);
}

.rundgang-balken span {
    display: block;
    height: 100%;
    background: var(--pink);
}

.rundgang-stand {
    margin: 0 0 4px;
    color: var(--grau);
    font-size: 14px;
}

.rundgang-titel {
    margin: 0 0 6px;
    font-family: var(--schwer);
    font-weight: 400;
    font-size: 21px;
}

.rundgang-titel:focus {
    outline: none;
}

.rundgang-text {
    margin: 0 0 12px;
}

.rundgang-punkte {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.rundgang-punkt {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 2px solid var(--tinte);
    background: var(--papier);
    cursor: pointer;
}

.rundgang-punkt[aria-current="step"] {
    background: var(--tinte);
}

.rundgang-punkt:hover {
    background: var(--pink);
}

.rundgang-knoepfe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rundgang-knoepfe .link-knopf {
    margin-left: auto;
}




/* schmale handys: nur das fragezeichen, damit der name der seite platz hat */
@media (max-width: 480px) {
    .hilfe-knopf {
        padding: 4px;
        border-width: 0;
    }

    .hilfe-text {
        display: none;
    }

    .hilfe-zeichen {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }
}


/* *** anmelden: passkey, zweiter schritt, ersatzcodes *** */
.oder {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 18px;
    color: var(--grau);
    font-weight: bold;
}

.oder::before,
.oder::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--grau);
}

.knopf--breit {
    width: 100%;
}

.knopf .zeichen-schluessel {
    flex: none;
}

.passkey .hinweis {
    margin-top: 10px;
}

.passkey .fehler-liste,
.passkey-neu .fehler-liste {
    margin: 14px 0;
}

.code-feld {
    max-width: 16ch;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 22px !important;
    letter-spacing: .12em;
}

details.ersatz {
    margin: 30px 0 24px;
    padding-top: 10px;
    border-top: 1px solid var(--grau);
}

details.ersatz summary,
details.qr-text summary {
    min-height: 44px;
    padding: 10px 0;
    font-weight: bold;
    cursor: pointer;
}

/* *** mein zugang: schlüssel, app-code *** */
.schluessel-liste {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.schluessel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 10px 14px;
    border: 2px solid var(--tinte);
    background: var(--papier);
}

.schluessel-zeichen {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hell);
}

.schluessel-text {
    flex: 1 1 200px;
    min-width: 0;
}

.schluessel-name {
    display: block;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.schluessel-stand {
    display: block;
    color: var(--grau);
    font-size: 15px;
}

.sicherheit {
    margin: 0 0 22px;
    padding: 18px 20px;
    border-left: 4px solid var(--tinte);
    background: var(--hell);
}

.sicherheit > :last-child {
    margin-bottom: 0;
}

.sicherheit-titel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 10px;
    font-size: 18px;
}

.sicherheit .formular--eng .feld {
    max-width: 420px;
}

.sicherheit .schritte li {
    margin-bottom: 18px;
}

.qr-rahmen {
    width: min(240px, 100%);
    margin: 12px 0 4px;
    padding: 8px;
    border: 2px solid var(--tinte);
    background: #fff;
}

.qr {
    display: block;
    width: 100%;
    height: auto;
}

.geheim {
    display: inline-block;
    padding: 6px 10px;
    background: var(--papier);
    font-size: 18px;
    letter-spacing: .08em;
    word-spacing: .2em;
    overflow-wrap: anywhere;
}

.ersatz-codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px 20px;
    margin: 16px 0 20px;
    padding-left: 1.6em;
}

.ersatz-codes code {
    font-size: 18px;
    letter-spacing: .05em;
}

/* *** zugänge: anmelden mit, gemeinsamer zugang *** */
.gruppe--still {
    margin-bottom: 4px;
}

.gruppe--still > legend {
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    font-family: var(--text);
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0;
}

.gruppe--still > .hinweis {
    margin: 0 0 14px;
}

/* kleine gruppe innerhalb einer gruppe (z.b. die zeile unter dem titel bei noch:nicht) */
.gruppe--innen {
    margin: 22px 0 8px;
}

/* feld, das zu einem häkchen darüber gehört */
.feld--eingerueckt {
    max-width: 420px;
    margin-left: 38px;
}

@media (max-width: 640px) {
    /* zwei vorschau-knöpfe nebeneinander, damit unten nicht der halbe bildschirm voll knöpfe ist */
    .aktionen-vorschau .knopf {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
    }
}

.warnung--soli {
    margin: -6px 0 26px;
    border-color: var(--pink);
}

.warnung--soli .warnung-titel {
    color: var(--tinte);
}

.warnung--soli p:last-child {
    margin-bottom: 0;
}

.knopf-reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sicherheit .schritte:focus,
.kasten--hervor[data-fokus]:focus {
    outline: none;
}

.sicherheit .aktionen {
    background: transparent;
}


/* *** verlauf: änderungen, vergleich, zurücksetzen *** */
.verlauf-eintrag {
    align-items: flex-start;
}

.verlauf-text {
    flex: 1 1 320px;
    min-width: 0;
}

.verlauf-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.verlauf-details {
    margin-top: 6px;
}

.verlauf-details summary,
.seither summary {
    min-height: 40px;
    padding: 8px 0;
    font-weight: bold;
    cursor: pointer;
}

.diff {
    margin: 4px 0 8px;
    padding: 12px 14px;
    background: var(--hell);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.diff dt {
    margin-top: 10px;
    color: var(--grau);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .02em;
}

.diff dt:first-child {
    margin-top: 0;
}

.diff dd {
    margin: 2px 0 0;
    line-height: 1.5;
}

.diff del {
    background: #fbd5de;
    color: #6d0f22;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.diff ins {
    background: #fff1a8;
    color: var(--tinte);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .15em;
}

.diff-art {
    color: var(--grau);
    font-size: 13px;
}

.plan {
    margin: 16px 0 24px;
    padding: 0;
    border-top: 1px solid var(--tinte);
    list-style: none;
}

.plan-punkt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tinte);
}

.plan-punkt > input {
    width: 24px;
    height: 24px;
    margin: 2px 0 0;
    accent-color: var(--tinte);
}

.plan-punkt label {
    cursor: pointer;
}

.plan-art {
    display: block;
    color: var(--grau);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.plan-text {
    margin: 2px 0 0;
}

.seither {
    margin-top: 26px;
}

.zeitpunkt .feld-reihe .feld {
    flex: 0 1 220px;
}

/* *** noch:nicht: titelbild und bildausschnitt *** */
.feld-titel {
    margin: 0 0 6px;
    font-weight: bold;
}

.titelbild {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 10px 30px;
    margin-bottom: 18px;
}

.fokus-bild {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    cursor: crosshair;
}

.fokus-bild img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    border: 2px solid var(--tinte);
}

.fokus-bild:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
}

.fokus-marke {
    position: absolute;
    width: 30px;
    height: 30px;
    translate: -50% -50%;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #000;
    pointer-events: none;
}

.fokus-marke::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    translate: -50% -50%;
    border-radius: 50%;
    background: var(--pink);
}

.fokus-wert {
    display: block;
    margin-top: 4px;
    color: var(--tinte);
}

/* *** formulare: liste, baukasten, antworten *** */
.zeile-extra {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: -8px 0 10px 76px;
    font-weight: bold;
}

.feld-schmal {
    max-width: 380px;
}

.ff-zeile .feld-reihe > .feld:not(.feld--gross) {
    flex: 0 1 280px;
}

.antworten {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.antwort {
    padding: 14px 18px 16px;
    border: 2px solid var(--tinte);
    background: var(--papier);
}

.antwort--neu {
    border-left: 8px solid var(--pink);
}

.antwort-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 8px;
}

.antwort-kopf form {
    margin-left: auto;
}

.antwort-zeit {
    color: var(--grau);
    font-size: 15px;
    font-weight: bold;
}

.antwort-daten {
    display: grid;
    grid-template-columns: minmax(140px, 30%) minmax(0, 1fr);
    gap: 6px 18px;
    margin: 0;
}

.antwort-daten dt {
    color: var(--grau);
    font-size: 15px;
}

.antwort-daten dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.leer-wert {
    color: var(--grau);
}

@media (max-width: 600px) {
    .antwort-daten {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .antwort-daten dd {
        margin-bottom: 8px;
    }

    .zeile-extra {
        margin-left: 6px;
    }
}

/* *** sprache der verwaltung *** */
.sprachwahl {
    margin-top: 10px;
}

.einfach-rahmen > .sprachwahl {
    margin-top: 40px;
    text-align: right;
}
