/* ==========================================================================
   J&J Community Discord Bot — Showcase & Product Showcase Stylesheet
   Domain: https://bot.kaidra.app/
   Aesthetic: Ultra-Modern Futuristic Dark Glassmorphism, Glowing Gradients
   Layout: Fully fluid & dynamic — adapts to any viewport without hard breakpoints
   ========================================================================== */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --cyan-glow: rgba(34, 211, 238, 0.35);
    --purple-glow: rgba(168, 85, 247, 0.35);

    --bg-main: #090a0f;
    --bg-surface: #0e111a;
    --bg-card: #131722;
    --bg-card-hover: #181d2c;
    --bg-glass: rgba(19, 23, 34, 0.65);

    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.4);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Global text wrap protection for extremely small screens */
h1, h2, h3, h4, h5, h6, p, a, span {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* ==========================================================================
   CONTAINER — fluid, centered, with dynamic padding
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ==========================================================================
   NAVIGATION — fully fluid
   ========================================================================== */
.showcase-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 10, 15, 0.96); /* More opaque, no blur to avoid fixed positioning trap */
    border-bottom: 1px solid var(--border-glass);
    transition: background 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: clamp(12px, 2vw, 28px);
    /* Ohne min-width:0 kann ein Flex-Kind nicht schmaler werden als sein
       Inhalt - dann laeuft die Kopfleiste laeuft ueber den Rand hinaus. */
    min-width: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 12px);
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-icon {
    width: clamp(34px, 4vw, 42px);
    height: clamp(34px, 4vw, 42px);
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.brand-title {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

/* Nav collapse wrapper — flex on desktop */
.nav-collapse {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 14px);
}

/* --- Mobile menu hamburger button (hidden on desktop) --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   BUTTONS — fluid sizing
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 0.8vw, 10px);
    padding: clamp(8px, 1.2vw, 10px) clamp(14px, 2vw, 22px);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.btn-lg {
    padding: clamp(10px, 1.5vw, 14px) clamp(20px, 3vw, 32px);
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   HERO SECTION — fully fluid typography & spacing
   ========================================================================== */
.hero-section {
    padding: clamp(110px, 16vw, 160px) 0 clamp(50px, 8vw, 90px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(6px, 0.8vw, 8px) clamp(14px, 2vw, 20px);
    border-radius: 100px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.3);
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    font-weight: 600;
    color: #c084fc;
    margin-bottom: clamp(16px, 3vw, 24px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.hero-title {
    font-size: clamp(1.6rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: clamp(16px, 3vw, 24px);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 60%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.88rem, 1.3vw, 1.25rem);
    color: var(--text-secondary);
    max-width: min(780px, 90vw);
    margin: 0 auto clamp(24px, 4vw, 40px);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 18px);
    flex-wrap: wrap;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.live-status-bar {
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 16px);
    padding: clamp(8px, 1vw, 10px) clamp(16px, 2vw, 24px);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: clamp(0.78rem, 0.9vw, 0.88rem);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   STATS SECTION — fluid grid
   ========================================================================== */
.stats-section {
    padding: clamp(10px, 2vw, 20px) 0 clamp(40px, 7vw, 80px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 3vw, 28px);
    text-align: center;
    backdrop-filter: blur(12px);
    transition: var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.stat-number {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 500;
}

/* ==========================================================================
   SECTION HEADERS — fluid
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: clamp(28px, 5vw, 50px);
}

.section-tag {
    color: #818cf8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(0.72rem, 0.9vw, 0.85rem);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: clamp(10px, 2vw, 16px);
    letter-spacing: -0.8px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: clamp(0.88rem, 1.2vw, 1.1rem);
    max-width: min(640px, 90vw);
    margin: 0 auto;
}

/* ==========================================================================
   DEMO SECTION — fluid grid with auto layout
   ========================================================================== */
.demo-section {
    padding: clamp(40px, 7vw, 80px) 0;
}

.demo-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: clamp(16px, 3vw, 40px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: grid;
    /* Fluid: sidebar at 280–320px when there's room, else stack */
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 36px);
    max-width: 100%;
    overflow-x: hidden;
}

/* When container is too narrow for side-by-side, stack vertically */
@media (max-width: 820px) {
    .demo-container {
        grid-template-columns: 1fr;
    }
}

.demo-tabs {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 12px);
}

/* On narrow screens, make tabs horizontal scrollable */
@media (max-width: 820px) {
    .demo-tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 6px;
    }
}

.demo-tab-btn {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    padding: clamp(10px, 1.5vw, 16px) clamp(14px, 1.8vw, 20px);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
    white-space: nowrap;
    flex-shrink: 0;
}

.demo-tab-btn i {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.demo-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.demo-tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   DISCORD MOCKUP — fluid
   ========================================================================== */
.discord-frame {
    background: #313338;
    border-radius: 16px;
    padding: clamp(14px, 2.5vw, 24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    min-width: 0; /* prevent grid blowout */
}

.discord-message {
    display: flex;
    gap: clamp(10px, 1.5vw, 16px);
}

.discord-avatar {
    width: clamp(36px, 5vw, 48px);
    height: clamp(36px, 5vw, 48px);
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    flex-shrink: 0;
}

.discord-content {
    flex-grow: 1;
    min-width: 0; /* allow text wrapping */
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.discord-username {
    font-weight: 700;
    color: #fff;
    font-size: clamp(0.88rem, 1vw, 1rem);
}

.discord-bot-badge {
    background: #5865F2;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.discord-time {
    font-size: 0.75rem;
    color: #949ba4;
}

.discord-embed {
    background: #2b2d31;
    border-left: 4px solid #5865F2;
    border-radius: 4px;
    padding: clamp(10px, 1.5vw, 16px);
    margin-top: 8px;
    max-width: 100%;
}

.discord-embed-title {
    font-weight: 700;
    color: #fff;
    font-size: clamp(0.88rem, 1vw, 1rem);
    margin-bottom: 8px;
}

.discord-embed-desc {
    color: #dbdee1;
    font-size: clamp(0.82rem, 0.95vw, 0.9rem);
    margin-bottom: 14px;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.discord-embed-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    gap: clamp(8px, 1vw, 12px);
    margin-bottom: 12px;
}

.discord-field-name {
    font-weight: 700;
    color: #b5bac1;
    font-size: clamp(0.75rem, 0.85vw, 0.8rem);
    margin-bottom: 2px;
}

.discord-field-val {
    color: #dbdee1;
    font-size: clamp(0.78rem, 0.9vw, 0.85rem);
}

.discord-buttons {
    display: flex;
    gap: clamp(6px, 1vw, 10px);
    margin-top: 14px;
    flex-wrap: wrap;
}

.discord-btn {
    background: #4e5058;
    color: #fff;
    border: none;
    padding: clamp(6px, 0.8vw, 8px) clamp(10px, 1.3vw, 16px);
    border-radius: 4px;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    white-space: nowrap;
}

.discord-btn-primary { background: #5865F2; }
.discord-btn-success { background: #248046; }
.discord-btn-danger { background: #da373c; }

/* ==========================================================================
   MODULE CATALOG — fluid grid
   ========================================================================== */
.catalog-section {
    padding: clamp(40px, 7vw, 80px) 0;
}

.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vw, 24px);
    margin-bottom: clamp(24px, 4vw, 40px);
}

.search-box {
    position: relative;
    max-width: min(600px, 100%);
    margin: 0 auto;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: clamp(12px, 1.5vw, 16px) clamp(18px, 2.5vw, 24px) clamp(12px, 1.5vw, 16px) clamp(42px, 5vw, 54px);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    color: #fff;
    font-size: clamp(0.88rem, 1.1vw, 1.05rem);
    outline: none;
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: clamp(16px, 2vw, 22px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 10px);
    flex-wrap: wrap;
}

.tab-chip {
    padding: clamp(7px, 1vw, 10px) clamp(12px, 1.5vw, 20px);
    border-radius: 100px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.tab-chip i {
    margin-right: 4px;
}

.tab-chip:hover, .tab-chip.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.module-card:hover::before {
    opacity: 1;
}

.module-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: clamp(10px, 1.5vw, 16px);
}

.module-icon-wrap {
    width: clamp(42px, 5vw, 52px);
    height: clamp(42px, 5vw, 52px);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    color: #a5b4fc;
    flex-shrink: 0;
}

.module-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 600;
}

.module-title {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    font-weight: 700;
    margin-bottom: clamp(6px, 1vw, 10px);
    color: #fff;
}

.module-desc {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    margin-bottom: clamp(14px, 2vw, 20px);
    flex-grow: 1;
}

.module-features-list {
    list-style: none;
    margin-bottom: clamp(14px, 2vw, 20px);
}

.module-features-list li {
    font-size: clamp(0.82rem, 0.95vw, 0.88rem);
    color: #d1d5db;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-features-list li i {
    color: var(--success);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.module-footer {
    padding-top: clamp(10px, 1.5vw, 16px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(0.78rem, 0.9vw, 0.85rem);
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 8px;
}

.cmd-badge {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
}

/* ==========================================================================
   INFRA SECTION — fluid grid
   ========================================================================== */
.infra-section {
    padding: clamp(40px, 7vw, 80px) 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05), transparent 70%);
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.infra-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2vw, 24px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 18px);
}

.infra-icon {
    width: clamp(40px, 5vw, 48px);
    height: clamp(40px, 5vw, 48px);
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 1.5vw, 1.4rem);
    flex-shrink: 0;
}

.infra-details h4 {
    color: #fff;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    margin-bottom: 4px;
}

.infra-details p {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 0.95vw, 0.88rem);
}

/* ==========================================================================
   FAQ SECTION — fluid
   ========================================================================== */
.faq-section {
    padding: clamp(40px, 7vw, 80px) 0;
}

.faq-grid {
    max-width: min(800px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vw, 16px);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 24px);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
}

.faq-answer {
    padding: 0 clamp(16px, 2.5vw, 24px) clamp(14px, 2vw, 20px);
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    display: none;
    border-top: 1px solid var(--border-glass);
    padding-top: clamp(10px, 1.5vw, 16px);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* ==========================================================================
   FOOTER — fluid grid
   ========================================================================== */
.showcase-footer {
    background: #06070a;
    border-top: 1px solid var(--border-glass);
    padding: clamp(30px, 5vw, 60px) 0 clamp(18px, 3vw, 30px);
    margin-top: clamp(50px, 8vw, 100px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(24px, 4vw, 40px);
    margin-bottom: clamp(24px, 4vw, 40px);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: clamp(0.82rem, 0.95vw, 0.92rem);
    margin-top: 12px;
    max-width: 320px;
}

.footer-col h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: clamp(12px, 2vw, 18px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1vw, 10px);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(0.82rem, 0.95vw, 0.9rem);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: clamp(16px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: clamp(0.78rem, 0.9vw, 0.88rem);
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   MOBILE NAV OVERLAY — only activates on narrow viewports
   ========================================================================== */
@media (max-width: 1080px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-collapse {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1050;
        background: rgba(9, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 80px 24px 40px;
    }
    .nav-collapse.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .nav-link {
        font-size: 1.2rem;
        font-weight: 600;
    }
    .nav-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .nav-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    /* Horizontal scrollable filter chips on mobile */
    .filter-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .tab-chip i {
        display: none;
    }
}


/* Kopfleiste: nichts darf ueber den Rand geraten. */
.nav-collapse,
.nav-links {
    min-width: 0;
}

.nav-actions .btn {
    white-space: nowrap;
}

/* ==========================================================================
   COMMUNITY / DISCORD-WIDGET
   ========================================================================== */
.community-section { padding: clamp(3rem, 8vw, 6rem) 0; }

.community-grid {
    display: grid;
    /* Die rechte Spalte waechst mit dem Platz mit, bleibt aber lesbar. */
    grid-template-columns: minmax(0, 1fr) clamp(340px, 32vw, 440px);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.community-text h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 0.8rem; }
.community-text { max-width: 46ch; }
.community-text p { color: var(--text-secondary); line-height: 1.7; margin: 0 0 1.2rem; }

.community-punkte { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.community-punkte li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); }
.community-punkte i { color: #22c55e; margin-top: 4px; flex: 0 0 auto; }

.widget-rahmen {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    line-height: 0;
    box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.7);
}
.widget-rahmen iframe {
    display: block;
    border: 0;
    width: 100%;
    height: clamp(480px, 52vh, 620px);
}
.widget-hinweis { margin-top: 0.7rem; font-size: 0.78rem; color: var(--text-secondary); text-align: center; opacity: 0.75; }

@media (max-width: 900px) {
    .community-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .community-text { max-width: 60ch; }
    .community-punkte li { text-align: left; }
    .widget-rahmen { width: min(100%, 420px); }
}
