/* ===== Local Fonts ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --accent: #7b2fff;
    --accent-light: #a855f7;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.85);
    --bg-card-hover: rgba(25, 25, 55, 0.9);
    --text: #e0e0f0;
    --text-muted: #8888aa;
    --border: rgba(100, 100, 200, 0.15);
    --glow: rgba(0, 212, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Plasma Canvas ===== */
#plasma {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

/* ===== Tron Grid Canvas ===== */
#tron-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

/* ===== Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

/* ===== Language Switcher ===== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.25rem;
    margin-left: 1rem;
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0.3rem 0.7rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switch button.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.lang-switch button:hover:not(.active) {
    color: var(--primary);
}

/* Language visibility — only target elements INSIDE body, never html itself */
body span[lang="en"] { display: none; }
body div[lang="en"],
body p[lang="en"],
body ul[lang="en"],
body li[lang="en"],
body h1[lang="en"],
body h2[lang="en"],
body h3[lang="en"] { display: none; }

body.lang-en span[lang="en"] { display: inline; }
body.lang-en span[lang="de"] { display: none; }

body.lang-en div[lang="en"],
body.lang-en p[lang="en"],
body.lang-en ul[lang="en"],
body.lang-en li[lang="en"],
body.lang-en h1[lang="en"],
body.lang-en h2[lang="en"],
body.lang-en h3[lang="en"] { display: block; }

body.lang-en div[lang="de"],
body.lang-en p[lang="de"],
body.lang-en ul[lang="de"],
body.lang-en li[lang="de"],
body.lang-en h1[lang="de"],
body.lang-en h2[lang="de"],
body.lang-en h3[lang="de"] { display: none; }

body.lang-en ul.beispiel-features[lang="en"] { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { body.lang-en ul.beispiel-features[lang="en"] { grid-template-columns: 1fr; } }

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

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px var(--glow));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}

/* ===== Sections Common ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
    background: var(--bg-card-hover);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Consulting ===== */
.consulting {
    background: rgba(5, 5, 20, 0.5);
}

.consulting-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.consulting-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.consulting-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.consulting-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.consulting-item:hover::before {
    opacity: 1;
}

.consulting-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.6rem;
}

.consulting-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Beispiele Page ===== */
.beispiele-hero {
    padding-top: 10rem;
    padding-bottom: 2rem;
    text-align: center;
}

.beispiele-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.beispiele-grid-section {
    padding: 2rem 0 6rem;
}

.beispiele-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.beispiel-card {
    background: rgba(4, 4, 16, 0.25);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    backdrop-filter: none;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.06);
}

.beispiel-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--primary), var(--accent), transparent 95%);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.beispiel-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, rgba(0, 212, 255, 0.25), transparent 95%);
    opacity: 1;
}

.beispiel-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
    background: rgba(4, 4, 16, 0.85);
}

.beispiel-card:hover::after {
    opacity: 1;
}

.beispiel-card:hover::before {
    background: linear-gradient(90deg, transparent 5%, rgba(0, 212, 255, 0.5), transparent 95%);
}

.beispiel-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    color: var(--primary);
    margin-top: 0.2rem;
}

.beispiel-icon svg {
    width: 100%;
    height: 100%;
}

.beispiel-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.6rem;
    background: none;
    -webkit-text-fill-color: #fff;
}

.beispiel-content p {
    color: #b0b0cc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.beispiel-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
}

.beispiel-features li {
    color: #b0b0cc;
    font-size: 0.85rem;
    padding-left: 1.2rem;
    position: relative;
}

.beispiel-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

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

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

@media (max-width: 768px) {
    .beispiele-grid {
        grid-template-columns: 1fr;
    }

    .beispiel-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .beispiel-features {
        grid-template-columns: 1fr;
    }

    .beispiele-hero h1 {
        font-size: 2rem;
    }
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--accent-light);
}

/* ===== Footer ===== */
footer {
    background: rgba(5, 5, 15, 0.9);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-logo span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-content {
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

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

/* ===== Legal Pages (Impressum / Datenschutz) ===== */
.legal-page {
    padding-top: 10rem;
    padding-bottom: 4rem;
}

.legal-page h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, var(--primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.legal-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.legal-block h2 {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 1rem;
    background: none;
    -webkit-text-fill-color: #fff;
}

.legal-block h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1.2rem 0 0.5rem;
}

.legal-block h3:first-child {
    margin-top: 0;
}

.legal-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.legal-block a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-block a:hover {
    color: var(--accent-light);
}

.legal-block ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.legal-block ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.3rem;
}

.legal-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 7rem;
    }

    .legal-page h1 {
        font-size: 2rem;
    }

    .legal-block {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== To Top Button ===== */
.to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(10px);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    z-index: 99;
}

.to-top svg {
    width: 22px;
    height: 22px;
}

.to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.to-top:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s, opacity 0.3s;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .consulting-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .lang-switch {
        margin-left: 0;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    nav {
        padding: 0.8rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ===== Cookie / DSGVO Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 26, 0.97);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 720px;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.cookie-banner-text a:hover {
    color: var(--accent-light);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.55rem 1.4rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.2);
}

.cookie-btn-accept:hover {
    box-shadow: 0 4px 18px rgba(0, 212, 255, 0.35);
}

.cookie-btn-info {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.cookie-btn-info:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        padding: 1rem 1.2rem;
        gap: 1rem;
        text-align: center;
    }
    .cookie-banner-text { font-size: 0.8rem; }
}
