@charset "utf-8";

:root {
    color-scheme: light;
    --page-bg: #ccccff;
    --panel-bg: #ffffff;
    --panel-soft: rgba(255, 255, 255, 0.48);
    --accent: #6666aa;
    --accent-dark: #333377;
    --text: #222222;
    --muted: #555555;
    --focus: #7a2600;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
    background-color: var(--page-bg);
    margin: 0;
    padding: 0;
    line-height: 1.65;
    color: var(--text);
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

a:hover {
    text-decoration-thickness: 0.13em;
}

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ffffff;
    color: #000000;
    font-weight: bold;
    transform: translateY(-180%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.wrapper {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navigation */
.navigation {
    width: 250px;
    min-height: 100vh;
    padding: 36px 20px;
    background-color: var(--panel-soft);
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.nav-home {
    display: inline-block;
    border-radius: 8px;
}

.nav_bild {
    width: 118px;
    height: 128px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

.nav-toggle {
    display: none;
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation a:not(.nav-home) {
    display: block;
    min-height: 44px;
    padding: 9px 14px;
    margin-bottom: 5px;
    border-radius: 6px;
    color: #000000;
    text-decoration: none;
}

.navigation a:not(.nav-home):hover,
.navigation a.active {
    background-color: #ffffff;
}

.navigation a.active {
    box-shadow: inset 4px 0 0 var(--accent);
    font-weight: bold;
}

/* Inhalt */
.main-content {
    flex: 1;
    min-width: 0;
    max-width: 1100px;
    padding: 40px;
}

h1 {
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333333;
    color: #111111;
    font-size: clamp(1.85rem, 1.55rem + 1vw, 2.35rem);
    line-height: 1.2;
}

h2 {
    margin-top: 1.5em;
    color: #222222;
    font-size: clamp(1.3rem, 1.16rem + 0.5vw, 1.6rem);
    line-height: 1.3;
}

p {
    margin-top: 0;
    margin-bottom: 15px;
}

.reading-card {
    display: block;
    max-width: 82ch;
    margin: 0 auto 30px;
    padding: 34px 44px;
    border-radius: 10px;
    background: var(--panel-bg);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

.biography-intro,
.publication-highlight,
.table-of-contents,
.related-content {
    border-left: 4px solid #7777bb;
}

.source-note,
.media-meta,
.image-credit,
.file-meta {
    color: var(--muted);
    font-size: 0.95em;
}

.date {
    color: var(--muted);
    font-size: 0.72em;
    font-weight: normal;
}

.toc-title {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: bold;
}

.table-of-contents ol,
.related-content ul {
    margin-bottom: 0;
    padding-left: 1.4em;
}

.table-of-contents li,
.related-content li {
    margin-bottom: 0.45em;
}

.related-content h2,
.publication-highlight h2,
.biography-intro h2,
.pdf-notice h2 {
    margin-top: 0;
}

.pdf-notice {
    margin-top: 30px;
    border-left: 4px solid #888888;
}

.intro-portrait {
    margin: 38px auto 22px;
    text-align: center;
}

.quote-card {
    background: transparent;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 4px;
}

blockquote {
    margin: 0;
    font-style: italic;
}

blockquote footer {
    margin-top: 0.6em;
    padding: 0;
    border: 0;
    text-align: left;
    font-size: 1em;
}

.inline-btn {
    display: inline-block;
}

[id] {
    scroll-margin-top: 24px;
}

/* Medien */
video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
    border-radius: 8px;
    background: #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

img {
    max-width: 100%;
    height: auto;
}

.align-center {
    text-align: center;
}

.img-startseite,
.article-image {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.img-startseite {
    width: 600px;
    max-width: 100%;
}

/* Bücher */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 28px;
    align-items: stretch;
}

.book-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.book-card img {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    object-fit: contain;
}

.book-card h2 {
    margin-top: 0;
    font-size: 1.3em;
}

details {
    margin-bottom: 20px;
}

summary {
    min-height: 44px;
    padding: 8px 2px;
    cursor: pointer;
    color: var(--accent-dark);
    font-weight: bold;
}

summary:hover {
    color: #111144;
}

.book-card p {
    margin-top: 10px;
    color: #444444;
    font-size: 0.98em;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #222222;
    text-align: center;
    text-decoration: none;
    font-size: 0.9em;
}

.btn:hover {
    background: #e0e0e0;
}

.btn-primary {
    flex-basis: 100%;
    background-color: var(--page-bg);
    color: #000000;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #aaaaff;
}

.btn-amazon {
    flex-basis: 100%;
    background-color: #ff9900;
    color: #111111;
    font-weight: bold;
}

.btn-amazon:hover {
    background-color: #e68a00;
}

.archive-section {
    margin-top: 60px;
    padding: 28px;
    border-radius: 10px;
    background: var(--panel-soft);
}

.archive-section > h2 {
    margin-top: 0;
}

.archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
}

.archive-list a {
    display: flex;
    min-height: 54px;
    flex-direction: column;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

.archive-list a:hover {
    background: #eeeeff;
}

.archive-list .file-meta {
    margin-top: 2px;
    font-weight: normal;
}

/* Footer und Anmerkungen */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    text-align: center;
    font-size: 0.9em;
}

.rechts {
    text-align: right;
    font-style: italic;
}

.source-attribution {
    margin-top: 30px;
}

.footnotes {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dddddd;
    color: var(--muted);
    font-size: 0.9em;
}

sup {
    font-size: 0.8em;
}

address {
    font-style: normal;
}

/* Tablet und Mobilgeräte */
@media (max-width: 850px) {
    .wrapper {
        flex-direction: column;
    }

    .navigation {
        z-index: 20;
        top: 0;
        width: 100%;
        min-height: auto;
        max-height: none;
        padding: 10px 16px;
        overflow: visible;
        border-bottom: 1px solid rgba(0, 0, 0, 0.14);
        background: rgba(232, 232, 255, 0.97);
    }

    .nav-header {
        margin-bottom: 0;
    }

    .nav_bild {
        width: 55px;
        height: auto;
    }

    .js .nav-toggle {
        display: inline-flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
        border: 1px solid #777799;
        border-radius: 6px;
        background: #ffffff;
        color: #111111;
        font: inherit;
        font-weight: bold;
        cursor: pointer;
    }

    .nav-toggle-icon {
        font-size: 1.25em;
        line-height: 1;
    }

    .navigation ul {
        display: grid;
        gap: 3px;
        width: 100%;
        max-height: calc(100vh - 86px);
        margin-top: 10px;
        overflow-y: auto;
    }

    .js .navigation:not(.is-open) ul {
        display: none;
    }

    .navigation a:not(.nav-home) {
        margin: 0;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.68);
        text-align: left;
    }

    .main-content {
        width: 100%;
        padding: 24px 18px 36px;
    }

    .reading-card {
        padding: 23px 20px;
    }

    .archive-section {
        margin-top: 38px;
        padding: 20px;
    }

    .intro-portrait {
        margin-top: 24px;
    }
}

@media (max-width: 420px) {
    .main-content {
        padding-right: 12px;
        padding-left: 12px;
    }

    .reading-card,
    .book-card,
    .archive-section {
        padding-right: 16px;
        padding-left: 16px;
        border-radius: 7px;
    }

    .book-card img {
        height: 250px;
    }

    .action-links {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .btn {
        width: 100%;
        flex: none;
    }

    .btn-primary,
    .btn-amazon {
        flex-basis: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .navigation,
    .skip-link,
    video {
        display: none !important;
    }

    .main-content {
        max-width: none;
        padding: 0;
    }

    .reading-card,
    .book-card {
        max-width: none;
        box-shadow: none;
        break-inside: avoid;
    }
}
