/* Einstellungen für die gesamte Seite */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    --base-font-size: 16px;
    --bg-1: #011204;
    --bg-2: #046a10;
    --bg-window: #091f07;
    --header: #a7a5a5;
    --border-pic: #9aa6bd;
    --font: #e6eef8;
    --hover: #0c9125;
    --skill-header: #046a10;
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-1);
    color: var(--font);
    line-height: 2;
}

body.light {
    --bg-1: #b3b3b8;
    --bg-2: #ffffff;
    --bg-window: #c1c1c8;
    --header: #6237f1;
    --border-pic: #0656e9;
    --font: #000000;
    --hover: #4b92ee;
    --skill-header: #5f5f60;
}

/* Navigationsleiste */
.navbar{
    position: sticky;
    top: 0;
    left:0;
    width: 100vw;
    padding: 8px 2%;
    background-color: var(--bg-1);
    margin-left: calc(50% - 50vw);

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--header);
    z-index: 1000;
}

.logo{
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--header);
    text-decoration: none;
    font-weight: bold;
}

.logo img{
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid var(--header);
    border-radius: 50%;
    background-color: var(--bg-1);
    filter: none;
}

body.light .logo img {
    border-color: var(--header);
    background-color: var(--bg-1);
}

.nav-middle {
    grid-column: 2;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.navbar a{
    color: var(--header);
    text-decoration: none;
    font-size: var(--base-font-size);
    font-weight: bold;
    transition: 0.5s;
}

.navbar a:hover{
    color: var(--bg-2);
}

.navbar .logo:hover {
    color: var(--header);
}

.theme-toggle {
    grid-column: 3;
    justify-self: end;
    width: 54px;
    height: 32px;
    border: 2px solid var(--header);
    border-radius: 22px;
    background: transparent;
    color: var(--font);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: 0.5s ease;
}

.theme-toggle:hover {
    font-weight: bold;
    background-color: var(--hover);
    border-color: var(--header);
    color: var(--font);
    transform: translateY(-2px);
}

.moon {
    font-size: 26px;
    line-height: 1;
}

/*Allgemeine Einstellungen*/
.page{
    max-width: 1200px;
    margin: 0 auto;
}

main{
    display: flex;
    flex-direction: column;
}

/*Startseite*/
#start{
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, var(--bg-2) 0%, var(--bg-1) 60%);
    transition: background 300ms ease;
}

.start-content{
    padding: 0 5%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.start-name{
    padding: 20px 0;
    font-size: 36px;
    color: var(--header);
    line-height: 1.2;
}

.start-job{
    font-size: 36px;
    color: var(--header);
    line-height: 1.2;
}

.start-head{
    padding: 0 10px;
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--font);
}

.profil-pic img{
    margin: 60px 60px;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 3px solid var(--border-pic);
    border-radius: 50%;
}

.start-text{
    padding: 50px 5% 0 5%;
    color: var(--font);
}

/*Über mich*/
#me{
    padding: 30px 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--bg-2);
    border-radius: 20px;
    background: var(--bg-window);
    margin: 0 5% 40px;
}

#me h2{
    font-size: 40px;
    color: var(--header);
}

/*Kenntnisse*/
#skills {
    padding: 30px 5%;
    border: 1px solid var(--bg-2);
    border-radius: 20px;
    background: var(--bg-window);
    margin: 0 5% 40px;
}

#skills h2 {
    margin-bottom: 25px;
    font-size: 40px;
    color: var(--header);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.skill-box {
    padding: 22px;
    border: 1px solid var(--bg-2);
    border-radius: 12px;
    background-color: var(--bg-1);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.skill-box:hover {
    border-color: var(--header);
    box-shadow: 0 0 12px var(--hover);
}

.skill-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.skill-box h3 {
    font-size: 26px;
    color: var(--header);
}

.skill-header span {
    color: var(--header);
    font-weight: bold;
}

.skill-box p {
    min-height: 52px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.skill-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.skill-box progress {
    flex: 1;
    width: auto;
    height: 14px;
    appearance: none;
}

.skill-progress span {
    min-width: 45px;
    color: var(--header);
    font-weight: bold;
    text-align: right;
}

.skill-box progress::-webkit-progress-bar {
    border-radius: 10px;
    background-color: var(--bg-window);
}

.skill-box progress::-webkit-progress-value {
    border-radius: 10px;
    background-color: var(--hover);
}

.skill-box progress::-moz-progress-bar {
    border-radius: 10px;
    background-color: var(--hover);
}

/*Projekte*/
/*#projects{
    padding: 30px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projects h2{
    font-size: 40px;
    color: var(--header);
    margin-bottom: 20px;
}

.project-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.project-button {
    width: 200px;
    height: 80px;
    padding: 25px;
    background-color: transparent;
    border: 1px solid var(--bg-2);
    border-radius: 20px;
    color: var(--font);
    font-weight: bold;
    cursor: pointer;
    transition: 0.5s;
}

.project-button:hover,
.project-button.active {
    transform: translateY(-10px);
    background-color: var(--hover);
    color: var(--font);
}

.project-details {
    width: 100%;
    max-width: 800px;
    min-height: 180px;
    padding: 30px;
    border: 1px solid var(--bg-2);
    border-radius: 20px;
    background-color: var(--bg-window);
}

.project-text {
    display: none;
}

.project-text.active {
    display: block;
}

.project-text h3 {
    margin-bottom: 10px;
    color: var(--header);
    font-size: 28px;
}

.project-text p {
    line-height: 1.8;
    color: var(--font);
}*/

/*Kontakt*/
#contact {
    padding: 30px 5% 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#contact h2 {
    margin-bottom: 30px;
    font-size: 40px;
    color: var(--header);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;    
    align-items: start;
    text-align: left;
}

.contact-text {
    padding-top: 10px;
}

.contact-text p {
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content:baseline;
    gap: 10px;
    width: 170px;
    height: 60px;
    padding: 12px 20px;
    border: 1px solid var(--bg-2);
    border-radius: 30px;
    background-color: var(--bg-window);
    color: var(--font);
    text-decoration: none;
    font-weight: bold;
    transition: 0.5s ease;
}

.contact-buttons img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.contact-buttons .linkedin-button img {
    filter: invert(32%) sepia(91%) saturate(1200%)
            hue-rotate(180deg) brightness(88%);
}

.contact-buttons .github-button img {
    filter: invert(45%) sepia(85%) saturate(1800%)
            hue-rotate(220deg) brightness(95%) contrast(95%);
}

.contact-buttons .email-button img {
    filter: invert(18%) sepia(70%) saturate(1200%)
            hue-rotate(190deg) brightness(90%) contrast(110%);
}

.contact-buttons a:hover {
    transform: translateY(-4px);
    border-color: var(--header);
    background-color: var(--hover);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.contact-form label {
    color: var(--header);
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bg-2);
    border-radius: 6px;
    background-color: var(--bg-window);
    color: var(--font);
    font: inherit;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--hover);
}

.contact-form button {
    margin-top: 15px;
    padding: 12px 24px;
    border: 1px solid var(--header);
    border-radius: 6px;
    background-color: var(--hover);
    color: var(--font);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    transform: translateY(-2px);
}

/*Fusszeile*/
footer{    
    padding: 30px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    text-align: center;
    color: var(--header);
    border-top: 1px solid var(--header);
    font-weight: bold;
}