:root {
    --PrimColor: #563f2a;
    --SecColor: #e8dfca;

    --Highlight: #caac57;

    --FontColor: #292929;
    --NavFontColor: #faf4e4;
    --BgColor: #faf4e4;

    --Gap: 20px;
    --MaxWidth: 1200px;

    --LogoHeightMobile: 30px;
    --LogoHeightDesktop: 50px;
}

@font-face {
    font-family: "Raleway";
    src: url(../FONTS/Raleway-VariableFont_wght.woff2) format("woff2");
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: calc(var(--LogoHeightMobile) + var(--Gap) + var(--Gap));
    font-family: "Raleway", sans-serif;
    color: var(--FontColor);
    /* Material Design: Schwarz */
    background-color: #faf4e4;
    /* wegen Darkmode */
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: #faf4e4;
}

.not-current {
    background-color: #423122;
}

p {
    text-align: justify;
}

a {
    display: block;
    width: 140px;
    height: 40px;
    line-height: 40px;
    font-size: 15px;
    font-family: sans-serif;
    text-decoration: none;
    color: #262626;
    border: 2.5px solid #caac57;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    transition: all .35s;
    color: #faf4e4;
}

a span {
    position: relative;
    z-index: 2;
}

a:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #262626;
    transition: all .35s;
    opacity: 60%;
}

a:hover {
    color: #faf4e4;
}

a:hover:after {
    width: 100%;
}

.main-nav li a:hover,
.main-nav li a:active {
    border-bottom: 2px solid #caac57;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    bord er-radius: 20px;
    marg in: 0px 0 20px 20px;   
}

.video-container video {
    width: 100%;
    height: 100%;
}

.headline-color {
    color: #faf4e4;
}

h3 {
    margin-top: 0;
}

h2 {
    font-size: 28px;
}

h4 {
    font-size: 18px;
    margin-top: 0;
    max-width: 210px;
    margin-bottom: 10px;
    margin-top: 10px;
}

h5 {
    font-size: 22px;
    max-width: 445px;
    margin-bottom: 10px;
    margin-top: 10px;
}

h6 {
    font-size: 16px;
    max-width: 445px;
    margin-bottom: 10px;
    margin-top: 10px;
}

figure {
    margin: auto 0px;
}

figure figcaption {
    padding: 5px;
}

section {
    padding: var(--Gap) 0;
}

.no-btn {
    all: unset;
    cursor: pointer;
}

/* Vordefinierte Klassen Eigenschaften */

.grid-1-1-1,
.grid-1-1-2,
.grid-1-2-2,
.grid-1-3-3,
.grid-1-2-4 {
    display: grid;
    max-width: var(--MaxWidth);
    grid-gap: var(--Gap);
    margin: var(--Gap);
}

.content-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-image-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-portfolio-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-image-banner2 {
    display: block;
    width: 60%;
    height: 100%;
    padding-left: 65px;
}

.freigestellt {
    object-fit: contain;
}

.grid-2 .content-image {
    height: auto;
}

.btn2 {
    background-color: var(--Highlight);
    padding: 10px 20px;
    display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
    color: #262626;
    border-style: solid;
}

.center {
    text-align: center;
}

.dark {
    background-color: #e8dfca;
}

.index-dark {
    background-color: #563f2a;
}

.light {
    background-color: #faf4e4;
}

.content-icon {
    padding: 20px;
    height: 100px;
}

.content-image-banner-vita {
    display: block;
    width: 90%;
    height: 100%;
    box-sizing: border-box;
}

.outer {
    padding: calc(2 * var(--Gap));
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.outer-contact {
    padding: calc(2 * var(--Gap));
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    background-color: #e8dfca;
}

.outer-contact-light {
    padding: calc(2 * var(--Gap));
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    background-color: #e8dfca;
    background-color: #faf4e4;
}

.main {
    margin-top: 20px;
    height: 300px;
    background: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.main h1 {
    font-size: 3em;
}

.side {
    min-height: 400px;
    background: #262626;
    top: 0;
    width: 350px;
    pad ding: 20px;
}

.side h2 {
    color: #caac57;
}

.side a {
    color: #faf4e4;
    text-decoration: none;
}

.photo {
    width: 260px;
    height: 260px;
    margin: auto;
    margin-top: 20px;
    bord er-radius: 100%;
    background-image: url("IMAGES/le_meee.png");
    background-size: cover;
    border: 10px #caac57 solid;
}

.image_wrapper {
    position: relative;
}

.overlay {
    position: absolute;
    left: 240px;
    top: 70px;
}

.dsgvo {
     max-width: 70ch;
    text-align: justify;
}

.hobby-icons {
    padding-right: 10px;
}

.info p {
    color: #faf4e4;
}

.info {
    padding: 40px 40px 0px 40px;
}

.timeline {
    border-left: 4px solid #caac57;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    margin: 20px auto;
    letter-spacing: 0.5px;
    position: relative;
    line-height: 1.4em;
    font-size: 1.03em;
    padding: 10px 15px;
    list-style: none;
    text-align: left;
    max-width: 35%;
    margin-left: 70px;
    text-align: left;
}

.timeline .event:last-of-type {
    border: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
    max-width: 350px;
}

.timeline .event:before,
.timeline .event:after {
    position: absolute;
    display: block;
    top: 0;
}

.timeline .event:before {
    left: -150px;
    content: attr(data-date);
    text-align: right;
    font-weight: bold;
    font-size: 0.9em;
    min-width: 115px;
}

.timeline .event:after {
    box-shadow: 0 0 0 4px #262626;
    left: -23px;
    background: #caac57;
    border-radius: 50%;
    height: 11px;
    width: 11px;
    content: "";
    top: 5px;
}

.line {
    border-bottom: 4.5px solid #caac57 !important;
    position: relative;
}

.content {
    padding: 20px;
}

.subhead {
    font-size: 20px;
    line-height: 55px;
    margin: 10px 0;
    display: flex;
    flex-direction: row;
    max-width: 75ch;
    font-weight: bold;
    background-color: #262626;
    padding-left: 10px;
}

.box-ck,
.box {
    display: inline-flex;
    width: 25px;
    height: 5px;
    margin: 0px 1px;
}

.skill-icons {
    padding-right: 10px;
    padding-top: 10px;
}

.box {
    background: #262626;
}

.box-ck {
    background: #caac57;
}

/* Steckbrief & Lebenslauf */

.outer-container {
    padding: 15px 49px 25px 47px;
    background-color: #e8dfca;
}

h-skills {
    font-size: 22px;
    line-height: 30px;
    margin: 10px 0 0 35px;
    display: flex;
    flex-direction: row;
    max-width: 75ch;
    font-weight: 600;
    padding-left: 15px;
}

font {
    padding-bottom: 20px;
}

.no-gap {
    grid-gap: 0;
}

.outer.center {
    align-items: center;
}

.hide {
    color: #faf4e4;
}

.outer p {
    margin-top: 0px;
}

h3.large {
    font-size: 2em;
}

.uppercase {
    text-transform: uppercase;
}

.grid-1-1-1.center p {
    max-width: 75ch;
    margin: 0 auto;
}

.grid-1-1-1-center-urhg p {
    max-width: 75ch;
    margin: 0 auto;
}

.list-image {
    list-style-image: url(../ICONS/university.svg);
    /* image: 20 x 20px */
    padding: 40px;
    box-sizing: border-box;
    grid-gap: calc(2 * var(--Gap));
}

ul.list-image li {
    padding: 10px;
}

.bg-PrimColor {
    padding: 50px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url(../IMAGES/header_banner.png);
}

.bg-zweifarbig-horizontal {
    background: linear-gradient(180deg, var(--PrimColor) 0%, var(--PrimColor) 50%, var(--BgColor) 50%, var(--BgColor) 100%);
    padding: 50px 0;
}

#services ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.grid-2.ratio-auto-fr {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

#drop {
    background: url(../IMAGES/drop_bg2.svg);
    background-repeat: repeat-x;
    background-size: 1700px;
}

.card {
    background: #e8dfca;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.25);
}

.card .content-image {
    height: auto;
}

/* MOBILE NAVIGATION */

nav {
    display: none;
}

/*  absolute Variante */

.mobile-nav {
    position: absolute;
    top: 0;
    width: 50%;
    box-sizing: border-box;
    background: var(--PrimColor);
}

.current {
    background-color: var(--Highlight);
    width: 140px;
}

.not-current {
    background-color: #423122;
}

.mobile-nav input {
    display: none;
}

.mobile-nav input:checked + ul {
    display: block;
}

.mobile-nav label {
    display: block;
    padding: var(--Gap);
    text-align: left;
    color: #262626;
}

.mobile-nav ul {
    display: none;
    background-color: var(--PrimColor);
    list-style-type: none;
    padding: var(--Gap);
    margin: 0;
}

.mobile-nav ul li a {
    color: var(--NavFontColor);
    text-decoration: none;
    display: block;
    padding: 10px
}

.mobile-nav li.current {
    background-color: var(--Highlight);
    width: 163px;
}

/* ENDE MOBILE NAVIGATION */

footer {
    background-color: var(--PrimColor);
    color: white;
}

footer div.grid-1-2-4 {
    margin: 0 var(--Gap);
}

footer a {
    color: white;
    text-decoration: none;
}

footer dt {
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.2em;
}

footer dd {
    margin: 0;
    padding: 0;
}

footer dl img.content-image {
    max-height: 75px;
    object-fit: contain;
    object-position: left;
    padding-bottom: 15px;
}

footer dl.socials img {
    max-height: 110px;
}

.cr-con {
    background-color: #423122;
    background-image: url(banner/footer_low.png);
    color: #faf4e4;
    padding: 1rem 4rem;
    text-align: center;
}

footer dd.grid-2 {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 10px;
    align-items: center;
}

footer dd.grid-2 img {
    filter: invert(1);
    width: 20px;
}

footer img.logo {
    max-height: var(--LogoHeightMobile);
}

@media screen and (min-width: 321px) {


    .content-image-banner-vita {
        display: block;
        width: 100%;
        height: 30%;
        box-siz ing: border-box;
    }
}

/* Eigene Style Eigenschaften */

@media screen and (min-width: 750px) {

    .grid-1-2-2,
    .grid-1-2-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-1-3-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .reverse div:first-of-type {
        order: 2;
    }

    /* Ordnet die Inhalte umgekehrt an */

    .list-image {
        padding: 80px;
    }

    .ratio-2-1 {
        grid-template-columns: 2fr 1fr;
    }

    .ratio-1-2 {
        grid-template-columns: 1fr 2fr;
    }
}

@media screen and (min-width: 1025px) {

    .grid-1-1-1,
    .grid-1-1-2,
    .grid-1-2-2,
    .grid-1-3-3,
    .grid-1-2-4 {
        max-width: var(--MaxWidth);
        margin: var(--Gap);
    }

    .grid-1-1-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-1-2-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: var(--Gap);
    }

    body {
        padding-top: 0;
    }

    .mobile-nav {
        display: none;
    }

    nav {
        display: block;
        background: var(--PrimColor);
    }

    .content-image-banner2 {
        display: block;
        width: 60%;
        height: 100%;
        padding-left: 85px;
    }

    .content-image-banner-vita {
        display: block;
        width: 100%;
        height: 95%;
        box-sizing: border-box;
    }

    .box-ck,
    .box {
        display: inline-flex;
        width: 23px;
        height: 5px;
    }

    .content {
        margin: 110px 40px 10px 40px;
    }

    .timeline .event:last-of-type {
        border: none;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
        position: relative;
        max-width: 1050px;
    }

    .line {
        border-bottom: 4.5px solid #caac57 !important;
        posit ion: relative;
        width: 650px;
    }

    .timeline {
        border-left: 4px solid #caac57;
        border-bottom-right-radius: 4px;
        border-top-right-radius: 4px;
        margin: 20px auto;
        letter-spacing: 0.5px;
        position: relative;
        line-height: 1.4em;
        font-size: 1.03em;
        padding: 10px 15px;
        list-style: none;
        text-align: left;
        max-width: 95%;
        margin-left: 70px;
        text-align: left;
    }

    h4 {
        font-size: 18px;
        margin-top: 0;
        max-width: 510px;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .current {
        background-color: var(--Highlight);
        width: 165px;
    }

    nav div.flex {
        max-width: var(--MaxWidth);
        margin: 0 auto;
        padding: 0 var(--Gap);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        display: flex;
        padding: calc(2 * var(--Gap)) 0;
    }

    nav ul li {
        margin-left: 40px;
    }

    nav ul li a {
        color: var(--NavFontColor);
        text-decoration: none;
        display: block;
        padding: 10px
    }

    nav li.current a {
        color: var(--NavFontColor);
    }

    grid-2.ratio-2-1 {
        grid-template-columns: 2fr 1fr;
    }

    .grid-2.ratio-1-2 {
        grid-template-columns: 1fr 2fr;
    }

    .grid-2 .content-image {
        height: 100%;
    }
}

@media screen and (min-width: 1200px) {

    .grid-1-1-1,
    .grid-1-1-2,
    .grid-1-2-2,
    .grid-1-3-3,
    .grid-1-2-4 {
        margin: var(--Gap) auto;
    }

    footer div.grid-1-2-4 {
        margin: 0 auto;
    }

    .content-image-banner {
        display: block;
        width: 90%;
        height: 90%;
        object-fit: contain;
    }
}
