/* ==========================================================================
   BEV Backend – Verwaltungsoberfläche
   ========================================================================== */

:root {
    --bev-blue:       #012e89;
    --bev-blue-dark:  #011f5e;
    --bev-blue-deep:  #01184a;
    --bev-blue-mid:   #12429e;
    --bev-blue-light: #e8edf8;
    --bev-blue-soft:  #f4f6fc;
    --bev-gold:       #ce9933;
    --bev-gold-dark:  #a97a24;
    --bev-gold-soft:  #fbf5e9;

    --ink-900: #0d1526; --ink-800: #1b2438; --ink-700: #2f3a52;
    --ink-600: #4c5875; --ink-500: #6d7891; --ink-400: #98a1b5;
    --ink-300: #c5cbd8; --ink-200: #e2e6ee; --ink-100: #f0f2f7; --ink-050: #f8f9fc;

    --ok: #1c7f4c; --ok-bg: #e7f5ee;
    --warn: #a9781a; --warn-bg: #fdf4e3;
    --err: #b3261e; --err-bg: #fdeceb;
    --info: #12429e; --info-bg: #e8edf8;

    --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --radius: 8px; --radius-sm: 5px; --radius-lg: 14px;
    --sidebar: 258px;
    --sh-1: 0 1px 2px rgba(1,24,74,.07);
    --sh-2: 0 4px 12px rgba(1,24,74,.09);
    --sh-3: 0 14px 34px rgba(1,24,74,.16);
    --tr: .18s ease;
}

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

body {
    margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
    color: var(--ink-800); background: var(--ink-050); -webkit-font-smoothing: antialiased;
}
a { color: var(--bev-blue); text-decoration: none; }
a:hover { color: var(--bev-gold-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--bev-blue-deep); line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.03rem; }
:focus-visible { outline: 2px solid var(--bev-gold); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* --------------------------------------------------------------- Anmeldung */
.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem;
    background: linear-gradient(135deg, #01184a 0%, #012e89 55%, #12429e 100%);
    position: relative; overflow: hidden;
}
.login-page::before {
    content: ""; position: absolute; inset: -20%;
    background: repeating-conic-gradient(#012e89 0% 25%, #fff 0% 50%) 0 0/44px 44px;
    opacity: .06; transform: rotate(-9deg);
}
.login-box {
    position: relative; z-index: 2; width: min(100%, 420px);
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--sh-3); overflow: hidden;
}
.login-box__head { padding: 2.25rem 2rem 1.25rem; text-align: center; border-bottom: 1px solid var(--ink-200); }
.login-box__head img { width: 104px; margin: 0 auto 1.1rem; }
.login-box__head h1 { font-size: 1.22rem; margin-bottom: .2rem; }
.login-box__head p { margin: 0; color: var(--ink-500); font-size: .88rem; }
.login-box__body { padding: 1.75rem 2rem 2rem; }
.login-box__foot { padding: 1rem 2rem; background: var(--ink-050); border-top: 1px solid var(--ink-200); text-align: center; font-size: .84rem; color: var(--ink-500); }

/* ----------------------------------------------------------------- Gerüst */
.admin { display: flex; min-height: 100vh; }

.side {
    width: var(--sidebar); flex-shrink: 0; background: var(--bev-blue-deep); color: rgba(255,255,255,.8);
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 60;
    transform: translateX(-100%); transition: transform var(--tr); overflow-y: auto;
}
.side.is-open { transform: translateX(0); }
@media (min-width: 1024px) { .side { transform: none; } }

.side__brand {
    display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.side__brand img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.side__brand b { color: #fff; font-size: .93rem; line-height: 1.15; display: block; white-space: nowrap; }
.side__brand span { font-size: .64rem; color: var(--bev-gold); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }

.side__nav { padding: .9rem .7rem 2rem; flex: 1; }
.side__group {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
    color: rgba(255,255,255,.38); padding: 1.1rem .75rem .4rem; font-weight: 700;
}
.side__link {
    display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem;
    border-radius: var(--radius-sm); color: rgba(255,255,255,.78); font-size: .91rem;
    transition: all var(--tr); margin-bottom: 1px;
}
.side__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.side__link.is-active { background: var(--bev-blue-mid); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--bev-gold); }
.side__link .icon { opacity: .8; }
.side__link .count {
    margin-left: auto; background: var(--bev-gold); color: var(--bev-blue-deep);
    font-size: .7rem; font-weight: 800; padding: .05rem .42rem; border-radius: 100px;
}

.side__foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.side__foot a { color: rgba(255,255,255,.62); display: flex; align-items: center; gap: .5rem; }
.side__foot a:hover { color: var(--bev-gold); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .main { margin-left: var(--sidebar); } }

.topbar {
    position: sticky; top: 0; z-index: 50; background: #fff;
    border-bottom: 1px solid var(--ink-200); box-shadow: var(--sh-1);
    display: flex; align-items: center; gap: 1rem; padding: .7rem 1.25rem; min-height: 62px;
}
.topbar__title { min-width: 0; }
.topbar__title h1 { font-size: 1.12rem; margin: 0; }
.topbar__title .crumbs { font-size: .78rem; color: var(--ink-500); }
.topbar__title .crumbs a { color: var(--ink-500); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.burger { display: inline-flex; }
@media (min-width: 1024px) { .burger { display: none; } }

.userchip {
    display: flex; align-items: center; gap: .55rem; padding: .3rem .65rem .3rem .35rem;
    border: 1px solid var(--ink-200); border-radius: 100px; font-size: .85rem; color: var(--ink-700);
}
.userchip__avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--bev-blue); color: #fff;
    display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}

.content { padding: 1.5rem 1.25rem 3rem; flex: 1; }
@media (min-width: 768px) { .content { padding: 1.75rem 1.75rem 3rem; } }

.backdrop { position: fixed; inset: 0; background: rgba(1,24,74,.5); z-index: 55; display: none; }
.backdrop.is-open { display: block; }
@media (min-width: 1024px) { .backdrop { display: none !important; } }

/* ------------------------------------------------------------------ Karten */
.panel {
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius);
    box-shadow: var(--sh-1); margin-bottom: 1.35rem; overflow: hidden;
}
.panel__head {
    padding: .9rem 1.15rem; border-bottom: 1px solid var(--ink-200); background: var(--ink-050);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.panel__head h2 { margin: 0; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.panel__body { padding: 1.25rem; }
.panel__foot { padding: .9rem 1.15rem; border-top: 1px solid var(--ink-200); background: var(--ink-050); display: flex; gap: .6rem; flex-wrap: wrap; }
.panel__note {
    display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1.15rem;
    border-bottom: 1px solid #f0dfc0; background: #fdf6e9; color: #7a5b1c; font-size: .88rem; line-height: 1.5;
}
.panel__note svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: .1rem; color: #b8862c; }
.panel__note strong { display: block; color: #5f4614; }
.panel__note a { color: var(--bev-blue); font-weight: 600; text-decoration: underline; }

.grid { display: grid; gap: 1.25rem; }
.grid--stats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.stat {
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; transition: all var(--tr);
}
.stat:hover { border-color: var(--bev-blue); box-shadow: var(--sh-2); transform: translateY(-2px); }
.stat__icon {
    width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
    background: var(--bev-blue-light); color: var(--bev-blue);
}
.stat__icon .icon { width: 22px; height: 22px; }
.stat b { display: block; font-size: 1.55rem; line-height: 1.1; color: var(--bev-blue-deep); }
.stat span { font-size: .82rem; color: var(--ink-500); }

/* ---------------------------------------------------------------- Tabellen */
.tablewrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.list thead th {
    background: var(--ink-050); border-bottom: 2px solid var(--ink-200);
    text-align: left; padding: .7rem .9rem; font-size: .76rem; text-transform: uppercase;
    letter-spacing: .05em; color: var(--ink-600); white-space: nowrap; font-weight: 700;
}
table.list tbody td { padding: .68rem .9rem; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
table.list tbody tr:hover { background: var(--bev-blue-soft); }
table.list .cell-title { font-weight: 650; color: var(--bev-blue-deep); }
table.list .cell-title a { color: inherit; }
table.list .cell-title a:hover { color: var(--bev-gold-dark); }
table.list code { background: var(--ink-100); padding: .1rem .35rem; border-radius: 4px; font-size: .82em; color: var(--ink-600); }
table.list .actions { text-align: right; white-space: nowrap; }
table.list .actions a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); color: var(--ink-500); }
table.list .actions a:hover { background: var(--bev-blue-light); color: var(--bev-blue); }
table.list .actions a.danger:hover { background: var(--err-bg); color: var(--err); }
table.list input[type="number"] { width: 72px; padding: .25rem .4rem; font-size: .84rem; }

/* --------------------------------------------------------------- Formulare */
.field { margin-bottom: 1.1rem; }
.field > label { display: block; font-weight: 650; font-size: .84rem; color: var(--ink-800); margin-bottom: .32rem; }
.field .req { color: var(--err); }
.field .hint { display: block; color: var(--ink-500); font-size: .79rem; margin-top: .28rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="tel"], input[type="number"], input[type="date"], input[type="datetime-local"],
input[type="search"], input[type="file"], select, textarea {
    width: 100%; padding: .55rem .7rem; border: 1px solid var(--ink-300);
    border-radius: var(--radius-sm); font-family: inherit; font-size: .92rem;
    color: var(--ink-800); background: #fff; transition: border-color var(--tr), box-shadow var(--tr);
}
input[type="color"] { width: 62px; height: 38px; padding: 2px; border: 1px solid var(--ink-300); border-radius: var(--radius-sm); }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--bev-blue); box-shadow: 0 0 0 3px rgba(1,46,137,.12);
}
.checkline { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; font-size: .9rem; }
.checkline input { width: auto; }

.formgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 1.1rem; }
.col-full  { grid-column: span 6; }
.col-half  { grid-column: span 6; }
.col-third { grid-column: span 6; }
@media (min-width: 720px) {
    .col-half  { grid-column: span 3; }
    .col-third { grid-column: span 2; }
}

.form-heading {
    grid-column: span 6; margin: 1.4rem 0 .9rem; padding-bottom: .5rem;
    border-bottom: 2px solid var(--bev-gold); font-size: .82rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .09em; color: var(--bev-blue-deep);
}
.form-heading:first-child { margin-top: 0; }

/* Medienfeld */
.mediafield { display: flex; gap: .6rem; align-items: flex-start; }
.mediafield input { flex: 1; }
.mediafield__preview {
    width: 74px; height: 56px; border: 1px solid var(--ink-200); border-radius: var(--radius-sm);
    background: var(--ink-100) center/cover no-repeat; flex-shrink: 0;
}

/* WYSIWYG */
.editor { border: 1px solid var(--ink-300); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.editor:focus-within { border-color: var(--bev-blue); box-shadow: 0 0 0 3px rgba(1,46,137,.12); }
.editor__bar {
    display: flex; flex-wrap: wrap; gap: 2px; padding: .35rem; background: var(--ink-050);
    border-bottom: 1px solid var(--ink-200);
}
.editor__bar button {
    min-width: 32px; height: 30px; padding: 0 .45rem; border: 0; background: transparent;
    border-radius: 4px; cursor: pointer; color: var(--ink-600); font-size: .84rem; font-weight: 600;
}
.editor__bar button:hover { background: var(--bev-blue-light); color: var(--bev-blue); }
.editor__bar .sep { width: 1px; background: var(--ink-200); margin: .25rem .25rem; }
.editor__area {
    min-height: 300px; max-height: 640px; overflow-y: auto; padding: 1rem 1.1rem;
    font-size: .95rem; line-height: 1.65; outline: none;
}
.editor__area:empty::before { content: attr(data-placeholder); color: var(--ink-400); }
.editor__area h2 { font-size: 1.2rem; margin: 1.2rem 0 .5rem; }
.editor__area h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.editor__area table { width: 100%; border-collapse: collapse; margin: .8rem 0; }
.editor__area th, .editor__area td { border: 1px solid var(--ink-300); padding: .4rem .55rem; font-size: .88rem; }
.editor__area th { background: var(--ink-100); }
.editor__area img { max-width: 100%; border-radius: 4px; }
.editor__area a { text-decoration: underline; }
.editor__html { width: 100%; min-height: 320px; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; border: 0; border-radius: 0; }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .55rem 1.1rem; border-radius: var(--radius-sm); font-weight: 650; font-size: .89rem;
    border: 1px solid transparent; cursor: pointer; transition: all var(--tr); font-family: inherit;
    line-height: 1.3; white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; }
.btn--primary { background: var(--bev-blue); color: #fff; border-color: var(--bev-blue); }
.btn--primary:hover { background: var(--bev-blue-dark); color: #fff; }
.btn--gold { background: var(--bev-gold); color: var(--bev-blue-deep); border-color: var(--bev-gold); }
.btn--gold:hover { background: var(--bev-gold-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink-700); border-color: var(--ink-300); }
.btn--ghost:hover { border-color: var(--bev-blue); color: var(--bev-blue); background: var(--bev-blue-light); }
.btn--danger { background: #fff; color: var(--err); border-color: #f0c4c1; }
.btn--danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn--sm { padding: .35rem .75rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--icon { padding: .5rem; width: 38px; height: 38px; }

/* ----------------------------------------------------------------- Badges */
.badge {
    display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .55rem;
    border-radius: 100px; font-size: .73rem; font-weight: 700;
    background: var(--bev-blue-light); color: var(--bev-blue); white-space: nowrap;
}
.badge--success { background: var(--ok-bg); color: var(--ok); }
.badge--warn    { background: var(--warn-bg); color: var(--warn); }
.badge--error   { background: var(--err-bg); color: var(--err); }
.badge--info    { background: var(--info-bg); color: var(--info); }
.badge--muted   { background: var(--ink-100); color: var(--ink-600); }
.badge--gold    { background: var(--bev-gold-soft); color: var(--bev-gold-dark); }

/* ----------------------------------------------------------------- Alerts */
.alert {
    display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem;
    border-radius: var(--radius-sm); border-left: 4px solid; margin-bottom: 1.1rem; font-size: .89rem;
}
.alert .icon { margin-top: .1rem; }
.alert--success { background: var(--ok-bg); border-color: var(--ok); color: #14603a; }
.alert--error   { background: var(--err-bg); border-color: var(--err); color: #8c1d17; }
.alert--warn    { background: var(--warn-bg); border-color: var(--warn); color: #7d5713; }
.alert--info    { background: var(--info-bg); border-color: var(--info); color: var(--bev-blue-dark); }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* ------------------------------------------------------------- Werkzeuge */
.toolbar {
    display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
    padding: .8rem 1.15rem; border-bottom: 1px solid var(--ink-200); background: #fff;
}
.toolbar form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 170px; }
.toolbar .spacer { margin-left: auto; }

.pagination { display: flex; gap: .3rem; padding: 1rem 1.15rem; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .6rem; border: 1px solid var(--ink-200); border-radius: var(--radius-sm);
    font-size: .86rem; color: var(--ink-600); background: #fff;
}
.pagination a:hover { border-color: var(--bev-blue); color: var(--bev-blue); background: var(--bev-blue-light); }
.pagination span[aria-current] { background: var(--bev-blue); border-color: var(--bev-blue); color: #fff; font-weight: 700; }
.pagination .disabled span { opacity: .4; }

.empty { text-align: center; padding: 3rem 1.5rem; color: var(--ink-500); }
.empty .icon { width: 42px; height: 42px; margin: 0 auto .8rem; color: var(--ink-300); }
.empty strong { display: block; color: var(--ink-700); margin-bottom: .3rem; }

/* ------------------------------------------------------------ Medienraster */
.medialist { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.mediaitem {
    border: 1px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; background: #fff;
    transition: all var(--tr);
}
.mediaitem:hover { border-color: var(--bev-blue); box-shadow: var(--sh-2); }
.mediaitem__thumb {
    aspect-ratio: 4/3; background: var(--ink-100) center/cover no-repeat;
    display: grid; place-items: center; color: var(--ink-400);
}
.mediaitem__thumb .icon { width: 34px; height: 34px; }
.mediaitem__meta { padding: .55rem .7rem; font-size: .78rem; }
.mediaitem__meta strong { display: block; color: var(--ink-800); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mediaitem__meta span { color: var(--ink-500); }
.mediaitem__acts { display: flex; gap: .3rem; padding: 0 .7rem .6rem; }
.mediaitem__acts a, .mediaitem__acts button {
    flex: 1; text-align: center; padding: .25rem; font-size: .75rem; border: 1px solid var(--ink-200);
    border-radius: 4px; background: #fff; cursor: pointer; color: var(--ink-600); font-family: inherit;
}
.mediaitem__acts a:hover, .mediaitem__acts button:hover { border-color: var(--bev-blue); color: var(--bev-blue); }

/* ---------------------------------------------------------------- Dialoge */
.modal {
    position: fixed; inset: 0; z-index: 300; background: rgba(1,24,74,.55);
    display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal.is-open { display: flex; }
.modal__box {
    background: #fff; border-radius: var(--radius-lg); width: min(100%, 880px);
    max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--sh-3); overflow: hidden;
}
.modal__head { padding: .9rem 1.15rem; border-bottom: 1px solid var(--ink-200); display: flex; align-items: center; justify-content: space-between; }
.modal__head h3 { margin: 0; }
.modal__body { padding: 1.15rem; overflow-y: auto; }

/* --------------------------------------------------------- Ergebniszeilen */
.rowtable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.rowtable th { text-align: left; padding: .4rem .5rem; font-size: .74rem; text-transform: uppercase; color: var(--ink-500); }
.rowtable td { padding: .2rem .25rem; }
.rowtable input { padding: .38rem .5rem; font-size: .85rem; }
.rowtable .rm { background: none; border: 0; cursor: pointer; color: var(--ink-400); padding: .35rem; }
.rowtable .rm:hover { color: var(--err); }

/* --------------------------------------------------------------- Diverses */
.permgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.permgroup { border: 1px solid var(--ink-200); border-radius: var(--radius); padding: .9rem 1rem; }
.permgroup h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-600); margin-bottom: .6rem; }

.deflist { width: 100%; font-size: .89rem; }
.deflist td { padding: .45rem .2rem; border-bottom: 1px solid var(--ink-100); }
.deflist td:first-child { color: var(--ink-500); width: 45%; }

.text-muted { color: var(--ink-500); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 1rem }
.flex { display: flex } .items-center { align-items: center } .gap-1 { gap: .5rem } .gap-2 { gap: 1rem }
.justify-between { justify-content: space-between } .wrap { flex-wrap: wrap }
.sticky-actions {
    position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--ink-200);
    padding: .85rem 1.15rem; display: flex; gap: .6rem; flex-wrap: wrap; box-shadow: 0 -3px 10px rgba(1,24,74,.05);
}

/* ==========================================================================
   Erweiterungen: Unterpunkte, Bausteine, Newsletter, Zuschnitt
   ========================================================================== */

.side__sub { padding: .1rem 0 .4rem 2.35rem; }
.side__sub a {
    display: block; padding: .32rem .6rem; font-size: .84rem; border-radius: 4px;
    color: rgba(255, 255, 255, .6);
}
.side__sub a:hover { color: #fff; background: rgba(255, 255, 255, .07); }

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

/* Bausteinliste */
.blocklist { list-style: none; margin: 0; padding: 0; }
.blocklist__item {
    display: flex; align-items: center; gap: .85rem; padding: .8rem 1.15rem;
    border-bottom: 1px solid var(--ink-100); background: #fff; cursor: default;
}
.blocklist__item:hover { background: var(--bev-blue-soft); }
.blocklist__item.is-off { opacity: .55; }
.blocklist__item.is-dragging { opacity: .4; background: var(--bev-blue-light); }
.blocklist__handle { cursor: grab; color: var(--ink-300); font-size: 1.1rem; user-select: none; }
.blocklist__icon {
    width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
    background: var(--bev-blue-light); color: var(--bev-blue); flex-shrink: 0;
}
.blocklist__body { flex: 1; min-width: 0; }
.blocklist__body strong { display: block; color: var(--bev-blue-deep); font-size: .95rem; }
.blocklist__body small { display: block; color: var(--ink-500); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blocklist__actions { display: flex; gap: .2rem; }
.blocklist__actions a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; color: var(--ink-500); }
.blocklist__actions a:hover { background: var(--bev-blue-light); color: var(--bev-blue); }
.blocklist__actions a.danger:hover { background: var(--err-bg); color: var(--err); }

/* Bausteintypen */
.typegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.typecard {
    display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
    padding: .95rem .6rem; border: 1px solid var(--ink-200); border-radius: var(--radius);
    font-size: .84rem; color: var(--ink-700); transition: all var(--tr);
}
.typecard:hover { border-color: var(--bev-blue); background: var(--bev-blue-soft); color: var(--bev-blue); }
.typecard.is-active { border-color: var(--bev-gold); background: var(--bev-gold-soft); color: var(--bev-gold-dark); font-weight: 650; }
.typecard__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--bev-blue-light); color: var(--bev-blue); }
.typecard.is-active .typecard__icon { background: #fff; color: var(--bev-gold-dark); }

/* Fortschrittsbalken */
.progress { position: relative; height: 26px; background: var(--ink-100); border-radius: 100px; overflow: hidden; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--bev-blue), var(--bev-blue-mid)); transition: width .4s ease; }
.progress__label {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: .78rem; font-weight: 700; color: var(--bev-blue-deep);
}

/* Bildzuschnitt */
.cropstage { position: relative; display: inline-block; max-width: 100%; user-select: none; }
.cropstage img { max-width: 100%; display: block; border-radius: var(--radius-sm); border: 1px solid var(--ink-200); }
.cropbox {
    position: absolute; border: 2px dashed var(--bev-gold); background: rgba(206, 153, 51, .16);
    pointer-events: none; border-radius: 2px;
}

.rowtable textarea { width: 100%; font-size: .84rem; padding: .35rem .5rem; }

/* Auswahl von Beiträgen und Terminen für den Newsletter */
.pickbox__body { max-height: 560px; overflow-y: auto; }
.pickitem {
    display: flex; align-items: center; gap: .8rem; padding: .7rem 1.15rem;
    border-bottom: 1px solid var(--ink-100); cursor: pointer; transition: background var(--tr);
}
.pickitem:hover { background: var(--bev-blue-soft); }
.pickitem input { width: auto; flex-shrink: 0; accent-color: var(--bev-blue); }
.pickitem:has(input:checked) { background: var(--bev-gold-soft); }
.pickitem__thumb {
    width: 74px; height: 50px; object-fit: cover; border-radius: 5px; flex-shrink: 0;
    border: 1px solid var(--ink-200); background: var(--ink-100);
}
.pickitem__thumb--empty { display: grid; place-items: center; color: var(--ink-400); }
.pickitem__thumb--empty svg { width: 20px; height: 20px; }
.pickitem__date {
    width: 50px; flex-shrink: 0; text-align: center; border-radius: 5px;
    background: var(--bev-blue); color: #fff; padding: .3rem .2rem; line-height: 1.05;
}
.pickitem__date b { display: block; font-size: 1.05rem; }
.pickitem__date span { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.pickitem__body { min-width: 0; flex: 1; }
.pickitem__body strong { display: block; font-size: .92rem; color: var(--bev-blue-deep); line-height: 1.35; }
.pickitem__body small { color: var(--ink-500); font-size: .8rem; }

/* ------------------------------------------------------- Zertifikate */
.mono-sm { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .78rem; word-break: break-all; }

.sigresult { border: 1px solid var(--ink-200); border-radius: 10px; overflow: hidden; }
.sigresult__head { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.25rem; }
.sigresult__head strong { display: block; font-size: 1.02rem; margin-bottom: .15rem; }
.sigresult__head span { font-size: .9rem; opacity: .85; }
.sigresult__icon { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.sigresult__icon svg { width: 20px; height: 20px; }
.sigresult--ok   .sigresult__head { background: var(--ok-bg); color: var(--ok); }
.sigresult--ok   .sigresult__icon { background: var(--ok); color: #fff; }
.sigresult--bad  .sigresult__head { background: var(--err-bg); color: var(--err); }
.sigresult--bad  .sigresult__icon { background: var(--err); color: #fff; }
.sigresult--none .sigresult__head { background: var(--ink-050); color: var(--ink-600); }
.sigresult--none .sigresult__icon { background: var(--ink-300); color: #fff; }
.sigresult__file { padding: .55rem 1.25rem; border-top: 1px solid var(--ink-200); background: #fff; font-size: .82rem; color: var(--ink-500); }

.sigblock { padding: 1.15rem 1.25rem; border-top: 1px solid var(--ink-200); background: #fff; }
.sigblock__title { margin: 0 0 .9rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); }

.sigchecks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sigchecks li { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; line-height: 1.45; }
.sigchecks svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: .12rem; }
.sigchecks strong { display: block; font-weight: 600; }
.sigchecks .is-ok svg   { color: var(--ok); }
.sigchecks .is-bad svg  { color: var(--err); }
.sigchecks .is-warn svg { color: var(--warn); }
.sigchecks .is-info svg { color: var(--info); }
.sigchecks .is-bad strong { color: var(--err); }

.sigmessages { margin: 1rem 0 0; padding: .7rem .9rem .7rem 2rem; background: var(--warn-bg); color: var(--warn); border-radius: 8px; font-size: .85rem; }
.sigmessages li + li { margin-top: .3rem; }

.siginline { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 8px; font-size: .88rem; }
.siginline svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: .1rem; }
.siginline strong { display: block; }
.siginline--ok   { background: var(--ok-bg); color: var(--ok); }
.siginline--bad  { background: var(--err-bg); color: var(--err); }
.siginline--info { background: var(--info-bg); color: var(--info); }
.siginline a { color: inherit; text-decoration: underline; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--ink-200); border-radius: 10px; padding: 1rem 1.15rem; box-shadow: var(--sh-1); }
.stat__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); margin-bottom: .3rem; }
.stat__value { font-size: 1.55rem; color: var(--bev-blue); }
.nowrap { white-space: nowrap; }
.panel__note--error { border-bottom-color: #f3cfcc; background: #fdeceb; color: #8c2019; }
.panel__note--error svg { color: #b3261e; }
.panel__note--error strong { color: #7a1c16; }
.hintlist { margin: 0; padding-left: 1.25rem; color: var(--ink-600); font-size: .9rem; line-height: 1.6; }
.hintlist li + li { margin-top: .5rem; }
.hintlist strong { color: var(--ink-800); }

/* Mehrfachauswahl als Ankreuzliste */
.checklist { border: 1px solid var(--ink-200); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.checklist__search {
    width: 100%; border: 0; border-bottom: 1px solid var(--ink-200); border-radius: 0;
    padding: .6rem .8rem; font-size: .88rem;
}
.checklist__search:focus { outline: none; background: var(--ink-050); }
.checklist__items { max-height: 260px; overflow-y: auto; padding: .35rem; }
.checklist__item {
    display: flex; align-items: flex-start; gap: .6rem; padding: .4rem .55rem;
    border-radius: var(--radius-sm); font-size: .9rem; cursor: pointer; margin: 0;
}
.checklist__item:hover { background: var(--ink-050); }
.checklist__item input { margin-top: .18rem; flex-shrink: 0; }
.checklist__item.is-hidden { display: none; }
.cell-sub { display: block; color: var(--ink-500); font-size: .78rem; margin-top: .1rem; }

/* Netzwerk-Spalte in der Social-Media-Liste */
.platformcell { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.platformcell svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Beitragskacheln in der Abrufpruefung – dieselbe Darstellung wie im Frontend */
.socialposts { display: grid; gap: 1rem; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.socialposts--2 { --cols: 2; }
.socialposts--3 { --cols: 3; }
.socialposts--4 { --cols: 4; }
.socialpost {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line, #e2e6ee); border-radius: 10px; background: #fff;
}
.socialpost__link { position: absolute; inset: 0; z-index: 2; }
.socialpost__media { position: relative; aspect-ratio: 16 / 9; background: #f0f2f7; }
.socialpost__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.socialpost__play {
    position: absolute; inset: 0; margin: auto; width: 48px; height: 48px;
    border-radius: 999px; background: rgba(0, 0, 0, .6);
}
.socialpost__play::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
    border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff;
}
.socialpost__body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem .95rem 1rem; }
.socialpost__body strong { font-size: .95rem; line-height: 1.35; }
.socialpost__body p { margin: 0; font-size: .85rem; line-height: 1.5; }
.socialpost__source { display: flex; align-items: center; gap: .4rem; font-size: .76rem; }
.socialpost__source svg { width: 14px; height: 14px; flex-shrink: 0; }
.socialpost__source time { margin-left: auto; white-space: nowrap; }
