/* =====================================
   HEIMWERKER – FINAL UI (CLEAN DARK MODERN)
===================================== */

:root {
    --bg: #0f1218;
    --bg-soft: #151a24;

    --panel: rgba(255,255,255,0.06);
    --panel-strong: rgba(255,255,255,0.10);

    --text: #e6e9ef;
    --muted: #aab2c0;

    --primary: #5865f2;
    --accent: #ff6b2c;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* =====================================
   BASE
===================================== */

body {
    background: radial-gradient(circle at top, var(--bg-soft), var(--bg));
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Layout */
.wrap {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* =====================================
   CATEGORY CARDS
===================================== */

.forabg, .forumbg {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
}

/* Hover-Effekt ENTFERNT für forabg (Unterforen-Kästen) */
.forabg:hover {
    transform: none;
    background: var(--panel);
}

/* forumbg (Topics) behält Hover-Effekt */
.forumbg:hover {
    transform: translateY(-4px);
    background: var(--panel-strong);
}

/* Header Basis */
.forabg .header,
.forumbg .header {
    padding: 14px 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background-repeat: repeat;
    background-size: auto;
}

/* =====================================
   KATEGORIEN-HEADER MIT HINTERGRUNDBILDERN
===================================== */

/* Kategorie ID 5 (WILLKOMMEN) */
.forabg.cat-5 .header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("./images/asfalt-light.png");
    background-color: #e0b400;
    background-repeat: repeat;
    background-size: auto;
}

/* Kategorie ID 1 (PROJEKTE & TUTORIALS) */
.forabg.cat-1 .header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("./images/wood-pattern.png");
    background-color: #8B5A2B;
    background-repeat: repeat;
    background-size: auto;
}

/* Kategorie ID 10 (FRAGEN & HILFE) */
.forabg.cat-10 .header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("./images/diagmonds.png");
    background-color: #2d6ca2;
    background-repeat: repeat;
    background-size: auto;
}

/* Kategorie ID 13 (REGIONALE COMMUNITY) */
.forabg.cat-13 .header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("./images/green-dust-and-scratches.png");
    background-color: #3c8c3c;
    background-repeat: repeat;
    background-size: auto;
}

/* Kategorie ID 16 (GALERIE / MEDIEN) */
.forabg.cat-16 .header {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("./images/dark-matter.png");
    background-color: #444;
    background-repeat: repeat;
    background-size: auto;
}

/* Kategorie ID 22 (OFF-TOPIC / COMMUNITY) */
.forabg.cat-22 .header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("./images/diagmonds-light.png");
    background-color: #8b5a2b;
    background-repeat: repeat;
    background-size: auto;
}

/* =====================================
   UNTERFOREN-HEADER MIT HINTERGRUNDBILDERN
===================================== */

/* Unterforen in Kategorie 1 (PROJEKTE & TUTORIALS) */
.forabg.cat-29 .header,
.forabg.cat-30 .header,
.forabg.cat-31 .header,
.forabg.cat-32 .header,
.forabg.cat-33 .header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("./images/wood-pattern.png");
    background-color: #8B5A2B;
    background-repeat: repeat;
    background-size: auto;
}

/* Unterforen in Kategorie 7 (Nassraum) */
.forabg.cat-34 .header,
.forabg.cat-35 .header,
.forabg.cat-36 .header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("./images/diagmonds.png");
    background-color: #2d6ca2;
    background-repeat: repeat;
    background-size: auto;
}

/* Unterforen in Kategorie 8 (Außenausbau) */
.forabg.cat-37 .header,
.forabg.cat-38 .header,
.forabg.cat-39 .header,
.forabg.cat-40 .header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("./images/green-dust-and-scratches.png");
    background-color: #3c8c3c;
    background-repeat: repeat;
    background-size: auto;
}

/* =====================================
   FORUM LIST (REDDIT STYLE)
===================================== */

ul.topiclist.forums li {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: 0.2s ease;
}

ul.topiclist.forums li:hover {
    background: rgba(255,255,255,0.04);
    transform: translateX(4px);
}

/* Title */
a.forumtitle {
    font-size: 15px;
    font-weight: 600;
    color: #9db4ff;
    text-decoration: none;
    transition: 0.2s ease;
}

a.forumtitle:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(88,101,242,0.25);
}

/* Description */
.list-inner {
    color: var(--muted);
    font-size: 13px;
}

/* =====================================
   POSTS (CARD STYLE)
===================================== */

.post {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.post:hover {
    background: var(--panel-strong);
}

/* Profile */
.postprofile {
    float: left;
    width: 200px;
    padding: 12px;
    margin-right: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
}

/* Content */
.postbody {
    overflow: hidden;
}

/* Username */
.username {
    font-weight: 700;
    color: var(--primary);
}

/* =====================================
   BUTTONS
===================================== */

.button, button, input[type="submit"] {
    background: linear-gradient(135deg, var(--primary), #7a7fff);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* =====================================
   LINKS
===================================== */

a {
    color: var(--primary);
    text-decoration: none;
}

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

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

@media (max-width: 768px) {

    .postprofile {
        float: none;
        width: 100%;
        margin-bottom: 10px;
    }

    ul.topiclist.forums li {
        transform: none !important;
    }
}

/* =====================================
   TOPICS-HEADER MIT HINTERGRUNDBILD
===================================== */

.forumbg .header {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("./images/wood-pattern.png");
    background-color: #8B5A2B;
    background-repeat: repeat;
    background-size: auto;
}

/* =====================================
   UNTERFOREN & TOPICS HEADER – TEXT GRÖSSER + SCHATTEN
===================================== */

/* Unterforen-Header Text (die Links) */
.forabg .header .list-inner a,
.forabg .header a {
    font-size: 1.3em !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Topics-Header (die Zellen: Themen, Antworten, Zugriffe, Letzter Beitrag) */
.forumbg .header dt .list-inner,
.forumbg .header dd {
    font-size: 1.1em !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Topics-Header speziell für die Überschrift "Themen" etc. */
.forumbg .header .list-inner {
    font-size: 1.1em !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Auch die einzelnen Spalten-Überschriften */
.forumbg .header dd span {
    font-size: 1.05em !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* =====================================
   ZEBRA-FARBEN FÜR FORENLISTE
===================================== */

/* Ungerade Zeilen (1., 3., 5., ...) */
ul.topiclist.forums li:nth-child(odd) {
    background-color: #FEFEFE !important;
}

/* Gerade Zeilen (2., 4., 6., ...) */
ul.topiclist.forums li:nth-child(even) {
    background-color: #F3F3F3 !important;
}

/* Hover-Effekt beibehalten */
ul.topiclist.forums li:hover {
    background: rgba(88, 101, 242, 0.1) !important;
}

/* =====================================
   SITE-BESCHREIBUNG (HEADER TEXT)
===================================== */

/* Forum-Titel (Heimwerker) */
.site-description h1 {
    font-size: 2.2em !important;
    font-weight: 800 !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: 1px !important;
}

/* Forum-Slogan (Heimwerker Helfen Heimwerker) */
.site-description p {
    font-size: 1.2em !important;
    font-weight: 600 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: 0.5px !important;
}

/* === Hover Slider Effekt === */

/* === MODERNER HOVER SLIDER (FIXED) === */

/* =====================================
   PREMIUM GLASS HOVER SLIDER
===================================== */

/* === GLOBAL CARD HOVER SYSTEM === */

.forabg, .forumbg, .post {
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Light Sweep */
.forabg::before,
.forumbg::before,
.post::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255,255,255,0.25) 45%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.25) 55%,
        transparent 80%
    );

    transform: translateX(-140%) skewX(-12deg);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);

    z-index: 3;
    pointer-events: none;
}

/* Glow Layer */
.forabg::after,
.forumbg::after,
.post::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(circle at 20% 50%, rgba(88,101,242,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;

    z-index: 1;
}

/* Content */
.forabg > *, .forumbg > *, .post > * {
    position: relative;
    z-index: 2;
}

/* Hover */
.forabg:hover::before,
.forumbg:hover::before,
.post:hover::before {
    transform: translateX(140%) skewX(-12deg);
}

.forabg:hover::after,
.forumbg:hover::after,
.post:hover::after {
    opacity: 1;
}

.forabg:hover,
.forumbg:hover,
.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* =====================================
   PREMIUM UI SYSTEM (ALL-IN-ONE)
===================================== */

/* === GLASS HEADER (STICKY) === */
#page-header {
    position: sticky;
    top: 0;
    z-index: 999;

    background: rgba(15,18,24,0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: 0.3s ease;
}

#page-header.scrolled {
    background: rgba(15,18,24,0.85);
}

/* === GLOBAL CARD SYSTEM === */
.forabg, .forumbg, .post {
    position: relative;
    overflow: hidden;
    z-index: 0;

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

/* LIGHT SWEEP */
.forabg::before,
.forumbg::before,
.post::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255,255,255,0.25) 45%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.25) 55%,
        transparent 80%
    );

    transform: translateX(-140%) skewX(-12deg);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);

    z-index: 3;
    pointer-events: none;
}

/* GLOW LAYER */
.forabg::after,
.forumbg::after,
.post::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(circle at 20% 50%, rgba(88,101,242,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;

    z-index: 1;
}

/* CONTENT LAYER */
.forabg > *,
.forumbg > *,
.post > * {
    position: relative;
    z-index: 2;
}

/* HOVER EFFECT */
.forabg:hover::before,
.forumbg:hover::before,
.post:hover::before {
    transform: translateX(140%) skewX(-12deg);
}

.forabg:hover::after,
.forumbg:hover::after,
.post:hover::after {
    opacity: 1;
}

.forabg:hover,
.forumbg:hover,
.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* === FORUM LIST (SIDEBAR STYLE) === */
ul.topiclist.forums li {
    position: relative;
    transition: all 0.25s ease;
}

ul.topiclist.forums li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;

    background: linear-gradient(180deg, #5865f2, #7a7fff);
    transition: width 0.25s ease;
}

ul.topiclist.forums li:hover {
    background: rgba(255,255,255,0.05) !important;
    transform: translateX(6px);
}

ul.topiclist.forums li:hover::before {
    width: 4px;
}

/* === PREMIUM BUTTONS === */
.button, button, input[type="submit"] {
    background: linear-gradient(135deg, #5865f2, #7a7fff);
    border: none;
    border-radius: 10px;
    padding: 10px 16px;

    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(88,101,242,0.25);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(88,101,242,0.35);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* === USER CARD (DISCORD STYLE) === */
.postprofile {
    background: linear-gradient(
        160deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);

    border-radius: 14px;
    transition: 0.25s ease;
}

.postprofile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.username {
    background: linear-gradient(90deg, #5865f2, #7a7fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === GLOBAL BACKGROUND GLOW === */
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        radial-gradient(circle at 10% 10%, rgba(88,101,242,0.08), transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(255,107,44,0.06), transparent 40%);

    pointer-events: none;
    z-index: 0;
}

/* === MICRO INTERACTIONS === */
a, button {
    transition: all 0.2s ease;
}

a:hover {
    filter: brightness(1.2);
}

button:active {
    transform: scale(0.97);
}

/* Dropdown-Menüs dunkler anpassen */
.dropdown .dropdown-contents {
    background: #1e1e2a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    color: var(--text, #e6e9ef) !important;
}

/* Dropdown-Links */
.dropdown .dropdown-contents a {
    color: #9db4ff !important;
}

.dropdown .dropdown-contents a:hover {
    color: var(--accent, #ff6b2c) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Dropdown-Trennlinien */
.dropdown .dropdown-contents li {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dropdown .dropdown-contents .separator {
    border-color: rgba(255, 255, 255, 0.1) !important;
}