:root {
    --background: #0b0c0e;
    --surface: #111318;
    --surface-soft: #15181d;
    --border: #282d34;
    --text: #f4f5f7;
    --muted: #9ba4b2;
    --accent: #ef5936;
    --accent-hover: #ff6843;
    --green: #42e882;
    --red: #e55353;
    --max-width: 1380px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: var(--background);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


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


/* Header */

.topbar {
    min-height: 70px;

    display: flex;
    align-items: center;

    padding:
        8px
        max(
            26px,
            calc((100vw - var(--max-width)) / 2)
        );

    border-bottom:
        1px solid
        rgba(255,255,255,.07);
}


.brand img {
    display: block;
    height: 54px;
    width: auto;
}


.nav {
    margin-left: auto;

    display: flex;
    gap: 30px;
}


.nav a {
    color: #c9ced6;

    font-size: 13px;
    font-weight: 800;
}


.nav a:hover {
    color: var(--accent);
}


/* Main */

main,
footer {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin-left: auto;
    margin-right: auto;
}


/* Hero */

.hero {
    min-height: 250px;

    margin-top: 24px;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 14px;

    background:
        url("/assets/scenic-banner2.png")
        center 55%
        /
        cover
        no-repeat;
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(11,12,14,.97),
            rgba(11,12,14,.72) 50%,
            rgba(11,12,14,.22)
        );
}


.hero-content {
    position: relative;
    z-index: 2;

    padding: 26px 40px;
}


.eyebrow {
    color: var(--accent);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
}


.hero-logo {
    display: block;

    width: min(300px, 100%);
    height: auto;

    margin: 8px 0 10px;
}


.hero-content p {
    max-width: 580px;

    margin: 0;

    color: #d3d8df;

    font-size: 15px;
}


/* Buttons */

.button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 900;

    text-transform: uppercase;
}


.button-primary {
    background: var(--accent);

    border:
        1px solid var(--accent);

    color: white;
}


.button-primary:hover {
    background: var(--accent-hover);
}


.button-secondary {
    background: #111318;

    border:
        1px solid #454b55;
}


/* CTA */

.cta {
    margin-top: 15px;

    padding: 24px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border:
        1px solid
        rgba(239,89,54,.28);

    border-radius: 12px;

    background:
        linear-gradient(
            120deg,
            rgba(239,89,54,.09),
            #111318 55%
        );
}


.cta h2 {
    margin: 6px 0;

    font-size: 30px;
}


.cta p {
    margin: 0;

    color: var(--muted);
}


/* Sections */

.section {
    padding-top: 48px;
}


.section-heading {
    margin-bottom: 25px;
}


.section-heading.centered {
    text-align: center;
}


.section-heading h2 {
    margin: 6px 0 8px;

    font-size: 36px;
}


.section-heading p {
    margin-left: auto;
    margin-right: auto;

    max-width: 620px;

    color: var(--muted);
}


/* Community links */

.link-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.link-card {
    min-height: 145px;

    padding: 22px;

    display: flex;
    gap: 17px;

    border:
        1px solid var(--border);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #15181d,
            #101216
        );
}


.link-card:hover {
    border-color:
        rgba(239,89,54,.55);
}


.link-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        rgba(239,89,54,.12);

    color: var(--accent);

    font-size: 20px;
    font-weight: 900;
}


.link-card h3 {
    margin: 0 0 6px;

    font-size: 19px;
}


.link-card p {
    margin: 0 0 12px;

    color: var(--muted);

    font-size: 13px;
}


.link-card span {
    color: var(--accent);

    font-size: 11px;
    font-weight: 800;
}


/* Server section */

.servers-section {
    padding-bottom: 70px;
}


.server-grid {
    display: grid;

    gap: 14px;

    max-width: 1100px;

    margin: 0 auto;
}


.server-card {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background:
        #111318;
}


.server-card[open] {
    border-color:
        rgba(239,89,54,.45);
}


.server-card summary {
    min-height: 115px;

    padding: 23px 26px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    cursor: pointer;

    list-style: none;
}


.server-card summary::-webkit-details-marker {
    display: none;
}


.server-label {
    margin-bottom: 7px;

    color: var(--accent);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.4px;
}


.server-card h3 {
    margin: 0;

    font-size: 24px;
}


.server-summary-meta {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 8px;
}


.server-summary-meta strong {
    font-size: 13px;
}


.server-summary-meta span {
    padding: 3px 7px;

    border-radius: 5px;

    background:
        rgba(255,255,255,.05);

    color: var(--muted);

    font-size: 10px;
}


.server-summary-right {
    display: flex;
    align-items: center;

    gap: 22px;
}


.server-status {
    font-size: 10px;
    font-weight: 900;
}


.status-loading {
    color: var(--muted);
}


.status-online {
    color: var(--green);
}


.status-offline {
    color: var(--red);
}


.server-expand {
    color: var(--muted);

    font-size: 11px;
    font-weight: 800;
}


.server-expand span {
    display: inline-block;

    margin-left: 5px;

    color: var(--accent);

    transition:
        transform .15s ease;
}


.server-card[open]
.server-expand span {
    transform: rotate(180deg);
}


/* Expanded server */

.server-expanded {
    padding:
        0
        26px
        26px;

    border-top:
        1px solid var(--border);
}


.server-description {
    margin:
        22px
        0;

    color: var(--muted);

    line-height: 1.6;
}


.server-live-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap: 10px;
}


.server-live-card {
    min-height: 92px;

    padding: 16px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: #0e1013;
}


.server-live-card span,
.server-address span {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .7px;
}


.server-live-card strong {
    font-size: 17px;
}


.server-address {
    margin-top: 10px;

    padding: 15px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: #0e1013;
}


.server-address code {
    font-family: inherit;

    font-size: 13px;
    font-weight: 800;
}


.server-feature-title {
    margin:
        28px
        0
        13px;

    color: var(--accent);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.server-feature-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap: 10px;
}


.server-feature-card {
    min-height: 140px;

    padding: 17px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: #0e1013;
}


.feature-number {
    color: var(--accent);

    font-size: 9px;
    font-weight: 900;
}


.server-feature-card h4 {
    margin:
        12px
        0
        7px;

    font-size: 14px;
}


.server-feature-card p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}


.server-actions {
    margin-top: 20px;

    display: flex;

    gap: 10px;
}


.server-actions .button {
    flex: 1;
}


/* Footer */

footer {
    padding:
        25px
        0
        35px;

    display: flex;
    justify-content: space-between;

    border-top:
        1px solid var(--border);

    color: var(--muted);

    font-size: 11px;
}


footer strong {
    display: block;

    margin-bottom: 3px;

    color: var(--text);
}


.footer-links {
    display: flex;
    gap: 20px;
}


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


/* Responsive */

@media (max-width: 900px) {

    .server-live-grid,
    .server-feature-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

}


@media (max-width: 700px) {

    .topbar {
        flex-direction: column;

        gap: 6px;
    }

    .nav {
        width: 100%;

        margin: 0;

        justify-content: space-between;

        gap: 8px;
    }

    main,
    footer {
        width:
            calc(100% - 24px);
    }

    .hero {
        min-height: 300px;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .cta {
        align-items: stretch;
        flex-direction: column;
    }

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

    .server-card summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .server-summary-right {
        width: 100%;

        justify-content: space-between;
    }

    .server-live-grid,
    .server-feature-grid {
        grid-template-columns: 1fr;
    }

    .server-actions {
        flex-direction: column;
    }

    footer {
        gap: 20px;

        flex-direction: column;
    }

}


/* =====================================================
   Thin homepage hero banner
   ===================================================== */

.hero {
    min-height: 170px;
    max-height: 170px;

    margin-top: 18px;

    background-position:
        center 55%;
}

.hero-content {
    padding:
        18px
        34px;
}

.hero-logo {
    width: min(230px, 100%);
    height: auto;

    margin:
        5px
        0
        7px;
}

.hero-content p {
    max-width: 560px;

    font-size: 13px;
    line-height: 1.4;
}

.hero .eyebrow {
    font-size: 9px;
}


/* Mobile */
@media (max-width: 700px) {

    .hero {
        min-height: 220px;
        max-height: 220px;
    }

    .hero-content {
        padding:
            20px
            20px;
    }

    .hero-logo {
        width: min(220px, 80vw);
    }

}


.button-disabled {
    opacity: .42;

    cursor: default;

    pointer-events: none;
}


/* =====================================================
   Homepage order spacing
   Hero -> Community Links -> Server CTA -> Servers
   ===================================================== */

/* Links direkt unter dem Hero */
.hero + .section {
    padding-top: 22px;
}

/* Choose-your-server Box unter den Links */
.section + .cta {
    margin-top: 22px;
}

/* Serverliste etwas näher an die CTA */
.cta + .servers-section {
    padding-top: 42px;
}


/* =====================================================
   Equal Community Link Cards
   ===================================================== */

.link-grid {
    align-items: stretch;
}

.link-card {
    height: 145px;
    min-height: 145px;
    max-height: 145px;

    align-items: flex-start;
}

.link-card > div:last-child {
    height: 100%;

    display: flex;
    flex-direction: column;
}

.link-card h3 {
    margin:
        0
        0
        6px;
}

.link-card p {
    margin:
        0;
}

.link-card span {
    margin-top: auto;
}


/* Mobile darf wieder flexibel sein */
@media (max-width: 700px) {

    .link-card {
        height: auto;
        min-height: 135px;
        max-height: none;
    }

}


/* =====================================================
   Exact community card heights
   ===================================================== */

.link-grid {
    grid-auto-rows: 145px;
    align-items: stretch;
}

.link-card {
    box-sizing: border-box;

    width: 100%;
    height: 100%;

    min-height: 0;
    max-height: none;

    margin: 0;

    align-self: stretch;
}

.link-card > div:last-child {
    min-height: 0;
    height: 100%;

    display: flex;
    flex-direction: column;
}

.link-card h3 {
    margin:
        0
        0
        6px;
}

.link-card p {
    margin: 0;
}

.link-card span {
    margin-top: auto;
}


/* =====================================================
   Stronger hero frame
   ===================================================== */

.hero {
    border:
        2px solid
        #282d34;

    background-clip:
        padding-box;

    box-shadow:
        inset
        0
        0
        0
        1px
        rgba(11, 12, 14, .85);
}


/* Mobile cards may grow naturally */
@media (max-width: 700px) {

    .link-grid {
        grid-auto-rows: auto;
    }

    .link-card {
        height: auto;
        min-height: 135px;
    }

}


/* Accessibility and layout repairs, October 2026. */
html { color-scheme: dark; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:8px; left:12px; z-index:100; padding:12px 18px; background:var(--accent); transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.hero { max-height:none; }
.hero-logo { max-height:112px; width:auto; max-width:100%; object-fit:contain; object-position:left; }
.hero-content { min-width:0; }
.nav { flex-wrap:wrap; align-items:center; }
.nav a { display:inline-flex; align-items:center; min-height:44px; }
.nav a[aria-current="page"] { color:var(--accent); }
.link-grid { grid-auto-rows:minmax(145px,auto); }
.link-card > div:last-child { min-width:0; }
.status-unavailable { color:#eab868; }
.server-live-card strong, .server-address code { overflow-wrap:anywhere; }
.footer-links { flex-wrap:wrap; }
@media (max-width:700px) { .hero { max-height:none; min-height:220px; } .nav { justify-content:center; gap:6px 20px; } .topbar { padding-inline:16px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *, *::before, *::after { transition:none!important; animation:none!important; } }
