﻿/* =========================
   1. RESET / BASE [Standardverhalten der Seite]
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
}

::selection {
    background: rgba(108, 76, 255, 0.4);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* =========================
   2. VARIABLES [Wiederverwendbare Design-Variabeln]
========================= */
:root {
    --color-bg: #070726;
    --color-bg-soft: #080729;
    --color-hero: #0b0a2a;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.74);
    --color-text-soft: rgba(255, 255, 255, 0.66);
    --color-blue: #3aa0ff;
    --color-blue-soft: #8db7ff;
    --color-purple: #6c4cff;
    --color-pink: #ff4ecd;
    --color-green: #3fff8b;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-strong: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-soft: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(141, 183, 255, 0.35);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 30px;
    --radius-pill: 999px;
    --container: 1200px;
    --shadow-card: 0 18px 50px rgba(37, 54, 160, 0.2);
    --shadow-button: 0 20px 45px rgba(108, 76, 255, 0.35);
    --z-floating: 10;
    --z-modal: 100;
}

/* =========================
   3. GLOBAL LAYOUT [Grobe Struktur der Seite]
========================= */

.lower-flow {
    position: relative;
    overflow: hidden;
}

    .lower-flow::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 220px;
        background: linear-gradient( to bottom, rgba(11, 10, 42, 0.55) 0%, rgba(11, 10, 42, 0.45) 35%, rgba(11, 10, 42, 0.18) 70%, rgba(11, 10, 42, 0) 100% );
        pointer-events: none;
        z-index: 1;
    }

    .lower-flow::before {
        content: "";
        position: absolute;
        inset: 0;

        background-image: url("JPGs/portfolio-pic-vertical.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center bottom;

        opacity: 0.25;
        pointer-events: none;
        z-index: 0;

        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 12%, rgba(0, 0, 0, 0.85) 26%, black 45%, black 78%, rgba(0, 0, 0, 0.65) 90%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 14%, black 28%, black 72%, rgba(0, 0, 0, 0.55) 86%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 12%, rgba(0, 0, 0, 0.85) 26%, black 45%, black 78%, rgba(0, 0, 0, 0.65) 90%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 14%, black 28%, black 72%, rgba(0, 0, 0, 0.55) 86%, transparent 100%);
        mask-composite: intersect;
    }

.projects-section,
.contact-section {
    position: relative;
    z-index: 2;
}

/* =========================
   4. COMPONENTS [Konkrete UI-Elemente der Seite]
========================= */

/* Buttons */

.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    will-change: transform;
}

    .btn:focus-visible {
        outline: 2px solid var(--color-purple);
        outline-offset: 2px;
    }
    .btn:active {
        transform: translateY(0);
    }

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

.btn-primary {
    color: var(--color-text);
    background: linear-gradient( 135deg, var(--color-blue) 0%, var(--color-purple) 55%, var(--color-pink) 100% );
    box-shadow: var(--shadow-button);
    background-size: 200% 200%;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(108, 76, 255, 0.4);
        background-position: right center;
    }

/* Labels */

.section-label,
.project-tag {
    display: inline-block;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    font-weight: 700;
}

.section-label {
    margin-bottom: 14px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--glass-bg);
    color: var(--color-blue-soft);
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    backdrop-filter: blur(10px);
    align-self: flex-start;
}

.project-tag {
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 7px 12px;
    background: rgba(58, 160, 255, 0.12);
    border: 1px solid rgba(58, 160, 255, 0.18);
    color: var(--color-blue-soft);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

/* Shared text */

.section-header {
    max-width: 720px;
    margin-bottom: 40px;
}

    .section-header h2 {
        margin-bottom: 16px;
        color: var(--color-text);
        font-size: clamp(2rem, 4vw, 3.2rem);
        line-height: 1.1;
    }

.section-text {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    line-height: 1.8;
}

/* BackToTop */

#backToTop {
    position: fixed;
    right: 36px;
    bottom: 36px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #3aa0ff, #6c4cff);
    box-shadow: 0 10px 25px rgba(108, 76, 255, 0.35);
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: var(--z-floating);
}

    #backToTop.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    #backToTop:focus-visible {
        outline: 2px solid white;
        outline-offset: 3px;
    }

    #backToTop:active {
        transform: scale(0.95);
    }

    #backToTop:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 40px rgba(108, 76, 255, 0.6);
    }

    #backToTop::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 14px;
        background: linear-gradient(135deg, #ffffff22, transparent);
        opacity: 0;
        transition: opacity 0.25s;
    }

    #backToTop:hover::after {
        opacity: 1;
    }

/* =========================
   5. SECTIONS [Größere Bereiche der Seite]
========================= */

/* topbar */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 7, 38, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

    .site-header::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, #3aa0ff, #6c4cff, #ff4ecd, #3aa0ff);
        background-size: 200% 100%;
        animation: energyFlow 5s linear infinite;
        opacity: 0.8;
        filter: blur(1px);
        box-shadow: 0 0 8px rgba(58, 160, 255, 0.45), 0 0 14px rgba(108, 76, 255, 0.35), 0 0 20px rgba(255, 78, 205, 0.25);
    }

.topbar {
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(108, 76, 255, 0.14);
}

.lang-btn {
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .lang-btn:hover {
        color: rgba(255, 255, 255, 0.96);
        transform: translateY(-1px);
    }

    .lang-btn:focus-visible {
        outline: 2px solid rgba(120, 150, 255, 0.85);
        outline-offset: 2px;
    }

    .lang-btn.is-active {
        background: linear-gradient(135deg, rgba(58, 160, 255, 0.9), rgba(108, 76, 255, 0.9));
        color: white;
        box-shadow: 0 10px 20px rgba(108, 76, 255, 0.25);
    }


/* Hero */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--color-hero);
}

    .hero::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 260px;
        background: linear-gradient( to bottom, rgba(11, 10, 42, 0) 0%, rgba(11, 10, 42, 0.55) 45%, rgba(7, 7, 38, 0.9) 75%, var(--color-bg) 100% );
        pointer-events: none;
        z-index: 1;
    }

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url("JPGs/background_portfolio_face2.jpg");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(11, 10, 42, 0.96) 0%, rgba(11, 10, 42, 0.88) 32%, rgba(11, 10, 42, 0.58) 58%, rgba(11, 10, 42, 0.18) 100% );
}

.glow {
    position: absolute;
    border-radius: var(--radius-pill);
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
}

.glow-1 {
    width: 320px;
    height: 320px;
    left: -40px;
    top: -40px;
    background: var(--color-purple);
}

.glow-2 {
    width: 240px;
    height: 240px;
    left: 300px;
    bottom: 200px;
    background: var(--color-blue);
    opacity: 0.45;
}

.glow-3 {
    width: 260px;
    height: 260px;
    right: 40px;
    top: 60px;
    background: var(--color-pink);
}

.hero-overlay,
.glow {
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    max-width: var(--container);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 24px;
    margin: 0 auto;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(108, 76, 255, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

    .hero-status:hover {
        transform: translateY(-2px);
        border-color: rgba(120, 150, 255, 0.55);
        box-shadow: 0 0 30px rgba(108, 76, 255, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.08);
    }

    .hero-status:focus-visible {
        outline: 2px solid rgba(120, 150, 255, 0.85);
        outline-offset: 4px;
    }

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(63, 255, 139, 0.9);
    position: relative;
}

    .status-dot::after {
        content: "";
        position: absolute;
        inset: -6px;
        border-radius: 50%;
        border: 2px solid rgba(63, 255, 139, 0.6);
        animation: ripple 2s infinite;
    }

.hero-name {
    margin-bottom: 14px;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-shadow: 0 0 25px rgba(108, 76, 255, 0.25);
}

.hero-role {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 500;
}

    .hero-role span {
        color: var(--color-purple);
    }

    .hero-title span {
        color: var(--color-blue-soft);
    }

.hero-title {
    margin-top: 24px;
    max-width: 800px;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
}

.hero-text {
    max-width: 560px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-offer-intro {
    margin-top: 36px;
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

/* Stats */

.stats {
    width: 100%;
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.stat-card {
    padding: 20px;
    border-radius: 22px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

    .stat-card strong {
        display: block;
        color: var(--color-blue-soft);
        font-size: 1.9rem;
        font-weight: 700;
    }

    .stat-card span {
        display: block;
        margin-top: 6px;
        color: var(--color-text-soft);
        font-size: 0.95rem;
    }

    .stat-card:nth-child(1) strong {
        color: var(--color-blue);
    }

    .stat-card:nth-child(2) strong {
        color: var(--color-blue-soft);
    }

    .stat-card:nth-child(3) strong {
        color: var(--color-purple);
    }

/* Projects */

.projects-section {
    padding: 80px 40px 80px;
    max-width: var(--container);
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .project-card:hover {
        transform: translateY(-6px);
        border-color: var(--glass-border-hover);
        box-shadow: var(--shadow-card);
    }

.project-image {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
}

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: zoom-in;
        transition: transform 0.4s ease, filter 0.4s ease;
    }

.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.project-card h3 {
    margin-bottom: 14px;
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1.15;
}

.project-card p {
    color: var(--color-text-muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

    .project-stack span {
        padding: 8px 12px;
        border-radius: var(--radius-pill);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border-soft);
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.82rem;
    }

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}

    .project-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--glass-border);
        color: var(--color-text);
        font-weight: 600;
        font-size: 0.92rem;
        background: linear-gradient( 135deg, var(--color-blue) 0%, var(--color-purple) 55%, var(--color-pink) 100% );
        box-shadow: var(--shadow-button);
        background-size: 200% 200%;
        transition: all 0.25s ease;
    }

.project-inks a:focus-visible {
    outline: none;
    border-color: rgba(141, 183, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(108, 76, 255, 0.25);
}

.project-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(108, 76, 255, 0.4);
    background-position: right center;
}

/* Contact */

.contact-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 110px 40px 120px;
}

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

.contact-column {
    max-width: 620px;
}

    .contact-column h2 {
        color: white;
        font-weight: 700;
        letter-spacing: -0.01em;
        text-shadow: 0 0 25px rgba(108, 76, 255, 0.25), 0 0 60px rgba(108, 76, 255, 0.15);
    }

.contact-intro-text {
    margin-bottom: 22px;
}

.contact-card {
    padding: 32px;
    border-radius: var(--radius-xl);

    backdrop-filter: blur(12px);

    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(141, 183, 255, 0.18);
    box-shadow: 0 24px 70px rgba(20, 20, 80, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

    .contact-card:hover {
        box-shadow: 0 25px 60px rgba(40, 40, 120, 0.25);
        transition: box-shadow 0.25s ease, border-color 0.25s ease;
    }

.contact-note {
    margin-bottom: 24px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 22px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
    .contact-link:focus-visible {
        outline: none;
        border-color: rgba(141, 183, 255, 0.55);
        box-shadow: 0 0 0 3px rgba(108, 76, 255, 0.25);
    }

    .contact-link:hover {
        transform: translateY(-4px);
        border-color: rgba(141, 183, 255, 0.4);
        background: var(--glass-bg-hover);
    }

    .contact-link span {
        color: var(--color-blue-soft);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
    }

    .contact-link strong {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1rem;
        font-weight: 600;
    }

.contact-form-card h3 {
    margin-bottom: 10px;
    color: var(--color-text);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.15;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .contact-form-field span {
        color: var(--color-blue-soft);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-weight: 700;
    }

    .contact-form-field input,
    .contact-form-field textarea {
        width: 100%;
        padding: 16px 18px;
        border-radius: 18px;
        border: 1px solid var(--glass-border-soft);
        background: rgba(255, 255, 255, 0.035);
        color: var(--color-text);
        font: inherit;
        line-height: 1.6;
        resize: vertical;
        transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
        box-sizing: border-box;
    }

        .contact-form-field input::placeholder,
        .contact-form-field textarea::placeholder {
            color: rgba(255, 255, 255, 0.42);
        }

        .contact-form-field input:focus-visible,
        .contact-form-field textarea:focus-visible {
            outline: none;
            border-color: rgba(141, 183, 255, 0.55);
            background: rgba(255, 255, 255, 0.05);
            box-shadow: 0 0 0 3px rgba(108, 76, 255, 0.22);
        }

.contact-form-submit {
    margin-top: 6px;
    align-self: flex-start;
}

    .contact-form-submit:disabled {
        opacity: 0.7;
        cursor: wait;
        transform: none;
        box-shadow: none;
    }

.contact-form-feedback {
    display: none;
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 106, 106, 0.34);
    background: rgba(255, 84, 84, 0.12);
    color: #ff9d9d;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.55;
}

.contact-form-feedback.show {
    display: block;
}

.contact-form-feedback.is-success {
    border-color: rgba(94, 224, 134, 0.34);
    background: rgba(68, 201, 111, 0.12);
    color: #8df0ae;
}

.contact-form-note {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Footer */

.footer {
    position: relative;
    padding: 30px 24px;
    background: var(--color-bg-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

    .footer::before {
        content: "";
        position: absolute;
        top: -120px;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient( to bottom, rgba(8, 7, 41, 0), rgba(8, 7, 41, 0.8) );
        pointer-events: none;
    }

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.92rem;
        transition: color 0.2s ease;
    }

        .footer-links a:hover,
        .footer-links a:focus-visible {
            color: var(--color-blue-soft);
        }

/* Legal pages */

.legal-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.legal-hero {
    padding-bottom: 0;
}

.legal-lead {
    max-width: 760px;
}

.legal-updated {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.92rem;
}

.legal-section {
    padding: 28px 30px;
    border: 1px solid var(--glass-border-soft);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow-card);
}

    .legal-section h2 {
        margin-bottom: 16px;
        font-size: clamp(1.2rem, 2vw, 1.5rem);
    }

    .legal-section p,
    .legal-section li,
    .legal-address {
        color: rgba(255, 255, 255, 0.78);
        line-height: 1.8;
    }

.legal-address {
    font-style: normal;
}

.legal-list {
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.legal-note {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.96rem;
}

.legal-section a {
    color: var(--color-blue-soft);
}

    .legal-section a:hover,
    .legal-section a:focus-visible {
        color: #d8e8ff;
    }

/* =========================
   6. MODAL
========================= */

.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.3s ease, filter 0.3s ease;
}

    .zoomable-image:hover {
        filter: brightness(1.05);
    }

#imageModal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(5, 5, 20, 0.9);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: var(--z-modal);
}

    #imageModal.show {
        opacity: 1;
        pointer-events: auto;
    }

.image-modal-shell {
    width: min(1400px, 100%);
    height: min(88vh, 940px);
}

.image-modal-frame {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow: auto;
    background: #050514;
}

#modalImg {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.3s ease;
    filter: none;
}

#imageModal.show #modalImg {
    transform: scale(1);
}

#prototypeModal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(5, 5, 20, 0.92);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: calc(var(--z-modal) + 1);
}

    #prototypeModal.show {
        opacity: 1;
        pointer-events: auto;
    }

.prototype-modal-shell {
    width: min(1200px, 100%);
    height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(141, 183, 255, 0.22);
    border-radius: 24px;
    background: rgba(8, 7, 41, 0.96);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.prototype-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

    .prototype-modal-header h2 {
        color: var(--color-text);
        font-size: clamp(1rem, 2vw, 1.25rem);
        font-weight: 700;
    }

.prototype-modal-close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

    .prototype-modal-close:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(141, 183, 255, 0.35);
    }

    .prototype-modal-close:focus-visible {
        outline: 2px solid var(--color-blue-soft);
        outline-offset: 2px;
    }

.prototype-modal-frame {
    flex: 1;
    min-height: 0;
    background: #050514;
}

    .prototype-modal-frame iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        background: #050514;
    }

/* =========================
   7. ANIMATIONS / EFFECTS [Keyframes und größere Animationen]
========================= */

@keyframes energyFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}
@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.4;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.page-enter {
    opacity: 0;
    transform: translateX(180px) scale(0.98);
    animation: pageSlideIn 0.75s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes pageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(180px) scale(0.98);
    }

    70% {
        opacity: 1;
        transform: translateX(-12px) scale(1.005);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.page-exit-back {
    animation: pageSlideOutBack 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes pageSlideOutBack {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(90px) scale(0.99);
    }
}

/* =========================
   8. PROJECT DETAIL PAGE [Einzelne Sub-Pages und ihre CSS.]
========================= */

.project-page {
    background: var(--color-bg);
}

.project-detail {
    position: relative;
    z-index: 1;
    padding: 48px 24px 120px;
}

.project-detail-container {
    max-width: var(--container);
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 32px;
    color: var(--color-blue-soft);
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    .back-link:hover {
        opacity: 1;
        transform: translateX(-2px);
    }

.project-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 64px;
}

.project-hero-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.project-detail-lead {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.85;
}

.project-stack-detail {
    margin-top: 24px;
}

.project-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.project-hero-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: 0 25px 70px rgba(10, 10, 40, 0.28);
}

    .project-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.9);
    }

.project-section {
    margin-top: 24px;
    margin-bottom: 40px;
}

.project-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.detail-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

    .detail-card h3 {
        margin-bottom: 16px;
        font-size: 1.45rem;
        line-height: 1.2;
    }

.detail-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.detail-card-flip {
    position: relative;
    padding: 0;
    cursor: pointer;
    perspective: 1400px;
    min-height: 480px;
}

    .detail-card:hover {
        border-color: var(--glass-border-hover);
        box-shadow: var(--shadow-card);
    }

    .detail-card-flip:focus-visible {
        outline: none;
        border-color: rgba(141, 183, 255, 0.55);
        box-shadow: 0 0 0 3px rgba(108, 76, 255, 0.25), var(--shadow-card);
    }

.detail-card-inner {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.2, 1);
}

    .detail-card-flip.is-flipped .detail-card-inner {
        transform: rotateY(180deg);
    }

.detail-card-face {
    min-height: 100%;
    padding: 28px;
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.detail-card-back, .detail-card-front {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.detail-card-front {
    transform: rotateY(0deg);
}

.detail-card-back {
    transform: rotateY(180deg);
}

.detail-card-hint {
    margin-top: auto;
    padding-top: 22px;
    color: var(--color-blue-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

.detail-list {
    display: grid;
    gap: 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    list-style: none;
    padding-left: 0;
}

    .detail-list li {
        position: relative;
        padding-left: 18px;
    }

        .detail-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.72em;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--color-purple);
            transform: translateY(-50%);
        }

/* =========================
   9. MEDIA QUERIES [Anpassungen an andere Bildschirm-Formate]
========================= */

/* Tablet */
@media (max-width: 980px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-section {
        padding: 90px 24px 70px;
    }

    .contact-section {
        padding: 90px 24px 100px;
    }

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

    .project-hero {
        grid-template-columns: 1fr;
    }

    .project-grid-two {
        grid-template-columns: 1fr;
    }

    .detail-card-flip {
        min-height: 560px;
    }

    .project-detail {
        padding: 36px 20px 100px;
    }
}

/* Mobile hero */
@media (max-width: 900px) {
    .hero-content {
        padding: 72px 20px;
    }

    .hero-overlay {
        background: linear-gradient( 180deg, rgba(11, 10, 42, 0.78) 0%, rgba(11, 10, 42, 0.86) 45%, rgba(11, 10, 42, 0.94) 100% );
    }

    .stats {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .hero-offer-intro {
        margin-top: 32px;
    }

    .detail-card-flip {
        min-height: 610px;
    }
}

/* Small mobile */
@media (max-width: 560px) {
    .hero-text {
        font-size: 1rem;
        line-height: 1.75;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

        .hero-buttons .btn {
            width: 100%;
            max-width: 280px;
            text-align: center;
        }

    .detail-card-flip {
        min-height: 700px;
    }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .btn:hover,
    .btn-primary:hover,
    .lang-btn:hover,
    .hero-status:hover,
    .project-card:hover,
    .project-links a:hover,
    .contact-link:hover,
    .back-link:hover,
    #backToTop:hover {
        transform: none;
    }

        .project-card:hover .project-image img,
        .zoomable-image:hover {
            transform: none;
            filter: none;
        }

        #backToTop:hover::after {
            opacity: 0;
        }

    .site-header::after {
        animation: none;
        opacity: 0.45;
    }

    .page-enter,
    .page-exit-back {
        opacity: 1;
        transform: none;
    }

    .detail-card-front,
    .detail-card-back,
    .detail-card-flip.is-flipped .detail-card-inner {
        transform: none;
    }

    .detail-card-back {
        opacity: 0;
        visibility: hidden;
    }

    .detail-card-flip.is-flipped .detail-card-front {
        opacity: 0;
        visibility: hidden;
    }

    .detail-card-flip.is-flipped .detail-card-back {
        opacity: 1;
        visibility: visible;
    }

}
