:root {
    /* --- NEUE FARBPALETTE: BLAU & ORANGE --- */
    /* Primärfarbe: Ein modernes, kräftiges Tech-Blau */
    --primary-color: #2563eb; 
    --primary-dark: #1d4ed8; /* Dunkleres Blau für Hover */
    
    /* Akzentfarbe: Ein lebendiges Orange */
    --accent-color: #f97316; 
    --accent-glow: rgba(249, 115, 22, 0.5); /* Für Leuchteffekte */
    
    /* Dark Mode Defaults (Standard) - Sehr dunkles Blau als Basis */
    --background-color: #0b1120; /* Fast Schwarz, leichter Blaustich */
    --surface-color: #1e293b;    /* Dunkles Schieferblau für Karten */
    --surface-hover: #334155;
    --text-color: #f1f5f9;       /* Helles Weiß-Grau */
    --text-muted: #94a3b8;       /* Gedämpftes Grau-Blau */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Schatten bleiben gleich */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --font-family: 'Poppins', sans-serif;
    --navbar-height: 80px;
}

body.light-mode {
    /* Light Mode Anpassungen */
    --background-color: #f0f9ff; /* Sehr helles Blau-Weiß */
    --surface-color: #ffffff;
    --surface-hover: #f8fafc;
    --text-color: #0f172a;       /* Sehr dunkles Blau für Text */
    --text-muted: #475569;
    --border-color: #e2e8f0;
}

/* Globale Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    height: var(--navbar-height);
    background: rgba(var(--surface-color), 0.95); /* Leicht transparent */
    backdrop-filter: blur(10px); /* Moderner Milchglas-Effekt */
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

/* Der Punkt im Logo ist jetzt Orange */
.navbar .logo .dot { color: var(--accent-color); }

.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { list-style: none; display: flex; gap: 2rem; }

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

/* Hover-Effekt für Links: Kleiner oranger Strich */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent-color); }
.nav-links a:hover::after { width: 100%; }

/* Theme Toggle */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(249, 115, 22, 0.1);
}

.sun-icon, .moon-icon {
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.sun-icon { opacity: 1; transform: scale(1); rotate: 0deg; }
.moon-icon { opacity: 0; transform: scale(0.5); rotate: 90deg; }
body.light-mode .sun-icon { opacity: 0; transform: scale(0.5); rotate: -90deg; }
body.light-mode .moon-icon { opacity: 1; transform: scale(1); rotate: 0deg; }

/* --- Social Sidebar --- */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 100;
    background: var(--surface-color);
    padding: 1rem 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.social-sidebar a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.social-sidebar a:hover {
    color: var(--accent-color); /* Hover ist jetzt Orange */
    transform: scale(1.2);
}

/* --- NEUES HERO DESIGN (The Glowing Orb) --- */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--navbar-height);
    overflow: hidden;
    /* Dunkler Hintergrund als Basis */
    background-color: var(--background-color);
}

/* Das technische Gitter-Muster im Hintergrund */
.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%); /* Verblasst zum Rand */
}

.hero-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    z-index: 1; /* Inhalt über dem Gitter */
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.greeting {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color); /* Orange Begrüßung */
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Name wird in Orange hervorgehoben */
.highlight-text {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.role-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    /* Gradient Text für den Untertitel (Blau zu Orange) */
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 90%;
}

.hero-btns { display: flex; gap: 1rem; }

/* Bild Bereich mit Leucht-Effekt */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 600px; /* Feste Höhe für den Bereich */
}

/* Der leuchtende Orb hinter dem Bild */
.image-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    /* Ein radialer Verlauf von Orange innen nach Blau außen */
    background: radial-gradient(circle, var(--accent-color) 0%, var(--primary-color) 70%, transparent 100%);
    filter: blur(80px); /* Starker Weichzeichner für den Glow */
    opacity: 0.5;
    z-index: -1; /* Hinter dem Bild */
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

/* Leichte Pulsier-Animation für den Glow */
@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    z-index: 2;
    /* Drop Shadow lässt das Bild vom Glow abheben */
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); 
    animation: floatImage 4s ease-in-out infinite alternate;
}

/* Leichtes Schweben des Bildes */
@keyframes floatImage {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* Buttons (Angepasst an Blau/Orange) */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

/* Hauptbutton: Blau */
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* Zweitbutton: Orange Outline */
.btn-accent-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.btn-accent-outline:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}


/* --- Sections General --- */
section { padding: 6rem 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 4rem; font-weight: 700; }
.section-title-left { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* --- About --- */
.about-text-full .lead {
    font-size: 1.3rem;
    color: var(--primary-color); /* Blau für den Lead-Text */
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.about-text-full p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}
.skill-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem 1rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}
/* Hover Effekt für Skills: Rahmen und Icon werden Blau */
.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}
.skill-card i {
    font-size: 2.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: color 0.3s;
}
.skill-card:hover i { color: var(--primary-color); }
.skill-card h3 { font-size: 1rem; font-weight: 500; }

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}
.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex; flex-direction: column; height: 100%;
    box-shadow: var(--shadow-sm); 
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}
.card-image {
    height: 240px;
    overflow: hidden;
    background-color: var(--surface-hover);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
/* Blauer Overlay-Effekt beim Hover über das Bild */
.card-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.8), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover .card-image::after { opacity: 1; }

.card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .card-image img { transform: scale(1.08); }

.project-info { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-info h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--text-color); }
.project-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; flex-grow: 1; }

.tags { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
/* Tags sind jetzt Blau getönt */
.tags span {
    background: rgba(37, 99, 235, 0.1); /* Leichtes Blau */
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Projekt Button ist Blau */
.btn-view {
    display: block; width: 100%; text-align: center;
    background-color: var(--primary-color);
    color: white; padding: 1rem; border-radius: 12px;
    text-decoration: none; font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.btn-view:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

/* --- Contact --- */
.contact-wrapper {
    max-width: 700px; margin: 0 auto;
    background: var(--surface-color);
    padding: 3.5rem; border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
.contact-subtitle { text-align: center; margin-bottom: 2.5rem; color: var(--text-muted); font-size: 1.1rem; }
.form-row { display: flex; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; width: 100%; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.95rem; font-weight: 500; color: var(--text-color); }
input, textarea {
    width: 100%; padding: 1rem 1.2rem;
    border-radius: 12px; border: 2px solid var(--border-color);
    background: var(--background-color); color: var(--text-color);
    font-family: inherit; font-size: 1rem;
    transition: all 0.3s;
}
/* Fokus auf Eingabefelder ist jetzt Orange für Akzent */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}
textarea { min-height: 150px; resize: vertical; }

/* Submit Button ist Orange für Call-to-Action */
.btn-submit {
    width: 100%; padding: 1rem;
    background: var(--accent-color);
    color: white; border: none; border-radius: 12px;
    font-size: 1.1rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}
.btn-submit:hover {
    background-color: #ea580c; /* Etwas dunkleres Orange */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

/* --- Footer --- */
.footer { padding: 3rem 0; background: var(--background-color); border-top: 1px solid var(--border-color); color: var(--text-muted); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-links a { color: var(--text-muted); text-decoration: none; margin-left: 2rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-color); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .social-sidebar { display: none; }
    .hero-container { flex-direction: column; text-align: center; padding-top: 3rem; }
    .hero-text { padding-right: 0; margin-bottom: 3rem; max-width: 100%; }
    .hero-text h1 { font-size: 3.5rem; }
    .role-subtitle { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-image-wrapper { height: 400px; width: 100%; }
    .image-glow { width: 350px; height: 350px; }
    .hero-img { max-height: 400px; }
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 768px) {
    .navbar .container { padding: 0 1rem; }
    .nav-links { display: none; } 
    .hero-text h1 { font-size: 2.8rem; }
    .role-subtitle { font-size: 1.4rem; }
    .about-content { flex-direction: column; }
    .contact-wrapper { padding: 2rem; }
    .footer-content { flex-direction: column; gap: 1.5rem; }
    .footer-links { margin-top: 1rem; }
    .footer-links a { margin: 0 1rem; }
}