Files
surveybox/surveybox/web/static/css/app.css
T
marco.morath 94466378c7
CI / audit (push) Skipped
CI / checks (push) Successful in 4m13s
CI / image (push) Successful in 1m16s
fix:Umfrageergebnisse und Archivierung
2026-11-26 15:19:43 +01:00

617 lines
31 KiB
CSS

/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* Grundgestaltung. Farben als Variablen; die Gestaltung der Instanz
(Einstellungen > Gestaltung) überschreibt sie mit /branding/theme.css.
Keine externen Schriften. */
:root {
--sb-primary: #1f5fae;
--sb-accent: var(--sb-primary); /* Markierungen: Balken, Sterne, Auswahl */
--sb-bg: #f6f7f9;
--sb-surface: #ffffff;
--sb-text: #1c1e21;
--sb-muted: #5b6270;
--sb-border: #dfe2e7;
--sb-ok: #1d7a3a;
--sb-error: #b3261e;
--sb-radius: 10px;
--sb-content: 1040px;
--sb-label: 15rem; /* Spalte der Beschriftungen in Eingabeformularen */
--sb-gutter: 24px;
--sb-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
:root {
--sb-primary: #7fb0f0;
--sb-bg: #121417;
--sb-surface: #1b1e23;
--sb-text: #e8eaed;
--sb-muted: #a3a9b4;
--sb-border: #2c3138;
--sb-ok: #6fcf8f;
--sb-error: #f2948d;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: var(--sb-font);
font-size: 16px;
line-height: 1.5;
color: var(--sb-text);
background: var(--sb-bg);
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
/* Logo und Sprachen stehen bündig mit dem Inhalt darunter */
padding: 12px max(16px, calc((100% - var(--sb-content)) / 2 + 16px));
background: var(--sb-surface);
border-bottom: 1px solid var(--sb-border);
}
.brand {
display: inline-flex; align-items: center; gap: 10px;
font-weight: 650; font-size: 1.125rem; color: var(--sb-text); text-decoration: none;
}
.brand-logo { display: block; width: 32px; height: 32px; }
.brand-logo.custom { width: auto; height: auto; max-height: 40px; max-width: 220px; }
.mainnav {
display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end;
gap: 4px 16px; margin-left: auto; font-size: 0.9375rem;
}
.mainnav a, .mainnav button { white-space: nowrap; }
.mainnav a { color: var(--sb-text); text-decoration: none; }
.mainnav a:hover, .mainnav a:focus-visible { color: var(--sb-primary); text-decoration: underline; }
form.inline { display: inline; margin: 0; }
.languages {
display: flex; gap: 2px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
padding-left: 16px; border-left: 1px solid var(--sb-border);
}
.lang { padding: 2px 6px; border-radius: 6px; }
.lang abbr { text-decoration: none; }
.lang.active { background: var(--sb-bg); }
.lang { color: var(--sb-muted); text-decoration: none; }
.lang:hover, .lang:focus-visible { color: var(--sb-primary); text-decoration: underline; }
.lang.active { color: var(--sb-text); font-weight: 600; }
.content { max-width: var(--sb-content); margin: 32px auto; padding: 0 16px; }
/* Seiten nur mit schmalen Karten (Anmeldung, Konto löschen …): Überschrift und
Karten gemeinsam schmal und mittig, damit alles auf einer Kante steht. */
.content:has(.card.narrow):not(:has(.card:not(.narrow))) { max-width: 720px; --sb-label: 12rem; }
.card {
background: var(--sb-surface);
border: 1px solid var(--sb-border);
border-radius: var(--sb-radius);
padding: 24px;
}
h1 { font-size: 1.5rem; margin: 0 0 16px; }
h2 { font-size: 1.125rem; margin: 0 0 12px; }
.card + .card { margin-top: 16px; }
.card.narrow { max-width: none; }
.headline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Formulare */
.form { display: grid; gap: 8px; margin: 0 0 16px; }
.form label { font-weight: 600; font-size: 0.9375rem; margin-top: 8px; }
.form label.check { font-weight: 400; display: flex; align-items: center; gap: 8px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], select {
font: inherit;
padding: 8px 12px;
border: 1px solid var(--sb-border);
border-radius: 8px;
background: var(--sb-bg);
color: var(--sb-text);
width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
outline: 2px solid var(--sb-primary);
outline-offset: 2px;
}
.readonly { margin: 0; color: var(--sb-muted); }
.hint { color: var(--sb-muted); font-size: 0.875rem; margin: 0; }
button, .button {
display: inline-block;
font: inherit;
font-weight: 600;
padding: 8px 16px;
border-radius: 8px;
border: 1px solid var(--sb-primary);
background: var(--sb-primary);
color: var(--sb-surface);
cursor: pointer;
text-decoration: none;
justify-self: start;
margin-top: 8px;
}
button.secondary, .button.secondary { background: transparent; color: var(--sb-primary); }
button.danger, .button.danger { background: transparent; color: var(--sb-error); border-color: var(--sb-error); }
button.link {
background: none; border: 0; padding: 0; margin: 0;
color: var(--sb-text); font-weight: 400;
}
button.link:hover { color: var(--sb-primary); text-decoration: underline; }
.search { display: flex; gap: 8px; margin: 0 0 16px; }
.search button { margin-top: 0; white-space: nowrap; }
.search input, .search select { flex: 1; min-width: 0; }
/* Meldungen */
.alert { padding: 12px 16px; border-radius: 8px; border: 1px solid; margin: 0 0 16px; }
.alert.ok { border-color: var(--sb-ok); color: var(--sb-ok); }
.alert.error { border-color: var(--sb-error); color: var(--sb-error); }
/* Tabellen */
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--sb-border); vertical-align: top; }
.table th { color: var(--sb-muted); font-weight: 600; }
.badge {
display: inline-block; font-size: 0.75rem; padding: 2px 8px;
border-radius: 999px; border: 1px solid var(--sb-border); color: var(--sb-muted);
}
.badge.ok { color: var(--sb-ok); border-color: var(--sb-ok); }
.badge.muted { opacity: 0.7; }
.pager { display: flex; justify-content: space-between; margin-top: 16px; }
/* Zweiter Faktor */
.steps { padding-left: 20px; }
.qr { background: #fff; padding: 12px; border-radius: 8px; width: max-content; margin: 8px 0; }
.qr svg { display: block; }
.secret code, .link-box code {
font-size: 0.9375rem; word-break: break-all; padding: 8px; display: block;
background: var(--sb-bg); border-radius: 8px;
}
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 24px; }
.codes code { font-size: 1rem; }
.visually-hidden {
position: absolute; width: 1px; height: 1px; overflow: hidden;
clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 640px) {
.topbar { flex-wrap: wrap; }
.mainnav { margin-left: 0; }
.table { font-size: 0.875rem; }
}
.status { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 16px 0 0; }
.status dt { color: var(--sb-muted); }
.status dd { margin: 0; }
.ok { color: var(--sb-ok); }
.error { color: var(--sb-error); }
.footer { text-align: center; color: var(--sb-muted); font-size: 0.8125rem; padding: 24px; }
.footer p { margin: 0 0 4px; }
.footer a { color: var(--sb-muted); }
.footer.compact { padding: 8px; }
.footer-text { white-space: pre-line; }
.welcome { white-space: pre-line; }
/* Phase 2b: Passkeys, Gruppen */
h3 { font-size: 1rem; margin: 24px 0 8px; }
.divider { text-align: center; color: var(--sb-muted); margin: 16px 0 8px; }
details summary { cursor: pointer; color: var(--sb-primary); }
details[open] summary { margin-bottom: 8px; }
.inline-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-actions form { margin: 0; }
.inline-actions button { margin-top: 0; }
textarea {
font: inherit; padding: 8px 12px; border: 1px solid var(--sb-border);
border-radius: 8px; background: var(--sb-bg); color: var(--sb-text); width: 100%;
}
[hidden] { display: none !important; }
/* Phase 3: Formulare */
.status-open { color: var(--sb-ok); border-color: var(--sb-ok); }
.status-closed { opacity: 0.75; }
.status-archived { opacity: 0.6; border-style: dashed; }
.alert.info { border-color: var(--sb-accent); color: var(--sb-text); }
.link-inline { word-break: break-all; }
.question-list { list-style: none; padding: 0; margin: 0 0 16px; }
.question-item {
display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
padding: 12px 0; border-bottom: 1px solid var(--sb-border);
}
.question-item.structural .question-label { font-weight: 600; }
.question-main .badge { margin-right: 4px; }
.question-label { margin-top: 4px; white-space: pre-line; }
.options-editor { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.options-editor legend { font-weight: 600; margin-bottom: 4px; }
.checklist { display: grid; gap: 4px; max-height: 420px; overflow: auto; }
.answers dt { font-weight: 600; margin-top: 12px; }
.answers dd { margin: 4px 0 0; white-space: pre-line; }
.form-links { padding-left: 20px; }
.fill .form-description { white-space: pre-line; margin-bottom: 16px; }
.fill-form { gap: 20px; }
.fill-form .question { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.fill-form .question > label, .fill-form legend { font-weight: 600; font-size: 1rem; }
.fill-form legend { padding: 0; margin-bottom: 6px; }
.fill-form .question.has-error input, .fill-form .question.has-error select,
.fill-form .question.has-error textarea { border-color: var(--sb-error); }
.field-error { color: var(--sb-error); font-size: 0.875rem; margin: 0; }
.req { color: var(--sb-error); }
.choices { display: grid; gap: 6px; }
.choices.inline { display: flex; gap: 24px; flex-wrap: wrap; }
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit input { max-width: 240px; }
.ranking { display: grid; gap: 6px; }
.rank-row { display: flex; align-items: center; gap: 12px; }
.rank-row select { width: auto; }
.rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rating-point { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.875rem; }
.q-heading { margin: 8px 0 0; }
.q-info { white-space: pre-line; color: var(--sb-muted); }
.q-break { border: 0; border-top: 2px solid var(--sb-border); margin: 8px 0; width: 100%; }
.privacy-notice { border-top: 1px solid var(--sb-border); padding-top: 12px; }
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="number"], input[type="tel"] {
font: inherit; padding: 8px 12px; border: 1px solid var(--sb-border); border-radius: 8px;
background: var(--sb-bg); color: var(--sb-text); max-width: 320px;
}
/* Phase 3b: Medien, Bildauswahl, Uploads, Designer, Vorschau */
.q-media { margin: 4px 0 -8px; }
.q-media img, .q-media video { max-width: 100%; height: auto; border-radius: var(--sb-radius); display: block; }
.q-media video { width: 100%; background: #000; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery.single { display: block; }
.gallery img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery.single img { aspect-ratio: auto; max-height: 70vh; width: auto; }
.embed {
border: 1px dashed var(--sb-border); border-radius: var(--sb-radius); padding: 16px;
aspect-ratio: 16 / 9; display: grid; align-content: center; gap: 8px; text-align: center;
}
.embed .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }
.embed-frame { width: 100%; height: 100%; border: 0; border-radius: var(--sb-radius); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile {
position: relative; display: grid; gap: 6px; padding: 8px; cursor: pointer;
border: 2px solid var(--sb-border); border-radius: var(--sb-radius); background: var(--sb-surface);
}
.tile input { position: absolute; top: 12px; left: 12px; width: 20px; height: 20px; }
.tile img, .tile-blank { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--sb-bg); }
.tile-label { font-weight: 600; }
.tile:has(input:checked) { border-color: var(--sb-accent); box-shadow: 0 0 0 2px var(--sb-accent); }
.tile:has(input:focus-visible) { outline: 3px solid var(--sb-primary); outline-offset: 2px; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.option-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--sb-border); }
.option-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.media-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.media-item { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: start; }
.media-item img { border-radius: 6px; width: 160px; height: auto; }
.media-video { width: 100%; max-height: 360px; background: #000; border-radius: var(--sb-radius); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-check { display: flex; gap: 8px; align-items: center; }
.template-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.template-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.drag-handle {
cursor: grab; border: 0; background: none; color: var(--sb-muted); font-size: 1.25rem;
padding: 0 4px; line-height: 1;
}
.drag-handle:focus-visible { outline: 3px solid var(--sb-primary); }
.question-item.dragging { opacity: 0.5; }
.question-item { align-items: center; }
.question-item .question-main { flex: 1; }
.device-switch { display: flex; gap: 6px; }
.device-switch [aria-pressed="true"] { border-color: var(--sb-primary); color: var(--sb-primary); }
.preview-stage { display: flex; justify-content: center; padding: 16px; background: var(--sb-bg); border-radius: var(--sb-radius); }
.preview-frame { border: 1px solid var(--sb-border); border-radius: 16px; background: var(--sb-surface); height: 75vh; width: 100%; }
.preview-stage[data-device="phone"] .preview-frame { width: 390px; max-width: 100%; }
.preview-stage[data-device="tablet"] .preview-frame { width: 820px; max-width: 100%; }
body.framed .content { padding-top: 16px; }
@media (max-width: 560px) {
.media-item { grid-template-columns: 1fr; }
.tiles { grid-template-columns: repeat(2, 1fr); }
}
.embed.embed-open { border: 0; padding: 0; display: block; }
.embed.embed-open video { width: 100%; height: 100%; border-radius: var(--sb-radius); background: #000; }
.source-row { border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 8px 12px; display: grid; gap: 6px; }
.condition-summary { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--sb-accent); font-size: 0.875rem; }
.condition-summary ul { margin: 2px 0 0; padding-left: 18px; }
.condition-summary.broken { border-left-color: var(--sb-error); }
.page-nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.page-progress { color: var(--sb-muted); font-size: 0.875rem; }
.fill-page + .fill-page { border-top: 2px solid var(--sb-border); padding-top: 16px; }
.fill-page.paged + .fill-page.paged { border-top: 0; padding-top: 0; }
.fill-section, .fill-page { display: grid; gap: 20px; }
.rule-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--sb-border); }
@media (min-width: 720px) { .rule-row { grid-template-columns: 2fr 1.3fr 1.5fr; align-items: end; } }
.tree-cell.depth-1 { padding-left: 28px; }
.tree-cell.depth-2 { padding-left: 48px; }
.tree-cell.depth-3 { padding-left: 68px; }
.tree-cell.depth-4 { padding-left: 88px; }
.tree-cell.depth-5 { padding-left: 108px; }
.tree-cell.depth-6 { padding-left: 128px; }
.tree-mark { color: var(--sb-muted); margin-right: 4px; }
.summary-item { padding: 8px 0; border-bottom: 1px solid var(--sb-border); }
.summary-item h3, .summary-item h2 { margin: 0 0 6px; font-size: 1rem; }
.summary-bars .slot-names { display: block; margin: 2px 0 0; font-weight: normal; }
.summary-bars { border-collapse: collapse; width: 100%; max-width: 640px; }
.summary-bars th { text-align: left; font-weight: normal; padding: 2px 12px 2px 0; width: 40%; }
.summary-bars td { padding: 2px 0; }
.summary-bars progress { width: 100%; min-width: 120px; height: 14px; accent-color: var(--sb-accent); }
.summary-bars td:not(.num) { width: 50%; }
.summary-bars .num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.date-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 0.8fr); gap: 8px 12px; padding: 6px 0; border-bottom: 1px solid var(--sb-border); }
.date-row label, .option-row .capacity { display: grid; gap: 2px; font-size: 0.875rem; }
/* Termin-Zeilen: Felder füllen ihre Spalte, damit nichts überlappt; Hinweis über die ganze Breite */
.date-row label { min-width: 0; }
.date-row input { width: 100%; min-width: 0; max-width: none; }
.date-row .date-note { grid-column: 1 / -1; }
@media (max-width: 480px) {
.date-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.date-row .date-day { grid-column: 1 / -1; }
}
.option-row .capacity input { max-width: 120px; }
.slot { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.slot-state { color: var(--sb-muted); font-size: 0.875rem; margin-left: auto; }
.slot.full .slot-state { color: var(--sb-error); }
.poll { display: grid; gap: 0; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); }
.poll-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--sb-border); }
.poll-row:last-child { border-bottom: 0; }
.poll-row.confirmed { background: color-mix(in srgb, var(--sb-ok) 10%, transparent); }
.poll-option { font-weight: 600; }
.poll-votes { display: flex; gap: 6px; }
.poll-vote { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--sb-border); border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 0.875rem; }
.poll-vote:has(input:checked).vote-yes { border-color: var(--sb-ok); color: var(--sb-ok); }
.poll-vote:has(input:checked).vote-no { border-color: var(--sb-error); color: var(--sb-error); }
.poll-vote:has(input:checked).vote-maybe { border-color: var(--sb-primary); color: var(--sb-primary); }
.poll-vote:has(input:focus-visible) { outline: 3px solid var(--sb-primary); outline-offset: 2px; }
.poll-propose { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-top: 8px; }
.poll-propose label { display: grid; gap: 2px; }
.poll-result { border-collapse: collapse; width: 100%; }
.poll-result th, .poll-result td { padding: 6px 8px; border-bottom: 1px solid var(--sb-border); text-align: left; }
.poll-result td.num, .poll-result th.num { text-align: right; font-variant-numeric: tabular-nums; }
.poll-result tr.best td { font-weight: 700; }
.poll-result tr.best td:first-child::before { content: "★ "; color: var(--sb-accent); }
.comment { padding: 10px 0; border-bottom: 1px solid var(--sb-border); }
.comment header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comment-body { white-space: pre-line; overflow-wrap: anywhere; margin-top: 4px; }
.comment.pending { opacity: 0.8; }
.comment-own summary { cursor: pointer; color: var(--sb-primary); font-size: 0.875rem; margin-top: 4px; }
/* Fragengruppen */
.question-item.group-head { border-bottom-style: dashed; }
.question-item.group-member {
margin-left: 28px; padding-left: 12px;
border-left: 3px solid var(--sb-primary);
}
.question-item.group-member.group-last { margin-bottom: 8px; }
.group-info { margin-top: 2px; }
.table-wrap { overflow-x: auto; }
.group-table { width: 100%; border-collapse: collapse; }
.group-table th, .group-table td {
padding: 8px 10px; border-bottom: 1px solid var(--sb-border); text-align: left; vertical-align: middle;
}
.group-table thead th { font-weight: 600; font-size: 0.875rem; color: var(--sb-muted); }
.group-table tbody th { font-weight: 400; }
.group-table .pick { text-align: center; width: 1%; white-space: nowrap; }
.group-table .pick input { width: 1.25rem; height: 1.25rem; margin: 0; }
.group-table .row-help, .group-table .field-error { display: block; }
.group-table .scale-label { display: block; font-weight: 400; font-size: 0.75rem; }
.group-table td.slot-state { color: var(--sb-muted); font-size: 0.875rem; }
.group-table .state, .group-table td.slot-state { width: 1%; white-space: nowrap; text-align: right; }
.group-table tr.full td.slot-state { color: var(--sb-error); }
.group-table tr.has-error th { color: var(--sb-error); }
.row-hidden { display: none; }
/* Folge-Mails */
.mail-preview { border: 1px solid var(--sb-border); border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.mail-preview pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; margin: 0; }
/* --------------------------------------------------------------------------
Raster für Eingabeformulare (Phase 8)
Breite Fenster: Beschriftung links in fester Spalte, Felder rechts, alle Felder
gleich breit und rechtsbündig mit dem Kartenrand. Hinweise, Kontrollkästchen
und Knöpfe beginnen an derselben Kante wie die Felder. Das Ausfüllformular für
Teilnehmende bleibt einspaltig.
-------------------------------------------------------------------------- */
input[type="file"] {
font: inherit; font-size: 0.9375rem; padding: 6px 8px; width: 100%;
border: 1px dashed var(--sb-border); border-radius: 8px; background: var(--sb-bg); color: var(--sb-text);
}
input[type="file"]::file-selector-button {
font: inherit; font-weight: 600; margin-right: 12px; padding: 4px 12px; cursor: pointer;
border: 1px solid var(--sb-primary); border-radius: 6px; background: transparent; color: var(--sb-primary);
}
.form label.check input { margin: 0; flex: none; width: 1rem; height: 1rem; }
.form label.check { align-items: flex-start; line-height: 1.4; }
.form label.check input { margin-top: 0.15em; }
/* Alle Felder eines Eingabeformulars gleich breit (auch Zahl, Datum, Datei) */
:is(.form:not(.fill-form):not(.stacked), .form > .card, .form:not(.fill-form) .options-editor) > :is(
input:not([type="checkbox"]):not([type="radio"]), select, textarea
) { width: 100%; max-width: none; }
@media (max-width: 759px) {
.mainnav { justify-content: flex-start; margin-left: 0; }
.languages { border-left: 0; padding-left: 0; }
.card { padding: 16px; }
}
@media (min-width: 760px) {
.form:not(.fill-form):not(.stacked):not(:has(> .card)),
.form > .card,
.form .options-editor {
display: grid;
grid-template-columns: minmax(0, var(--sb-label)) minmax(0, 1fr);
column-gap: var(--sb-gutter);
row-gap: 10px;
align-items: start;
}
/* Standard: über die ganze Breite (Überschriften, Meldungen, Abschnitte) */
:is(.form:not(.fill-form):not(.stacked):not(:has(> .card)), .form > .card) > * { grid-column: 1 / -1; }
:is(.form:not(.fill-form):not(.stacked):not(:has(> .card)), .form > .card) > label:not(.check) {
grid-column: 1; margin: 0; padding-top: 9px; overflow-wrap: anywhere;
}
:is(.form:not(.fill-form):not(.stacked):not(:has(> .card)), .form > .card) > :is(
input, select, textarea, .hint, .field-error, label.check, button, .button,
.inline-actions, .actions, .with-unit, .readonly, .checklist, .link-box, .secret,
.color-field
) { grid-column: 2; }
/* Gruppen von Optionen: Titel in der Beschriftungsspalte, Optionen rechts */
.form .options-editor { grid-column: 1 / -1; row-gap: 6px; margin: 4px 0 0; }
.form .options-editor > legend {
float: left; grid-column: 1; grid-row: 1; margin: 0; padding: 0;
font-weight: 600; font-size: 0.9375rem; overflow-wrap: anywhere;
}
.form .options-editor > :not(legend) { grid-column: 2; }
.form .options-editor > label:not(.check) { margin: 0; }
/* Zwischenüberschriften stehen in der Beschriftungsspalte, ihr Hinweis daneben */
:is(.form:not(.fill-form):not(.stacked):not(:has(> .card)), .form > .card) > h3 {
grid-column: 1; margin: 12px 0 0; padding-top: 0;
}
:is(.form:not(.fill-form):not(.stacked):not(:has(> .card)), .form > .card) > h3 + :is(.hint, label.check) {
margin-top: 12px;
}
:is(.form:not(.fill-form):not(.stacked):not(:has(> .card)), .form > .card) > .source-row { grid-column: 2; }
:is(.form:not(.fill-form):not(.stacked):not(:has(> .card)), .form > .card) > .readonly { padding-top: 9px; }
.form > .card > h2 { margin-bottom: 4px; }
}
/* Gleiche Abstände um Karten in einem Formular und darunter liegende Knöpfe */
.form:has(> .card) { gap: 16px; }
.form:has(> .card) > button { justify-self: start; }
/* Tabellen: Zahlen rechtsbündig, Kopf gleich hoch */
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table thead th { white-space: nowrap; }
/* Logo in den Einstellungen */
.logo-preview { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; min-height: 64px; }
.logo-preview img { max-height: 64px; max-width: 320px; height: auto; }
.logo-preview .logo-preview-icon { width: 32px; height: 32px; border: 1px solid var(--sb-border); border-radius: 6px; }
/* Teilnehmer-Name: Vor- und Nachname nebeneinander, E-Mail darunter */
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.name-grid label { display: grid; gap: 4px; font-weight: 400; font-size: 0.9375rem; }
.name-grid .name-email { grid-column: 1 / -1; }
@media (max-width: 480px) { .name-grid { grid-template-columns: 1fr; } }
/* Wer sich schon eingetragen hat */
.slot-names { flex-basis: 100%; margin: 0 0 0 1.75rem; font-size: 0.875rem; color: var(--sb-muted); }
.slot-names .waiting { font-style: italic; }
.group-table .slot-names { display: block; margin: 2px 0 0; }
.names-notice { font-size: 0.875rem; }
/* Auswertung */
.pager-inline { display: flex; gap: 16px; font-size: 0.9375rem; white-space: nowrap; }
.text-answers { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 2px; }
.text-answers li { white-space: pre-line; overflow-wrap: anywhere; }
.slot-lists th[scope="row"] { font-weight: 600; white-space: nowrap; }
.slot-lists td { overflow-wrap: anywhere; }
.overview-table { font-size: 0.875rem; }
.overview-table th { white-space: nowrap; vertical-align: bottom; }
.overview-table td { max-width: 28ch; overflow-wrap: anywhere; }
.overview-table tr.pending td { color: var(--sb-muted); }
.overview-table tbody tr:hover td { background: var(--sb-bg); }
/* Vermerke zu Änderungen durch Verwalter */
.notes { list-style: none; margin: 0 0 12px; padding: 0; }
.notes li { border-left: 3px solid var(--sb-border, #d0d7de); padding: 4px 0 4px 12px; margin-bottom: 10px; }
.notes .hint { margin: 0; }
.note-body { white-space: pre-line; overflow-wrap: anywhere; margin: 4px 0 0; }
/* Einstellungen > Gestaltung */
.color-field { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .color-field input[type="color"] { width: 3.5rem; height: 2.25rem; padding: 2px; flex: none; }
.color-field label.check { margin: 0; font-weight: 400; }
.form textarea.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.875rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.swatches li { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--sb-muted); }
.swatch { width: 1.25rem; height: 1.25rem; border-radius: 4px; border: 1px solid var(--sb-border); }
.swatch-primary { background: var(--sb-primary); }
.swatch-accent { background: var(--sb-accent); }
.swatch-bg { background: var(--sb-bg); }
.swatch-surface { background: var(--sb-surface); }
.swatch-text { background: var(--sb-text); }
.swatch-muted { background: var(--sb-muted); }
.logo-preview .dark-sample { background: #1b1e23; padding: 8px; border-radius: 6px; }
.alert.warn { border-color: #9a5b00; color: var(--sb-text); }
@media (prefers-color-scheme: dark) { .alert.warn { border-color: #e0a54a; } }
/* E-Mail-Vorlagen */
.tabs { display: flex; gap: 4px; margin: 0 0 16px; flex-wrap: wrap; }
.tabs .tab { padding: 6px 14px; border: 1px solid var(--sb-border); border-radius: 8px; color: var(--sb-text); text-decoration: none; }
.tabs .tab.active { border-color: var(--sb-primary); color: var(--sb-primary); font-weight: 600; }
.placeholders { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.placeholders dt { margin: 0; }
.placeholders dd { margin: 0; color: var(--sb-muted); }
.mail-preview-text { white-space: pre-wrap; word-break: break-word; font-family: inherit; margin: 0; padding: 12px; border: 1px solid var(--sb-border); border-radius: 8px; background: var(--sb-bg); }
/* Kompakte Darstellung im Rahmen (Nextcloud "External sites", ?embed=1) */
.topbar.compact { padding-top: 6px; padding-bottom: 6px; font-size: 0.875rem; }
.topbar.compact .mainnav { margin-left: 0; justify-content: flex-start; font-size: 0.875rem; gap: 2px 12px; }
.open-tab { color: var(--sb-muted); font-size: 0.8125rem; white-space: nowrap; }
body.compact .content { margin-top: 16px; margin-bottom: 16px; }
body.compact .card { padding: 16px 20px; }
/* Verlauf und Überbuchung */
.badge.warn { color: var(--sb-error); border-color: var(--sb-error); }
.history-group { margin: 0 0 16px; }
.history-group h3 { margin: 16px 0 8px; font-size: 1rem; }
.history-item { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--sb-border); }
.history-item .hint { margin: 2px 0 0; }
.history-values { display: grid; grid-template-columns: max-content 1fr; gap: 2px 8px; font-size: 0.875rem; margin-top: 4px; }
.history-values dt { color: var(--sb-muted); }
.history-values dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Hilfe, Impressum und Datenschutzerklärung (gerendertes Markdown) */
.help-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 16px; align-items: start; }
.help-layout .card + .card { margin-top: 0; }
.help-nav { position: sticky; top: 16px; }
.help-nav h2 { font-size: 1rem; }
.help-nav ul { list-style: none; margin: 0; padding: 0; }
.help-nav li { margin: 0 0 6px; }
.help-nav a[aria-current="page"] { font-weight: 600; text-decoration: none; }
@media (max-width: 759px) {
.help-layout { grid-template-columns: 1fr; }
.help-nav { position: static; }
}
.doc { line-height: 1.6; overflow-wrap: break-word; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 12px; padding-top: 8px; border-top: 1px solid var(--sb-border); }
.doc h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.doc h4 { font-size: 1rem; margin: 16px 0 8px; }
.doc h2, .doc h3, .doc h4 { scroll-margin-top: 16px; }
.doc p, .doc ul, .doc ol, .doc pre, .doc blockquote, .doc .table-wrap { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 1.5rem; }
.doc li { margin: 0 0 4px; }
.doc li > ul, .doc li > ol { margin: 4px 0 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em;
background: var(--sb-bg); border: 1px solid var(--sb-border); border-radius: 4px; padding: 0 4px; }
.doc pre { background: var(--sb-bg); border: 1px solid var(--sb-border); border-radius: 8px; padding: 12px; overflow-x: auto; line-height: 1.45; }
.doc pre code { background: none; border: 0; padding: 0; font-size: 0.8125rem; }
.doc blockquote { border-left: 4px solid var(--sb-border); padding: 4px 0 4px 16px; color: var(--sb-muted); }
.doc .table { font-size: 0.875rem; }
.doc-toc { border: 1px solid var(--sb-border); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.doc-toc-title { font-weight: 600; margin: 0 0 4px; }
.doc-toc ul { columns: 2 16rem; margin: 0; padding-left: 1.25rem; }
.legal { max-width: 48rem; margin: 0 auto; }
.legal h2 { border-top: 0; padding-top: 0; margin-top: 24px; }
/* Archiv in der Formularliste */
.inline-heading { display: inline; margin: 0; }
.poll-result .poll-names td { padding-top: 0; font-size: 0.8125rem; color: var(--sb-muted); }
.poll-result .poll-names span + span::before { content: " · "; }