/* Methodology is BEM */
/* Comments above declarations say why the declaration is there. */
/* Selectors are written like this: blockBlock_elementElement-modifierModifier . */
/* Custom properties are written like this: --customProperty . */
/* Declarations are sorted by the property name alphabetically with -- before - before letter. */
/* Declaration blocks are sorted by the name of the class of the target element alphabetically. */

@font-face {
    font-display: block;
    font-family: Inter;
    font-style: normal;
    font-weight: 400;
    src: url("font/Inter-Regular.woff2") format("woff2");
}

@font-face {
    font-display: block;
    font-family: Inter;
    font-style: italic;
    font-weight: 400;
    src: url("font/Inter-Italic.woff2") format("woff2");
}

@font-face {
    font-display: block;
    font-family: Inter;
    font-style: normal;
    font-weight: 600;
    src: url("font/Inter-SemiBold.woff2") format("woff2");
}

@font-face {
    font-display: block;
    font-family: Inter;
    font-style: italic;
    font-weight: 600;
    src: url("font/Inter-SemiBoldItalic.woff2") format("woff2");
}

@font-face {
    font-display: block;
    font-family: Inter Display;
    font-style: normal;
    font-weight: 600;
    src: url("font/InterDisplay-SemiBold.woff2") format("woff2");
}

@font-face {
    font-display: block;
    font-family: JetBrains Mono;
    font-style: normal;
    font-weight: 400;
    src: url("font/JetBrainsMono-Regular.woff2") format("woff2");
}

/* ########################################################################## */
/* Custom property */
/* ######################################################################### */

:root {
    /* base font size */
    --bfs: 16px;

    /* font color */
    --fc: hsl(0, 0%, 5%);

    /* golden ratio */
    --gr: calc((1 + sqrt(5)) / 2);

    /* horizontal spacing */
    --hs: 16px;

    /* input border color */
    --ibc: hsl(0, 0%, 80%);

    /* max width */
    --mw: calc(36 * var(--hs));

    /* type scale */
    --ts: 1.25;

    /* vertical spacing */
    --vs: 24px;

}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    background-color: transparent;
    border: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    text-size-adjust: 100%;
}

:focus-visible {
    outline: 2px solid var(--ibc);
    outline-offset: 2px;
}

.article {
    margin: 0 auto;
    max-width: var(--mw);
    padding: calc(2.5 * var(--vs)) var(--hs) calc(8 * var(--vs));
}

.article > :last-child {
    margin-bottom: 0;
}

.article a {
    border-radius: 2px;
    text-decoration: underline;
}

.article blockquote {
    display: none;
}

.article em {
    font-style: italic;
}

.article > h1 {
    font-size: calc(var(--bfs) * pow(var(--ts), 2));
    font-weight: 600;
    line-height: calc(var(--vs) * pow(var(--ts), 2));
    margin: 0 0 var(--vs);
}

.article > h2 {
    font-size: calc(var(--bfs) * var(--ts));
    font-weight: 600;
    line-height: calc(var(--vs) * var(--ts));
    margin: calc(2 * var(--vs)) 0 var(--vs);
}

.article hr {
    display: none;
}

.article > ul > li {
    list-style: "• ";
    margin: calc(0.5 * var(--vs)) 0 calc(0.5 * var(--vs)) calc(2 * var(--hs));
}

.article > ul > li > li {
    display: none;
}

.article > p {
    margin: var(--vs) 0 var(--vs);
}

.article > p > img {
    display: block;
    margin: calc(1.5 * var(--vs)) 0 calc(1.5 * var(--vs));
    max-height: calc(pow(var(--gr), -1) * round(down, 100svh, var(--vs)));
    max-width: 100%;
}

.article > pre {
    background: hsl(0, 0%, 96%);
    border-radius: calc(0.25 * var(--vs));
    font-family: monospace;
    font-size: calc(14 / 16 * var(--bfs));
    margin: calc(1.5 * var(--vs)) 0;
    overflow-y: scroll;
    padding: calc(0.5 * var(--vs)) calc(1 * var(--hs));
}

.article > strong {
    font-weight: 700;
}

.article > ul {
    margin: var(--vs) 0;
}

.article > ol {
    counter-reset: olCounter;
    margin: var(--vs) 0;
}

.article > ol > li {
    counter-increment: olCounter;
    list-style: none;
    margin: calc(0.5 * var(--vs)) 0 calc(0.5 * var(--vs)) calc(2 * var(--hs));
    position: relative;
}

.article > ol > li::before {
    content: counter(olCounter) ".\00a0";
    position: absolute;
    right: 100%;
}

.article > ol > li > li {
    display: none;
}

.article strong {
    font-weight: 600;
}

.article-hidden {
    display: none;
}

.body {
    color: var(--fc);
    font-family: Inter, sans-serif;
    font-size: var(--bfs);
    line-height: var(--vs);
    scrollbar-gutter: stable;
}

.body:has(dialog[open]) {
    overflow: hidden;
}

.button {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
}

.button:hover {
    background: hsl(0, 0%, 90%);
    cursor: pointer;
}

.button-imageUpload {
    margin: calc(0.5 * var(--vs)) 0 0;
}

.console {
    margin: 0 auto;
    max-width: var(--mw);
    padding: calc(2.5 * var(--vs)) var(--hs) calc(8 * var(--vs));
}

.console > a {
    border-radius: 2px;
    text-decoration: underline;
}

.console-hidden {
    display: none
}

.console > h1 {
    font-size: calc(var(--bfs) * pow(var(--ts), 2));
    font-weight: 600;
    line-height: calc(var(--vs) * pow(var(--ts), 2));
    margin: 0 0 var(--vs);
}

.console > h2 {
    font-size: calc(var(--bfs) * var(--ts));
    font-weight: 600;
    line-height: calc(var(--vs) * var(--ts));
    margin: calc(2 * var(--vs)) 0 var(--vs);
}

.console > p {
    margin: var(--vs) 0 var(--vs);
}

.console_image {
    margin: var(--vs) 0 0;
}

.console_imageA {
    border-radius: 2px;
    text-decoration: underline;
}

.consoleHeader_a {
    border-radius: 2px;
    text-decoration: underline;
}

.consoleHeader_mainBar {
    align-items: center;
    border-bottom: 1px solid hsl(0, 0%, 80%);
    box-sizing: border-box;
    display: flex;
    height: calc(3 * var(--vs));
    justify-content: space-between;
    padding: 0 clamp(var(--hs), (100% - var(--mw)) / 2, calc(1.5 * var(--hs))) 0 clamp(var(--hs), (100% - var(--mw)) / 2, calc(1.5 * var(--hs)));
}

.consoleHeader_navButton {
    border-radius: calc(0.25 * var(--vs));
    box-sizing: content-box;
    display: block;
    height: 18px;
    margin: 0 -7px 0 0;
    padding: 7px;
    width: 18px;
}

@media (hover: hover) {
    .consoleHeader_navButton:hover {
        background: hsl(0, 0%, 95%);
        cursor: pointer;
    }
}

.consoleHeader_navIcon {
    display: block;
    height: 14px;
    pointer-events: none;
    width: 18px;
}

.consoleHeader_title {
    font-weight: 600;
}

.consoleNav {
    background: hsl(0, 0%, 100%);
    display: none;
    position: absolute;
    top: calc(3 * var(--vs));
    width: 100%;
}

.consoleNav-open {
    display: block;
}

.consoleNav_a {
    border-radius: 2px;
    text-decoration: underline;
}

.consoleNav_li {
    margin: calc(0.5 * var(--vs)) 0 0;
}

.consoleNav_li-logOut {
    margin: calc(2 * var(--vs)) 0 0;
}

.consoleNav_ul {
    list-style-type: none;
    margin: 0 auto;
    max-width: var(--mw);
    padding: calc(2.5 * var(--vs)) var(--hs) calc(8 * var(--vs));
}

.createPage_button {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: var(--vs) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
}

.createPage_button:hover {
    background: hsl(0, 0%, 90%);
    cursor: pointer;
}

.createPage_formMessage {
    margin: var(--vs) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;
    
    @starting-style {
        opacity: 0;
    }
}

.createPage_input {
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: calc(0.25 * var(--vs)) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
    width: calc(100% - 2 * 0.5 * var(--hs) - 2 * 1px);
}

.createPage_inputMessage {
    margin: calc(0.25 * var(--vs)) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;
    
    @starting-style {
        opacity: 0;
    }
}

.createPage_label {
    display: block;
    margin: var(--vs) 0 0;
    width: fit-content;
}

.deletePage_button {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: var(--vs) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
}

.deletePage_button:hover {
    background: hsl(0, 0%, 90%);
    cursor: pointer;
}

.deletePage_formMessage {
    margin: var(--vs) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;
    
    @starting-style {
        opacity: 0;
    }
}

.deletePage_input {
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: calc(0.25 * var(--vs)) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
    width: calc(100% - 2 * 0.5 * var(--hs) - 2 * 1px);
}

.deletePage_inputMessage {
    margin: calc(0.25 * var(--vs)) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;
    
    @starting-style {
        opacity: 0;
    }
}

.deletePage_label {
    display: block;
    margin: var(--vs) 0 0;
    width: fit-content;
}

.dialog {
    background: hsl(0, 0%, 100%);
    border-radius: calc(0.25 * var(--vs));
    left: 50%;
    max-width: calc(16 * var(--hs));
    padding: calc(1 * var(--vs)) var(--hs);
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 4 * var(--hs));
}

.dialog::backdrop {
    background: hsla(0, 0%, 0%, calc(pow(var(--gr), -1)));
    /* backdrop-filter: blur(2px); */
}

.dialog_action {
    display: flex;
    gap: calc(0.5 * var(--hs));
    justify-content: flex-end;
    margin: var(--vs) 0 0;
}

.dialog_image {
    display: block;
    margin: var(--vs) 0 0;
    max-height: calc(3 * var(--vs));
    max-width: calc(3 * var(--vs));
}

.editPage_button {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: var(--vs) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
}

.editPage_button:hover {
    background: hsl(0, 0%, 90%);
    cursor: pointer;
}

.editPage_formMessage {
    margin: var(--vs) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;
    
    @starting-style {
        opacity: 0;
    }
}

.editPage_textarea {
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    display: block;
    height: calc(10 * var(--vs));
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
    resize: vertical;
    width: calc(100% - 2 * 0.5 * var(--hs) - 2 * 1px);
}

.editPage_textareaMessage {
    margin: calc(0.25 * var(--vs)) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;
    
    @starting-style {
        opacity: 0;
    }
}

.file_formMessage {
    margin: var(--vs) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;
    
    @starting-style {
        opacity: 0;
    }
}

.file_input {
    display: none;
}

.file_label {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    cursor: pointer;
    display: inline-block;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
}

.file_label:hover {
    background: hsl(0, 0%, 90%);
}

.fileList {
}

.fileList_fileActionMenu {
    background-color: hsl(0, 0%, 100%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    display: none;
    flex-direction: column;
    gap: calc(0.25 * var(--vs));
    /* button width + distance */
    left: calc(32px + 0.5 * var(--hs));
    padding: calc(0.25 * var(--vs));
    position: absolute;
    top: 0;
    z-index: 10;
}

.fileList_fileActionMenu-open {
    display: flex;
}

.fileList_fileActionMenuButton {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
    width: fit-content;
}

.fileList_fileActionMenuButton:hover {
    background: hsl(0, 0%, 90%);
    cursor: pointer;
}

.fileList_file {
    margin: calc(2 * var(--vs)) 0 0;
}

.fileList_fileAction {
    display: block;
    position: relative;
}

.fileList_fileActionButton {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    padding: 6px;
}

@media (hover: hover) {
    .fileList_fileActionButton:hover {
        background: hsl(0, 0%, 90%);
        cursor: pointer;
    }
}

.fileList_fileActionIcon {
    display: block;
    height: 18px;
    pointer-events: none;
    width: 18px;
}

.fileList_fileA {
    border-radius: 2px;
    display: block;
    margin: calc(0.5 * var(--vs)) 0 0;
    max-width: 100%;
    overflow: scroll;
    padding: 0 0 calc(0.5 * var(--vs));
    text-decoration: underline;
    width: fit-content;
}

.fileList_filePreview {
    display: block;
    height: calc(3 * var(--vs));
    object-fit: contain;
    object-position: left bottom;
    width: calc(3 * var(--vs));
}

.fileList_deleteDialog {
    background-color: hsl(0, 0%, 100%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: auto;
    max-width: calc(16 * var(--hs));
    padding: calc(0.5 * var(--vs)) var(--hs);
}

.fileList_deleteDialog::backdrop {
    background-color: hsla(0, 0%, 0%, 10%);
}

.header {
    align-items: center;
    border-bottom: 1px solid hsl(0, 0%, 80%);
    box-sizing: border-box;
    display: flex;
    height: calc(3 * var(--vs));
    justify-content: space-between;
    padding: 0 clamp(var(--hs), (100% - var(--mw)) / 2, calc(1.5 * var(--hs))) 0 clamp(var(--hs), (100% - var(--mw)) / 2, calc(1.5 * var(--hs)));
    background-color: hsl(0, 0%, 100%);
}

.header_logo {
    display: block;
    pointer-events: none;
}

.header_logo-selbstheilraum {
    height: calc(pow(var(--gr), 1) * var(--vs));
    width: calc(pow(var(--gr), 1) * var(--vs));
}

.header_logoA-selbstheilraum {
    color: hsl(0, 0%, 00%);
    font-family: Inter, sans-serif;
    font-size: calc(var(--bfs) * pow(var(--ts), 1));
    font-size: calc(var(--bfs) * var(--gr));
    font-size: calc(var(--bfs) * pow(var(--ts), 2));
    font-size: var(--bfs);
    font-weight: 400;
    line-height: 1;
}

.header_navButton {
    border-radius: calc(0.25 * var(--vs));
    box-sizing: content-box;
    display: block;
    height: 18px;
    margin: 0 -7px 0 0;
    padding: 7px;
    width: 18px;
}

@media (hover: hover) {
    .header_navButton:hover {
        background: hsl(0, 0%, 95%);
        cursor: pointer;
    }
}

.header_navIcon {
    display: block;
    height: 14px;
    pointer-events: none;
    width: 18px;
    color: hsl(0, 0%, 100%);
}

.image_button {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: var(--vs) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
}

.image_button:hover {
    background: hsl(0, 0%, 90%);
    cursor: pointer;
}

.image_delete {
    margin: calc(0.5 * var(--vs)) 0 0;
}

.image_fileName {
    margin: calc(0.5 * var(--vs)) 0 0;
}

.image_form {
    margin: var(--vs) 0 0;
}

.image_image {
    margin: calc(2.5 * var(--vs)) 0 0;
}

.image_img {
    display: block;
    max-height: calc(3 * var(--vs));
    max-width: calc(3 * var(--vs));
}

.image_input {
    width: 100%;
}

.image_input::file-selector-button {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    height: calc(var(--vs) + 2 * 0.125 * var(--vs) + 2 * 1px);
    padding: 0 calc(0.5 * var(--hs));
}

.image_input::file-selector-button:hover {
    background: hsl(0, 0%, 90%);
    cursor: pointer;
}

.inputText {
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: calc(1.5 * var(--vs)) 0 0;
    padding: calc(0.25 * var(--vs)) calc(0.5 * var(--hs));
    resize: vertical;
    width: calc(100% - 2 * 0.5 * var(--hs) - 2 * 1px -  2 * var(--hs));
}

.login_button {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: var(--vs) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
}

.login_button:hover {
    background: hsl(0, 0%, 90%);
    cursor: pointer;
}

.login_input {
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: calc(0.25 * var(--vs)) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
    resize: vertical;
    width: calc(100% - 2 * 0.5 * var(--hs) - 2 * 1px);
}

.login_label {
    display: block;
    margin: var(--vs) 0 0;
    width: fit-content;
}

.login_message {
    margin: calc(0.25 * var(--vs)) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;

    @starting-style {
        opacity: 0;
    }
}

.loginHeader {
    align-items: center;
    border-bottom: 1px solid hsl(0, 0%, 80%);
    box-sizing: border-box;
    display: flex;
    height: calc(3 * var(--vs));
    justify-content: space-between;
    padding: 0 calc(1.5 * var(--hs)) 0 clamp(var(--hs), (100% - var(--mw)) / 2, calc(1.5 * var(--hs)));
}

.loginHeader_title {
    font-weight: 600;
}

.nav {
    background: hsl(0, 0%, 100%);
    display: none;
    position: absolute;
    top: calc(3 * var(--vs));
    width: 100%;
}

.nav-open {
    display: block;
}

.nav_a {
    border-radius: 2px;
    text-decoration: underline;
}

.nav_li {
    margin: calc(0.5 * var(--vs)) 0 0;
}

.nav_li-firstSecondary {
    margin: calc(2 * var(--vs)) 0 0;
}

.nav_ul {
    list-style-type: none;
    margin: 0 auto;
    max-width: var(--mw);
    padding: calc(2.5 * var(--vs)) var(--hs) calc(8 * var(--vs));
}

.orderPage_button {
    background: hsl(0, 0%, 95%);
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    margin: var(--vs) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
}

.orderPage_button:hover {
    background: hsl(0, 0%, 90%);
    cursor: pointer;
}

.orderPage_formMessage {
    margin: var(--vs) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;
    
    @starting-style {
        opacity: 0;
    }
}

.orderPage_label {
    display: block;
    margin: var(--vs) 0 0;
    width: fit-content;
}

.orderPage_textarea {
    border: 1px solid var(--ibc);
    border-radius: calc(0.25 * var(--vs));
    display: block;
    height: calc(5 * var(--vs));
    margin: calc(0.25 * var(--vs)) 0 0;
    padding: calc(0.125 * var(--vs)) calc(0.5 * var(--hs));
    resize: vertical;
    width: calc(100% - 2 * 0.5 * var(--hs) - 2 * 1px);
}

.orderPage_textareaMessage {
    margin: calc(0.25 * var(--vs)) 0 0;
    opacity: 1;
    transition: opacity 1s ease;
    white-space: pre-wrap;

    @starting-style {
        opacity: 0;
    }
}

.page_a {
    border-radius: 2px;
    display: block;
    margin: var(--vs) 0 0;
    text-decoration: underline;
    width: fit-content;
}

.pageList_page {
    border-radius: 2px;
    display: block;
    margin: calc(0.5 * var(--vs)) 0 0;
    text-decoration: underline;
    width: fit-content;
}

.pageList_page-first {
    margin: var(--vs) 0 0;
}