html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: #f5f5f2;
    color: #1f1f1f;
}

a {
    color: inherit;
}

/* =====================================================
   EINZELNER ARTIKEL
===================================================== */

.article-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 68px 32px 100px;
}

.article-page .back {
    display: inline-block;
    margin-bottom: 48px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.article-page .back:hover {
    color: #111;
}

.article-page .kicker {
    color: #999;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.article-page h1 {
    font-weight: 300;
    font-size: 42px;
    line-height: 1.12;
    margin: 0 0 8px;
}

.article-page .subtitle {
    color: #777;
    margin-bottom: 44px;
    line-height: 1.6;
}

.article-page .excerpt {
    color: #666;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 46px;
}

.article-body {
    color: #3f3f3f;
    font-size: 18px;
    line-height: 1.9;
}

.article-body p {
    margin: 0 0 26px;
}

.article-body h2 {
    font-size: 27px;
    line-height: 1.3;
    font-weight: 300;
    margin: 58px 0 22px;
    color: #272725;
}

.article-body blockquote {
    margin: 44px 0;
    padding: 2px 0 2px 24px;
    border-left: 1px solid #999;
    color: #555;
    font-style: italic;
}

.article-body blockquote p {
    margin-bottom: 10px;
}

.article-body .divider {
    text-align: center;
    color: #aaa;
    margin: 48px 0;
    letter-spacing: .3em;
}

.article-body a {
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

/* =====================================================
   TEXTBIBLIOTHEK / ALLE TEXTE
===================================================== */

.library-body {
    background: #f1f0eb;
    color: #232320;
}

.library-page {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
    padding: 0 0 54px;
}

.library-hero {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px 0 70px;
    border-bottom: 1px solid #d5d2ca;
}

.library-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: auto;
    padding-bottom: 82px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
}

.library-back {
    color: #77736c;
    text-decoration: none;
    transition: color .2s ease;
}

.library-back:hover {
    color: #222;
}

.library-count {
    color: #969188;
}

.library-eyebrow {
    margin: 0 0 14px;
    color: #8d887f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.library-hero h1 {
    margin: 0;
    font-weight: 300;
    font-size: clamp(58px, 10vw, 112px);
    line-height: .95;
    letter-spacing: -.045em;
}

.library-intro {
    max-width: 650px;
    margin: 34px 0 0;
    color: #66625c;
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.65;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 48px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.category-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid #cbc7be;
    border-radius: 999px;
    color: #55514b;
    text-decoration: none;
    font-size: 12px;
    transition: .2s ease;
}

.category-nav a:hover {
    background: #242421;
    border-color: #242421;
    color: #f5f5f2;
}

.category-nav span {
    color: #99938a;
}

.category-nav a:hover span {
    color: #c9c7c0;
}

.library-groups {
    padding: 25px 0 80px;
}

.library-category {
    padding: 90px 0 10px;
    scroll-margin-top: 24px;
}

.category-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 18px;
    border-bottom: 1px solid #cbc7be;
}

.category-heading h2 {
    margin: 0;
    font-size: clamp(27px, 4vw, 43px);
    font-weight: 300;
    letter-spacing: -.025em;
}

.category-heading > span {
    color: #99938a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.library-card {
    min-width: 0;
    border-bottom: 1px solid #d7d3ca;
}

.library-card:nth-child(odd) {
    border-right: 1px solid #d7d3ca;
}

.card-link {
    min-height: 330px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 35px 42px 34px 0;
    box-sizing: border-box;
    text-decoration: none;
}

.library-card:nth-child(even) .card-link {
    padding-left: 42px;
    padding-right: 0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #928d84;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.card-arrow {
    font-size: 15px;
    opacity: 0;
    transform: translate(-5px, 5px);
    transition: .22s ease;
}

.card-link h3 {
    max-width: 440px;
    margin: 44px 0 15px;
    font-size: clamp(25px, 3.3vw, 38px);
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -.03em;
}

.card-subtitle {
    margin: 0 0 16px;
    color: #625f59;
    font-size: 16px;
    line-height: 1.55;
}

.card-excerpt {
    max-width: 470px;
    margin: 0 0 30px;
    color: #817c73;
    font-size: 14px;
    line-height: 1.65;
}

.read-more {
    margin-top: auto;
    color: #777269;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.card-link:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .15em;
}

.card-link:hover .card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.empty-library {
    min-height: 35vh;
    display: grid;
    place-items: center;
    color: #777;
}

.library-footer {
    border-top: 1px solid #cbc7be;
    padding: 32px 0 10px;
    display: flex;
    justify-content: space-between;
    color: #858078;
    font-size: 13px;
}

.library-footer a {
    text-decoration: none;
}

.library-footer a:hover {
    color: #222;
}

/* =====================================================
   MOBIL
===================================================== */

@media (max-width: 760px) {

    .article-page {
        padding: 38px 20px 70px;
    }

    .article-page h1 {
        font-size: 34px;
    }

    .article-body {
        font-size: 17px;
    }

    .library-page {
        width: min(calc(100% - 32px), 1120px);
    }

    .library-hero {
        min-height: auto;
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .library-topline {
        padding-bottom: 76px;
    }

    .library-intro {
        margin-top: 25px;
    }

    .category-nav {
        margin-top: 36px;
    }

    .library-category {
        padding-top: 65px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .library-card:nth-child(odd) {
        border-right: 0;
    }

    .library-card:nth-child(even) .card-link,
    .card-link {
        min-height: 280px;
        padding: 30px 0;
    }

    .card-link h3 {
        margin-top: 36px;
    }

    .card-arrow {
        opacity: 1;
        transform: none;
    }
}


.library-footer nav,
.article-footer nav {
    display:flex;
    align-items:center;
    gap:9px;
    flex-wrap:wrap;
}

.library-footer nav span,
.article-footer nav span {
    color:#b0aba2;
}

.article-footer {
    margin-top:78px;
    padding:28px 0 10px;
    border-top:1px solid #cbc7be;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    color:#858078;
    font-size:13px;
}

.article-footer a {
    color:#858078;
    text-decoration:none;
}

.article-footer a:hover,
.library-footer a:hover {
    color:#222;
}

@media (max-width: 620px) {
    .article-footer,
    .library-footer {
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
    }
}


/* =====================================================
   VIDEO / EXTERNE MEDIEN
===================================================== */

.media-block {
    margin:72px 0 20px;
    padding-top:30px;
    border-top:1px solid #cbc7be;
}

.media-block h2 {
    margin-top:10px;
}

.media-kicker {
    margin:0 !important;
    color:#969188;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:11px;
    letter-spacing:.13em;
    text-transform:uppercase;
}

.video-consent {
    position:relative;
    width:100%;
    aspect-ratio:16 / 9;
    margin:28px 0 14px;
    background:#e8e6df;
    overflow:hidden;
}

.video-consent iframe {
    display:block;
    width:100%;
    height:100%;
    border:0;
}

.video-load {
    width:100%;
    height:100%;
    border:0;
    background:transparent;
    color:#34332f;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    padding:30px;
    cursor:pointer;
    font:inherit;
    text-align:left;
}

.video-load:hover {
    background:#e1dfd7;
}

.video-play {
    width:54px;
    height:54px;
    flex:0 0 54px;
    border:1px solid #77736c;
    border-radius:50%;
    display:grid;
    place-items:center;
    padding-left:3px;
    font-family:sans-serif;
    font-size:16px;
}

.video-load strong {
    display:block;
    font-family:Georgia,"Times New Roman",serif;
    font-size:20px;
    font-weight:400;
}

.video-load small {
    display:block;
    max-width:390px;
    margin-top:6px;
    color:#77736c;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:11px;
    line-height:1.5;
}

.media-source {
    font-size:13px !important;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.media-source a {
    color:#6f6b64;
    text-decoration:none;
    border-bottom:1px solid #aaa69e;
    padding-bottom:2px;
}

.media-source a:hover {
    color:#111;
    border-color:#111;
}

.media-source-prominent {
    margin-top:26px !important;
}

@media(max-width:620px) {
    .media-block {
        margin-top:55px;
    }

    .video-load {
        gap:12px;
        padding:18px;
    }

    .video-play {
        width:44px;
        height:44px;
        flex-basis:44px;
    }

    .video-load strong {
        font-size:17px;
    }
}
