/* ================================
   SITE.CSS – WürfelWächter Basis-Styles
   Globale Layout-, Nav-, Footer- und Card-Standards
================================ */

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

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

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    color: #111;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 20% 18%, rgba(80, 210, 225, 0.16) 0%, rgba(80, 210, 225, 0) 28%), radial-gradient(circle at 82% 24%, rgba(45, 165, 190, 0.12) 0%, rgba(45, 165, 190, 0) 34%), radial-gradient(circle at 50% 82%, rgba(35, 120, 145, 0.10) 0%, rgba(35, 120, 145, 0) 40%), linear-gradient(135deg, #173744 0%, #1d5362 42%, #184452 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 28% 38%, rgba(90, 220, 235, 0.08), transparent 38%), radial-gradient(circle at 72% 68%, rgba(70, 190, 220, 0.05), transparent 40%);
    z-index: 0;
}

/* Typography – Überschriften */
h1,
h2,
h3,
.page-title,
.team-name,
.char-name,
.kamp-title,
.post-title {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.3px;
}

/* ================================
   FOCUS STATES
================================ */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .1rem #fff, 0 0 0 .25rem #258cfb;
}


/* ================================
   LAYOUT
================================ */

.ww-main {
    padding: 28px 0 60px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.ww-container {
    max-width: 1140px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
    position: relative;
    z-index: 1;
}

/* ================================
   NAVBAR
================================ */

.ww-navbar {
    background: #173744;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
}

    .ww-navbar .ww-container {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

.ww-brand {
    color: #fff !important;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
    margin: 0;
    transition: opacity .15s ease, transform .15s ease;
}

    .ww-brand:hover {
        color: #fff !important;
        opacity: 0.95;
    }

.ww-logo {
    height: 38px;
    width: auto;
    display: block;
    transition: transform .18s ease;
}

.ww-brand:hover .ww-logo {
    transform: scale(1.05);
}

.ww-navlinks {
    gap: 18px;
    align-items: center;
}

.ww-navlink {
    color: rgba(255,255,255,0.92) !important;
    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 500;
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

    .ww-navlink:hover {
        color: #fff !important;
        background: rgba(255,255,255,0.10);
        transform: translateY(-1px);
    }

    .ww-navlink:focus {
        color: #fff !important;
        background: rgba(255,255,255,0.10);
    }

.navbar-toggler {
    border-color: rgba(255,255,255,0.25);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Navbar-Toggler auf Mobilgeräten gut sichtbar und gut tippbar (Bootstrap: unter 992px) */
@media (max-width: 991.98px) {
    .ww-toggler.navbar-toggler {
        padding: 12px 14px;
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
    }

        .ww-toggler.navbar-toggler:hover,
        .ww-toggler.navbar-toggler:focus {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.9);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
        }

    .ww-toggler .navbar-toggler-icon {
        width: 1.4em;
        height: 1.4em;
    }
}

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

.ww-footer {
    background: #173744;
    color: #fff;
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

    .ww-footer .ww-container {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0 26px;
    }

.ww-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    flex-wrap: wrap;
}

.ww-footer-headline {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
}

.ww-footer-middle {
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}

.ww-footer-mail {
    color: #fff;
    text-decoration: none;
}

    .ww-footer-mail:hover {
        text-decoration: underline;
    }


/* ================================
   SOCIAL ICONS
================================ */

.ww-footer-right {
    display: flex;
    gap: 18px;
}

.ww-social {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
}

.ww-twitch {
    background: #9146FF;
}

.ww-tiktok {
    background: #000;
}

.ww-insta {
    background: #E1306C;
}

.ww-youtube {
    background: #FF0000;
}


/* ================================
   CARD LOOK (Listen: Kampagne, Charakter, Team)
================================ */
.card,
.team-card,
.char-card,
.kamp-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.team-card:hover,
.char-card:hover,
.kamp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Card-Bildcontainer (Gradient-Platzhalter) */
.kamp-img,
.char-img,
.team-img {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #f3f4f6 0%, #e8ecef 100%);
}

.kamp-img img,
.char-img img,
.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.ww-admin-footer-link {
    position: absolute;
    right: 10px;
    bottom: 6px;
    opacity: 0;
    transition: opacity .2s ease;
}

    .ww-admin-footer-link:hover {
        opacity: 1;
    }

    .ww-admin-footer-link form {
        margin: 0;
    }

.ww-admin-footer-btn {
    background: none;
    border: none;
    color: #cfcfcf;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

    .ww-admin-footer-btn:hover {
        color: #ffffff;
    }

/* ================================
   EINHEITLICHE SEITENTITEL
================================ */
.page-title,
.verwaltung-title,
.kampagne-title,
.detail-title,
.spieler-title {
    text-align: center;
    margin: 24px 0 40px;
    font-size: 38px;
    font-weight: 700;
    color: #0f2230;
}

.verwaltung-title { margin: 24px 0 30px; }
.kampagne-title,
.detail-title,
.spieler-title { margin: 24px 0 30px; }

/* ================================
   EINHEITLICHE FILTER-LEISTE
================================ */
.filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-bar input {
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

.filter-bar input[type="text"] {
    width: min(520px, 100%);
}

.filter-bar select {
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    min-width: 210px;
    background: rgba(255, 255, 255, 0.92);
}

.filter-reset {
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    background: rgba(255, 255, 255, 0.92);
}

.filter-reset:hover {
    background: #f6f6f6;
}

/* ================================
   EINHEITLICHE CONTENT-BOXEN
================================ */
.ww-box,
.kampagne-block,
.kampagne-box,
.detail-box,
.spieler-block,
.spieler-box,
.verwaltung-box {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.kampagne-box,
.detail-box,
.spieler-box,
.verwaltung-box { margin-bottom: 24px; }

.kampagne-block h2,
.kampagne-box h2,
.detail-box h2,
.spieler-block h2,
.spieler-box h2,
.verwaltung-box h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.spieler-box h2 { margin-bottom: 18px; }
.spieler-block h2 { margin-bottom: 12px; }

/* ================================
   DETAIL-LAYOUT (Bild + Info)
================================ */
.kampagne-top,
.detail-top,
.spieler-top {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 32px;
    margin-bottom: 28px;
    align-items: start;
}

.spieler-top { grid-template-columns: 420px 1fr; }

/* Detail-Bildcontainer (Gradient, Radius) */
.kampagne-img,
.detail-img,
.spieler-img {
    background: linear-gradient(180deg, #f3f4f6 0%, #e8ecef 100%);
    border-radius: 16px;
    overflow: hidden;
}

.kampagne-img img,
.detail-img img,
.spieler-img img {
    width: 100%;
    height: 540px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.spieler-img img { height: 520px; }

/* ================================
   INLINE-LINKS (Kampagne/Detail)
================================ */
.inline-link {
    color: #1f73d9;
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
}

/* ================================
   CHARAKTER-GRID (Kampagne + Spieler-Details)
================================ */
.charakter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 24px;
}

.charakter-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.charakter-card:hover,
.ort-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.charakter-card-image {
    background: linear-gradient(180deg, #f3f4f6 0%, #e8ecef 100%);
}

.charakter-card-image img {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.charakter-card-body,
.ort-card-body {
    padding: 16px;
}

.charakter-card-title,
.ort-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f1f1f;
}

.charakter-card-subtitle,
.ort-card-subtitle {
    font-size: 17px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.charakter-card-meta {
    font-size: 14px;
    color: #1f73d9;
    font-weight: 600;
    margin-bottom: 10px;
}

.charakter-card-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.charakter-card-text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Ort-Grid (Kampagnen-Details) */
.ort-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 24px;
}

.ort-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* ================================
   RESPONSIVE – Detail + Charakter-Grid
================================ */
@media (max-width: 1100px) {
    .charakter-grid,
    .ort-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 900px) {
    .kampagne-top,
    .detail-top,
    .spieler-top,
    .charakter-grid,
    .ort-grid {
        grid-template-columns: 1fr;
    }

    .kampagne-img img,
    .detail-img img {
        height: 420px;
    }

    .spieler-img img {
        height: 420px;
    }
}