/* ══════════════════════════════════════════════════════════
   GLOBAL.CSS – Greenstein Design
   Gemeinsame Styles für alle Seiten
   ══════════════════════════════════════════════════════════ */

/* ── CSS VARIABLEN ── */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(17,17,17,0.7);
    --bg-card-solid: #111111;
    --bg-card-hover: #161616;
    --bg-light: #0d0d0d;
    --bg-light-card: #111111;
    --accent: #c8ff00;
    --accent-dim: rgba(200, 255, 0, 0.06);
    --accent-glow: rgba(200, 255, 0, 0.12);
    --accent-strong: rgba(200, 255, 0, 0.2);
    --text-primary: #f5f5f5;
    --text-secondary: #999999;
    --text-muted: #666666;
    --text-dark: #111111;
    --text-dark-secondary: #555555;
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.1);
    --border-accent: rgba(200,255,0,0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --max-width: 1280px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(200,255,0,0.04);
    --shadow-glow: 0 0 80px rgba(200,255,0,0.08), 0 0 160px rgba(200,255,0,0.04);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ── CONTAINER ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── NAV (Vollständig – index.html) ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: rgba(5,5,5,0.6);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(5,5,5,0.85);
    padding: 12px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }

/* Nav (Minimal – Unterseiten) */
.nav.nav-minimal {
    background: rgba(5,5,5,0.8);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.nav-logo .logo-icon,
.logo-icon {
    width: 34px; height: 34px; background: var(--accent); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: #000; font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(200,255,0,0.2);
}

/* Nav Links */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
    padding: 8px 16px; font-size: 0.875rem; font-weight: 500;
    color: var(--text-secondary); border-radius: 10px; transition: var(--transition);
    position: relative;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
    position: absolute; top: calc(100% + 12px); left: -12px; min-width: 280px;
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: var(--transition);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 1px rgba(255,255,255,0.1);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 12px; transition: var(--transition);
}
.dropdown-item:hover { background: rgba(200,255,0,0.06); }
.dropdown-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(200,255,0,0.08), rgba(200,255,0,0.02));
    border: 1px solid rgba(200,255,0,0.08);
    display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.dropdown-text strong { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.dropdown-text span { font-size: 0.775rem; color: var(--text-muted); line-height: 1.3; }

/* Nav CTA Button */
.nav-cta {
    padding: 10px 24px; background: var(--accent); color: #000;
    font-weight: 700; font-size: 0.875rem; border-radius: 100px;
    border: none; cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 0 20px rgba(200,255,0,0.15);
}
.nav-cta:hover {
    background: #d4ff33; transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(200,255,0,0.3), 0 0 60px rgba(200,255,0,0.1);
}

/* Nav Back Link (Unterseiten) */
.nav-back {
    font-size: 0.875rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 6px;
}
.nav-back:hover { color: var(--text-primary); }

/* Mobile Toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; background: var(--accent); color: #000;
    font-weight: 700; font-size: 0.95rem; border-radius: 100px;
    border: none; cursor: pointer; transition: var(--transition); font-family: var(--font-main);
    box-shadow: 0 0 30px rgba(200,255,0,0.15), 0 4px 15px rgba(0,0,0,0.2);
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0; transition: var(--transition);
}
.btn-primary:hover {
    background: #d4ff33; transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(200,255,0,0.3), 0 0 80px rgba(200,255,0,0.1);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary svg { transition: var(--transition); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; background: rgba(255,255,255,0.03); color: var(--text-primary);
    font-weight: 600; font-size: 0.95rem; border-radius: 100px;
    border: 1px solid var(--border-light); cursor: pointer;
    transition: var(--transition); font-family: var(--font-main);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ── SECTION BASICS ── */
.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--accent); font-weight: 700; margin-bottom: 20px;
}
.section-label::before {
    content: ''; width: 24px; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.8vw, 3.2rem);
    font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px;
}
.section-sub {
    font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7;
    max-width: 620px; margin-bottom: 56px; font-weight: 400;
}

/* ── FORM INPUTS ── */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
    display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
    margin-bottom: 8px; letter-spacing: 0.02em;
}
.form-label .optional { color: var(--text-muted); font-weight: 400; }
.form-input {
    width: 100%; padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px; color: var(--text-primary);
    font-family: var(--font-main); font-size: 0.9rem;
    transition: all 0.25s ease; outline: none;
    -webkit-appearance: none; appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
    border-color: rgba(200,255,0,0.3);
    background: rgba(200,255,0,0.02);
    box-shadow: 0 0 20px rgba(200,255,0,0.06);
}
.form-input.error {
    border-color: #ff4444;
    box-shadow: 0 0 12px rgba(255,68,68,0.1);
}
textarea.form-input { min-height: 100px; resize: vertical; }
.form-hint {
    font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; line-height: 1.6;
}
.form-hint a { color: var(--accent); }
.form-hint a:hover { text-decoration: underline; }
.form-error {
    font-size: 0.72rem; color: #ff4444; margin-top: 6px; display: none;
}

/* ── FORM SELECT ── */
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-select option { background: #111; color: var(--text-primary); }

/* ── GLASSMORPHISM CARD (Basisklasse) ── */
.glass-card {
    background: rgba(15,15,15,0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl); padding: 44px 40px;
    position: relative; overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.glass-card::before {
    content: ''; position: absolute; top: -1px; left: 40px; right: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,255,0,0.3), transparent);
}

/* ── PAGE LAYOUT (Unterseiten) ── */
.page {
    flex: 1; padding: 120px 24px 80px;
    position: relative;
    background: radial-gradient(ellipse at 20% 30%, rgba(200,255,0,0.02) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 70%, rgba(200,255,0,0.015) 0%, transparent 50%),
                var(--bg-primary);
}
.page::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}
.page-container {
    max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1;
}

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 56px; }
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.page-header h1 .highlight {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(200,255,0,0.15);
}
.page-header p {
    font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7;
    max-width: 560px;
}

/* ── INFO CARDS (Sidebar) ── */
.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 26px;
    transition: var(--transition);
}
.info-card:hover { border-color: var(--border-light); }
.info-card-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.info-icon {
    width: 20px; height: 20px; stroke: var(--accent); stroke-width: 1.5;
    fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.info-card-header h3 {
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
}

/* ── FOOTER (Mini – Unterseiten) ── */
.mini-footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    background: rgba(5,5,5,0.8);
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.75rem; color: var(--text-muted);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }

/* ── FOOTER (Vollständig – index.html) ── */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    background: rgba(5,5,5,0.8);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--text-muted); transition: var(--transition);
}
.footer-social a:hover {
    border-color: var(--border-accent); color: var(--accent);
    background: rgba(200,255,0,0.06);
    box-shadow: 0 0 20px rgba(200,255,0,0.06);
}
.footer-col h5 {
    font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px; color: var(--text-primary);
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 32px; border-top: 1px solid var(--border);
    font-size: 0.775rem; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--text-primary); }

/* ── SOCIAL LINKS ── */
.social-row { display: flex; gap: 12px; }
.social-link {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
    transition: var(--transition);
}
.social-link svg {
    width: 18px; height: 18px; stroke: var(--text-muted); stroke-width: 1.5;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    transition: var(--transition);
}
.social-link:hover {
    border-color: var(--border-accent); color: var(--accent);
    background: rgba(200,255,0,0.04);
}
.social-link:hover svg { stroke: var(--accent); }

/* ── ANIMATIONEN ── */
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes stepIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE (Global) ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(40px);
        border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 4px;
    }
    .nav-dropdown .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; padding: 0 0 0 16px;
        background: transparent; backdrop-filter: none;
    }
    .form-row { grid-template-columns: 1fr; }
    .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
    .social-row { flex-direction: column; }
}
