/* ==========================================================================
   community.css – Discord & Fluxer Join-Seite
   ========================================================================== */

.page-community #content.content-community {
    --community-pink: #ff2a6d;
    --community-border: #2a2a2a;
    --community-muted: #888;
    --community-text: #a0a0a0;
    max-width: none;
    padding: 0;
    background: transparent;
}

/* Header – dezent, wie Media / page-header
   -------------------------------------------------------------------------- */
.community-hero {
    position: relative;
    padding: 2.5rem 2rem 0;
    overflow: hidden;
}

.community-hero-bg {
    display: none;
}

.community-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.community-brand {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--community-muted);
    line-height: 1;
    margin: 0 0 0.5rem;
}

.community-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.community-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--community-text);
    max-width: 40rem;
    margin: 0 0 1.35rem;
}

.community-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

/* Hero CTAs
   -------------------------------------------------------------------------- */
.community-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
}

.community-cta i:last-child {
    transition: transform 0.2s ease;
}

.community-cta:hover {
    transform: translateY(-1px);
}

.community-cta:hover i:last-child {
    transform: translateX(3px);
}

.community-cta--primary {
    background: var(--community-pink);
    border-color: var(--community-pink);
}

.community-cta--primary:hover {
    background: #e02460;
    border-color: #e02460;
    box-shadow: 0 8px 24px rgba(255, 42, 109, 0.28);
}

.community-cta--ghost {
    background: transparent;
    border-color: #3a3a3a;
    color: #c8c8c8;
}

.community-cta--ghost:hover {
    border-color: var(--community-pink);
    color: #fff;
    background: rgba(255, 42, 109, 0.08);
}

/* Dest-Actions: Beitreten + Link gleich groß
   -------------------------------------------------------------------------- */
.community-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-sizing: border-box;
    height: 2.75rem;
    min-width: 7.5rem;
    padding: 0 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.community-action i {
    font-size: 0.82rem;
}

.community-action i.fa-arrow-right {
    transition: transform 0.2s ease;
}

.community-action:hover {
    transform: translateY(-1px);
}

.community-action:hover i.fa-arrow-right {
    transform: translateX(3px);
}

.community-action--primary {
    background: var(--community-pink);
    border-color: var(--community-pink);
}

.community-action--primary:hover {
    background: #e02460;
    border-color: #e02460;
}

.community-action--ghost {
    border-color: #3a3a3a;
    color: #c8c8c8;
}

.community-action--ghost:hover,
.community-action.community-copy.is-copied {
    border-color: var(--community-pink);
    color: #fff;
    background: rgba(255, 42, 109, 0.08);
}

/* Sections
   -------------------------------------------------------------------------- */
.community-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.community-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.community-section-title i {
    color: var(--community-pink);
    font-size: 0.95em;
}

.community-section-lead {
    color: var(--community-muted);
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

/* Plattformen – Listenzeilen
   -------------------------------------------------------------------------- */
.community-platforms {
    padding: 2.75rem 2rem 1.5rem;
}

.community-dest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--community-border);
}

.community-dest {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.35rem 1.75rem;
    align-items: center;
    padding: 1.85rem 0;
    border-bottom: 1px solid var(--community-border);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.25s ease;
}

.community-dest.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.community-dest:nth-child(1).is-visible { transition-delay: 0.04s; }
.community-dest:nth-child(2).is-visible { transition-delay: 0.1s; }
.community-dest:nth-child(3).is-visible { transition-delay: 0.16s; }

.community-dest:hover {
    border-bottom-color: rgba(255, 42, 109, 0.45);
}

.community-dest-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--community-pink);
    border: 1px solid rgba(255, 42, 109, 0.35);
    background: rgba(255, 42, 109, 0.08);
    flex-shrink: 0;
}

.community-dest-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem 0.85rem;
    margin-bottom: 0.35rem;
}

.community-dest-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.community-dest-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--community-pink);
}

.community-live {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    color: #c0c0c0;
}

.community-online-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #3ba55d;
    box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.55);
    animation: community-pulse 2s ease-out infinite;
}

.community-live-online {
    color: #8fdc9f;
}

.community-live-sep {
    color: #555;
}

.community-dest-text {
    margin: 0;
    color: #9a9a9a;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 36rem;
}

.community-dest-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-end;
}

.community-dest-actions .community-action {
    width: 7.75rem;
}

.community-dest-actions .community-action:only-child {
    width: auto;
    min-width: 7.75rem;
}

/* Rubriken – Kachel-Grid (visuell anders als Plattformen)
   -------------------------------------------------------------------------- */
.community-rubrics {
    padding: 2rem 2rem 2.5rem;
}

.community-rubric-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.community-rubric {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.community-rubric.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.community-rubric-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 12.5rem;
    padding: 1.5rem 1.4rem 1.35rem;
    border: 1px solid var(--community-border);
    border-left: 3px solid var(--community-pink);
    background:
        linear-gradient(135deg, rgba(255, 42, 109, 0.06) 0%, transparent 45%),
        #161616;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.community-rubric-link:hover {
    border-color: rgba(255, 42, 109, 0.55);
    background: #1a1a1a;
    transform: translateY(-2px);
}

.community-rubric-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #fff;
    background: var(--community-pink);
}

.community-rubric-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--community-pink);
    margin-bottom: 0.4rem;
}

.community-rubric-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.65rem;
    line-height: 1.2;
}

.community-rubric-text {
    margin: 0 0 1.25rem;
    color: #9a9a9a;
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
}

.community-rubric-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
}

.community-rubric-cta i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.community-rubric-link:hover .community-rubric-cta i {
    transform: translateX(3px);
}

/* Expect
   -------------------------------------------------------------------------- */
.community-expect {
    padding: 1rem 2rem 5rem;
}

.community-expect-list {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.5rem;
    border-top: 1px solid var(--community-border);
}

.community-expect-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: #c8c8c8;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.community-expect-list li.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.community-expect-list li:nth-child(1).is-visible { transition-delay: 0.05s; }
.community-expect-list li:nth-child(2).is-visible { transition-delay: 0.12s; }
.community-expect-list li:nth-child(3).is-visible { transition-delay: 0.19s; }
.community-expect-list li:nth-child(4).is-visible { transition-delay: 0.26s; }

.community-expect-list i {
    color: var(--community-pink);
    margin-top: 0.2rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

@keyframes community-pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(59, 165, 93, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0); }
}

@media (max-width: 820px) {
    .community-hero {
        padding: 2rem 1.25rem 0;
    }

    .community-platforms {
        padding-top: 2.25rem;
    }

    .community-platforms,
    .community-rubrics,
    .community-expect {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .community-dest {
        grid-template-columns: auto 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .community-dest-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: calc(2.75rem + 1rem);
    }

    .community-expect-list {
        grid-template-columns: 1fr;
    }

    .community-expect {
        padding-bottom: 3.5rem;
    }
}

@media (max-width: 480px) {
    .community-dest-actions {
        padding-left: 0;
        width: 100%;
        flex-wrap: wrap;
    }

    .community-dest-actions .community-action {
        flex: 1 1 calc(50% - 0.3rem);
        width: auto;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-dest,
    .community-rubric,
    .community-expect-list li,
    .community-cta,
    .community-cta i:last-child,
    .community-action,
    .community-action i.fa-arrow-right,
    .community-rubric-link,
    .community-rubric-cta i {
        transition: none !important;
    }

    .community-dest,
    .community-rubric,
    .community-expect-list li {
        opacity: 1;
        transform: none;
    }

    .community-online-dot {
        animation: none;
    }
}
