/* --- VARIABLES --- */
:root {
    /* DARK MODE */
    --bg-color: #050507; 
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --primary: #9333ea; /* Purple */
    --primary-glow: rgba(147, 51, 234, 0.4);
    --accent: #FFD700; /* Yellow */
    --accent-hover: #ffca28;
    --accent-glow: rgba(255, 215, 0, 0.5);
    --glass-bg: rgba(15, 15, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.03);
    
    /* Bot Colors (Dark Mode) */
    --bot-head: #444;
    --bot-face: #000;
    --bot-eye: #FFD700; /* Yellow Eyes */
    
    /* Canvas Lines */
    --line-color: #FFD700; 
    
    --nav-height: 80px;
    --border-radius: 16px;
    --container-width: 1200px;
}

[data-theme="light"] {
    /* LIGHT MODE */
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-muted: #4b5563;
    
    --primary: #9333ea;
    --primary-glow: rgba(147, 51, 234, 0.2);
    
    --accent: #FFD700; 
    --accent-hover: #eab308;
    --accent-glow: rgba(255, 215, 0, 0.3);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-hover-bg: rgba(0, 0, 0, 0.03);

    /* Bot Colors (Light Mode - Inverted) */
    --bot-head: #444; /* Light Gray Head */
    --bot-face: #000; /* Darker Gray Face */
    --bot-eye: #FFD700; /* Yellow Eyes */

    --line-color: #d8b4fe; 
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* Canvas Background */
#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.6; pointer-events: none;
}

/* --- CUSTOM CURSOR (SVG Image) --- */
#custom-cursor {
    position: fixed; top: 0; left: 0; width: 30px; height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L0 100H50V0Z' fill='%239333ea'/%3E%3Cpath d='M50 0L100 100H50V0Z' fill='%23FFD700'/%3E%3Cpath d='M0 100L50 65L100 100' stroke='white' stroke-width='2'/%3E%3Cpath d='M50 0V100' stroke='white' stroke-width='2'/%3E%3Cpath d='M25 50L75 50' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%) rotate(-25deg);
    transition: transform 0.1s;
}

/* Text Selection */
::selection { background: var(--primary); color: #fff; }

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: var(--glass-bg); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border);
    z-index: 1000; display: flex; justify-content: center;
}
.nav-container { width: 90%; max-width: var(--container-width); display: flex; justify-content: space-between; align-items: center; }

/* Logo SVG Size */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.5rem; color: var(--text-main); }
.logo-svg { width: 50px; height: 50px; }
.dot { color: var(--accent); }
[data-theme="light"] .dot { color: var(--primary); }

.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-item { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color 0.3s; position: relative; }
.nav-item:hover, .nav-item.active { color: var(--accent); }
/* Light Mode Link Hover -> Purple */
[data-theme="light"] .nav-item:hover, [data-theme="light"] .nav-item.active { color: var(--primary); }

.nav-item::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
[data-theme="light"] .nav-item::after { background: var(--primary); }
.nav-item:hover::after { width: 100%; }

.nav-actions { display: flex; gap: 1rem; align-items: center; }
#theme-toggle { background: transparent; border: 1px solid var(--glass-border); color: var(--text-main); padding: 8px 12px; border-radius: 50%; cursor: none; transition: 0.3s; }
#theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
/* Light Mode Theme Toggle -> Purple */
[data-theme="light"] #theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* --- LANGUAGE TOGGLE BUTTON --- */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    cursor: none; /* Für deinen Custom Cursor */
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}[data-theme="light"] .lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hamburger { display: none; cursor: none; z-index: 1002; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-main); border-radius: 3px; transition: all 0.3s ease-in-out; }

/* Mobile Menu */
.mobile-menu-overlay { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--bg-color); z-index: 1001; display: flex; justify-content: center; align-items: center; transition: 0.4s ease-in-out; }
.mobile-menu-overlay.active { right: 0; }
.mobile-links { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-link { font-size: 2rem; color: var(--text-main); text-decoration: none; font-weight: 700; display: block; }
.mobile-link:hover { color: var(--accent); }
[data-theme="light"] .mobile-link:hover { color: var(--primary); }

.close-menu-btn {
    position: absolute; top: 20px; right: 20px;
    background: transparent; border: none; font-size: 2rem;
    color: var(--text-main); cursor: pointer; transition: 0.3s;
}
.close-menu-btn:hover { color: var(--primary); transform: scale(1.1); }

/* --- 1. HERO SECTION --- */
.hero-section {
    min-height: 100vh; padding-top: var(--nav-height);
    display: flex; align-items: center; justify-content: center;
    position: relative; padding-bottom: 2rem;
}
.hero-container {
    width: 90%; max-width: var(--container-width);
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.hero-content { text-align: left; }
.badge {
    background: rgba(147, 51, 234, 0.1); color: var(--primary);
    border: 1px solid var(--primary); padding: 5px 15px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 1px; display: inline-block;
}
.hero-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }

/* --- Text Glitch Effect für "Digital Future" --- */
.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--text-main); /* Einfarbiger Text (Weiß im Darkmode, Schwarz im Lightmode) */
    font-weight: 800;
}

/* Erstellt zwei unsichtbare Kopien des Textes, die exakt übereinander liegen */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* Erste Glitch-Ebene (Lila Schatten) */
.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary);
    animation: text-glitch-1 2s infinite linear alternate-reverse;
}

/* Zweite Glitch-Ebene (Gelbe Schatten) */
.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent);
    animation: text-glitch-2 3s infinite linear alternate-reverse;
}

/* Animations-Keyframes (Schneidet den Text in flackernde Streifen) */
@keyframes text-glitch-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(30% 0 20% 0); transform: translate(1px, -1px); }
}

@keyframes text-glitch-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
    20% { clip-path: inset(30% 0 20% 0); transform: translate(-2px, 1px); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 2px); }
    60% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, -2px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(1px, -1px); }
    100% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, 1px); }
}

/* Hero Name & About Name Effect */
.hero-name-effect {
    font-weight: 800;
    display: inline-block;
}

.hero-name-effect .name-purple {
    color: var(--primary);
}

.hero-name-effect .name-yellow {
    color: var(--accent);
}
@keyframes shine { to { background-position: 200% center; } }

.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px; }
.cta-wrapper { display: flex; gap: 1rem; }

/* Buttons */
.btn { padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: none; }
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-secondary { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; box-shadow: 0 0 15px var(--primary-glow); }

/* Binary Hero Image */
.hero-visual { position: relative; height: 500px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.binary-frame {
    width: 100%; height: 100%; border-radius: 24px;
    position: relative; overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000; cursor: pointer;
}
#binary-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; opacity: 1; transition: opacity 0.5s; }
.real-photo { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; opacity: 0; transition: opacity 0.5s; }
.click-hint { margin-top: 10px; font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; }
.binary-frame.revealed #binary-canvas { opacity: 0; }
.binary-frame.revealed .real-photo { opacity: 1; }
.glitch-layers { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; display: none; }
.binary-frame.glitching .glitch-layers { display: block; }
.glitch-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; mix-blend-mode: hard-light; }
.binary-frame.glitching .glitch-layer:nth-child(1) { background-color: rgba(255,0,0,0.2); animation: glitch-anim-1 0.2s infinite linear alternate-reverse; }
.binary-frame.glitching .glitch-layer:nth-child(2) { background-color: rgba(0,255,0,0.2); animation: glitch-anim-2 0.2s infinite linear alternate-reverse; }
@keyframes glitch-anim-1 { 0% { clip-path: inset(20% 0 80% 0); transform: translate(-5px,0); } 100% { clip-path: inset(60% 0 10% 0); transform: translate(5px,0); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(10% 0 50% 0); transform: translate(5px,0); } 100% { clip-path: inset(40% 0 20% 0); transform: translate(-5px,0); } }

/* --- 2. PROCESS SECTION --- */
.section-pad { padding: 6rem 5%; max-width: var(--container-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; }
/* Light Mode Yellow Titles -> Purple */
[data-theme="light"] .section-tag { color: var(--primary); }

.section-title { font-size: 2.5rem; margin-top: 10px; }

.process-timeline { display: flex; justify-content: space-between; align-items: flex-start; position: relative; width: 100%; margin-top: 2rem; }
.timeline-line { position: absolute; top: 40px; left: 50px; right: 50px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 0; opacity: 0.3; }
.process-step { position: relative; z-index: 1; width: 18%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.step-icon-box {
    width: 80px; height: 80px; background: var(--primary);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.8rem; margin-bottom: 1.5rem;
    position: relative; box-shadow: 0 0 20px var(--primary-glow); transition: transform 0.3s;
}
.process-step:hover .step-icon-box { transform: translateY(-10px) scale(1.1); }
.step-badge {
    position: absolute; top: -10px; right: -10px;
    width: 30px; height: 30px; background: var(--accent);
    color: #000; border-radius: 50%; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; border: 2px solid var(--bg-color);
}
.process-step h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

/* --- 3. SERVICES SECTION --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 2.5rem; border-radius: var(--border-radius); transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); border-color: var(--accent); }
[data-theme="light"] .service-card:hover { border-color: var(--primary); }

.icon-box {
    width: 50px; height: 50px; background: rgba(147, 51, 234, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary); margin-bottom: 1.5rem; transition: 0.3s;
}
.service-card:hover .icon-box { color: var(--accent); background: rgba(255, 215, 0, 0.1); }
[data-theme="light"] .service-card:hover .icon-box { color: var(--primary); background: rgba(147, 51, 234, 0.1); }

.service-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- 4. ABOUT SECTION --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.about-card-main { padding: 2rem; border-radius: 16px; margin-bottom: 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.about-title { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }

.bio-intro { font-size: 1.1rem; color: var(--text-main); margin-bottom: 1rem; font-weight: 500; }
.bio-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.info-cards-row { display: flex; gap: 1rem; }
.info-card { flex: 1; padding: 1.5rem; text-align: center; border-radius: 16px; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.info-card i { color: var(--primary); font-size: 1.5rem; margin-bottom: 0.5rem; }
.info-card h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.info-card span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }

/* --- EXTERNAL LINK BOX (BaslByte) --- */
.external-link-box {
    margin: 1.5rem 0 2rem 0;
    width: 100%; /* Stellt sicher, dass die Box 100% breit ist */
}

.external-link {
    display: flex; /* GEÄNDERT: von inline-flex zu flex */
    width: 100%;   /* NEU: Nimmt die volle Breite ein */
    align-items: center;
    justify-content: space-between; /* Drückt Text nach links, Icon nach rechts */
    padding: 16px 24px; /* Etwas mehr Padding oben/unten (16px) sieht bei voller Breite edler aus */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: none;
}

/* Das Icon bekommt Standardmäßig die Lila-Farbe */
.external-link i {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover-Effekt: Box schwebt, leuchtet Lila */
.external-link:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: var(--text-main);
}

/* Hover-Effekt Icon: Pfeil springt nach rechts oben und wird Gelb */
.external-link:hover i {
    color: var(--accent);
    transform: translate(3px, -3px) scale(1.1);
}

/* Light Mode Anpassung */[data-theme="light"] .external-link:hover {
    background: rgba(147, 51, 234, 0.05);
}

/* Skills */
.skills-box { padding: 2rem; border-radius: 16px; margin-bottom: 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.skills-box h3, .tech-box h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.skill-group { margin-bottom: 1.2rem; }
.skill-label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.progress-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
[data-theme="light"] .progress-bg { background: rgba(0,0,0,0.1); }
.progress-bar { height: 100%; width: 0; border-radius: 4px; transition: width 1.5s ease-out; }
.progress-bar.yellow { background: var(--accent); }
.progress-bar.purple { background: var(--primary); }

/* Tech Tags */
.tech-box { padding: 2rem; border-radius: 16px; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tags-cloud span {
    padding: 6px 14px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border); border-radius: 20px;
    font-size: 0.85rem; color: var(--text-muted);
    transition: 0.3s; cursor: none;
}
[data-theme="light"] .tags-cloud span { background: rgba(0,0,0,0.05); }

/* Tech Tags Hover Effect */
.tags-cloud span:hover {
    background: var(--accent);
    color: var(--bg-color); /* Dark Text */
    border-color: var(--accent);
}
[data-theme="light"] .tags-cloud span:hover {
    background: var(--primary);
    color: #fff; /* White Text */
    border-color: var(--primary);
}


/* --- CONTACT & BOT --- */
.container-split {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 3rem; backdrop-filter: blur(20px);
}
.bot-container { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; min-height: 300px; }
.bot-wrapper { width: 120px; height: 140px; position: relative; animation: floatBot 4s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes floatBot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Bot Variables */
.bot-head {
    width: 80px; height: 70px; 
    background: var(--bot-head); /* Variable */
    border-radius: 25px; margin: 0 auto; position: relative; z-index: 2;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1), 0 0 20px rgba(147, 51, 234, 0.3); 
    border: 2px solid #333; 
    transition: transform 0.2s, background-color 0.3s;
}
[data-theme="light"] .bot-head { border-color: #cbd5e1; }

.bot-face {
    width: 60px; height: 40px; 
    background: var(--bot-face); /* Variable */
    border-radius: 15px; position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    display: flex; gap: 10px; justify-content: center; align-items: center; 
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

.bot-eye {
    width: 12px; height: 12px; 
    background: var(--bot-eye); /* Variable */
    border-radius: 50%; box-shadow: 0 0 10px var(--bot-eye); 
    transition: all 0.1s;
}
.bot-body {
    width: 60px; height: 40px; 
    background: var(--bot-head); /* Variable */
    margin: -10px auto 0; border-radius: 0 0 20px 20px; 
    position: relative; z-index: 1;
}
.core-light { width: 15px; height: 15px; background: var(--primary); border-radius: 50%; margin: 10px auto; box-shadow: 0 0 15px var(--primary); }
.bot-antenna { width: 4px; height: 20px; background: #555; margin: 0 auto -5px; }
.bulb { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; position: absolute; top: -5px; left: 56px; }
.bot-dialogue { margin-top: 2rem; background: rgba(147, 51, 234, 0.1); padding: 10px 20px; border-radius: 20px; border: 1px solid var(--primary); color: var(--text-main); font-size: 0.9rem; position: relative; }
.bot-wrapper.success-anim { animation: happyJump 0.6s ease-in-out infinite alternate; }
@keyframes happyJump { 0% { transform: translateY(0); } 100% { transform: translateY(-20px) rotate(5deg); } }
.bot-wrapper.success-anim .bot-eye { background: transparent; box-shadow: none; border-top: 3px solid #22c55e; border-left: 3px solid #22c55e; border-radius: 0; width: 12px; height: 12px; transform: rotate(45deg) !important; }
.bot-wrapper.success-anim .bot-head { border-color: #22c55e; box-shadow: 0 0 30px rgba(34, 197, 94, 0.4); }

/* --- FORM --- */
.input-group { position: relative; margin-bottom: 2rem; height: 50px; }
.input-group input, .input-group textarea { width: 100%; height: 100%; padding: 15px 0 5px 0; font-size: 1rem; color: var(--text-main); background: transparent; border: none; border-bottom: 1px solid var(--text-muted); outline: none; transition: 0.3s; font-family: 'Inter', sans-serif; z-index: 2; position: relative; }
.input-group textarea { height: auto; resize: none; min-height: 80px; margin: 0 0 -8px 0; }
.input-group label { position: absolute; top: 15px; left: 0; color: var(--text-muted); pointer-events: none; transition: 0.3s ease all; font-size: 1rem; z-index: 1; }
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label, .input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label { top: -5px; font-size: 0.8rem; color: var(--accent); }
[data-theme="light"] .input-group input:focus ~ label, [data-theme="light"] .input-group input:not(:placeholder-shown) ~ label { color: var(--primary); }

.focus-border { position: relative; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: 0.3s; z-index: 3; }
[data-theme="light"] .focus-border { background: var(--primary); }

.input-group input:focus ~ .focus-border, .input-group textarea:focus ~ .focus-border { width: 100%; }
.btn-submit { width: 100%; justify-content: center; margin-top: 2rem; }

/* Footer */
.glass-footer { border-top: 1px solid var(--glass-border); background: var(--bg-color); padding: 4rem 5% 2rem; margin-top: auto; }
.footer-container { max-width: var(--container-width); margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; }
.footer-col h4 { color: var(--text-main); font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 700; }
.brand-col .logo { margin-bottom: 1.5rem; }
.footer-bio { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 300px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { text-decoration: none; color: var(--text-muted); transition: 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
[data-theme="light"] .footer-links a:hover { color: var(--primary); }

.socials {
    display: grid;
    grid-template-columns: repeat(3, 45px); /* Erstellt genau 3 Spalten, jeweils 45px breit (Breite der Icons) */
    gap: 1rem; /* Abstand zwischen den Icons */
    justify-content: start; /* Richtet den gesamten Block links aus */
}
.social-icon { width: 45px; height: 45px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: 0.3s; }
[data-theme="light"] .social-icon { background: rgba(0,0,0,0.05); }
.social-icon:hover { background: var(--glass-bg); border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
[data-theme="light"] .social-icon:hover { border-color: var(--primary); color: var(--primary); }

.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.85rem; }
.heart { color: var(--accent); animation: pulse 1.5s infinite; display: inline-block; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 1; text-align: center; }
    .hero-visual { order: 2; height: 350px; margin-bottom: 2rem; }
    .hero-title { font-size: 3rem; }
    .cta-wrapper { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .container-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .hamburger { display: block; }
    .process-timeline { flex-direction: column; align-items: center; gap: 2rem; }
    .timeline-line { display: none; }
    .process-step { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* --- PROJECTS SECTION --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Hover Effect: Lift & Glow */
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
/* Light Mode Hover: Purple Border */
[data-theme="light"] .project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.15);
}

/* Image Area */
.project-visual {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-visual img {
    transform: scale(1.1);
}

/* Overlay with Buttons */
.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 7, 0.7); /* Dark semi-transparent */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .project-overlay {
    background: rgba(255, 255, 255, 0.6);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .overlay-actions {
    transform: translateY(0);
}

/* Circular Action Buttons */
.action-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.action-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.1);
}

/* Content Area */
.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

/* Neon Bottom Line Effect */
.project-content::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--accent); /* Yellow Line */
    transition: width 0.4s ease;
}
/* Light Mode: Purple Line */
[data-theme="light"] .project-content::after {
    background: var(--primary);
}

.project-card:hover .project-content::after {
    width: 100%;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.project-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(147, 51, 234, 0.1);
    color: var(--primary);
    border: 1px solid rgba(147, 51, 234, 0.2);
    font-weight: 500;
}

/* Light Mode Tags */
[data-theme="light"] .project-tags span {
    background: rgba(147, 51, 234, 0.05);
    border-color: rgba(147, 51, 234, 0.15);
}