/* ====== ZAIOS - Style ====== */

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-alt: #0e0e16;
    --bg-dark: #060609;
    --surface: #1a1a26;
    --border: #2a2a3a;
    --text: #e4e4ed;
    --text-muted: #8888a0;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --green: #00d2a0;
    --green-glow: rgba(0, 210, 160, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== Navbar ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-zai { color: var(--text); }
.logo-dot { color: var(--accent); }
.logo-os { color: var(--green); }

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--accent-light);
    color: var(--bg) !important;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ====== Hero ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, var(--accent-glow), transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--green-glow), transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.08);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ====== Sections ====== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-icon {
    display: inline-block;
    font-size: 1.8rem;
    width: 56px;
    height: 56px;
    line-height: 56px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ====== Cards ====== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
    position: relative;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

.card-wide {
    grid-column: 1 / -1;
}

.card-tag {
    display: inline-block;
    background: var(--surface);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Schwierigkeits-Badges */
.badge-einsteiger,
.badge-fortgeschritten,
.badge-profi {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-einsteiger {
    background: rgba(0, 210, 160, 0.15);
    color: #00d2a0;
    border: 1px solid rgba(0, 210, 160, 0.3);
}

.badge-fortgeschritten {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.badge-profi {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.card-expand {
    display: inline-block;
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
    user-select: none;
}

.card-expand:hover {
    color: var(--green);
}

.card-expand::after {
    content: ' +';
    font-weight: 400;
}

.card-expand.active::after {
    content: ' -';
}

.card-detail {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.card-detail.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-detail h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
    margin: 16px 0 8px;
}

.card-detail h4:first-child {
    margin-top: 0;
}

.card-detail p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.card-detail ul, .card-detail ol {
    color: var(--text-muted);
    font-size: 0.92rem;
    padding-left: 20px;
    margin-bottom: 12px;
}

.card-detail li {
    margin-bottom: 4px;
}

pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    overflow-x: auto;
    margin: 12px 0;
}

code {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--green);
}

pre code {
    color: var(--text);
}

kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text);
}

.hint {
    background: rgba(0, 210, 160, 0.06);
    border-left: 3px solid var(--green);
    padding: 10px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 12px 0;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead th {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

tbody tr:hover td {
    background: rgba(108, 92, 231, 0.04);
}

/* ====== Contact ====== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.contact-form input,
.contact-form textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ====== Footer ====== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

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

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
}

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

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

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
        text-align: center;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

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

    .hero-stats {
        gap: 24px;
    }

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

    .card-wide {
        grid-column: 1;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .section {
        padding: 60px 0;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }
}

/* ====== Nav Action Buttons ====== */
.nav-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
    margin-right: 16px;
}

.nav-icon-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-icon-btn:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

/* ====== Search Overlay ====== */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 6, 9, 0.85);
    backdrop-filter: blur(12px);
    padding: 15vh 24px 24px;
    animation: fadeIn 0.2s ease;
}

.search-overlay.open {
    display: block;
}

.search-container {
    max-width: 620px;
    margin: 0 auto;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input-wrap i {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 1.05rem;
}

.search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.search-input-wrap kbd {
    flex-shrink: 0;
    opacity: 0.5;
}

.search-results {
    margin-top: 12px;
    max-height: 55vh;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.search-result-item:hover {
    border-color: var(--accent);
    background: var(--surface);
}

.search-result-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.search-result-section {
    font-size: 0.8rem;
    color: var(--accent-light);
}

.search-result-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.search-no-results {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ====== Language Tooltip ====== */
.lang-tooltip {
    display: none;
    position: fixed;
    top: 64px;
    right: 24px;
    z-index: 1500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.2s ease;
}

.lang-tooltip.open {
    display: block;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.lang-btn.active {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.12);
    color: var(--text);
}

.lang-flag {
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.lang-btn.active .lang-flag {
    background: var(--accent);
    color: white;
}

@media (max-width: 768px) {
    .nav-actions {
        margin-right: 12px;
    }

    .search-overlay {
        padding: 10vh 16px 16px;
    }

    .lang-tooltip {
        right: 16px;
        left: 16px;
        max-width: none;
    }
}
