:root {
    --primary-color: #4f46e5;
    --secondary-color: #818cf8;
    --text-color: #e2e8f0;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --nav-bg: rgba(15, 23, 42, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-color);
}

/* Particle Canvas */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neue Styles für den Typing-Text Container */
.typing-container {
    height: 2em; /* Feste Höhe basierend auf der Schriftgröße */
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-height: 1.5em; /* Minimale Höhe entsprechend der Schriftgröße */
}

.hero-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
    opacity: 0.15;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .typing-container {
        height: 1.7em;
    }
} 

/* Gemeinsame Section Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    width: 300px;
    height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text p {
    position: relative;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-text .placeholder-text {
    visibility: hidden;
    user-select: none;
}

.about-text .typed-text {
    position: absolute;
    left: 0;
    top: 0;
}

/* Cursor-Styling ersetzen */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--primary-color);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

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

/* Alten Cursor-Style entfernen */
.about-text p:last-of-type::after {
    display: none;
}

/* Timeline Section Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: calc(50% - 30px);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: calc(50% + 30px);
    padding-left: 30px;
    text-align: left;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.6;
}

/* Timeline Punkt-Marker */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 2.5rem;
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -40px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

/* Mobile Anpassungen für die Timeline */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        margin-bottom: 1.5rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 22px !important;
        top: 2.5rem;
    }

    .timeline-content {
        padding: 1.2rem;
    }
}

/* Kleine Mobilgeräte */
@media (max-width: 480px) {
    .timeline-item {
        padding-left: 60px;
    }

    .timeline::after {
        left: 21px;
    }

    .timeline-item::before {
        left: 12px !important;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Fügt Abstand zwischen den Skill-Items hinzu */
}

.skill-item {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 0.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.skill-item span {
    font-size: 1rem;
}

.skill-level {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 2px 2px 0;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .skill-items {
        gap: 1rem; /* Etwas kleinerer Abstand auf mobilen Geräten */
    }
    
    .skill-item {
        padding: 0.8rem;
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Footer Styles - Update */
.footer {
    background: var(--card-bg);
    color: white;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer .container {
    padding: 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 0.3rem;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive Design Ergänzungen */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
} 

/* Particle Styles - Nach dem bestehenden #particles-js Style */
.particle-js-canvas-el {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

.particles-js-canvas-el text {
    fill: var(--primary-color);
    stroke: var(--primary-color);
    stroke-width: 1;
} 

/* Hamburger Menu Styles */
.burger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transition: right 0.5s ease;
        gap: 2rem;
        display: flex;
        margin: 0;
        padding: 2rem;
    }

    .nav-links.nav-active {
        right: 0;
        backdrop-filter: blur(10px);
        background: rgba(15, 23, 42, 0.95);
    }

    .nav-links a {
        margin: 0;
        font-size: 1.2rem;
        opacity: 0;
        transform: translateX(50px);
    }

    .nav-links.nav-active a {
        opacity: 1;
        transform: translateX(0);
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--text-color);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--text-color);
    }
}

/* Landscape Mode Anpassungen */
@media screen and (max-height: 450px) and (orientation: landscape) {
    .nav-links {
        padding: 2rem;
        justify-content: center;
        gap: 1.5rem;
    }
} 

/* Spezieller Style für den Projekte-Button in der Navbar */
.nav-links .projects-btn {
    background: var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    height: 40px;
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-links .projects-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Entferne den Unterstrich-Effekt für den Projekte-Button */
.nav-links .projects-btn::after {
    display: none;
}

/* Mobile Anpassungen für den Button */
@media screen and (max-width: 768px) {
    .nav-links .projects-btn {
        background: var(--primary-color);
        margin: 1rem 0;
        padding: 0.8rem 2rem;
    }
} 

/* Styles für Legal Pages Navigation */
.nav-legal {
    display: flex !important;
    right: 0 !important;
    position: relative !important;
    height: 70px !important;
    background: none !important;
    width: auto !important;
    align-items: center;
}

.back-home-btn {
    background: var(--primary-color);
    padding: 0 1.5rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1;
    font-family: inherit;
    font-weight: normal;
}

.back-home-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.back-home-btn::after {
    display: none;
}

/* Mobile Anpassungen */
@media screen and (max-width: 768px) {
    .nav-legal {
        padding: 0 !important;
        height: 70px !important;
    }
    
    .back-home-btn {
        height: 40px;
        padding: 0 1.5rem;
    }
} 

/* Grundlegende Fixes für horizontales Scrollen */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Hero Section Fix */
.hero {
    width: 100vw;
    max-width: 100%; /* Verhindert Überlauf */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Particles Fix */
#particles-js {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
}

/* Container Fix */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* Zusätzlicher Fix für mobile Ansicht */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
        box-sizing: border-box;
    }
} 

/* Neue Styles für die verbesserten Social Links */
.social-links-container {
    margin-top: 2rem;
    text-align: center;
}

.social-links-container h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: white;
}

.social-btn i {
    font-size: 1.2rem;
}

/* Kontakt Section Verbesserungen */
.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 1rem;
    }

    .social-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
} 

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background: #22c55e;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.notification.error {
    background: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* Submit Button Animation */
.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Entferne alte Styles */
.nav-legal,
.back-home-btn,
.nav-back-btn {
    display: none;
}

/* Mobile Anpassungen */
@media screen and (max-width: 768px) {
    .nav-back-btn {
        display: none;
    }
} 

/* Neues Button Design */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Icon zum Button hinzufügen */
.cta-button::after {
    content: '→';
    font-family: "Font Awesome 5 Free";
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
} 