body {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

main {
    max-width: 40rem;
    padding: 1rem;
}

.page-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

label {
    display: block;
}

input,
button {
    min-height: 2.75rem;
    padding: 0.25rem 0.75rem;
    font: inherit;
}

input {
    width: 100%;
    max-width: 24rem;
    box-sizing: border-box;
}

.form-error {
    color: #b00020;
}

/* Eingabeelemente: Grundformatierung ohne Design, Touch-Ziele mindestens 44 px. */
select,
textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 40rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.75rem;
    font: inherit;
}

form > div {
    margin-block-end: 1rem;
}

.ts-wrapper {
    max-width: 40rem;
}

.ts-control {
    min-height: 2.75rem;
    align-items: center;
    font: inherit;
}

.ts-control input {
    min-height: 0;
}

.ts-dropdown .option,
.ts-dropdown .no-results,
.ts-dropdown .create {
    min-height: 2.75rem;
    box-sizing: border-box;
    padding-block: 0.6rem;
}

.ts-wrapper.multi .ts-control > div {
    padding-block: 0.5rem;
}

.rich-text {
    max-width: 40rem;
    border: 1px solid #767676;
    border-radius: 0.25rem;
}

.rich-text:focus-within {
    outline: 2px solid #000080;
    outline-offset: 1px;
}

.rich-text-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.25rem;
    border-block-end: 1px solid #767676;
}

.rich-text-button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    cursor: pointer;
}

.rich-text-button[aria-pressed='true'] {
    color: #fff;
    background: #000080;
}

.rich-text-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.rich-text-content {
    min-height: 8rem;
    padding: 0.5rem 0.75rem;
    outline: none;
}

.rich-text-content p.is-editor-empty:first-child::before {
    float: left;
    height: 0;
    color: #6b6b6b;
    pointer-events: none;
    content: attr(data-placeholder);
}
