/* ============================================
   MNEMOSYNE
   Design: Midnight Blue & Antique Brass
   ============================================ */

/* ---------- Farbpalette ---------- */

:root {
    --color-background: #080b10;
    --color-background-light: #0d131c;
    --color-surface: #111923;
    --color-surface-hover: #182432;

    --color-primary: #173c55;
    --color-primary-light: #285a76;
    --color-primary-dark: #0b2639;

    /* Kühles, gealtertes Messing */
    --color-accent: #9c8350;
    --color-accent-light: #614f28;
    --color-accent-dark: #655333;

    --color-text: #e4e5e2;
    --color-text-light: #a2adb5;
    --color-text-muted: #71808b;

    --color-border: #293846;
    --color-border-accent: #655b43;

    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 sans-serif;

    --container-width: 1100px;
    --border-radius: 8px;
}


/* ---------- Grundeinstellungen ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}


/* ---------- Kopfbereich ---------- */

.site-header {
    position: relative;
    z-index: 10;
    background: #05080c;
    border-bottom: 1px solid var(--color-border-accent);
}

.site-header .container {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.logo:hover {
    color: #b9a16e;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-navigation a {
    position: relative;
    padding: 8px 0;
    color: var(--color-text-light);
    font-size: 13px;
    letter-spacing: 0.8px;
    transition: color 0.2s ease;
}

.main-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--color-accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.main-navigation a:hover {
    color: var(--color-accent-light);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}


/* ---------- Willkommensbereich ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 115px 0 125px;

    /*
       Hintergrund:
       Links bleibt der Bereich dunkel.
       Nach rechts wird das Bild zunehmend sichtbar.
       Ganz rechts ist das Bild unverdeckt.
    */

    background-color: var(--color-background);

    background-image:
        linear-gradient(
            to right,
            rgba(8, 11, 16, 1.00) 0%,
            rgba(8, 11, 16, 0.98) 18%,
            rgba(8, 11, 16, 0.92) 32%,
            rgba(8, 11, 16, 0.76) 45%,
            rgba(8, 11, 16, 0.48) 58%,
            rgba(8, 11, 16, 0.18) 72%,
            rgba(8, 11, 16, 0.00) 88%
        ),
        url("../images/mnemosyne.png"),
        radial-gradient(
            ellipse at 85% 40%,
            rgba(28, 69, 94, 0.25) 0%,
            transparent 50%
        ),
        linear-gradient(
            120deg,
            #080b10 0%,
            #0c1620 55%,
            #101d28 100%
        );

    background-size:
        100% 100%,
        cover,
        100% 100%,
        100% 100%;

    background-position:
        center,
        center right,
        center,
        center;

    background-repeat: no-repeat;

    border-bottom: 1px solid var(--color-border);
}

/* Dezenter Messingakzent */

.hero::before {
    position: absolute;
    top: 0;
    left: max(20px, calc((100% - var(--container-width)) / 2));
    width: 70px;
    height: 2px;
    background: var(--color-accent);
    content: "";
}

/* Textinhalt über dem Hintergrundbild */

.hero .container {
    position: relative;
    z-index: 1;
}

/* Kleine Überschrift */

.eyebrow {
    margin: 0 0 24px;
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Hauptüberschrift */

.hero h1 {
    max-width: 850px;
    margin: 0 0 28px;
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

/* Beschreibungstext */

.hero-text {
    max-width: 660px;
    margin: 0;
    color: var(--color-text-light);
    font-size: 17px;
    line-height: 1.9;
}


/* ---------- Beitragsübersicht ---------- */

.articles-section {
    padding: 85px 0 110px;
    background: var(--color-background);
}

.articles-section h2 {
    position: relative;
    margin: 0 0 42px;
    padding-bottom: 20px;
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: normal;
}

.articles-section h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 1px;
    background: var(--color-accent);
    content: "";
}

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


/* ---------- Einzelne Beitragskarten ---------- */

.article-card {
    position: relative;
    padding: 32px;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        var(--color-surface) 0%,
        #0c121a 100%
    );

    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.article-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--color-accent);
    content: "";
    transition: height 0.25s ease;
}

.article-card:hover {
    background: linear-gradient(
        145deg,
        var(--color-surface-hover) 0%,
        #101923 100%
    );

    border-color: var(--color-border-accent);
    transform: translateY(-3px);
}

.article-card:hover::before {
    height: 100%;
}

.article-date {
    margin: 0 0 15px;
    color: var(--color-accent);
    font-size: 11px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.article-card h3 {
    margin: 0 0 18px;
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: normal;
    line-height: 1.4;
}

.article-card h3 a {
    transition: color 0.2s ease;
}

.article-card h3 a:hover {
    color: #c6b58d;
}

.article-subtitle {
    margin: 0 0 15px;
    color: #a8c1d0;
    font-size: 15px;
    font-weight: 500;
}

.article-summary {
    margin: 0 0 25px;
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.9;
}

.read-more {
    display: inline-block;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.read-more:hover {
    padding-left: 5px;
    color: var(--color-accent-light);
}


/* ---------- Leere Zustände ---------- */

.empty-state {
    padding: 60px 35px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 18px;
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-size: 29px;
    font-weight: normal;
}

.empty-state p {
    max-width: 600px;
    margin: 0 auto 25px;
    color: var(--color-text-light);
}


/* ---------- Detailseite eines Beitrags ---------- */

.article-page {
    min-height: 70vh;
    padding: 60px 0 100px;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(23, 60, 85, 0.12) 0%,
            transparent 55%
        ),
        var(--color-background);
}

.article-detail {
    max-width: 820px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 35px;
    color: var(--color-text-light);
    font-size: 13px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--color-accent-light);
}

.article-header {
    margin-bottom: 40px;
}

.article-header .article-date {
    margin-bottom: 20px;
}

.article-header h1 {
    margin: 0 0 24px;
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-size: clamp(38px, 5vw, 54px);
    font-weight: normal;
    line-height: 1.25;
}

.article-header .article-subtitle {
    color: #a8c1d0;
    font-size: 19px;
    line-height: 1.7;
}

.article-header .article-summary {
    margin-top: 25px;
    color: var(--color-text-light);
    font-size: 16px;
}

.article-image {
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid var(--color-border-accent);
    border-radius: var(--border-radius);
}

.article-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.article-content {
    color: #d0d5d7;
    font-size: 16px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.article-content p {
    margin: 0 0 25px;
}

.article-content h2,
.article-content h3 {
    margin-top: 45px;
    margin-bottom: 20px;
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-weight: normal;
}

.article-content h2 {
    font-size: 31px;
}

.article-content h3 {
    font-size: 25px;
}

.article-footer {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
}


/* ---------- Fußbereich ---------- */

.site-footer {
    padding: 30px 0;
    background: #05080c;
    border-top: 1px solid var(--color-border-accent);
    color: var(--color-text-muted);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.4px;
}


/* ---------- Textauswahl ---------- */

::selection {
    background: var(--color-primary-light);
    color: #ffffff;
}


/* ---------- Tastaturbedienung ---------- */

a:focus-visible {
    outline: 2px solid var(--color-accent-light);
    outline-offset: 5px;
}


/* ---------- Responsive Darstellung ---------- */

@media (max-width: 700px) {

    .container {
        width: min(100% - 30px, var(--container-width));
    }

    .site-header .container {
        min-height: auto;
        padding-top: 22px;
        padding-bottom: 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .logo {
        font-size: 29px;
    }

    .main-navigation {
        flex-wrap: wrap;
        gap: 10px 24px;
    }

    /* Hero-Bereich auf Mobilgeräten */

    .hero {
        padding: 75px 0 85px;

        background-image:
            linear-gradient(
                to right,
                rgba(8, 11, 16, 0.98) 0%,
                rgba(8, 11, 16, 0.92) 35%,
                rgba(8, 11, 16, 0.72) 60%,
                rgba(8, 11, 16, 0.35) 100%
            ),
            url("../images/mnemosyne.png"),
            radial-gradient(
                ellipse at 85% 40%,
                rgba(28, 69, 94, 0.25) 0%,
                transparent 50%
            ),
            linear-gradient(
                120deg,
                #080b10 0%,
                #0c1620 55%,
                #101d28 100%
            );

        background-size:
            100% 100%,
            cover,
            100% 100%,
            100% 100%;

        background-position:
            center,
            65% center,
            center,
            center;

        background-repeat: no-repeat;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 15px;
    }

    .articles-section {
        padding: 60px 0 75px;
    }

    .articles-section h2 {
        font-size: 31px;
    }

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

    .article-card {
        padding: 25px;
    }

    .article-card h3 {
        font-size: 25px;
    }

    .article-page {
        padding: 40px 0 65px;
    }

    .article-header h1 {
        font-size: 37px;
    }

    .article-header .article-subtitle {
        font-size: 17px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.9;
    }
}


/* ---------- Reduzierte Animationen ---------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* ---------- Suchfunktion ---------- */

.search-form {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.search-form label {
    display: block;
    margin-bottom: 12px;
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-size: 20px;
}

.search-controls {
    display: flex;
    gap: 12px;
}

.search-controls input {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-text);
    font: inherit;
}

.search-controls input::placeholder {
    color: var(--color-text-muted);
}

.search-controls input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-controls button {
    padding: 12px 25px;
    background: var(--color-primary);
    border: 1px solid var(--color-accent-dark);
    border-radius: 5px;
    color: var(--color-accent-light);
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-controls button:hover {
    background: var(--color-primary-light);
}

.search-info {
    margin: 18px 0 0;
    color: var(--color-text-light);
    font-size: 13px;
}

.search-info strong {
    color: var(--color-accent-light);
}

.search-info a {
    margin-left: 12px;
    color: var(--color-accent);
}

.search-info a:hover {
    color: var(--color-accent-light);
}

@media (max-width: 500px) {

    .search-controls {
        flex-direction: column;
    }

    .search-controls button {
        width: 100%;
    }

    .search-info a {
        display: block;
        margin: 10px 0 0;
    }
}


/* ---------- Tags und Schlagwörter ---------- */

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tag {
    display: inline-block;
    padding: 4px 11px;
    background: rgba(156, 131, 80, 0.09);
    border: 1px solid rgba(156, 131, 80, 0.45);
    border-radius: 3px;
    color: var(--color-accent-light);
    font-size: 11px;
    letter-spacing: 0.4px;
}


/* ---------- Quellen und Literatur ---------- */

.article-sources {
    margin-top: 3rem;
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 6px;
}

.article-sources h2 {
    margin-bottom: 1.5rem;
}

.source-group {
    margin-bottom: 1.5rem;
}

.source-group:last-child {
    margin-bottom: 0;
}

.source-group h3 {
    margin-bottom: 0.75rem;
    color: var(--color-accent-light);
}

.source-group ul {
    padding-left: 1.5rem;
}

.source-group li {
    margin-bottom: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.source-group a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.source-group a:hover {
    color: var(--color-text);
}