@font-face{
    font-family: 'TitilliumWeb';
    src: url('../fonts/TitilliumWeb-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face{
    font-family: 'TitilliumWeb';
    src: url('../fonts/TitilliumWeb-Light.ttf') format('truetype');
    font-weight: 300;
}

@property --color1 {
    syntax: '<color>';
    initial-value: #ECEBE7;
    inherits: false;
  }
  
  @property --color2 {
    syntax: '<color>';
    initial-value: #ECEBE7;
    inherits: false;
  }

:root{
    --text-color: #03110C;
    --text-color-light: #ECEBE7;
    --bg-color: #ECEBE7;
    --btn-overlay: linear-gradient(to right bottom, #03110C, #1B2D22);
    --btn-logo: url(../images/simple-logo-dark.png);
    --shadow: 2px 4px 20px rgba(3, 17, 12, .1);
    --logo-small: url(../images/simple-logo-light.png);
    --list-bullet: url(../images/list-bullet.png);
    --color1: #ECEBE7;
    --color2: #ECEBE7; 
    --switch-background: #dad3c4;
}

body.dark-mode{
    --text-color: #ECEBE7;
    --text-color-light: #03110C;
    /* --bg-color: linear-gradient(to right bottom, #03110C, #1B2D22); */
    --bg-color: #03110C;
    --btn-logo: url(../images/simple-logo-light.png);
    --btn-overlay: #ECEBE7;
    --shadow: 0px 0px 3px rgba(236, 236, 231, .1);
    --logo-small: url(../images/simple-logo-dark.png);
    --list-bullet: url(../images/list-bullet-light.png);
    --color1: #03110C;
    --color2: #1B2D22;
    --switch-background: #10382a;
}

body.dark-mode .logo-light{
    display: none;
}

body.light-mode .logo-dark{
    display: none;
}

body{
    margin: 0;
    color: var(--text-color);
    background: linear-gradient(to right bottom, var(--color1), var(--color2));
    transition: --color1 .3s, --color2 .5s;
}

html{
    font-family: "TitilliumWeb";
    scroll-behavior: smooth;
}

main{
    min-height: 89vh;
}

.container{
    max-width: 1390px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.content-wrapper{
    max-width: 630px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

h1, h2{
    font: 300 32px/37px TitilliumWeb;
}

h2{
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 40px;
}

h3{
    font: 300 24px/27px TitilliumWeb;
    letter-spacing: 3px;
    text-align: center;
}

h4{
    font: 300 14px/18px TitilliumWeb;
}

a{
    position: relative;
    text-decoration: none;
    color: var(--text-color);
}

a:after{
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    bottom: -4px;
    left: 0;
    transition: transform .2s;
    transform-origin: right;
    transform: scaleX(0);
}

a:hover::after{
    transform: scaleX(1);
    transform-origin: left;
}


.row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 20px;
}

.col{
    flex: 0 0 100%;
    max-width: 100%;
}

.cursor {
    display: inline-block;
    width: 2px; 
    height: 25px; 
    margin-left: 3px; 
    background-color: var(--text-color); 
    animation: blink 0.8s infinite; 
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@media screen and (min-width: 768px) {
    .row .col {
        flex: 0 0 calc(33.33% - 20px); 
        margin-left: 10px; 
        margin-right: 10px; 
    }

    .row .col:first-child {
        margin-left: 0; 
    }

    .row .col:last-child {
        margin-right: 0; 
    }
}

/* Navbar */
.nav-wrapper{
    display: flex;
    margin-top: 25px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}


@media screen and (min-width: 768px) {
    .nav-wrapper{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }
}

.nav-wrapper .logo{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.nav-wrapper .logo::after{
    transform: scaleX(0);
}

.nav-wrapper .logo img{
    width: 100%;
    max-width: 45px;
}

.nav-wrapper .logo span{
    font: 300 24px/27px TitilliumWeb;
    text-transform: uppercase;
    letter-spacing: 7px;
}

.nav-wrapper nav{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

@media screen and (min-width: 768px) {
    .nav-wrapper nav{
        margin-left: auto;
    }
}

.nav-wrapper nav a{
    font: 300 16px/20px TitilliumWeb;
    letter-spacing: 4px;
    text-decoration: none;
    color: var(--text-color);
    min-width: 5rem;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .nav-wrapper nav a{
        min-width: auto;
        text-align: left;
    }
}

/* Header */
.header{
    width: 100%;
    position: relative;
    border-left: 1px solid var(--text-color);
    box-shadow: var(--shadow);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.header img{
    width: 100%;
    max-width: 25px;
    position: absolute;
    top: 15px;
    left: 15px;
}

.header .small-text{
    font: 300 12px/16px TitilliumWeb;
    margin-left: 25px;
}

.header h1 span{
    font-weight: 500;
}

.header .content-wrapper{
    height: 250px;
}

/* Focus */
.focus{
    text-align: center;
    margin-top: 80px;
}

.focus p{
    font: 300 24px/27px TitilliumWeb;
    margin-top: 40px;
    margin-bottom: 0;
}

.focus img{
    width: 100%;
    max-width: 180px;
    margin-top: 40px;
}

/* Skills */
.skills{
    margin-top: 80px;
}


.skills .card{
    height: 300px;
    position: relative;
    border-left: 1px solid var(--text-color);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}


.skills .card img{
    width: 100%;
    max-width: 16px;
    position: absolute;
    top: 15px;
    left: 15px;
}

.skills .card ul{
    list-style: none;
}

.skills .card ul li{
    font: 300 14px/18px TitilliumWeb;
    margin-top: 17px;
    padding-left: 1rem;
    text-indent: -1rem;
}

.skills .card ul li::before{
    content: "";
    padding-right: 7px;
    margin-right: 7px;
    background-image: var(--list-bullet);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Contact */

.contact{
    margin-top: 80px;
}

.contact .small-text{
    margin-left: 25px;
    margin-top: 0;
    font: 300 14px/18px TitilliumWeb;
}

.contact form{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.contact input,
.contact textarea{
    border: none;
    border-left: 1px solid var(--text-color);
    box-shadow: var(--shadow);
    font: 300 14px/18px TitilliumWeb;
    padding-left: 25px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: .3s;
}

.contact textarea{
    padding-top: 15px;
}

.contact input{
    height: 35px;
}

.contact .invalid-input{
    box-shadow: 2px 4px 20px #F44336;
}

.contact input:focus-visible,
.contact textarea:focus-visible{
    outline: none;
}

.contact hr{
    width: 100%;
    position: relative;
    overflow: visible;
    height: 1px;
    background-color: var(--text-color);
}

.contact hr::after{
    content: "◄";
    position: absolute;
    right: -5px;
    top: 3px;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    height: 37px;
    font-size: 20px;
    color: var(--text-color);
}

.contact hr::before{
    content: "►";
    position: absolute;
    left: -5px;
    top: 3px;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    height: 37px;
    font-size: 20px;
}

.contact button{
    max-width: 235px;
    width: 100%;
    height: 35px;
    font: 300 14px/18px TitilliumWeb;
    background: none;
    border: 1px solid var(--text-color);
    position: relative;
    cursor: pointer;
    color: var(--text-color);
}

.contact button::after{
    content: "";
    position: absolute;
    background-image: var(--logo-small);
    width: 25px;
    height: 27px;
    left: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    top: 3px;
}

.contact button::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background: var(--btn-overlay);
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transition: transform .3s;
    transform-origin: right;
    z-index: -1;
}

.contact button:hover::before{
    transform: scaleX(1);
    transform-origin: left;
}

.contact button:hover::after{
    background-image: var(--btn-logo);
}

.contact button:hover{
    color: var(--text-color-light);
}

.contact .logo{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.contact .logo img{
    max-width: 60px;
    width: 100%;
}

.contact .personal{
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 20px;
}

.contact .personal .name{
    margin-top: 0;
    font: 300 14px/18px TitilliumWeb;
}

.contact .personal .email,
.contact .personal .tel{
    font: 300 24px/27px TitilliumWeb;
    margin: 0;
}

.contact .social-media{
    margin-top: auto;
}

.contact .social-media .icon-wrapper{
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.contact .social-media a:hover:after{
    transform: scaleX(0);
}

.contact .social-media img{
    width: 40px;
}

/* Footer */
.footer{
    border-top: 1px solid var(--text-color);
    margin-top: 40px;
    padding: 20px 0;
    width: 100%;
}

.footer .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


@media screen and (min-width: 768px) {
    .footer .container{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer .name{
    font: 300 14px/18px TitilliumWeb;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer .name img{
    width: 100%;
    max-width: 25px;
}

.footer .legal{
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* Impressum */
.impressum h3{
    text-align: left;
}

.impressum h1{
    margin-top: 80px;
}

/* Datenschutz */
.datenschutz h2,
.datenschutz h3{
    text-align: left;
}

.datenschutz h1{
    margin-top: 80px;
}

/* Toggle Switch Styling */
/* .toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--switch-background);
    border-radius: 34px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--switch-button);
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .toggle-slider {
    background-color: var(--switch-background);
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
} */

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--switch-background);
    border-radius: 34px;
    transition: 0.4s;
}

.toggle-slider:before {
    content: '🌑';
    position: absolute;
    font-size: 23px;
    left: 3px;
    bottom: 0;
    color: var(--switch-button);
    transition: 0.4s;
}

input:checked + .toggle-slider:before {
    content: '☀️'; 
    font-size: 23px;
    bottom: 0;
    transform: translateX(26px);
    color: black;
}
