/* Allgemeine Stilregeln und Reset */
:root {
    --primary-color: #242948;     /* Primärfarbe (Dunkelblau) */
    --secondary-color: #A98F76;   /* Sekundärfarbe (Hellblau) */
    --accent-color: #A98F76;      /* Akzentfarbe (Beige/Gold) */
    --dark-bg: #1a1a1a;           /* Haupthintergrundfarbe (fast schwarz) */
    --darker-bg: #121212;         /* Dunklerer Hintergrund für Kontraste */
    --light-text: #f5f5f5;        /* Heller Text */
    --card-bg: #2a2a2a;           /* Hintergrund für Karten */
    --border-radius: 8px;         /* Einheitlicher Rand-Radius */
    --transition-speed: 0.3s;     /* Standard-Übergangsgeschwindigkeit */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(18, 18, 18, 0.8)), url('../img/background.jpg') center/cover no-repeat;
    z-index: -1;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--light-text);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    font-weight: 600;
}

.btn:hover {
    background-color: #bca38a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

button.btn:disabled {
    background-color: #8d7762;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Header und Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 230px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(50, 50, 50, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: all var(--transition-speed);
    z-index: 1000;
    padding: 0 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

/* Signatur in der Navbar */
.signature-container {
    height: 500px;
    display: flex;
    align-items: center;
    margin-left: 50px;
}

.signature-logo {
    height: 200px;
    width: auto;
    /* Direkte Farbangabe im Hexformat statt Filter */
    filter: none;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
    margin-right: 50px;
}

.nav-link {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-link.active::after {
    width: 100%;
}

/* Hamburger-Menü für mobile Geräte */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light-text);
    transition: color var(--transition-speed);
}

.menu-toggle:hover {
    color: var(--accent-color);
}

/* Die Höhe der main-content anpassen, um Platz für die Navbar zu machen */
.main-content {
    padding-top: 230px; /* 230px (Navbar-Höhe) */
}

/* Anpassung für die Navbar ohne Logo */
.nav-spacer {
    width: 20px; /* Einfacher Abstandshalter links */
}

/* Sektionen */
.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
    width: 100%;
    margin-left: 0;
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#home {
    position: relative;
    width: 100%;
    height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0;
    background: none;
    margin-top: 0; /* Keine negative Verschiebung mehr notwendig */
}

#home h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease forwards;
}

#home .subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

#home .btn {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--accent-color);
}

/* Über mich Bereich */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-pic {
    flex: 0 0 250px;
}

.avatar-placeholder {
    width: 250px;
    height: 250px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--secondary-color);
    border: 5px solid var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify; /* Blocksatz für den About-Text */
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-start; /* Standard-Ausrichtung für Desktop */
}

.skill {
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Projekte Bereich */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-img {
    height: 200px;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px 20px 10px;
    color: var(--accent-color);
}

.project-card p {
    padding: 0 20px 20px;
}

.project-card .btn {
    margin: 0 20px 20px;
}

/* Meilensteine Bereich */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Kontaktbereich */
#contact {
    text-align: center;
}

#contact p {
    margin-bottom: 30px;
}

.form-message {
    margin-bottom: 20px;
    transition: opacity 0.5s ease;
}

.success-message {
    background-color: rgba(150, 164, 211, 0.2);
    color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    text-align: center;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.success-message h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.error-message {
    background-color: rgba(220, 53, 69, 0.2);
    color: #e74c3c;
    padding: 12px;
    border-radius: var(--border-radius);
    border-left: 4px solid #e74c3c;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--card-bg);
    border: 1px solid #444;
    border-radius: var(--border-radius);
    color: var(--light-text);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group, .contact-form input, .contact-form textarea, .contact-form button, .contact-form label {
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 30px 0;
    text-align: center;
    width: 100%;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: color var(--transition-speed);
}

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

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries für responsives Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: 180px; /* Kleinere Navbar auf Tablets */
    }
    
    .nav-links {
        position: fixed;
        top: 180px; /* Angepasst an die Navbar-Höhe */
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.3);
        text-align: center;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        padding: 20px 0;
        gap: 15px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .section {
        padding: 80px 0;
    }
    
    #home h1 {
        font-size: 2.5rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .signature-logo {
        height: 150px; /* Kleinere Signatur auf Tablets */
    }
    
    .signature-container {
        height: 150px;
    }
    
    .main-content {
        padding-top: 180px; /* Angepasst für die kleinere Navbar */
    }
    
    .skills {
        justify-content: center; /* Skills horizontal zentrieren auf Tablets */
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    header {
        height: 130px; /* Noch kleinere Navbar auf Smartphones */
    }
    
    .nav-links {
        top: 130px; /* Angepasst an die Navbar-Höhe */
    }
    
    #home h1 {
        font-size: 2rem;
    }
    
    #home .subtitle {
        font-size: 1.2rem;
    }
    
    .avatar-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
    }
    
    footer .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .signature-logo {
        height: 100px; /* Noch kleinere Signatur auf Smartphones */
    }
    
    .signature-container {
        height: 100px;
    }
    
    .main-content {
        padding-top: 130px; /* Angepasst für die kleinere Navbar */
    }
    
    .skills {
        justify-content: center; /* Skills horizontal zentrieren auf Smartphones */
    }
} 