/*--------------------------------------------------------------
# Typografie Root & Base Settings
--------------------------------------------------------------*/
:root {
    --font-primary: Garamond, "Open Sans", sans-serif;
    --text-color: #cfcfcf;
    --bg-color: #131f25;
    --main-color: #cfcfcf;
    --hover-color: rgb(243, 74, 122);
}

/*--------------------------------------------------------------
# Reset & Global Styles
--------------------------------------------------------------*/
html {
    font-size: 16px;
    /* stabile Basis für alle Browser */
}

* {
    box-sizing: border-box;
    /* verhindert Layout-Überraschungen */
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
a {
    color: var(--main-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:visited {
    color: var(--main-color);
}

a:hover {
    color: var(--hover-color);
    cursor: pointer;
}

a:active {
    color: var(--main-color);
}

/* =========================
   NAVIGATION
========================= */

#navbar ul {

    display: flex;
    align-items: center;
    gap: 24px;

}

#navbar li a {

    font-size: 0.9rem;

    letter-spacing: 0.05em;

    transition: opacity 0.3s ease;

}

#navbar li a:hover {
    opacity: 0.6;
}

#navbar li.on a {
    font-weight: bold;
}

/* =========================
   BURGER
========================= */

.burger {

    display: none;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    cursor: pointer;

    z-index: 1001;

}

.burger span {

    display: block;

    width: 28px;
    height: 2px;

    background: #111;

    margin: 6px auto;

    transition: 0.3s ease;

}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1 {
    font-size: 1.5rem;
    font-weight: 300;
}

h2 {
    font-size: 1.25rem;
    font-weight: 300;
}

h3 {
    font-size: 1rem;
    font-weight: 400;
}

h4,
h5,
h6 {
    font-size: 1rem;
    font-weight: 300;
}

p {
    font-size: 1rem;
}

.infotext {
    font-size: 0.9rem;
}

.infosubline {
    font-size: 0.85rem;
}

strong,
.bold {
    font-weight: 400;
}

.en {
    color: #827c7c;
    font-style: italic;
}

dfn,
cite,
em,
i {
    font-style: italic;
    font-size: 0.8rem;
}

blockquote {
    margin: 0 1.5rem;
}

address {
    margin-bottom: 1.5rem;
}

.content h1 {
    margin-bottom: 20px;
}

.content p {
    line-height: 1.6;
}



/* =========================================================
   7. CV / GRID SYSTEM
========================================================= */

.cv {
    max-width: 720px;
}

.entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: .5em;
    padding: .5em 0;
}

.entry+.entry {
    margin-top: .5em;
}

.jahr {
    color: var(--main-color);
}

.text {
    margin-bottom: .5em;
    max-width: 68ch;
    /* perfekte Leselänge */
    line-height: 1.5em;
}

/* =========================================================
   8. MEDIA ELEMENTS
========================================================= */

figure {
    width: max-content;
    max-width: 550px;
    margin: 0 auto;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
}

figcaption {
    width: 100%;
    text-align: left;
    margin-top: 12px;
    font-size: 1rem;

}

/* Hover */
img:hover {
    opacity: 0.94;
}

/* Fade-in */
img.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.devider-line {
    height: 1px;
    background: #ccc;
    margin-top: 34px;
    max-width: 68ch;
}

.devider-headline {
    height: 1px;
    background: #ccc;
    margin-top: 34px;
    max-width: 68ch;
}

/*--------------------------------------------------------------
# Images
--------------------------------------------------------------*/
img:hover {
    opacity: 0.9;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media screen and (max-width: 1080px) {
    .trenner {
        display: none;
    }

    .namebox {
        margin: 1rem 0;
    }

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

@media screen and (max-width: 900px) {
    .navsub li a {
        display: inline-block;
        padding-right: 3px;
    }

    .trenner {
        display: none;
    }
}