/* ============================================================================
   Persönliche Bewerbungs-Website - Modernes Design
   ============================================================================ */

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #ff6b6b;
    --dark: #1a1a2e;
    --light: #f5f5f5;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(180deg, #0a1628 0%, #0d2144 15%, #1a3a6e 35%, #4a7ab5 60%, #a8c4e0 80%, #ffffff 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1em;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--dark);
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.navbar nav {
    display: flex;
    gap: 2rem;
}

.navbar nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition);
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(26, 58, 110, 0.85) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 3rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero .bio {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Portfolio Banner Image */
.banner-image {
    width: 100%;
    max-width: 630px;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    border-radius: var(--border-radius);
}

/* Sections */
section {
    padding: 60px 0;
}

/* Skills Section */
.skills-section {
    background: transparent;
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.skill-badge {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.skill-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.2);
}

/* Experience Section */
.experience-section {
    background: transparent;
}

.experience-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-marker {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border: 4px solid white;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--primary);
    left: 13px;
    top: 30px;
}

.timeline-item:last-child .timeline-marker::after {
    display: none;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
}

.timeline-content .company {
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d4d 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Projects Section */
.projects-section {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.project-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    width: 100%;          /* kein max-width: 380px mehr */
}

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.project-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.project-header h3 {
    margin-bottom: 0;
}

.project-description {
    color: var(--gray);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
}

.project-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    transform: translateX(4px);
}

/* Education Section */
.education-section {
    background: transparent;
}

.education-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.education-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.education-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    flex: 0 1 auto;
    width: auto;
    min-width: 280px;
    max-width: 400px;
}

.education-item h3 {
    margin-bottom: 0.5rem;
}

.education-item .institution {
    color: var(--gray);
    font-weight: 500;
}

.education-item .year {
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
    background: transparent;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

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

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

.contact-link {
    display: inline-block;
    word-break: break-all;
    color: #ffffff;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* CTA Section */
.cta-section {
    background: rgba(10, 22, 40, 0.15);
    color: var(--dark);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

/* Button-Problem aus vorher – auf transparentem Hintergrund stimmt wieder der Original-Stil */
.cta-section .btn-primary {
    background: var(--primary);
    color: white;
}

.cta-section .btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        gap: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .skills-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar nav {
        gap: 1rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .skills-grid {
        justify-content: center;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(180deg, #050d1a 0%, #091428 15%, #0f2040 35%, #1a3a6e 60%, #2a4a7e 80%, #1a1a2e 100%);
        color: #e0e0e0;
    }
    
    .project-card,
    .education-item {
        background: #2d2d4d;
        border-color: #3d3d5d;
    }
    
    .form-group input,
    .form-group textarea {
        background: #2d2d4d;
        color: #e0e0e0;
        border-color: #3d3d5d;
    }
    
    .page-header {
        background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
    }
}

/* Print */
@media print {
    .navbar,
    .footer,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
    }
}
