/* ==========================================================================
   BANGERCITY RP – Serverinfos (/serverinfos)

   Die Seite lädt site.css (Live-Sektionen) und danach home.css (Aussehen der
   Startseite). Dieses Stylesheet kommt zuletzt und macht nur drei Dinge:
     1. die Klassennamen überbrücken, bei denen site.js und home.css
        auseinanderlaufen (.nav.solid vs. .nav.scrolled),
     2. Reste des alten Layouts abschalten, die home.css nicht überschreibt,
     3. den Seitenkopf dieser Seite stylen (.si-head, .si-jump).
   ========================================================================== */

/* ---- 1. site.js schaltet beim Scrollen .solid, home.css kennt .scrolled --- */
.nav.solid { background: rgba(7, 6, 15, .93); }

/* site.js hebt beim Scrollen den Menüpunkt der sichtbaren Sektion hervor und
   nimmt dabei allen anderen die Klasse .on – auch „Serverinfos“. Auf dieser
   Seite bleibt der Punkt deshalb über den Link selbst markiert. */
.links a[href="/serverinfos"] {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 8px 22px -10px rgba(109, 77, 255, .9);
}
.links a[href="/serverinfos"] i { opacity: 1; }

/* ---- 2. Reste aus site.css, die sich mit home.css beißen ----------------- */
/* site.css legt ein Raster über die ganze Seite (body::after). Auf der
   Startseite gibt es das nicht – hier also auch nicht. */
body.page-serverinfos::after { content: none; display: none; }

/* site.css setzt `section.sec` (höhere Spezifität als home.css `.sec`) auf
   80px Abstand und zieht eine Trennlinie zwischen zwei Sektionen. Beides
   passt, nur der erste Abstand unter dem Seitenkopf darf kleiner sein. */
.si .stats { margin-top: 0; }
.si > .wrap + .wrap { margin-top: 18px; }

/* ---- 3. Seitenkopf ------------------------------------------------------- */
.si-head { padding: 54px 0 10px; position: relative; }
.si-head-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: start;
}
.si-head h1 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -.03em;
    margin: 16px 0 14px;
}
.si-head .lead {
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 58ch;
    margin: 0 0 22px;
}
.si-head .badges { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sprungmarken zu den Sektionen */
.si-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.si-jump a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 15px;
    border-radius: 11px;
    border: 1px solid var(--line-2, rgba(255, 255, 255, .12));
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    transition: .16s;
}
.si-jump a:hover {
    border-color: rgba(139, 92, 246, .55);
    background: rgba(139, 92, 246, .16);
    transform: translateY(-1px);
}
.si-jump a i { color: var(--cyan); font-size: 13px; }

/* ---- 4. „Was dich erwartet“ (#ueber) ------------------------------------ */

/* Hervorgehobener Block: die KI-Welt */
.si-hero-topic {
    display: grid;
    position: relative;
    overflow: hidden;
    grid-template-columns: auto 1fr;
    gap: 26px;
    padding: 32px;
    margin-bottom: 26px;
    border-radius: var(--r-lg, 20px);
    border: 1px solid rgba(139, 92, 246, .35);
    background: var(--panel);
    box-shadow: var(--shadow);
}
/* Key-Art im Hintergrund, stark eingefärbt – nur Stimmung, keine Details */
.si-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: 50% 72%;
    opacity: .34;
    filter: saturate(1.15) contrast(1.05);
}
/* Farbschleier über dem Bild – eigenes Element, damit die Deckkraft von
   .si-hero-bg den Schleier nicht mit aufhellt. */
.si-hero-topic::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(760px 340px at 8% 0%, rgba(109, 77, 255, .48), transparent 70%),
        radial-gradient(640px 320px at 96% 100%, rgba(34, 211, 238, .30), transparent 70%),
        linear-gradient(100deg, rgba(10, 8, 22, .88) 0%, rgba(10, 8, 22, .62) 48%, rgba(10, 8, 22, .86) 100%);
}
.si-hero-ic, .si-hero-tx { position: relative; z-index: 1; }
.si-hero-ic {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 14px 34px -14px rgba(109, 77, 255, .9);
}
.si-hero-tx .kicker { position: relative; z-index: 1; }
.si-hero-topic h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.15;
    margin: 8px 0 12px;
}
.si-hero-tx > p {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0 0 22px;
    max-width: 80ch;
}
.si-hero-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}
.si-hero-list > div {
    display: flex;
    gap: 13px;
    padding: 15px 16px;
    border-radius: var(--r, 14px);
    border: 1px solid var(--line-2, rgba(255, 255, 255, .12));
    background: rgba(12, 9, 26, .62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: .18s;
}
.si-hero-list > div:hover {
    border-color: rgba(34, 211, 238, .45);
    background: rgba(16, 12, 34, .78);
    transform: translateY(-2px);
}
.si-hero-list > div > i {
    color: var(--cyan);
    font-size: 15px;
    margin-top: 3px;
    flex: none;
    width: 18px;
    text-align: center;
}
.si-hero-list b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.si-hero-list span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* Die sieben Themenkacheln */
.si-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 18px;
}
.si-topic {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-lg, 20px);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform .25s cubic-bezier(.2, .7, .3, 1), border-color .25s, box-shadow .25s;
}
.si-topic:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--tint-a) 70%, transparent);
    box-shadow:
        0 22px 48px -22px var(--tint-a),
        0 10px 40px -20px rgba(0, 0, 0, .9);
}

/* ---- Bildkopf: Key-Art-Ausschnitt mit eigener Einfärbung ---- */
.si-topic .shot {
    position: relative;
    height: 152px;
    overflow: hidden;
    flex: none;
    background: #0d0a1c;
}
/* Der Ausschnitt entsteht über background-size/-position: so lässt sich
   waagerecht UND senkrecht zuschneiden (object-fit könnte hier nur senkrecht,
   weil die Kachel breiter als das Seitenverhältnis des Bildes ist). */
.si-topic .shot .bg {
    position: absolute;
    inset: 0;
    background-size: 230% auto;
    background-repeat: no-repeat;
    filter: saturate(1.1) contrast(1.04);
    transform: scale(1.02);
    transition: transform .65s cubic-bezier(.2, .7, .3, 1), filter .35s;
}
.si-topic:hover .shot .bg { transform: scale(1.12); filter: saturate(1.3) contrast(1.08); }

/* Duotone-Schleier in den Kachelfarben + Verlauf zum Text hin */
.si-topic .shot::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, var(--tint-a), var(--tint-b)),
        linear-gradient(to bottom, transparent 28%, var(--panel) 100%);
    mix-blend-mode: normal;
}
/* Lichtstreifen, der beim Überfahren über das Bild wandert */
.si-topic .shot::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    z-index: 2;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .20), transparent);
    opacity: 0;
    transition: none;
}
.si-topic:hover .shot::before {
    opacity: 1;
    left: 120%;
    transition: left .85s cubic-bezier(.3, .6, .3, 1), opacity .2s;
}

/* Beschriftung auf dem Bild */
.si-topic .chip {
    position: absolute;
    left: 16px;
    top: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(8, 6, 18, .72);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #fff;
}
.si-topic .chip i { font-size: 11px; opacity: .9; }

/* Symbol, das halb über der Bildkante sitzt (liegt außerhalb von .shot,
   weil .shot für den Bild-Zoom overflow:hidden braucht) */
.si-topic > .ic {
    position: absolute;
    left: 22px;
    top: 127px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 19px;
    color: #fff;
    background: linear-gradient(140deg, var(--tint-a), var(--tint-b));
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 12px 26px -12px #000;
    transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}
.si-topic:hover > .ic { transform: translateY(-3px) rotate(-6deg); }

.si-topic .body { padding: 36px 24px 46px; }
.si-topic h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 19.5px;
    line-height: 1.25;
    margin: 0 0 10px;
}
.si-topic p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.72;
    margin: 0;
}
.si-topic b { color: var(--text); font-weight: 600; }
.si-topic .go {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--line-2, rgba(255, 255, 255, .12));
    transition: .22s;
}
.si-topic:hover .go {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(140deg, var(--tint-a), var(--tint-b));
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .si-topic, .si-topic .shot .bg, .si-topic > .ic, .si-topic .go { transition: none; }
    .si-topic:hover { transform: none; }
    .si-topic:hover .shot .bg { transform: scale(1.02); }
    .si-topic:hover .shot::before { display: none; }
}

/* Sieben Kacheln gehen in drei Spalten nicht auf – die letzte läuft deshalb
   über die ganze Breite, mit dem Bild an der Seite statt oben. */
@media (min-width: 760px) {
    .si-topic:last-child { grid-column: 1 / -1; flex-direction: row; }
    .si-topic:last-child .shot { flex: 0 0 36%; height: auto; }
    .si-topic:last-child .shot::after {
        background:
            linear-gradient(145deg, var(--tint-a), var(--tint-b)),
            linear-gradient(to right, transparent 45%, var(--panel) 100%);
    }
    .si-topic:last-child > .ic { top: auto; bottom: 28px; left: calc(36% - 25px); }
    .si-topic:last-child .body { padding: 28px 30px 46px 48px; align-self: center; }
    .si-topic:last-child h3 { font-size: 21px; }
}

.si-topics-foot { margin: 24px 0 0; text-align: center; font-size: 14px; }
.si-topics-foot a { color: var(--cyan); }

@media (max-width: 960px) {
    .si-head { padding-top: 34px; }
    .si-head-grid { grid-template-columns: 1fr; gap: 26px; }
    .si-hero-topic { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
}
