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

:root {
    --lyd-blue: #148dff;
    --lyd-blue-dark: #0864bd;
    --lyd-blue-soft: rgba(20, 141, 255, 0.72);
    --lyd-white: #ffffff;
    --dark: #151515;
    --dark-2: #212121;
}

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

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #fff;
    background: #0b1018 url("../images/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.page-shade {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 74, 145, 0.10), rgba(0, 0, 0, 0.45) 72%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.54));
}

.brand,
.menu,
.footer {
    position: relative;
    z-index: 1;
}

/* LYD Logo komplett per HTML/CSS – kein neues Logo-Bild nötig. */
.brand {
    width: min(92%, 700px);
    margin: 28px auto 0;
    text-align: center;
    text-shadow: 0 2px 3px #000, 0 0 10px rgba(0, 0, 0, 0.9);
}

.brand-title {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    line-height: 0.9;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(42px, 5vw, 70px);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-live,
.brand-dream {
    color: var(--lyd-blue);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

.brand-your {
    color: var(--lyd-white);
}

.brand-roleplay {
    margin-top: 2px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(23px, 2.6vw, 37px);
    letter-spacing: 8px;
    color: #fff;
}

.brand-line {
    width: 230px;
    height: 3px;
    margin: 9px auto 7px;
    background: linear-gradient(90deg, transparent, var(--lyd-blue), #fff, var(--lyd-blue), transparent);
    box-shadow: 0 0 8px rgba(20, 141, 255, 0.45);
}

.brand p {
    color: #dceeff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Grundform bewusst sehr nah an der alten I-Roleplay Enterpage. */
.menu {
    width: 54%;
    min-width: 430px;
    max-width: 700px;
    margin: 38px auto 0;
    background: var(--dark-2);
    border: 1px solid rgba(20, 141, 255, 0.75);
    box-shadow:
        0 0 6px #000,
        0 0 22px rgba(0, 72, 150, 0.18);
    transform: perspective(500px);
    transform-origin: center center;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.menu::after {
    content: "";
    display: block;
    clear: both;
}

.menu-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-bottom: 2px solid var(--lyd-blue);
    background: linear-gradient(#151515, #0c0c0c);
    color: var(--lyd-blue);
}

.menu-header h1 {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px #000;
}

.menu-tag {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid var(--lyd-blue);
    color: #fff;
    background: #0b4f8d;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.tile {
    position: relative;
    display: block;
    min-height: 150px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
    background-color: #111;
}

.tile:nth-child(odd):not(.tile-banking) {
    border-right: 1px solid rgba(20, 141, 255, 0.72);
}

.tile-forum,
.tile-server {
    border-bottom: 1px solid rgba(20, 141, 255, 0.72);
}

.tile-banking {
    grid-column: 1 / -1;
    min-height: 112px;
    border-top: 1px solid rgba(20, 141, 255, 0.72);
    background:
        linear-gradient(90deg, rgba(0, 23, 48, 0.92), rgba(7, 78, 143, 0.78), rgba(0, 23, 48, 0.92)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 8px);
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0.46;
    filter: saturate(0.72) contrast(1.08) brightness(0.82);
    transform: scale(1.01);
    transition: opacity 0.25s ease, transform 0.35s ease, filter 0.25s ease;
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 30, 61, 0.07), rgba(0, 0, 0, 0.36));
    transition: background 0.25s ease;
}

.tile-forum::before {
    background-image: url("../images/forum.jpg");
}

.tile-server::before {
    background-image: url("../images/server.jpg");
}

.tile-teamspeak::before {
    background-image: url("../images/teamspeak.jpg");
}

.tile-ucp::before {
    background-image: url("../images/ucp.jpg");
}

.tile:hover::before,
.tile:focus-visible::before {
    opacity: 0.70;
    filter: saturate(0.9) contrast(1.10) brightness(0.93);
    transform: scale(1.035);
}

.tile:hover::after,
.tile:focus-visible::after {
    background: linear-gradient(to bottom, rgba(0, 80, 155, 0.17), rgba(0, 20, 40, 0.38));
}

.sub {
    position: absolute;
    left: 0;
    top: calc(100% - 34px);
    width: 100%;
    height: 100%;
    padding: 7px 10px;
    overflow: hidden;
    background: rgba(7, 73, 133, 0.78);
    border-top: 1px solid rgba(255,255,255,0.16);
    transition: top 0.22s ease, background 0.22s ease;
}

.sub h2 {
    height: 28px;
    line-height: 25px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px #000;
}

.sub h2 span {
    color: #a9d8ff;
}

.sub p {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.7;
    color: #eef7ff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.20s ease 0.03s, transform 0.20s ease 0.03s;
    text-shadow: 0 1px 1px #000;
}

.tile:hover .sub,
.tile:focus-visible .sub {
    top: 0;
    background: rgba(7, 91, 166, 0.84);
}

.tile:hover .sub p,
.tile:focus-visible .sub p {
    opacity: 1;
    transform: translateY(0);
}

.tile:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

.bank-symbol {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 86px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.14);
    text-shadow: 0 0 14px rgba(20, 141, 255, 0.32);
    pointer-events: none;
}

/* Der alte I-Roleplay Perspektiv-Effekt bleibt erhalten. */
.menu.top-left {
    transform: perspective(500px) rotateX(-4deg) rotateY(5deg);
}

.menu.top-right {
    transform: perspective(500px) rotateX(-4deg) rotateY(-5deg);
}

.menu.bottom-left {
    transform: perspective(500px) rotateX(4deg) rotateY(5deg);
}

.menu.bottom-right {
    transform: perspective(500px) rotateX(4deg) rotateY(-5deg);
}

.menu.bottom-center {
    transform: perspective(500px) rotateX(4deg);
}

.menu.tile-active {
    box-shadow:
        0 0 7px #000,
        0 0 28px rgba(20, 141, 255, 0.30);
}

.footer {
    width: min(92%, 700px);
    margin: 16px auto 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    text-shadow: 0 1px 2px #000;
}

.footer-dot {
    padding: 0 8px;
    color: var(--lyd-blue);
}

@media (max-width: 760px) {
    .brand {
        margin-top: 20px;
    }

    .brand-title {
        gap: 8px;
    }

    .brand-roleplay {
        letter-spacing: 5px;
    }

    .menu {
        width: 92%;
        min-width: 0;
        margin-top: 28px;
    }
}

@media (max-width: 520px) {
    .brand-title {
        flex-wrap: wrap;
        gap: 4px 9px;
        font-size: 44px;
    }

    .brand-roleplay {
        font-size: 24px;
    }

    .menu-header h1 {
        font-size: 15px;
    }

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

    .tile,
    .tile-banking {
        grid-column: 1;
        min-height: 125px;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(20, 141, 255, 0.72);
    }

    .tile-banking {
        border-top: 0;
    }

    .bank-symbol {
        right: 15px;
        font-size: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu,
    .tile::before,
    .sub,
    .sub p {
        transition: none;
    }
}
