
:root {
    --primary-orange: #FF5E11;
    --primary-gradient: linear-gradient(150deg, #FF5E11 0%, #a12e00 100%);
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Light Mode */
    --bg-body: #f0f2f5;
    --bg-glass: rgba(255, 255, 255, 0.65);
    --text-main: #1a1a1a;
    --text-muted: #555;
    --border-glass: rgba(255, 255, 255, 0.6);
    --nav-glass: rgba(255, 255, 255, 0.85);
    --grid-line: rgba(0,0,0,0.05);
    --code-bg: rgba(255, 255, 255, 0.8);
}

body.dark-mode {
    --bg-body: #0f0f0f;
    --bg-glass: rgba(25, 25, 25, 0.6);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --border-glass: rgba(255, 255, 255, 0.08);
    --nav-glass: rgba(15, 15, 15, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --grid-line: rgba(255, 255, 255, 0.05);
    --code-bg: rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 0;
    transition: background 0.4s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex; 
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-orange);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

/* CONTROLS (Socials & Buttons) */
.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 12px;
    padding-right: 15px;
    border-right: 1px solid var(--text-muted);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: fill 0.3s, transform 0.3s;
}

.social-icon:hover svg {
    fill: var(--primary-orange);
    transform: translateY(-2px);
}

/* Buttons für Theme & Sprache */
.controls button { 
    background: transparent; 
    border: 1px solid var(--text-muted); 
    color: var(--text-main); 
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer; 
    font-size: 1rem; 
    transition: all 0.3s; 
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
}

.controls button:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.3);
    color: var(--primary-orange);
}

.flag-icon {
    width: 28px;
    height: auto;
    border-radius: 2px;
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s ease;
}

.icon-moon { display: block; }

.icon-sun { display: none; }

body.dark-mode .icon-moon { display: none; }

body.dark-mode .icon-sun { 
    display: block; 
    color: var(--primary-orange);
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    perspective: 1000px;
    overflow: hidden;
}

.grid-plane {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotateX(45deg);
    animation: moveGrid 20s linear infinite; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-body) 80%);
    z-index: 2; }

@keyframes moveGrid {
    0% { transform: rotateX(45deg) translateY(0); }
    100% { transform: rotateX(45deg) translateY(50px); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, var(--text-main), var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
}

.hero .highlight { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.btn-cta {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 140, 66, 0.3);
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 140, 66, 0.5);
}

.hero-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.code-window {
    background: var(--code-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    font-family: 'Fira Code', monospace;
    overflow: hidden;
}

.window-header {
    background: rgba(0,0,0,0.1);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.window-body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

.keyword {
    color: #ff5e62;
    font-weight: bold;
}

.string { color: #27c93f; }

.function { color: #FF8C42; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--primary-orange);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes blink { 50% { opacity: 0; } }

/* SECTIONS & CARDS */
section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 700;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px var(--shadow-color);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-orange);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* PROJECT CARDS */
.project-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.project-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-img-wrapper img { transform: scale(1.1); }

.project-content { padding: 30px; }

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 140, 66, 0.1);
    color: var(--primary-orange);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-small {
    margin-top: auto;
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-small:hover { text-decoration: underline; }

/* TESTIMONIALS */
.testimonial-card {
    position: relative;
    font-style: italic;
}

.quote-icon {
    font-size: 4rem;
    position: absolute;
    top: 0px;
    left: 0px;
    color: var(--primary-orange);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card .author {
    margin-top: 20px;
    font-style: normal;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* TEAM */
.team-card {
    text-align: center;
    align-items: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-glass);
    margin: 0 auto 20px;
    border: 3px solid var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@media (min-width: 900px) {
    .team-highlight {
        transform: scale(1.1);
        z-index: 5;
        box-shadow: 0 15px 30px rgba(255, 98, 0, 0.2);
    }
    .team-highlight:hover { transform: scale(1.15) translateY(-10px); }
}

/* CONTACT */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-glass);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

input, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--text-muted);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255,255,255,0.1);
}

/* FOOTER */
footer {
    padding: 25px 0;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 2;
    background: var(--nav-glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-left .footer-banner {
    max-width: 250px;
    height: auto;
    display: block;
}

.footer-right {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    margin-top: 10px;
    margin-left: 10px;
    display: inline-block;
    font-size: 0.9rem;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-body);
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--primary-orange);
    color: var(--text-main);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-orange);
}

/* COOKIE BANNER */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-top: 2px solid var(--primary-orange);
    padding: 20px;
    z-index: 9999;
    background-color: var(--bg-body);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cookie-decline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .team-highlight {
        transform: none;
        box-shadow: 0 4px 6px var(--shadow-color);
        border-color: var(--border-glass);
    }
}

@media (max-width: 768px) { 
    .navbar {
        flex-direction: column;
        gap: 15px;
    } 
    .nav-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero {
        padding-top: 200px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    } 
    .hero h1 {
        font-size: 3rem;
    } 
    .hero-visual {
        width: 100%;
    } 
    .controls {
        margin-top: 10px;
    } 
    section {
        padding-top: 25px;
        padding-bottom: 25px;
        padding-right: 100px;
        padding-left: 100px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    } 
    .footer-right { text-align: center; } 
    .footer-left .footer-banner {
        margin: 0 auto;
        max-width: 250px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
