/* ROBOTO */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/roboto-v50-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/roboto-v50-latin-regular.woff2') format('woff2');
}

/* MONTSERRAT */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}
/* =========================================
   1. GRUNDEINSTELLUNGEN & VARIABLEN
   ========================================= */
:root {
    --bg-color: #121212;
    --text-color: #f1f5f9;

    --accent-color: #5ec0d8;
    --accent-light: #ddd6fe;

    --secondary-color: hsl(315, 89%, 69%);

    --nav-bg: rgba(18, 18, 18, 0.9);


    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    padding-top: 80px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-header);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================================
   TYPOGRAFIE & DEKO-LINIEN
   ========================================= */

.section-padding h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.section-padding h3::after {
    content: '';
    display: block;

    width: 100%;
    height: 3px;

    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    margin-top: 8px;
    border-radius: 2px;
}

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--nav-bg);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--accent-color);
}

.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.lang-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* =========================================
   3. HAMBURGER ICON 
   ========================================= */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}


.hero-content {
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto; 

}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.2rem; 
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: #5ec0d8;
    margin-top: 0; 
    margin-bottom: 1.5rem; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

.hero-text {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 600px;
    
    margin: 0 auto 3rem auto; 
    
    text-align: center;  

    width: 100%; 
}




@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { letter-spacing: 2px; font-size: 1rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
}

/* =========================================
   5. ALLGEMEINES LAYOUT & BUTTONS
   ========================================= */
.section-padding {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.button,
.cta-button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.button:hover,
.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: none;
    box-shadow: 0 0 20px rgba(196, 181, 253, 0.2);
}

/* =========================================
   6. PROJEKT RASTER (GRID) & CARDS
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    border-color: var(--accent-color);
}

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px 8px 0 0;
}

.card-image.zen-fix {
    background-size: contain;   
    background-color: #121212;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h5 {
    margin-top: 0;
    color: var(--accent-light);
    font-size: 1.2rem;
}

.card-content p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.card-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid var(--accent-color);
}

.card-links a:hover {
    color: var(--accent-color);
}

/* =========================================
   7. MEDIA QUERIES (HANDY ANSICHT)
   ========================================= */
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    .lang-switch {
        margin-left: 0;
        justify-content: center;
        margin-top: 2rem;
    }

    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- ABOUT SECTION LAYOUT --- */
#about {
    scroll-margin-top: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--nav-bg);
    border: 1px solid rgb(247, 173, 238);
}

.about-text p {
    line-height: 1.7;

    letter-spacing: 0.5px;

    word-spacing: 2px;

    max-width: 650px;

    color: #cbd5e1;

    margin-bottom: 1.5rem;
    margin-top: 0;
}



.about-text .lead {
    font-size: 1rem;
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.highlight-text {
    color: var(--secondary-color);
    opacity: 0.9;
    font-style: italic;
}

.button-outline {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.button-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

.skills-section {
    margin-bottom: 4rem;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1rem;
}

.skill-tag {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #ccc;
    transition: 0.3s;
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(165, 243, 252, 0.05);
}

.timeline-section h4 {
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    border-left: 3px solid #333;
    margin-left: 10px;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-item .date {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #1a1a1a;
    padding: 4px 10px;
    border-radius: 4px;
}

.timeline-item h5 {
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
}

.timeline-item p {
    color: #bbb;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-text {
        text-align: left;
    }

    .skills-wrapper {
        justify-content: center;
    }
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: #1a1a1a;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #333;
}

.contact-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-text p {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.button i {
    margin-right: 8px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    color: #fff;
}

.social-card i {
    color: var(--secondary-color);
}

.social-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

.social-card:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        /* Untereinander */
        padding: 2rem;
        text-align: center;
    }
}

/* =========================================
   ANIMATIONEN
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: #0f0f0f;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 4rem;
}

.footer-content p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}