/* ═══════════════════════════════════════════
   DeepTab by JCL — Subpage Base
   Shared styles for all subpages
   ═══════════════════════════════════════════ */

:root {
    --bg-dark: #0a0a0a;
    --bg-body: #050208;
    --purple: #663399;
    --purple-light: #9966cc;
    --purple-deep: #441177;
    --pink: #ED0090;
    --red: #ED1C3B;
    --orange: #F36F24;
    --accent: #FFB713;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);

    --font-tech: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    --font-bayern: 'Ecmann', cursive;
    --font-bayern-clean: 'Grenze', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-tech);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(102, 51, 153, 0.5);
    color: #fff;
}

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

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

/* ─── NAVIGATION ─── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 2, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand-sub {
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--purple-light);
    transition: width 0.4s ease;
}

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

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

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

.nav-links a.active::after {
    width: 100%;
    background: var(--pink);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(5, 2, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 2rem clamp(1.5rem, 4vw, 3rem);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--text-primary);
    padding-left: 10px;
}

/* ─── HERO ─── */

.hero {
    position: relative;
    z-index: 1;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: calc(64px + 4rem) clamp(1.5rem, 4vw, 3rem) 4rem;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 2, 8, 0.7) 0%,
        rgba(5, 2, 8, 0.85) 60%,
        var(--bg-body) 100%
    );
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-bayern);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero-accent-line {
    width: 0;
    height: 3px;
    margin: 1.5rem 0;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    border-radius: 2px;
    animation: lineGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
    to { width: 80px; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ─── SECTIONS ─── */

.section {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-bayern);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-title-row .section-title {
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-title-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ─── GLASS CARDS ─── */

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2rem);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* ─── SCROLL REVEAL ─── */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ─── CTA / LINKS ─── */

.cta-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 3rem;
}

.cta-back:hover {
    color: var(--text-primary);
    border-color: var(--purple-light);
    background: rgba(102, 51, 153, 0.1);
}

.cta-back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.cta-back:hover svg {
    transform: translateX(-3px);
}

/* ─── FOOTER ─── */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2rem clamp(1.5rem, 4vw, 3rem);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

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

.footer-links a {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

/* ─── RESPONSIVE ─── */

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

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 40vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-title-line {
        width: 60px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ─── ACCESSIBILITY: REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .subpage-title,
    .subpage-accent-line {
        animation: none !important;
        opacity: 1 !important;
        clip-path: none !important;
    }
}
