:root {
    --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 5px;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --accent: #1f5fbf;
        --ground: #ffffff;
        --text: #1c2430;
    }
}
:root[data-theme="light"] {
        --accent: #1f5fbf;
        --ground: #ffffff;
        --text: #1c2430;
}
.edit-page { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent, #1f5fbf) !important; color: #fff !important; box-shadow: 0 .25rem .9rem rgb(0 0 0 / .25); text-decoration: none; }
.edit-page:hover, .edit-page:focus-visible { filter: brightness(1.15); color: #fff !important; }
.edit-page svg { width: 1.15rem; height: 1.15rem; }
/* Editing a page in place (administrators, ?edit=1). The tools work without scripts. */
.inline-bar { margin: 0 0 1.25rem; padding: .75rem 1rem; border: 2px dashed var(--accent); border-radius: .6rem; background: var(--surface); display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.inline-bar p { margin: 0; }
.inline-add { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.inline-add select { width: auto; }
.inline-tools { margin: 1rem 0 .5rem; padding: .75rem 1rem; border: 1px dashed var(--accent); border-radius: .5rem; background: var(--surface); font-size: .9rem; }
.inline-tools.is-hidden-block { opacity: .6; }
.inline-tools p { margin: 0 0 .4rem; }
.inline-name .badge { margin-left: .4rem; }
.inline-steps { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .5rem; }
.inline-steps button { min-width: 2.4rem; }
.inline-edit summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.inline-edit-form { display: grid; gap: .6rem; margin-top: .6rem; }
.inline-edit-form .field { display: grid; gap: .25rem; }
.inline-edit-form input, .inline-edit-form textarea, .inline-edit-form select { width: 100%; }

/* "Text und Einstellungen bearbeiten" as a dialog, built by inline-edit.js - without it, the
   details element above still unfolds in place, so the page works without scripts either way. */
.inline-edit-dialog { width: min(34rem, 100% - 2rem); max-height: min(80vh, 100% - 2rem); padding: 1.25rem; border: 0; border-radius: var(--radius); background: var(--ground); color: var(--text); box-shadow: var(--shadow); }
.inline-edit-dialog::backdrop { background: rgb(0 0 0 / .5); }
.inline-edit-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.inline-edit-dialog-head p { margin: 0; font-weight: 600; }
.inline-edit-dialog-close { width: 2rem; height: 2rem; padding: 0; border: 0; background: none; color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.inline-edit-dialog-close:hover, .inline-edit-dialog-close:focus-visible { color: var(--accent); }
.inline-edit-dialog .inline-edit-form { max-height: calc(80vh - 5rem); overflow-y: auto; }

/* The text editor of the in-place editing (editor.js). */
.editor { border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.editor-bar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border-bottom: 1px solid var(--line); background: var(--bg); border-radius: 6px 6px 0 0; }
.editor-button { padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--text); font-size: .8rem; cursor: pointer; }
.editor-button:hover, .editor-button[aria-pressed="true"] { border-color: var(--primary); color: var(--link); }
.editor-bold { font-weight: 700; }
.editor-italic { font-style: italic; }
.editor-area { min-height: 16rem; max-height: 40rem; overflow-y: auto; padding: .75rem 1rem; color: var(--text); line-height: 1.6; }
.editor-area:focus { outline: 2px solid var(--primary); outline-offset: -2px; }
.editor-area blockquote { margin: .5rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.editor textarea { display: none; }
.editor.editor-source .editor-area { display: none; }
.editor.editor-source textarea { display: block; width: 100%; min-height: 16rem; border: 0; border-radius: 0 0 6px 6px; font-family: ui-monospace, monospace; font-size: .85rem; }
/* Texts on the spot, the "+" between blocks, the status line. */
.inline-editable { border-radius: .2rem; cursor: text; }
.inline-editable:hover, .inline-editable:focus-visible { outline: 1px dashed var(--accent); outline-offset: .3rem; }
/* White with a dark halo, not the accent colour: a home block may have a
   background of its own (see HomeLayout's background feature) in any
   colour, including one the accent itself would disappear against. */
.inline-editable:hover::after { content: " ✎"; color: #fff; text-shadow: 0 0 2px #000, 0 0 4px #000; font-size: .6em; vertical-align: middle; }
.inline-editable.is-editing { outline: 2px solid var(--accent); background: var(--surface); }
.inline-block { position: relative; }
.inline-off { margin: .5rem 0; color: var(--muted); font-size: .9rem; }
.inline-plus { margin: .75rem 0; text-align: center; }
.inline-plus summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px dashed var(--accent); color: var(--accent); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.inline-plus summary::-webkit-details-marker { display: none; }
.inline-plus[open] summary { background: var(--accent); color: #fff; border-style: solid; }
.inline-plus-form { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .5rem; }
.inline-plus-form button { padding: .35rem .8rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--ground); color: var(--accent); font: inherit; cursor: pointer; }
.inline-plus-form button:hover { background: var(--accent); color: #fff; }
.inline-status { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); margin: 0; padding: .5rem 1rem; border-radius: .5rem; background: var(--ground); box-shadow: var(--shadow); z-index: 50; }
.inline-status.is-error { color: var(--error); }
.inline-status:empty { display: none; }
/* The toolbar of a rich text, and the line with the name and the steps of a block. */
.inline-wysiwyg { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .4rem; padding: .3rem; border: 1px solid var(--accent); border-radius: .4rem; background: var(--ground); }
.inline-wysiwyg button { min-width: 2rem; padding: .25rem .5rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.inline-wysiwyg button:hover { border-color: var(--accent); color: var(--accent); }
.inline-wysiwyg .inline-wysiwyg-bold { font-weight: 700; }
.inline-wysiwyg .inline-wysiwyg-italic { font-style: italic; }
.inline-wysiwyg-color { width: 2rem; height: 1.9rem; padding: 2px; border: 1px solid var(--line); border-radius: .3rem; background: var(--surface); cursor: pointer; }
.inline-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; }
.inline-head p { margin: 0; }
.inline-grip { cursor: grab; color: var(--muted, #888); font-size: 1.1em; user-select: none; touch-action: none; }
.inline-block.is-dragging { opacity: .5; }
.inline-steps { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.inline-steps button { padding: .2rem .55rem; font-size: .8rem; }
.inline-tools { padding: .5rem .75rem; }
.inline-tools .inline-edit { margin-top: .4rem; }
.inline-widget { margin-top: .4rem; }
.inline-widget summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; }
.inline-widget-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .4rem; }
.inline-widget-form input { min-width: 14rem; }
.inline-widget-choice { font-style: italic; }.impersonation { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .5rem 1rem; background: #f0a500; color: #1c1600; font-weight: 600; }
.impersonation .inline-form { margin: 0; }.text-font-system { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.text-font-serif { font-family: Georgia, "Times New Roman", serif; }
.text-font-humanist { font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif; }
.text-font-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.text-size-sm { font-size: .85em; }
.text-size-md { font-size: 1em; }
.text-size-lg { font-size: 1.25em; }
.text-size-xl { font-size: 1.6em; }
[data-home-block="hero"] {
    background-image: url(/media/library/8721075e473ce8618cf9790f7dda0c38.webp); background-size: cover; background-position: center;
}
[data-home-block="hero"], [data-home-block="hero"] *:not(.button):not(input):not(select):not(textarea) {
    color: #c42121 !important;
}
[data-home-block="hero"] { position: relative; }
[data-home-block="hero"]::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 4vw; min-height: 1.5rem; max-height: 3.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 Q720,120 1440,0 L1440,120 L0,120 Z'/%3E%3C/svg%3E"); background-size: 100% 100%; background-repeat: no-repeat; opacity: 1; pointer-events: none; bottom: -1px; z-index: 1;
}
