/* ==========================================================
   PDX CLAN SERVERS
   One-Screen Desktop Layout
   ========================================================== */


/* ----------------------------------------------------------
   RESET
   ---------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background:
        radial-gradient(
            circle at 50% 0%,
            #14011f 0%,
            #050810 36%,
            #02050b 100%
        );

    color: #f5f5f7;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    overflow-x: hidden;
}


/* ----------------------------------------------------------
   COLORS
   ---------------------------------------------------------- */

:root {
    --bg: #03060c;
    --panel: rgba(6, 10, 18, 0.92);
    --panel-2: rgba(9, 14, 24, 0.94);

    --border: rgba(140, 150, 180, 0.22);

    --purple: #bd45ff;
    --purple-light: #d96aff;
    --purple-dark: #6714b8;

    --green: #00ff32;
    --red: #ff3038;

    --text: #ffffff;
    --muted: #aaaab4;
}


/* ==========================================================
   ONE SCREEN PAGE
   ========================================================== */

.page {
    width: 100%;

    min-height: 100vh;

    display: grid;

    grid-template-rows:
        63px
        minmax(330px, 41vh)
        minmax(285px, 1fr)
        145px
        44px;

    background: #03060b;
}


/* ==========================================================
   NAVIGATION
   ========================================================== */

.topbar {
    background:
        rgba(2, 4, 10, 0.98);

    border-bottom:
        1px solid rgba(165, 55, 255, 0.12);

    position: relative;

    z-index: 50;
}

.navigation {
    height: 100%;

    max-width: 1710px;

    margin: auto;

    padding:
        0 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;
}

.nav-links {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 48px;
}

.nav-links a {
    height: 100%;

    display: flex;

    align-items: center;

    color: #eeeeef;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    position: relative;

    transition:
        color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--purple-light);
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 5px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #7c21db,
            #ef5fff
        );
}


/* Discord Button Navigation */

.discord-nav-btn {
    position: absolute;

    right: 35px;

    top: 50%;

    transform:
        translateY(-50%);

    height: 38px;

    padding:
        0 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(184, 65, 255, 0.6);

    border-radius: 6px;

    color: var(--purple-light);

    text-decoration: none;

    font-weight: 700;

    font-size: 13px;

    background:
        rgba(32, 8, 48, 0.22);

    transition:
        all 0.2s ease;
}

.discord-nav-btn:hover {
    background:
        rgba(166, 44, 255, 0.15);

    box-shadow:
        0 0 20px
        rgba(172, 44, 255, 0.17);
}

.discord-icon {
    margin-right: 10px;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
    position: relative;

    width: 100%;
    min-width: 100%;
    min-height: 0;

    overflow: hidden;

    background-image:
        url("../assets/hero/pdx-hero3.png");

    /*
       Bild über die KOMPLETTE Hero-Fläche ziehen.
       Da dein Bild bereits extra als 5120 x 793
       Leinwand gebaut wurde, darf CSS es auch
       exakt auf die Hero-Fläche skalieren.
    */
    background-size: 100% 185%;

    background-repeat: no-repeat;
    background-position: center -210px;

    background-color: #03060b;

    border-bottom:
        1px solid rgba(157, 46, 255, 0.15);
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(1, 4, 10, 0.58) 0%,
            rgba(4, 2, 12, 0.16) 42%,
            rgba(1, 4, 12, 0.26) 65%,
            rgba(0, 3, 10, 0.62) 100%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 2560px;

    height: 100%;

    margin: auto;

    padding:
        25px 30px;

    display: grid;

    grid-template-columns:
        minmax(400px, 1fr)
        minmax(320px, 420px);

    align-items: center;

    gap: 75px;
}


/* ----------------------------------------------------------
   HERO LEFT
   ---------------------------------------------------------- */

.hero-text {
    max-width: 590px;

    transform:
        translateX(-55px);
}

.hero-eyebrow {
    color: #e45fff;

    font-size: 17px;

    font-weight: 600;

    margin-bottom: 7px;
}

.hero h1 {
    color: white;

    font-size:
        clamp(38px, 3.05vw, 58px);

    font-weight: 900;

    line-height: 0.98;

    letter-spacing: -1.5px;

    text-shadow:
        0 2px 15px
        rgba(0, 0, 0, 0.8);

    margin-bottom: 14px;
}

.hero h2 {
    color: #ee55ff;

    font-size: 18px;

    font-weight: 700;

    letter-spacing: 0.6px;

    margin-bottom: 20px;
}

.hero-text p {
    color: #eeeeef;

    font-size: 14px;

    line-height: 1.45;

    margin-bottom: 7px;

    text-shadow:
        0 1px 5px #000;
}

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 22px;
}


/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */

.btn {
    height: 42px;

    padding:
        0 22px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 5px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        all 0.2s ease;
}

.btn-purple {
    border:
        1px solid
        rgba(205, 63, 255, 0.75);

    color: #df5dff;

    background:
        rgba(52, 4, 86, 0.38);
}

.btn-purple:hover {
    color: white;

    background:
        linear-gradient(
            135deg,
            #5a16bd,
            #8e27e8
        );
}

.btn-dark {
    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    color: white;

    background:
        rgba(5, 6, 11, 0.61);
}

.btn-dark:hover {
    background:
        rgba(255, 255, 255, 0.08);
}


/* ==========================================================
   DISCORD HERO CARD
   ========================================================== */

.discord-card {
    justify-self: end;

    width: 100%;

    max-width: 410px;

    transform:
        translateX(55px);

    padding:
        20px 22px;

    background:
        linear-gradient(
            145deg,
            rgba(3, 6, 15, 0.96),
            rgba(5, 8, 18, 0.93)
        );

    border:
        1px solid
        rgba(141, 68, 213, 0.34);

    border-radius: 10px;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.48);
}

.discord-title {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #bc4bff;

    font-size: 18px;

    font-weight: 800;

    margin-bottom: 18px;
}

.discord-title span {
    font-size: 22px;
}

.discord-card ul {
    list-style: none;

    display: grid;

    gap: 11px;

    color: #ececf0;

    font-size: 14px;
}

.discord-card li::before {
    content: "✓";

    color: #c744ff;

    font-weight: 900;

    margin-right: 12px;
}

.discord-main-btn {
    margin-top: 19px;

    width: 100%;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 5px;

    text-decoration: none;

    color: white;

    font-weight: 800;

    background:
        linear-gradient(
            110deg,
            #5f16d7,
            #8127ee
        );

    box-shadow:
        0 0 22px
        rgba(131, 31, 255, 0.34);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.discord-main-btn:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 0 30px
        rgba(171, 58, 255, 0.48);
}


/* ==========================================================
   SERVER SECTION
   ========================================================== */

.servers-section {
    min-height: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(26, 7, 55, 0.18),
            transparent 42%
        ),
        #03060b;

    padding:
        10px 5.3vw 9px;
}

.section-header {
    max-width: 1710px;

    height: 44px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.section-title {
    color: white;

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 800;

    font-size: 16px;
}

.section-title:first-letter {
    color: #cf42ff;
}

.section-subtitle {
    margin-left: 29px;

    margin-top: 1px;

    font-size: 12px;

    color: #91929b;
}

.last-update {
    border:
        1px solid
        rgba(132, 137, 155, 0.25);

    border-radius: 5px;

    color: #aaaab4;

    font-size: 11px;

    padding:
        8px 13px;

    background:
        rgba(2, 4, 10, 0.35);
}


/* ==========================================================
   SERVER GRID
   ========================================================== */

.server-grid {
    width: calc(100% - 293px);
    max-width: none;

    height: calc(100% - 44px);

    margin-left: auto;
    margin-right: auto;
   
    /* Abstand zum Hero */
    margin-top: 25px;

    display: grid;

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

    gap: 12px;
}

.server-card {
    min-width: 0;

    height: 100%;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    background:
        linear-gradient(
            155deg,
            #080d17,
            #04070d
        );

    border:
        1px solid
        rgba(133, 139, 158, 0.31);

    border-radius: 7px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.server-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(179, 62, 255, 0.55);

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.35);
}


/* ----------------------------------------------------------
   SERVER IMAGE / HEADER
   ---------------------------------------------------------- */

.server-image {
    height: 48%;

    min-height: 110px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    border-bottom:
        1px solid
        rgba(142, 146, 160, 0.22);

    isolation: isolate;
}

.server-image::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.95;

    z-index: -2;
}

.server-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.36)
        );

    z-index: -1;
}

.minecraft::before {
    background-image: url("../assets/games/minecraft.jpg");
    background-size: cover;
    background-position: center 48%;
    background-repeat: no-repeat;
}

.valheim::before {
    background-image: url("../assets/games/valheim.jpg");
    background-size: cover;
    background-position: center 0%;
    background-repeat: no-repeat;
}

.seven-days::before {
    background-image: url("../assets/games/7dtd.jpg");
    background-size: cover;
    background-position: center 0%;
    background-repeat: no-repeat;
}

.enshrouded::before {
    background-image: url("../assets/games/enshrouded.jpg");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.dayz::before {
    background-image: url("../assets/games/dayz.jpg");
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.scum::before {
    background-image: url("../assets/games/scum.jpg");
    background-size: cover;
    background-position: center -30%;
    background-repeat: no-repeat;
}

.sons-of-the-forest::before {
    background-image: url("../assets/games/sons-of-the-forest.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-image-title {
display: none;
}

.status-badge {
    position: absolute;

    top: 11px;
    left: 11px;

    padding:
        4px 9px;

    border-radius: 3px;

    font-size: 11px;

    font-weight: 800;

    color: white;
}

.online-badge {
    background: #00a42c;

    box-shadow:
        0 0 12px
        rgba(0, 255, 70, 0.2);
}

.offline-badge {
    background: #d61724;
}


/* ----------------------------------------------------------
   SERVER CONTENT
   ---------------------------------------------------------- */

.server-content {
    flex: 1;

    min-height: 0;

    padding:
        8px 10px;

    display: flex;

    flex-direction: column;
}

.server-name {
    color: white;

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 700;

    font-size: 10px;

    margin-bottom: 4px;
}

.server-name span {
    color: var(--purple);
}

.server-type {
    color: #a750e8;

    font-size: 12px;

    margin-left: 30px;

    margin-bottom: 7px;
}

.server-info {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #b9bac1;

    font-size: 12px;

    line-height: 1.2;

    margin-bottom: 6px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.server-info span:last-child {
    overflow: hidden;

    text-overflow: ellipsis;
}

.offline-text {
    color: #ff3038;

    font-weight: 700;
}

.server-actions {
    margin-top: auto;

    display: flex;

    gap: 7px;
}

.join-btn,
.details-btn,
.copy-btn {
    height: 34px;

    border-radius: 4px;

    font-family: inherit;

    font-size: 10px;

    font-weight: 800;

    cursor: pointer;

    transition:
        filter 0.2s ease,
        transform 0.2s ease;
}

.join-btn {
    flex: 1;

    border: none;

    color: white;

    background:
        linear-gradient(
            100deg,
            #5a16bc,
            #7a22d1
        );
}

.copy-btn {
    width: 38px;

    color: #c84aff;

    border:
        1px solid
        #7e2fb1;

    background:
        rgba(18, 8, 32, 0.44);
}

.details-btn {
    width: 100%;

    color: #ca47ff;

    border:
        1px solid
        rgba(174, 53, 227, 0.74);

    background:
        transparent;
}

.join-btn:hover,
.copy-btn:hover,
.details-btn:hover {
    filter: brightness(1.2);

    transform:
        translateY(-1px);
}


/* ==========================================================
   BOTTOM 3 CARDS
   ========================================================== */

.bottom-grid {
    min-height: 0;

    padding:
        0 5.3vw 8px;

    display: grid;

    grid-template-columns:
        1fr 1.04fr 1.13fr;

    gap: 20px;

    background: #03060b;
}

.info-card {
    min-width: 0;

    overflow: hidden;

    padding:
        11px 19px;

    border:
        1px solid
        rgba(132, 139, 160, 0.28);

    border-radius: 7px;

    background:
        linear-gradient(
            145deg,
            rgba(7, 11, 19, 0.98),
            rgba(3, 6, 12, 0.98)
        );
}

.info-title {
    color: #c445ff;

    display: flex;

    align-items: center;

    gap: 11px;

    font-size: 17px;

    font-weight: 800;

    margin-bottom: 8px;
}


/* ----------------------------------------------------------
   SERVER STATUS CARD
   ---------------------------------------------------------- */

.status-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 27px;

    border-bottom:
        1px solid
        rgba(118, 125, 145, 0.14);

    color: #d4d4d9;

    font-size: 13px;
}

.status-row:last-child {
    border-bottom: 0;
}

.green {
    color: var(--green);

    font-weight: 600;
}


/* ----------------------------------------------------------
   CONTACT CARD
   ---------------------------------------------------------- */

.contact-row {
    min-height: 27px;

    display: grid;

    grid-template-columns:
        minmax(110px, 1fr)
        minmax(130px, 1.3fr)
        20px;

    align-items: center;

    color: #d9d9dd;

    text-decoration: none;

    border-bottom:
        1px solid
        rgba(118, 125, 145, 0.14);

    font-size: 13px;

    transition:
        color 0.2s ease;
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-row:hover {
    color: #d85cff;
}

.contact-detail {
    color: #a0a0aa;

    text-align: right;

    padding-right: 12px;
}


/* ----------------------------------------------------------
   RULES CARD
   ---------------------------------------------------------- */

.rules-card p {
    color: #a9a9b1;

    font-size: 13px;

    line-height: 1.35;

    margin-bottom: 5px;
}

.rules-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 36px;

    margin-top: 3px;

    padding:
        0 18px;

    color: #d851ff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    border:
        1px solid
        rgba(195, 64, 255, 0.67);

    border-radius: 4px;

    background:
        rgba(46, 10, 70, 0.25);
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
    padding:
        0 5.3vw;

    min-height: 0;

    border-top:
        1px solid
        rgba(95, 101, 121, 0.16);

    color: #777985;

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    align-items: center;

    font-size: 12px;

    background: #02050a;
}

.footer-slogan {
    text-align: center;

    color: #d066ee;

    letter-spacing: 7px;

    font-size: 10px;
}

.footer-icons {
    text-align: right;

    color: #a4a4ab;

    font-size: 18px;
}


/* ==========================================================
   LARGE DESKTOP OPTIMISATION
   ========================================================== */

@media
(max-height: 950px)
and (min-width: 1101px) {

    .page {
        grid-template-rows:
            57px
            minmax(300px, 40vh)
            minmax(265px, 1fr)
            132px
            40px;
    }

    .hero-content {
        padding-top: 17px;
        padding-bottom: 17px;
    }

    .discord-card {
        padding:
            16px 20px;
    }

    .discord-title {
        margin-bottom: 12px;
    }

    .discord-card ul {
        gap: 8px;
    }

    .discord-main-btn {
        margin-top: 14px;
    }

    .server-content {
        padding:
            8px 13px;
    }

    .info-card {
        padding:
            8px 17px;
    }

    .info-title {
        margin-bottom: 5px;
    }
}


/* ==========================================================
   LAPTOP
   ========================================================== */

@media
(max-width: 1350px)
and (min-width: 901px) {

    .nav-links {
        gap: 25px;
    }

    .discord-nav-btn {
        display: none;
    }

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

        gap: 35px;

        grid-template-columns:
            1fr
            350px;
    }

    .hero-text {
        transform: none;
    }

    .discord-card {
        transform: none;
    }

    .servers-section,
    .bottom-grid,
    .footer {
        padding-left: 3vw;
        padding-right: 3vw;
    }

    .server-grid,
    .bottom-grid {
        gap: 12px;
    }

    .server-info {
        font-size: 11px;
    }

    .join-btn,
    .details-btn,
    .copy-btn {
        font-size: 10px;
    }

}


/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media
(max-width: 900px) {

    body {
        overflow-y: auto;
    }

    .page {
        min-height: 100vh;

        display: block;
    }

    .topbar {
        min-height: 64px;
    }

    .navigation {
        justify-content: flex-start;

        overflow-x: auto;

        padding:
            0 18px;
    }

    .nav-links {
        justify-content: flex-start;

        gap: 25px;

        min-width: max-content;
    }

    .discord-nav-btn {
        display: none;
    }


    /* Hero Mobile */

    .hero {
        min-height: 650px;

        background-size: cover;

        background-position: center;
    }

    .hero-content {
        min-height: 650px;

        padding:
            50px 20px;

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .hero-text {
        max-width: 620px;

        transform: none;
    }

    .hero h1 {
        font-size: 46px;
    }

    .discord-card {
        justify-self: start;

        transform: none;
    }


    /* Server Mobile */

    .servers-section {
        overflow: visible;

        padding:
            30px 20px;
    }

    .section-header {
        height: auto;

        margin-bottom: 20px;

        gap: 15px;

        flex-wrap: wrap;
    }

    .server-grid {
        height: auto;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 18px;
    }

    .server-card {
        min-height: 330px;
    }

    .server-image {
        height: 145px;
    }


    /* Bottom Mobile */

    .bottom-grid {
        padding:
            0 20px 25px;

        grid-template-columns: 1fr;

        gap: 15px;
    }

    .info-card {
        min-height: 135px;
    }


    /* Footer Mobile */

    .footer {
        min-height: 100px;

        padding:
            20px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 12px;

        text-align: center;
    }

    .footer-slogan,
    .footer-icons {
        text-align: center;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media
(max-width: 600px) {

    .hero {
        background-position: center;
    }

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

    .hero h1 {
        font-size: 38px;
    }

    .hero h2 {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .discord-card {
        max-width: none;
    }

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

    .server-card {
        min-height: 350px;
    }

    .server-image {
        height: 155px;
    }

    .last-update {
        width: 100%;
    }

}

/* ==========================================================
   PDX RESPONSIVE PATCH V2 - 2026-09-03
   Referenz: grosser Desktop wie bisher.
   Ziel: keine abgeschnittenen Hero-Inhalte, kein verzerrtes Logo,
   saubere Skalierung auf mittleren und kleinen Viewports.
   ========================================================== */

:root {
    --pdx-content-max: 1800px;
    --pdx-side-pad: clamp(24px, 4vw, 90px);
    --pdx-gap: clamp(8px, 0.65vw, 14px);
    --pdx-hero-y: 42%;
}

/* ----------------------------------------------------------
   Grundlayout / Navigation
   ---------------------------------------------------------- */

.navigation {
    width: 100%;
    max-width: var(--pdx-content-max);
    margin-inline: auto;
    padding-inline: var(--pdx-side-pad);
}

.nav-links {
    gap: clamp(20px, 2.4vw, 48px);
}

.discord-nav-btn {
    right: var(--pdx-side-pad);
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */

.hero {
    width: 100%;
    min-width: 0;

    /* Proportional skalieren: das Logo wird nie gestaucht. */
    background-size: cover;
    background-position: center var(--pdx-hero-y);
    background-repeat: no-repeat;
}

/*
   Wichtig:
   Kein width: calc(...) mehr.
   Der Container ist immer exakt innerhalb des Viewports,
   die Innenabstände kommen nur noch über padding-inline.
*/
.hero-content {
    width: calc(100% - (2 * var(--pdx-side-pad)));
    max-width: var(--pdx-content-max);
    height: 100%;

    margin-inline: auto;
    padding:
        clamp(18px, 2vw, 30px)
        0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 410px);

    align-items: center;

    gap: clamp(30px, 4vw, 80px);
}

.hero-text {
    width: 100%;
    max-width: 590px;
    min-width: 0;
    transform: none;
}

.discord-card {
    width: 100%;
    max-width: 410px;
    min-width: 0;

    justify-self: end;

    transform: none;
}

.hero h1 {
    font-size: clamp(34px, 3vw, 58px);
}

.hero-eyebrow {
    font-size: clamp(14px, 1vw, 17px);
}

.hero h2 {
    font-size: clamp(14px, 1.05vw, 18px);
}

.hero-text p {
    font-size: clamp(12px, 0.78vw, 14px);
}

/* ----------------------------------------------------------
   SERVERBEREICH
   ---------------------------------------------------------- */

.servers-section {
    min-height: 0;
    padding:
        clamp(8px, 1vh, 12px)
        var(--pdx-side-pad)
        clamp(8px, 1vh, 12px);
}

.section-header {
    width: 100%;
    max-width: var(--pdx-content-max);
    margin-inline: auto;
}

.server-grid {
    width: 100%;
    max-width: var(--pdx-content-max);

    height: calc(100% - 44px);

    margin:
        clamp(14px, 2vh, 25px)
        auto
        0;

    display: grid;

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

    gap: var(--pdx-gap);
}

.server-card {
    width: 100%;
    min-width: 0;
    height: 100%;
}

.server-image {
    height: clamp(96px, 11vh, 122px);
    min-height: 0;
}

.server-content {
    padding: clamp(7px, 0.55vw, 10px);
}

.server-name {
    gap: 7px;
    font-size: clamp(10px, 0.62vw, 12px);
}

.server-info {
    gap: 6px;
    font-size: clamp(9px, 0.58vw, 11px);
}

.join-btn,
.details-btn,
.copy-btn {
    height: clamp(30px, 3.2vh, 34px);
    font-size: clamp(8px, 0.52vw, 10px);
}

.copy-btn {
    width: clamp(32px, 2.2vw, 38px);
}

/* ----------------------------------------------------------
   UNTERE 3 KARTEN + FOOTER
   ---------------------------------------------------------- */

.bottom-grid {
    width: calc(100% - (2 * var(--pdx-side-pad)));
    max-width: var(--pdx-content-max);

    margin-inline: auto;

    padding:
        0
        0
        clamp(6px, 1vh, 10px);

    gap: clamp(12px, 1vw, 20px);
}

.info-card {
    min-width: 0;
    padding:
        clamp(8px, 0.9vw, 13px)
        clamp(12px, 1.2vw, 20px);
}

.info-title {
    font-size: clamp(14px, 0.9vw, 17px);
}

.status-row,
.contact-row,
.rules-card p {
    font-size: clamp(11px, 0.7vw, 13px);
}

.footer {
    width: 100%;
    padding-inline: var(--pdx-side-pad);
}


/* Gemeinsame horizontale Flucht für Hero, Server und untere Boxen */
.hero-content,
.section-header,
.server-grid,
.bottom-grid {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   GROSSER DESKTOP
   Referenz-Look: 7 Karten, One-Screen
   ========================================================== */

@media (min-width: 1800px) and (min-height: 820px) {

    html,
    body {
        height: 100%;
    }

    body {
        overflow-y: hidden;
    }

    .page {
        height: 100vh;
        min-height: 760px;

        /* Navigation, Server, untere Kacheln und Footer behalten ihre
           echte Höhe. NUR der Hero nimmt den übrigen Platz ein. */
        grid-template-rows:
            clamp(54px, 5.5vh, 60px)
            minmax(300px, 1fr)
            auto
            auto
            clamp(36px, 3.8vh, 40px);

        align-content: stretch;
    }

    /* pdx-hero3.png = 2560 x 793.
       Als normales Hero-Bild proportional füllen, ohne künstliche
       Breiten-Skalierung. Die vertikale Position kann hier feinjustiert werden. */
    .hero {
        background-size: cover;
        background-position: center 65%;
        background-repeat: no-repeat;
        background-color: #03060b;
    }

    .hero-content {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .servers-section {
        padding-top: 18px;
        padding-bottom: 16px;
        overflow: visible;
    }

    .server-grid {
        margin-top: 16px;
        align-items: start;
        height: auto;
    }

    .server-image {
        height: clamp(88px, 9.5vh, 108px);
    }

    .server-card {
        min-height: 0;
        height: auto;
    }

    .server-content {
        padding: 7px 9px;
        min-height: 104px;
    }

    /* Nach den drei Infozeilen nur noch etwa eine Leerzeile,
       danach direkt die Buttons. */
    .server-actions {
        margin-top: 8px;
    }

    .bottom-grid {
        min-height: 118px;
        margin-top: 14px;
        padding-top: 0;
        padding-bottom: 14px;
        align-items: stretch;
    }

    .info-card {
        min-height: 108px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .info-title {
        margin-bottom: 4px;
    }

    .status-row,
    .contact-row {
        min-height: 24px;
    }

    .rules-card p {
        line-height: 1.25;
        margin-bottom: 3px;
    }

    .rules-btn {
        height: 32px;
        margin-top: 1px;
    }

    .footer {
        min-height: 36px;
        height: 100%;
    }
}

/* ==========================================================
   MITTLERER DESKTOP
   Gleicher Aufbau wie gross, aber enger und sicher im Viewport.
   ========================================================== */

@media (max-width: 1799px) and (min-width: 1451px) {

    :root {
        --pdx-side-pad: clamp(24px, 3vw, 48px);
        --pdx-gap: clamp(7px, 0.55vw, 10px);
    }

    html,
    body {
        height: auto;
    }

    body {
        overflow-y: auto;
    }

    .page {
        min-height: 100vh;
        height: auto;

        grid-template-rows:
            58px
            clamp(320px, 34vw, 385px)
            minmax(280px, auto)
            minmax(130px, auto)
            44px;
    }

    .navigation {
        padding-inline: var(--pdx-side-pad);
    }

    .discord-nav-btn {
        right: var(--pdx-side-pad);
    }

    .hero-content {
        width: calc(100% - (2 * var(--pdx-side-pad)));
        max-width: var(--pdx-content-max);
        margin-inline: auto;
        padding-left: 0;
        padding-right: 0;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(270px, 340px);

        gap: clamp(20px, 2.5vw, 40px);
    }

    .hero-text {
        max-width: 520px;
    }

    .hero h1 {
        font-size: clamp(34px, 3vw, 48px);
    }

    .hero h2 {
        font-size: clamp(14px, 1vw, 17px);
        margin-bottom: 14px;
    }

    .hero-text p {
        font-size: clamp(11px, 0.82vw, 13px);
    }

    .hero-buttons {
        margin-top: 16px;
    }

    .discord-card {
        max-width: 340px;
        padding: 16px 18px;
    }

    .discord-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .discord-card ul {
        gap: 8px;
        font-size: 12px;
    }

    .discord-main-btn {
        height: 40px;
        margin-top: 14px;
        font-size: 12px;
    }

    .server-grid {
        grid-template-columns:
            repeat(7, minmax(0, 1fr));

        height: auto;
    }

    .server-card {
        min-height: 245px;
    }

    .server-image {
        height: 105px;
    }

    .server-name {
        font-size: 10px;
    }

    .server-info {
        font-size: 9px;
    }

    .join-btn,
    .details-btn,
    .copy-btn {
        font-size: 8px;
    }

    .hero-text {
        margin-left: 0;
        padding-left: 0;
        max-width: 500px;
    }

    .hero h1,
    .hero-eyebrow,
    .hero h2,
    .hero-text p,
    .hero-buttons {
        margin-left: 0;
    }

}

/* ==========================================================
   LAPTOP / KLEINER DESKTOP
   Ab hier wird umgebrochen statt gequetscht.
   ========================================================== */

@media (max-width: 1450px) {

    :root {
        --pdx-side-pad: clamp(22px, 3.5vw, 46px);
    }

    body {
        overflow-y: auto;
    }

    .page {
        display: block;
        min-height: 100vh;
        height: auto;
    }

    .topbar,
    .navigation {
        min-height: 58px;
    }

    .navigation {
        padding-inline: var(--pdx-side-pad);
    }

    .hero {
        min-height: clamp(340px, 40vw, 470px);
        background-position: center 42%;
    }

    .hero-content {
        min-height: inherit;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(280px, 350px);

        gap: clamp(24px, 3vw, 42px);
    }

    .hero h1 {
        font-size: clamp(34px, 4vw, 48px);
    }

    .discord-card {
        max-width: 350px;
    }

    .servers-section {
        overflow: visible;
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .section-header {
        height: auto;
        min-height: 44px;
    }

    .server-grid {
        height: auto;

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

        gap: 14px;
        margin-top: 18px;
    }

    .server-card {
        min-height: 270px;
    }

    .server-image {
        height: 128px;
    }

    .server-name {
        font-size: 12px;
    }

    .server-info {
        font-size: 11px;
    }

    .bottom-grid {
        padding-bottom: 24px;
    }

    .footer {
        min-height: 44px;
    }
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) {

    :root {
        --pdx-side-pad: clamp(18px, 4vw, 38px);
    }

    .navigation {
        width: 100%;
        padding-inline: var(--pdx-side-pad);

        overflow-x: auto;
        justify-content: flex-start;
    }

    .nav-links {
        min-width: max-content;
    }

    .discord-nav-btn {
        display: none;
    }

    .hero {
        min-height: 620px;
        background-position: center center;
    }

    .hero-content {
        width: calc(100% - (2 * var(--pdx-side-pad)));
        min-height: 620px;

        padding-inline: 0;

        grid-template-columns: 1fr;
        align-content: center;

        gap: 24px;
    }

    .hero-text {
        max-width: 620px;
    }

    .discord-card {
        justify-self: start;
        max-width: 430px;
    }

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

    .server-card {
        min-height: 300px;
    }

    .server-image {
        height: 145px;
    }

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

    .footer {
        min-height: 100px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        gap: 10px;

        text-align: center;

        padding-block: 18px;
    }

    .footer-slogan,
    .footer-icons {
        text-align: center;
    }
}

/* ==========================================================
   SMARTPHONE
   ========================================================== */

@media (max-width: 600px) {

    :root {
        --pdx-side-pad: 18px;
    }

    .hero {
        min-height: 670px;
    }

    .hero-content {
        min-height: 670px;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 42px);
    }

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

    .server-card {
        min-height: 330px;
    }

    .server-image {
        height: 160px;
    }

    .last-update {
        width: 100%;
    }
}
/* ==========================================================
   PDX CLEANUP - DISCORD NAV BUTTON ENTFERNEN
   ========================================================== */

.discord-nav-btn {
    display: none;
}
.server-info-spacer {
    visibility: hidden;
}
/* ==========================================================
   PDX - TOPBAR ENTFERNT
   Grid jetzt ohne Navigationszeile
   ========================================================== */

/* Standard Desktop */
.page {
    grid-template-rows:
        minmax(330px, 41vh)
        minmax(285px, 1fr)
        145px
        44px;
}


/* Grosser Desktop */
@media (min-width: 1800px) and (min-height: 820px) {

    .page {
        grid-template-rows:
            minmax(300px, 1fr)
            auto
            auto
            clamp(36px, 3.8vh, 40px);
    }

}


/* Mittlerer Desktop */
@media (max-width: 1799px) and (min-width: 1451px) {

    .page {
        grid-template-rows:
            clamp(320px, 34vw, 385px)
            minmax(280px, auto)
            minmax(130px, auto)
            44px;
    }

}

/* ==========================================================
   PDX V2 - REGELN MODAL + BUTTON CLEANUP
   ========================================================== */

.rules-btn {
    border: 0;
    font: inherit;
    cursor: pointer;
}

/* Modal liegt über der kompletten Seite und beeinflusst das Grid nicht */
.rules-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.rules-modal.is-open {
    display: flex;
}

.rules-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 12, 0.82);
    backdrop-filter: blur(8px);
}

.rules-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: min(820px, 88vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(164, 84, 255, 0.65);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(27, 15, 48, 0.98), rgba(8, 10, 25, 0.98));
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(154, 73, 255, 0.18);
    color: #fff;
}

.rules-modal-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.rules-modal-heading span {
    font-size: 25px;
    color: #b76cff;
}

.rules-modal-heading h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: 0.04em;
}

.rules-modal-content {
    overflow-y: auto;
    padding: 20px 28px 8px;
}

.rules-modal-rule {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rules-modal-rule:last-child {
    border-bottom: 0;
}

.rules-modal-rule strong {
    display: block;
    margin-bottom: 6px;
    color: #c78cff;
    font-size: 15px;
}

.rules-modal-rule p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    font-size: 14px;
}

.rules-modal-close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.rules-modal-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.rules-modal-bottom-close {
    margin: 18px 28px 24px;
    min-height: 44px;
    border: 1px solid rgba(174, 93, 255, 0.7);
    border-radius: 10px;
    background: linear-gradient(90deg, #6d35cf, #9b48dc);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.rules-modal-bottom-close:hover {
    filter: brightness(1.08);
}

body.rules-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .rules-modal {
        padding: 12px;
    }

    .rules-modal-dialog {
        max-height: 92vh;
        border-radius: 14px;
    }

    .rules-modal-heading {
        padding: 20px 54px 15px 18px;
    }

    .rules-modal-content {
        padding: 14px 18px 6px;
    }

    .rules-modal-bottom-close {
        margin: 14px 18px 18px;
    }
}
