/* Redaktionsbereich – groß, ruhig, eindeutig. */

:root {
    --ink: #172B52;
    --night: #0E1C3A;
    --text: #22314F;
    --muted: #5A6883;
    --bg: #EEF2F8;
    --white: #FFFFFF;
    --rule: #C6D4EA;
    --band: #E6EEF9;
    --pencil: #F0C25A;
    --ok: #1E6B45;
    --ok-bg: #E3F3EA;
    --bad: #A3322A;
    --bad-bg: #FBE9E7;
    --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
    --radius: 14px;
}

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

.a-body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
}
a { color: var(--ink); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 2px; border-radius: 4px; }

.icon {
    width: 1.2em; height: 1.2em; flex-shrink: 0;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.a-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* Kopf */
.a-top { background: var(--ink); color: var(--white); }
.a-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; padding-block: .5rem; }
.a-brand { color: var(--white); text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.a-brand__title { font-weight: 800; font-size: 1.15rem; }
.a-brand__school { font-size: .85rem; opacity: .8; }
.a-top__right { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.a-top__right form { margin: 0; }
.a-top__link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--white); text-decoration: none; background: none; border: 0;
    font: inherit; font-size: .95rem; padding: .5rem .75rem; border-radius: 8px; cursor: pointer;
}
.a-top__link:hover { background: rgba(255, 255, 255, .12); }

.a-nav { background: var(--white); border-bottom: 1px solid var(--rule); }
.a-nav__inner { display: flex; gap: .15rem; overflow-x: auto; padding-block: .4rem; }
.a-nav__link {
    display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
    padding: .6rem .7rem; font-size: .98rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700;
}
.a-nav__link:hover { background: var(--band); }
.a-nav__link.is-active { background: var(--band); box-shadow: inset 0 -3px 0 var(--pencil); }

.a-main { padding-block: 2rem 4rem; }

/* Überschriften & Texte */
.a-title { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); margin: 0 0 1.25rem; line-height: 1.2; }
.a-h2 { font-size: 1.2rem; color: var(--ink); margin: 0 0 1rem; }
.a-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.a-head .a-title { margin: 0; }
.a-intro { color: var(--muted); max-width: 46rem; margin: -.5rem 0 1.5rem; }
.a-lead { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.a-muted { color: var(--muted); }
.a-small { font-size: .92rem; }
.a-optional { font-weight: 400; color: var(--muted); font-size: .88rem; margin-left: .35rem; }
.a-rule { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }

/* Flächen */
.a-card {
    background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 1.5rem; margin-bottom: 1.5rem;
}
.a-narrow { max-width: 44rem; }
.a-empty { text-align: center; padding: 3rem 1.5rem; }

/* Übersicht */
.a-dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.a-tile {
    display: flex; flex-direction: column; gap: .3rem;
    background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 1.4rem; text-decoration: none; color: var(--text);
}
.a-tile:hover { border-color: var(--ink); }
.a-tile__icon { width: 2rem; height: 2rem; color: var(--ink); margin-bottom: .5rem; }
.a-tile__title { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.a-tile__text { color: var(--muted); font-size: .95rem; }
.a-tile--main { grid-column: span 2; background: var(--ink); border-color: var(--ink); color: #D7E1F2; }
.a-tile--main .a-tile__icon, .a-tile--main .a-tile__title { color: var(--white); }
.a-tile--main .a-tile__title { font-size: 1.45rem; }
.a-tile--main .a-tile__text { color: #D7E1F2; }
.a-tile--main:hover { background: var(--night); }

/* Listen */
.a-rows { list-style: none; margin: 0; padding: 0; }
.a-card.a-rows { padding: .5rem 1.5rem; }
.a-row {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
.a-row:last-child { border-bottom: 0; }
.a-row__thumb { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--band); }
.a-row__main { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; }
.a-row__title { font-weight: 700; color: var(--ink); font-size: 1.05rem; text-decoration: none; }
a.a-row__title:hover { text-decoration: underline; }
.a-row__meta { color: var(--muted); font-size: .92rem; }
.a-row__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.a-row__actions form, .a-move { margin: 0; }
.a-move { display: flex; flex-direction: column; gap: .25rem; }

.a-pill {
    display: inline-block; padding: .2rem .7rem; border-radius: 999px;
    font-size: .85rem; font-weight: 700;
    background: #EDEFF3; color: var(--muted);
}
.a-pill--on { background: var(--ok-bg); color: var(--ok); }
.a-pill--strong { background: var(--ink); color: var(--white); }

.a-avatar {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--band); color: var(--ink); font-weight: 800;
}

/* Schaltflächen */
.a-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .75rem 1.25rem; border-radius: 10px;
    border: 2px solid var(--ink); background: var(--ink); color: var(--white);
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.a-btn:hover { background: var(--night); border-color: var(--night); }
.a-btn--big { width: 100%; padding: 1rem 1.25rem; font-size: 1.1rem; }
.a-btn--small { padding: .45rem .8rem; font-size: .92rem; border-width: 1.5px; }
.a-btn--ghost { background: var(--white); color: var(--ink); border-color: var(--rule); }
.a-btn--ghost:hover { background: var(--band); border-color: var(--ink); }
.a-btn--danger { background: var(--white); color: var(--bad); border-color: #E3B3AD; }
.a-btn--danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.a-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }
.a-buttons form { margin: 0; }

.a-icon-btn {
    width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--rule); border-radius: 8px; background: var(--white); color: var(--ink); cursor: pointer;
}
.a-icon-btn:hover:not(:disabled) { border-color: var(--ink); }
.a-icon-btn:disabled { opacity: .3; cursor: default; }

/* Meldungen */
.a-flash {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem;
    background: var(--band); color: var(--ink); border: 1px solid var(--rule);
}
.a-flash .icon { margin-top: .15rem; }
.a-flash--success { background: var(--ok-bg); color: var(--ok); border-color: #B7DEC8; }
.a-flash--error { background: var(--bad-bg); color: var(--bad); border-color: #E9C0BA; }
.a-flash a { color: inherit; font-weight: 700; }

/* Formulare */
.a-form { margin: 0; }
.a-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.25rem; }
.a-label { font-weight: 700; color: var(--ink); }
.a-hint { color: var(--muted); font-size: .92rem; }
.a-field input[type=text], .a-field input[type=email], .a-field input[type=password],
.a-field input[type=date], .a-field select, .a-field textarea, .a-password input {
    width: 100%; font: inherit; color: var(--text);
    padding: .75rem .9rem; border: 2px solid var(--rule); border-radius: 10px; background: var(--white);
}
.a-field textarea { resize: vertical; line-height: 1.6; }
.a-field input:focus, .a-field select:focus, .a-field textarea:focus, .a-password input:focus {
    outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(240, 194, 90, .45);
}
.a-input--title { font-size: 1.3rem !important; font-weight: 700; }
.a-field input[type=file] { font: inherit; }
.a-check { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; cursor: pointer; }
.a-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--ink); }
.a-password { display: flex; gap: .5rem; }
.a-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.a-span-2 { grid-column: span 2; }

/* Schreiben */
.a-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.a-editor-layout__main { margin: 0; }
.a-editor-layout__side .a-card { margin-bottom: 1rem; }
.a-actions { position: sticky; top: 1rem; }
.a-actions .a-btn { width: 100%; margin-bottom: .6rem; }
.a-actions .a-hint { display: block; margin: 0; text-align: center; }

.a-toolbar {
    display: flex; flex-wrap: wrap; gap: .4rem;
    padding: .5rem; background: var(--band); border: 2px solid var(--rule); border-bottom: 0;
    border-radius: 10px 10px 0 0;
}
.a-tool {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem .75rem; border: 1.5px solid var(--rule); border-radius: 8px;
    background: var(--white); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
}
.a-tool:hover { border-color: var(--ink); }
.a-tool--right { margin-left: auto; }
.a-editor { border-radius: 0 0 10px 10px !important; min-height: 18rem; }

.a-help { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.a-help summary { cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); }
.a-help ul { margin: .6rem 0 0; padding-left: 1.25rem; }
.a-more summary { cursor: pointer; font-weight: 700; color: var(--ink); margin-bottom: .75rem; }

.a-drop {
    position: relative; display: flex; flex-direction: column; gap: .75rem;
    border: 2px dashed var(--rule); border-radius: 12px; padding: 1rem;
    background: var(--bg); cursor: pointer; text-align: center;
}
.a-drop:hover, .a-drop:focus-within, .a-drop.is-over { border-color: var(--ink); background: var(--band); }
.a-drop__img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; }
.a-drop__img[hidden] { display: none; }
.a-drop__text { display: flex; flex-direction: column; align-items: center; gap: .25rem; color: var(--muted); font-size: .92rem; }
.a-drop__text strong { color: var(--ink); font-size: 1.02rem; }
.a-drop__text .icon { width: 2rem; height: 2rem; color: var(--ink); }
.a-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.a-restore {
    grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    padding: .9rem 1.1rem; border-radius: 10px; background: #FFF6DE; border: 1px solid #EED38C; color: var(--ink);
}
.a-restore[hidden] { display: none; }

/* Startseiten-Fotos */
.a-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.a-slide { padding: 0; overflow: hidden; margin: 0; display: flex; flex-direction: column; }
.a-slide.is-off { opacity: .55; }
.a-slide__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.a-slide__body { padding: 1rem 1.1rem .5rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.a-slide__body .a-pill { align-self: flex-start; background: #FFF6DE; color: #7A5B12; }
.a-slide__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .75rem 1.1rem 1.1rem; }
.a-slide__actions .a-move { flex-direction: row; }
.a-slide__actions form { margin: 0; }

/* Fotogalerien */
.a-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.a-head--tight { margin-bottom: .5rem; }
.a-head--tight .a-h2 { margin: 0; }
.a-drop--multi { padding: 2rem 1rem; }
.a-hint--consent { margin: 1rem 0 0; }

.a-upload-list { list-style: none; margin: 1rem 0 0; padding: 0; max-height: 18rem; overflow-y: auto; border: 1px solid var(--rule); border-radius: 10px; }
.a-upload-list[hidden] { display: none; }
.a-upload-list li {
    display: grid; grid-template-columns: minmax(0, 1fr) 6rem; gap: .2rem 1rem; align-items: center;
    padding: .55rem .9rem; border-bottom: 1px solid var(--rule); font-size: .95rem;
}
.a-upload-list li:last-child { border-bottom: 0; }
.a-upload-list__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-upload-list progress { width: 100%; height: .5rem; accent-color: var(--ink); }
.a-upload-list__note { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
.a-upload-list .is-ok .a-upload-list__note { color: var(--ok); font-weight: 700; }
.a-upload-list .is-bad { background: var(--bad-bg); }
.a-upload-list .is-bad .a-upload-list__note { color: var(--bad); font-weight: 700; }
.a-upload-status { margin: .75rem 0 0; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.a-upload-status[hidden] { display: none; }
[data-nojs][hidden] { display: none; }

.a-photos {
    list-style: none; margin: 0 0 1.25rem; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem;
}
.a-photo {
    display: flex; flex-direction: column; gap: .5rem;
    border: 1px solid var(--rule); border-radius: 12px; padding: .5rem; background: var(--white);
    scroll-margin-top: 1rem;
}
.a-photo:target { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240, 194, 90, .55); }
.a-photo__media { position: relative; }
.a-photo__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--band); }
.a-photo__num {
    position: absolute; top: .4rem; left: .4rem; min-width: 1.75rem; height: 1.75rem; padding: 0 .4rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(14, 28, 58, .78); color: var(--white); border-radius: 999px; font-size: .85rem; font-weight: 700;
}
.a-photo__cover { position: absolute; bottom: .4rem; left: .4rem; }
.a-photo__caption input {
    width: 100%; font: inherit; font-size: .92rem; color: var(--text);
    padding: .45rem .6rem; border: 2px solid var(--rule); border-radius: 8px; background: var(--white);
}
.a-photo__caption input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240, 194, 90, .45); }
.a-photo__actions { display: flex; gap: .4rem; align-items: center; }
.a-photo__delete { margin-left: auto; }

.a-status { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-weight: 700; color: var(--muted); }
.a-status--on { color: var(--ok); }
.a-actions a.a-btn { width: 100%; margin-bottom: .6rem; }

.a-field--sub { margin: .6rem 0 0; }
.a-field--sub[hidden] { display: none; }
.a-slide__link { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; color: var(--ink); font-weight: 700; }
.a-slide__link.a-muted { font-weight: 400; color: var(--muted); }

/* Link-Karte in Texten: kleines Vorschaubild + Titel + Zusatzinfo */
.link-card-wrap { margin: 1.25rem 0; }
.link-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center;
    max-width: 36rem; padding: .85rem 1.1rem .85rem .85rem;
    background: #FFFFFF; border: 1px solid #C6D4EA; border-radius: 14px;
    color: inherit; text-decoration: none;
    box-shadow: 0 10px 22px -18px rgba(14, 28, 58, .55);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.link-card:hover { transform: translateY(-2px); border-color: #9FB4D6; box-shadow: 0 18px 30px -20px rgba(14, 28, 58, .6); text-decoration: none; }
.link-card__media {
    width: 6.5rem; aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: 8px; background: #E6EEF9;
    display: flex; align-items: center; justify-content: center; color: #172B52;
}
.link-card__media img { width: 100%; height: 100%; object-fit: cover; }
.link-card--file .link-card__media { width: 5rem; aspect-ratio: 3 / 4; border: 1px solid #C6D4EA; box-shadow: 2px 3px 0 #E6EEF9; background: #FFFFFF; }
.link-card--file .link-card__media img { object-position: top; }
.link-card__media--icon .icon { width: 2rem; height: 2rem; }
.link-card__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.link-card__title { font-weight: 700; font-size: 1.1rem; color: #172B52; line-height: 1.3; text-underline-offset: .15em; }
.link-card:hover .link-card__title { text-decoration: underline; text-decoration-color: #F0C25A; text-decoration-thickness: 3px; }
.link-card__meta { font-size: .92rem; color: #5A6883; line-height: 1.45; }
.link-card__action { display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; font-size: .92rem; font-weight: 700; color: #172B52; }

/* Fenster „Link einfügen“ */
.a-dialog {
    width: min(34rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem);
    padding: 0; border: 0; border-radius: var(--radius);
    background: var(--white); color: var(--text);
    box-shadow: 0 30px 60px -20px rgba(14, 28, 58, .55);
}
.a-dialog::backdrop { background: rgba(14, 28, 58, .55); }
.a-dialog__box { padding: 1.5rem 1.6rem 1.4rem; }
.a-dialog__box .a-h2 { margin-top: 0; }
.a-dialog .a-field[hidden] { display: none; }
.a-dialog__style { border: 0; padding: 0; margin: 0 0 1rem; }
.a-dialog__style .a-check { margin-bottom: .4rem; }
.a-dialog__error { margin: 0 0 1rem; padding: .6rem .85rem; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-weight: 700; }
.a-dialog__error[hidden] { display: none; }
.a-dialog__actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.a-help code { background: var(--band); padding: .05rem .35rem; border-radius: 4px; font-size: .92em; }

/* Vorschaubild für Dateien */
.a-row__thumb--doc { width: 42px; height: 56px; object-fit: cover; object-position: top; border: 1px solid var(--rule); border-radius: 4px; background: var(--white); }
.a-row__thumb--none { display: inline-flex; align-items: center; justify-content: center; color: #9FB4D6; }
.a-preview-box { border: 0; padding: 0; margin: 0 0 1.25rem; }
.a-preview-box__row { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; margin-top: .5rem; }
.a-preview-box__img {
    width: 7.5rem; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
    border: 1px solid var(--rule); border-radius: 6px; background: var(--white);
    box-shadow: 3px 4px 0 var(--band);
}
.a-preview-box__img--none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); font-size: .85rem; }
.a-preview-box__img--none .icon { width: 2rem; height: 2rem; color: #9FB4D6; }
.a-preview-box__choices { flex: 1; min-width: 14rem; display: flex; flex-direction: column; gap: .5rem; }

/* Menü ein-/ausblenden */
.a-menu-switch { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.a-card--off { background: repeating-linear-gradient(-45deg, var(--white), var(--white) 12px, #F6F8FC 12px, #F6F8FC 24px); }
.a-card--off .a-h2 { color: var(--muted); }
.a-hint--warn { padding: .6rem .85rem; border-radius: 8px; background: #FFF6DF; color: #6B4E00; }

/* Menü */
.a-menu { list-style: none; margin: 0; padding: 0; }
.a-menu-row {
    display: grid; grid-template-columns: minmax(12rem, 22rem) auto minmax(0, 1fr);
    gap: .5rem 1.25rem; align-items: center;
    padding: .7rem 0; border-bottom: 1px solid var(--rule);
}
.a-menu-row--group { padding-top: 1.1rem; border-bottom: 0; }
.a-menu-row--group input[type=text] { font-weight: 700; }
.a-menu-children { border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }
.a-menu-row--child { padding-left: 2rem; border-bottom: 1px dashed var(--rule); position: relative; }
.a-menu-row--child::before { content: ""; position: absolute; left: .75rem; top: 0; bottom: 50%; width: .8rem; border-left: 2px solid var(--rule); border-bottom: 2px solid var(--rule); border-bottom-left-radius: 6px; }
.a-menu-children .a-menu-row:last-child { border-bottom: 0; }
.a-menu-row--empty { display: block; color: var(--muted); font-size: .92rem; }
.a-menu-row__name input {
    width: 100%; font: inherit; color: var(--text);
    padding: .5rem .7rem; border: 2px solid var(--rule); border-radius: 8px; background: var(--white);
}
.a-menu-row__name input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240, 194, 90, .45); }
.a-menu-row__show { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.a-menu-row__show input { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); }
.a-menu-row__info { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .1rem .6rem; }
.a-menu-row__default { color: var(--ink); }
.a-menu-row__note { flex-basis: 100%; color: #6B4E00; }
.a-menu-row.is-hidden .a-menu-row__name input { color: var(--muted); background: #F6F8FC; text-decoration: line-through; text-decoration-color: rgba(90, 104, 131, .5); }
.a-sticky-actions { position: sticky; bottom: 0; padding: .9rem 0; background: linear-gradient(to top, var(--bg) 70%, rgba(238, 242, 248, 0)); }
@media (max-width: 760px) {
    .a-menu-row { grid-template-columns: minmax(0, 1fr) auto; }
    .a-menu-row__info { grid-column: 1 / -1; }
}

/* Umzug & Links */
.a-ok { display: flex; align-items: center; gap: .5rem; color: var(--ok); font-weight: 700; margin: .25rem 0 1rem; }
.a-rule { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }
.a-h3 { font-size: 1.1rem; margin: 0 0 .5rem; color: var(--ink); }
.a-plan { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.a-plan__item { padding: .75rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .35rem; }
.a-plan__where { font-weight: 700; }
.a-plan__problem { color: var(--bad); font-weight: 700; font-size: .95rem; }
.a-plan__code, .a-diff, .a-filelist code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; word-break: break-all; }
.a-diff { display: grid; gap: .15rem; }
.a-diff del { background: var(--bad-bg); color: var(--bad); padding: .2rem .45rem; border-radius: 4px; }
.a-diff ins { background: var(--ok-bg); color: var(--ok); padding: .2rem .45rem; border-radius: 4px; text-decoration: none; }
.a-filelist { margin: .5rem 0 0; padding-left: 1.2rem; }
.a-steps { margin: 0; padding-left: 1.3rem; }
.a-steps li { margin-bottom: .5rem; }

/* Zugänge */
.a-password-box { border: 2px solid var(--pencil); background: #FFFBEF; }
.a-credentials { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 1rem 0 0; }
.a-credentials dt { font-weight: 700; color: var(--ink); }
.a-credentials dd { margin: 0; overflow-wrap: anywhere; }
.a-credentials code { font-size: 1.2rem; font-weight: 700; background: var(--white); padding: .2rem .5rem; border-radius: 6px; border: 1px solid var(--rule); }

.a-checks { list-style: none; margin: 0; padding: 0; }
.a-checks li { display: flex; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.a-checks .is-ok .icon { color: var(--ok); }
.a-checks .is-bad { color: var(--bad); }

.a-login { max-width: 30rem; margin: 2rem auto; }
.a-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }

/* Vorschau-Fenster */
.a-modal { position: fixed; inset: 0; z-index: 100; background: rgba(14, 28, 58, .55); display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; overflow-y: auto; }
.a-modal[hidden] { display: none; }
.a-modal__panel { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 46rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.a-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--rule); }
.a-modal__head h2 { margin: 0; color: var(--ink); font-size: 1.15rem; }
.a-modal__body { padding: 1.5rem 2rem 2rem; }
.a-prose { font-size: 1.1rem; line-height: 1.75; }
.a-prose h2 { font-size: 1.4rem; color: var(--ink); margin: 1.75rem 0 .6rem; }
.a-prose > :first-child { margin-top: 0; }

@media (max-width: 900px) {
    .a-editor-layout { grid-template-columns: 1fr; }
    .a-actions { position: static; }
    .a-tile--main { grid-column: auto; }
    .a-grid-2 { grid-template-columns: 1fr; }
    .a-span-2 { grid-column: auto; }
    .a-top__link span { display: none; }
}
