:root {
    --color-background: #ECECDB;
    --color-surface: #F7F7EB;
    --color-text: #565656;
    --color-accent: #f9a52b;
    --color-header: #4a4a4a;
    --color-header-border: #2b2b2b;
    --color-footer: #4a4a4a;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Ubuntu', 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background: var(--color-background);
    color: var(--color-text);
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-header);
    border-bottom: 4px solid var(--color-header-border);
}

.site-header__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    max-width: 40vw;
}

.brand__logo img {
    width: 100%;
    height: auto;
}

.menu-toggle__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.menu-toggle {
    margin-left: auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    cursor: pointer;
    color: #ececec;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
    display: block;
    width: 26px;
    height: 3px;
    background: currentColor;
    border-radius: 3px;
    content: "";
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle__icon::before {
    transform: translateY(-7px);
}

.menu-toggle__icon::after {
    transform: translateY(5px);
}

.menu-toggle__checkbox:checked + .menu-toggle .menu-toggle__icon {
    background: transparent;
}

.menu-toggle__checkbox:checked + .menu-toggle .menu-toggle__icon::before {
    transform: rotate(45deg);
}

.menu-toggle__checkbox:checked + .menu-toggle .menu-toggle__icon::after {
    transform: rotate(-45deg);
}

.site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    width: min(240px, calc(100% - 2rem));
    background: var(--color-header);
    border: 1px solid var(--color-header-border);
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    display: block;
    padding: 0.6rem 1rem;
    color: #f2f2f2;
    text-decoration: none;
    text-align: left;
    font-size: 1rem;
}

.site-nav li.active a,
.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle__checkbox:checked ~ .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-main {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    padding: 2rem 0 5rem;
}

.page-shell {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content {
    text-align: left;
    background: var(--color-surface);
    padding: 2rem;
    margin: 0 auto;
}

.content h1 {
    text-align: center;
    color: var(--color-accent);
    font-size: 2rem;
    margin-top: 0;
}

.content h2 {
    color: var(--color-accent);
    font-size: 1.4rem;
}

.content blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #C9D6E3;
    background: #E6EEF7;
}

.content cite {
    display: block;
    font-size: 0.85rem;
    text-align: right;
}

.content p.listenkopf {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.content p.listenkopf + ul,
.content ul.listenkopf {
    margin-top: 0;
    padding-left: 1.2rem;
}

.table-wrapper {
    overflow-x: auto;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.content th,
.content td {
    border: 1px solid #cfcfc4;
    padding: 0.6rem;
    text-align: left;
}

.content th {
    background: #efefe2;
}

.content form {
    max-width: 420px;
    margin: 0 auto;
}

.content input[type="text"],
.content input[type="password"],
.content button,
.content input[type="submit"] {
    width: 100%;
    padding: 0.6rem;
    margin: 0.3rem 0 0.8rem;
    border: 1px solid #bcbcb0;
    background: #fff;
    color: inherit;
}

.content button,
.content input[type="submit"] {
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    border: none;
}

.flash {
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: #e1f2f5;
    color: #1d4d5c;
}

.flash-error {
    background: #f7d9d8;
    color: #7a1f1a;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-footer);
    color: #e1e1e1;
    font-size: 0.75rem;
    padding: 0.25rem 0;
    border-top: 3px solid #2b2b2b;
}

.site-footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-footer p {
    margin: 0;
}

@media (min-width: 768px) {
    body {
        font-size: 1.05rem;
    }

    .content {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .content {
        padding: 3rem 3.5rem;
    }
}
