/* ================================================
   ANNIKA LEISTER — Journalist Website
   Forest Green × Weiß × Elegant
   ================================================ */

/* -----------------------------------------------
   Farbsystem
----------------------------------------------- */

:root {
    --forest:        #1e4d2b;
    --forest-deep:   #163820;
    --forest-mid:    #2d6b3f;
    --forest-light:  #e8f2eb;
    --white:         #ffffff;
    --off-white:     #f8faf7;
    --cream:         #f4f6f1;
    --text-dark:     #111111;
    --text-mid:      #3a3a3a;
    --text-light:    #777777;
    --border:        #dce6d8;
}

/* -----------------------------------------------
   Reset
----------------------------------------------- */

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

/* -----------------------------------------------
   Typografie
----------------------------------------------- */

a:link, a:visited {
    text-decoration: none;
    color: var(--forest-mid);
    border-bottom: 1px solid rgba(45,107,63,0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:active { text-decoration: none; }

a:hover {
    color: var(--forest);
    border-bottom-color: var(--forest);
}

h1 {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

h2 {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0 0 14px 0;
}

h3 {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

p {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-mid);
    margin: 0 0 18px 0;
}

/* -----------------------------------------------
   Body & Container
----------------------------------------------- */

body {
    background: linear-gradient(
        150deg,
        #c8ddc8 0%,
        #dceadc 50%,
        #e8ede8 100%
    );
    min-height: 100vh;
    padding: 48px 16px;
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    color: var(--text-mid);
    -webkit-font-smoothing: antialiased;
}

#container {
    margin: 0 auto;
    max-width: 980px;
    background: var(--white);
    box-shadow:
        0 1px 3px rgba(22,56,32,0.05),
        0 8px 24px rgba(22,56,32,0.08),
        0 32px 64px rgba(22,56,32,0.05);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

/* -----------------------------------------------
   Header
----------------------------------------------- */

#header {
    padding: 40px 44px 36px 44px;
    background: var(--forest-deep);
    position: relative;
    overflow: hidden;
}

#header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

#header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.15) 100%
    );
}

#header h1,
#header a {
    padding: 0;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 54px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: none;
    line-height: 1.0;
    color: var(--white);
    text-align: left;
    display: block;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
}

#header p {
    text-align: left;
    color: rgba(255,255,255,0.5);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 10px 0 0 0;
    position: relative;
    z-index: 1;
}

#header a:hover {
    text-decoration: none;
    border-bottom: none;
    color: rgba(255,255,255,0.75);
}

/* -----------------------------------------------
   Navigation — zieht sich immer bis unten
----------------------------------------------- */

#navigation {
    float: left;
    width: 200px;
    padding: 0;
    background: var(--forest-deep);
    /* Trick: Navigation immer so hoch wie Container */
    min-height: 600px;
    padding-bottom: 9999px;
    margin-bottom: -9999px;
}

#sidebar {
    padding: 28px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 12px;
}

#sidebar p,
#sidebar div,
#sidebar span {
    font-family: "Inter", sans-serif;
    font-size: 12.5px;
    line-height: 1.75;
    color: rgba(255,255,255,0.38);
    margin-bottom: 14px;
}

#sidebar a:link,
#sidebar a:visited {
    color: rgba(255,255,255,0.6);
    border-bottom-color: rgba(255,255,255,0.15);
    font-size: 12.5px;
}

#sidebar a:hover {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.5);
}

#sidebar a[href*="twitter"],
#sidebar a[href*="x.com"] {
    display: inline-block;
    background: transparent;
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    padding: 7px 14px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 6px;
    transition: all 0.2s ease;
}

#sidebar a[href*="twitter"]:hover,
#sidebar a[href*="x.com"]:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white) !important;
    border-color: rgba(255,255,255,0.4) !important;
}

ul.mainNav1,
ul.mainNav2,
ul.mainNav3 {
    margin: 0;
    padding: 20px 0 0 0;
    list-style: none;
}

ul.mainNav1 li,
ul.mainNav2 li,
ul.mainNav3 li {
    display: block;
    margin: 0;
    padding: 0;
}

ul.mainNav1 li a,
ul.mainNav2 li a,
ul.mainNav3 li a {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-left: 2px solid transparent;
    display: block;
    color: rgba(255,255,255,0.45);
    transition: all 0.15s ease;
}

ul.mainNav1 li a { padding: 13px 20px; }
ul.mainNav2 li a { padding: 10px 20px 10px 30px; font-size: 11px; }
ul.mainNav3 li a { padding: 9px 20px 9px 42px; font-size: 11px; }

ul.mainNav1 a:hover,
ul.mainNav2 a:hover,
ul.mainNav3 a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: rgba(255,255,255,0.4);
}

ul.mainNav1 a.current {
    font-weight: 700;
    color: var(--white);
    background: rgba(255,255,255,0.07);
    border-left-color: var(--white);
}

/* -----------------------------------------------
   Content
----------------------------------------------- */

#content {
    float: right;
    width: calc(100% - 200px);
    padding: 38px 44px 56px 44px;
    background: var(--white);
    min-height: 600px;
}

#content img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 16px rgba(22,56,32,0.09);
}

#content blockquote {
    border-left: 2px solid var(--forest-mid);
    margin: 32px 0;
    padding: 16px 24px;
    background: var(--forest-light);
    border-radius: 0 3px 3px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 16.5px;
    color: var(--forest);
    line-height: 1.75;
}

#content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* -----------------------------------------------
   Footer
----------------------------------------------- */

#footer {
    clear: both;
    background: var(--forest-deep);
    border-top: 1px solid rgba(255,255,255,0.08);
    height: auto;
}

#footer .gutter {
    height: auto;
    padding: 20px 32px;
    color: rgba(255,255,255,0.3);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

#footer .gutter a:link,
#footer .gutter a:visited {
    color: rgba(255,255,255,0.4);
    border-bottom-color: rgba(255,255,255,0.12);
    font-size: 11px;
}

#footer .gutter a:hover {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.4);
}

/* -----------------------------------------------
   Selektion & Scrollbar
----------------------------------------------- */

::selection {
    background: var(--forest-mid);
    color: var(--white);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--forest-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--forest); }

/* Links im Content: leuchtend grün */
#content a:link,
#content a:visited {
    color: #3a9e57;
    border-bottom-color: rgba(58,158,87,0.3);
}

#content a:hover {
    color: #2d7a44;
    border-bottom-color: #2d7a44;
}

/* -----------------------------------------------
   Mobile Responsive
----------------------------------------------- */

@media screen and (max-width: 768px) {

    body {
        padding: 0;
        background: var(--forest-deep);
    }

    #container {
        border-radius: 0;
        border: none;
        box-shadow: none;
        max-width: 100%;
    }

    #header {
        padding: 28px 20px 24px 20px;
    }

    #header h1,
    #header a {
        font-size: 36px;
        letter-spacing: 0.06em;
    }

    /* Navigation auf Mobile: oben, volle Breite */
    #navigation {
        float: none;
        width: 100%;
        min-height: auto;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    #sidebar {
        display: none; /* Sidebar auf Mobile ausblenden */
    }

    ul.mainNav1,
    ul.mainNav2,
    ul.mainNav3 {
        padding: 8px 0;
        display: flex;
        flex-wrap: wrap;
    }

    ul.mainNav1 li a,
    ul.mainNav2 li a {
        padding: 10px 16px;
        font-size: 11px;
        border-bottom: none;
        border-left: none;
        border-right: 1px solid rgba(255,255,255,0.05);
    }

    ul.mainNav1 a.current {
        border-left: none;
        border-bottom: 2px solid var(--white);
    }

    /* Content: volle Breite, weniger Padding */
    #content {
        float: none;
        width: 100%;
        padding: 24px 20px 40px 20px;
        min-height: auto;
    }

    /* Schriftgrößen reduzieren */
    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    p {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Footer */
    #footer .gutter {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}