/*!
 * FotoCloud – Stylesheet
 * Copyright (c) 2026 Kevin Dieter Wachter. Alle Rechte vorbehalten.
 */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --text: #1f2430;
  --muted: #6b7180;
  --border: #e6e1d8;
  --accent: #1f5fbf;
  --accent-hover: #174a96;
  --accent-soft: #e7effb;
  --sun: #f59e0b;
  --sun-soft: #fef3dc;
  --ok: #1d7a46;   --ok-bg: #e2f4e9;
  --warn: #9a5b00; --warn-bg: #fdf0d9;
  --err: #b42323;  --err-bg: #fbe5e5;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .05), 0 2px 8px rgba(40, 30, 10, .05);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b; --surface: #1c1f26; --surface-2: #20242c; --text: #e8e9ec; --muted: #9aa0ab; --border: #2e333d;
    --accent: #77a3ff; --accent-hover: #98baff; --accent-soft: #1f2b45; --sun-soft: #3a2c12;
    --ok: #5fd08e; --ok-bg: #173325; --warn: #f0b354; --warn-bg: #3a2c12; --err: #ff8a8a; --err-bg: #3c1a1a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.65rem; line-height: 1.25; margin: 0 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 1rem 0 .25rem; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.c { text-align: center; }
.ok-text { color: var(--ok); font-weight: 700; }
.warn-text { color: var(--warn); font-weight: 600; }
.err-text, .danger-text { color: var(--err); font-weight: 600; }
[hidden] { display: none !important; }

/* --- Kopf -------------------------------------------------------------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { height: 58px; width: auto; display: block; }
@media (max-width: 520px) { .brand img { height: 44px; } }
@media (prefers-color-scheme: dark) { .brand img { background: #fff; border-radius: 8px; padding: 3px 6px; } }
.hero-banner { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 1.5rem; }
.login-page .hero-banner { max-width: 1100px; margin: 0 auto 1.5rem; }
.mainnav { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.mainnav a { color: var(--text); padding: .4rem .7rem; border-radius: 8px; font-weight: 500; }
.mainnav a:hover { background: var(--accent-soft); text-decoration: none; }
.mainnav a.active { background: var(--accent-soft); color: var(--accent); }
.who { display: flex; flex-direction: column; line-height: 1.15; font-size: .85rem; padding: 0 .6rem; border-left: 1px solid var(--border); margin-left: .5rem; }
.who small { color: var(--muted); font-size: .72rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 1.2rem; padding: .2rem .6rem; color: var(--text); cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; }
  .nav-open .mainnav { display: flex; }
  .who { border: 0; margin: .5rem 0; padding: .4rem .7rem; }
  .mainnav form { padding: .4rem .7rem; }
}

.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 1.5rem 1rem 3rem; flex: 1; }
.site-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.25rem 1rem 1.75rem; }
.site-footer a { color: var(--muted); }
.site-footer .sep { margin: 0 .35rem; opacity: .6; }

/* --- Bausteine --------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem; }
.card.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.card.highlight { border-color: var(--sun); background: linear-gradient(var(--sun-soft), var(--surface) 70%); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card-head h2, .card-head h1 { margin: 0; }
.card-head p { margin: .25rem 0 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: .15rem 0 0; }
.page-head p { margin: .25rem 0 0; }
.page-head-side { min-width: 260px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.cols > .card { margin-bottom: 0; }
.cols + * { margin-top: 1.25rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 9px;
  padding: .55rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger { background: var(--surface); color: var(--err); border-color: var(--border); }
.btn-danger:hover { background: var(--err-bg); }
.btn-small { padding: .32rem .65rem; font-size: .85rem; font-weight: 500; }
.btn-large { padding: .8rem 1.6rem; font-size: 1.05rem; margin-top: .5rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.linklike { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.linklike:hover { color: var(--text); }
.linklike.accent { color: var(--accent); font-weight: 600; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }

label { display: block; margin-bottom: .9rem; font-weight: 500; font-size: .92rem; }
label > input, label > select, label > textarea { margin-top: .3rem; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 9px; padding: .55rem .7rem; width: 100%; max-width: 100%;
}
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input:disabled { opacity: .5; }
textarea { resize: vertical; }
label.check, label.radio { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
label.check input, label.radio input { margin-top: .25rem; flex: none; width: 1.05rem; height: 1.05rem; }
.is-disabled { opacity: .45; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.inline { display: inline; margin: 0; }
.inline-form { display: flex; gap: .4rem; margin-top: .5rem; }
.inline-form input { width: auto; flex: 1; min-width: 160px; }
.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.filter-row select, .filter-row input { width: auto; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 1rem 0; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { font-family: var(--mono); font-size: .85rem; }

.alert { border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-err { background: var(--err-bg); color: var(--err); }

.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .12rem .5rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; white-space: nowrap; }
.badge-accent { background: var(--sun-soft); color: var(--warn); }
.badge-muted { background: var(--border); color: var(--muted); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
h1 .badge { font-size: .8rem; }

.table-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid var(--border); }
.table td { padding: .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; }
.table .actions > * { margin-left: .25rem; }
.row-muted td { opacity: .6; }
.row-warn td { background: var(--warn-bg); }
.yn { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-weight: 700; font-size: .8rem; }
.yn.y { background: var(--ok-bg); color: var(--ok); }
.yn.n { background: var(--err-bg); color: var(--err); opacity: .75; }

.checks { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.checks td { padding: .3rem .4rem; vertical-align: top; border-bottom: 1px solid var(--border); }
.checks td:first-child { width: 1.5rem; text-align: center; }

/* --- Speicheranzeige ----------------------------------------------------- */
.usage { min-width: 180px; }
.usage-track { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin: .3rem 0 .2rem; }
.usage-fill { height: 100%; background: var(--accent); border-radius: 99px; }
.usage.warn .usage-fill { background: var(--sun); }
.usage.err .usage-fill { background: var(--err); }
.usage-text { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.stats { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.stats .card { margin: 0; }
.stat-num { font-size: 2rem; font-weight: 700; line-height: 1.1; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stat-wide { grid-column: 1 / -1; } }

/* --- Anmeldung ----------------------------------------------------------- */
.login-wrap { max-width: 400px; margin: 0 auto; }
.login-card { padding: 2rem; text-align: center; }
.login-card form { text-align: left; margin-top: 1.25rem; }
.login-card h1 { margin-bottom: .1rem; }
.login-secondary { padding: 1.25rem 1.5rem; }
.login-secondary h2 { margin-bottom: .25rem; }
.login-secondary .btn-row { justify-content: center; }

/* --- Galerie ------------------------------------------------------------- */
.albums { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: flex-start; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: .9rem; cursor: pointer; list-style: none; }
.chip::-webkit-details-marker { display: none; }
.chip span { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.active span { color: rgba(255,255,255,.8); }
.chip-trash { margin-left: auto; }
.chip-add { position: relative; }
.chip-add summary { border-style: dashed; color: var(--accent); }
.popover { position: absolute; z-index: 10; top: calc(100% + .4rem); left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: .6rem; display: flex; gap: .4rem; width: 300px; }
.album-tools { display: flex; gap: 1.25rem; align-items: center; margin: -.4rem 0 1rem; flex-wrap: wrap; }

.dropzone { border: 2px dashed var(--border); background: var(--surface-2); box-shadow: none; transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dz-inner { display: flex; align-items: center; gap: 1rem; }
.dz-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sun-soft); color: var(--warn); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.upload-list { list-style: none; margin: 0; padding: 0; }
.upload-list:not(:empty) { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .75rem; }
.upload-list li { display: grid; grid-template-columns: 1fr 140px 120px; gap: .75rem; align-items: center; font-size: .88rem; padding: .2rem 0; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.up-ok .up-bar span { background: var(--ok); }
.up-ok .up-state { color: var(--ok); }
.up-err .up-state { color: var(--err); font-weight: 600; }
.up-err { grid-template-columns: 1fr auto !important; }
.up-err .up-bar { display: none; }
@media (max-width: 600px) { .upload-list li { grid-template-columns: 1fr 80px; } .up-state { grid-column: 1 / -1; } }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; position: sticky; top: 56px; z-index: 5; background: var(--bg); padding: .4rem 0; }
.toolbar-left, .toolbar-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.move-wrap { display: inline-flex; gap: .3rem; }
.move-wrap select { width: auto; padding: .3rem .5rem; font-size: .85rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 3px; } }
.tile { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--border); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.tile:hover img { transform: scale(1.03); }
.tile-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 2rem; color: var(--muted); padding: .5rem; text-align: center; }
.tile-ph small { font-size: .7rem; margin-top: .3rem; word-break: break-all; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.tile-badge { position: absolute; left: .4rem; bottom: .4rem; background: rgba(0,0,0,.6); color: #fff; border-radius: 99px; font-size: .7rem; padding: .1rem .45rem; }
.tile-check { position: absolute; top: .45rem; left: .45rem; z-index: 2; width: 1.3rem !important; height: 1.3rem; display: none; }
.grid.selecting .tile { cursor: pointer; }
.grid.selecting .tile-check { display: block; }
.tile.checked { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.checked img { opacity: .8; }

.pager { display: flex; gap: .3rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.pager a { padding: .3rem .7rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.pager a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Vollbild */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,14,.94); display: flex; align-items: center; justify-content: center; }
.lb-open { overflow: hidden; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .75rem 1rem; color: #fff; z-index: 2; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.lb-meta { display: flex; flex-direction: column; min-width: 0; }
.lb-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-meta small { opacity: .7; }
.lb-actions { display: flex; gap: .5rem; align-items: center; }
.lb-close { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0 .4rem; }
.lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 4rem 3.5rem 1.5rem; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-note { color: #fff; opacity: .8; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 2.2rem; width: 3rem; height: 4rem; border-radius: 10px; cursor: pointer; z-index: 2; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
@media (max-width: 600px) { .lb-stage { padding: 4rem 0 1rem; } .lb-nav { display: none; } }

/* --- Zugänge ------------------------------------------------------------- */
.accounts { display: grid; gap: .75rem; }
.account { border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1rem; background: var(--surface-2); }
.account-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; }
.account-head strong { margin-left: .4rem; }
.account-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }
.account-actions details[open] { flex-basis: 100%; }
.inline-details { display: inline-block; }
.danger-zone { border-color: color-mix(in srgb, var(--err) 30%, var(--border)); }

.credentials .cred-slip { border: 1.5px dashed var(--border); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; break-inside: avoid; }
.cred-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: .5rem; margin-bottom: .5rem; }
.cred-slip dl { display: grid; grid-template-columns: 130px 1fr; gap: .3rem 1rem; margin: 0 0 .5rem; }
.cred-slip dt { color: var(--muted); font-size: .88rem; }
.cred-slip dd { margin: 0; }
.cred-slip .big { font-size: 1.15rem; font-weight: 700; }

/* --- Einwilligung -------------------------------------------------------- */
.form-shell { max-width: 760px; margin: 0 auto; }
.eyebrow { color: var(--warn); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .3rem; }
.lead { font-size: 1.02rem; color: var(--text); }
.step { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--sun-soft); color: var(--warn); font-size: .9rem; margin-right: .4rem; }
.opt-list { display: grid; gap: .6rem; }
.opt { display: flex; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; margin: 0; font-weight: 400; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { margin-top: .2rem; width: 1.2rem; height: 1.2rem; flex: none; }
.opt-body { display: flex; flex-direction: column; gap: .15rem; }
.opt-body span { color: var(--muted); font-size: .88rem; }
.decl { padding-left: 1.2rem; font-size: .9rem; }
.decl li { margin-bottom: .4rem; }
.info-details { border: 1px solid var(--border); border-radius: 10px; padding: .6rem 1rem; margin: 1rem 0; background: var(--surface-2); font-size: .9rem; }
.info-details summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.info-details p { margin: .2rem 0 .6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label.place { max-width: 320px; }
.p2mode { border: 1px solid var(--border); border-radius: 10px; padding: .75rem 1rem .25rem; margin: 1.25rem 0; }
.p2mode legend { font-weight: 600; padding: 0 .3rem; }
.p2mode label { margin-bottom: .6rem; }

.sig-block { margin: 1rem 0; }
.sig-label { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.sigpad { position: relative; height: 170px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: #1a2a5a; touch-action: none; }
.sigpad::after { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 38px; border-bottom: 1px solid #c9c4ba; pointer-events: none; }
.sigpad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; z-index: 1; }
.sig-clear { position: absolute; top: .4rem; right: .4rem; z-index: 2; background: #fff; border: 1px solid #ddd; border-radius: 7px; font-size: .78rem; padding: .2rem .55rem; cursor: pointer; color: #555; }
.sig-hint { position: absolute; left: 1.25rem; bottom: 12px; font-size: .78rem; color: #999; pointer-events: none; }
.sigpad.signed .sig-hint { display: none; }

.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.success-mark.pending { background: var(--warn-bg); color: var(--warn); }
.opt-summary { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; }
.opt-summary li { display: flex; gap: .6rem; align-items: center; }
.opt-summary li span { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; font-size: .78rem; font-weight: 700; }
.opt-summary li.yes span { background: var(--ok-bg); color: var(--ok); }
.opt-summary li.no { color: var(--muted); }
.opt-summary li.no span { background: var(--err-bg); color: var(--err); opacity: .7; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: .3rem 1rem; margin: 0 0 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.sig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sig-row > div { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .4rem; color: #1a2a5a; }
.sig-row small { display: block; color: #777; font-size: .75rem; }
.sig { width: 100%; height: 80px; display: block; }
.sig-missing { height: 80px; display: grid; place-items: center; color: var(--warn); }
.history { padding-left: 1.2rem; margin: 0; font-size: .88rem; color: var(--muted); }
.consent-table th.c { text-transform: none; }
.changelog h1 { font-size: 1.4rem; }
.changelog h2 { margin-top: 1.5rem; }
.copyable { user-select: all; word-break: break-all; }

/* --- Druck --------------------------------------------------------------- */
@media print {
  .topbar, .site-footer, .no-print, .alert { display: none !important; }
  body { background: #fff; color: #000; }
  .container { padding: 0; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .credentials .cred-slip { border-color: #999; }
}
.dropzone .dz-inner label { display: inline; margin: 0; font-size: inherit; }
.popover { max-width: calc(100vw - 2rem); }
.checks td { overflow-wrap: anywhere; }
