/* ============================================================
   GLUBB-COMMUNITY – style.css
   Farbwelt des 1. FC Nürnberg: Club-Rot, Tiefschwarz, Weiß
   ============================================================ */

:root {
    --fcn-rot: #c8102e;
    --fcn-rot-dunkel: #8f0b21;
    --fcn-schwarz: #161616;
    --fcn-schwarz-soft: #232323;
    --fcn-weiss: #ffffff;
    --fcn-grau: #9a9a9a;
    --fcn-gold: #d4af37;
    --fcn-gruen: #2e9e5b;
    --s04-blau: #003d82;
    --s04-blau-dunkel: #002754;
    --radius: 10px;
    --schatten: 0 4px 16px rgba(0,0,0,.35);
    --font: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Scrollbalken: dünn, in Vereinsfarben ---------- */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--fcn-rot) var(--fcn-schwarz-soft); /* Firefox — kein Verlauf möglich, nur eine Farbe */
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--fcn-schwarz-soft); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--fcn-rot), var(--s04-blau));
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--fcn-rot-dunkel), var(--s04-blau-dunkel));
}

* { box-sizing: border-box; }

/* Globale Grundstyle für alle Formularfelder — verhindert, dass irgendwo im Projekt
   ein vergessenes/unstyltes <input>/<textarea>/<select> als weißer Browser-Standard
   auftaucht. Einzelne Klassen (.form-box input, .auth-card input, ...) können das
   bei Bedarf weiter verfeinern, aber die Grundfarbe ist ab jetzt immer dunkel. */
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="search"], input[type="url"],
input[type="tel"], textarea, select {
    background: #111;
    color: var(--fcn-weiss);
    border: 1px solid #3a3a3a;
    border-radius: var(--radius);
    padding: 10px;
    font-family: inherit;
    font-size: .92rem;
}
input[type="file"] { color: var(--fcn-grau); font-size: .85rem; }
select option { background: #111; color: #fff; }
input[type="checkbox"], input[type="radio"] {
    accent-color: var(--fcn-rot);
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
}

/* Chrome/Edge überschreiben bei Autofill (z.B. Wohnort, Name) den Hintergrund mit
   eigenem Weiß, das normales CSS nicht überschreiben kann — dieser Trick schon. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #111 inset !important;
    -webkit-text-fill-color: var(--fcn-weiss) !important;
    caret-color: var(--fcn-weiss);
    transition: background-color 9999s ease-in-out 0s;
}


html { overflow-x: hidden; max-width: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: linear-gradient(180deg, var(--fcn-schwarz) 0%, #101010 100%);
    color: var(--fcn-weiss);
    overflow-x: hidden; /* Sicherheitsnetz: Seite kann nie mehr komplett seitlich wegrutschen,
                           selbst wenn irgendwo mal wieder eine Button-Reihe zu breit wird */
    max-width: 100%;
}

a { color: var(--fcn-weiss); text-decoration: none; }
a:hover { color: var(--fcn-rot); }

/* ---------- Linke Sidebar-Navigation (Desktop) ---------- */

/* ---------- Site-Kopf im Inhaltsbereich: Banner ganz oben, Ticker direkt darunter.
   Bewusst NICHT position:fixed über die volle Fensterbreite — sitzt nur innerhalb
   von .glubb-page, zieht sich also nie über die Sidebar. ---------- */
.glubb-site-kopf {
    background: var(--fcn-schwarz);
}
.glubb-site-banner-bild {
    width: 100%;
    aspect-ratio: 1615 / 332;
    height: auto;
    object-fit: cover;
    display: block;
}

.glubb-ticker-leiste {
    position: sticky;
    top: 0;
    z-index: 250;
    height: 34px;
    background: linear-gradient(90deg, var(--fcn-rot), var(--s04-blau));
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.glubb-ticker-label {
    flex-shrink: 0;
    background: var(--fcn-schwarz);
    color: #fff;
    font-weight: 800;
    font-size: .74rem;
    letter-spacing: .06em;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}
.glubb-ticker-spur {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}
.glubb-ticker-inhalt {
    position: absolute;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    animation: glubb-ticker-scroll linear infinite;
    padding-left: 100%;
}
.glubb-ticker-item {
    color: #fff;
    font-size: .84rem;
    font-weight: 600;
    padding-right: 60px;
}
@keyframes glubb-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .glubb-ticker-inhalt { animation: none; }
}

.glubb-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 230px;
    background: var(--fcn-schwarz-soft);
    border-right: 3px solid var(--fcn-rot);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    overflow-y: auto;
    z-index: 100;
}
.glubb-logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .5px;
    margin-bottom: 18px;
}
.glubb-logo span { color: var(--fcn-rot); }

/* ---------- Logout-Tür oben rechts (immer sichtbar, egal wo man gerade ist) ---------- */
.glubb-logout-tuer {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fcn-schwarz-soft);
    border: 1px solid #2b2b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    z-index: 400;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
    transition: background .15s, border-color .15s;
}
.glubb-logout-tuer:hover { background: var(--fcn-rot); border-color: var(--fcn-rot); }

.glubb-melde-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .8rem;
    opacity: .5;
    padding: 0 4px;
}
.glubb-melde-btn:hover { opacity: 1; }
.glubb-melde-btn:disabled { cursor: default; }

.nav-sortier-item {
    background: #191919;
    border: 1px solid #2b2b2b;
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 6px;
    cursor: grab;
    user-select: none;
}
.nav-sortier-item.wird-gezogen { opacity: .4; }

.verifiziert-badge {
    background: #2e9e5b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    vertical-align: middle;
}

.admin-badge {
    background: linear-gradient(90deg, var(--fcn-gold), #7a5c00);
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    vertical-align: middle;
}
.admin-badge-mod { background: linear-gradient(90deg, #4a90d9, #1f4e80); color: #fff; }
.admin-badge-streamer { background: linear-gradient(90deg, var(--fcn-rot), #7a0e1f); color: #fff; }

.glubb-lightbox-bild { cursor: zoom-in; transition: opacity .15s; }
.glubb-lightbox-bild:hover { opacity: .9; }
.glubb-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}
.glubb-lightbox-overlay.offen { display: flex; }
.glubb-lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

/* ---------- Feed-Compose-Box ---------- */
.glubb-feed-compose textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: #111;
    color: #fff;
    resize: vertical;
    font-family: var(--font);
}
.glubb-feed-compose-leiste {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2b2b2b;
}
.glubb-feed-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
    background: #1a1a1a;
    color: var(--fcn-grau);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.glubb-feed-icon-btn:hover { border-color: var(--fcn-rot); color: var(--fcn-weiss); }

.glubb-feed-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 16px;
}
.glubb-feed-tabs a {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #3a3a3a;
    color: var(--fcn-grau);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
.glubb-feed-tabs a.aktiv {
    background: linear-gradient(90deg, var(--fcn-rot), var(--s04-blau));
    border-color: transparent;
    color: #fff;
}

.card-link {
    display: block;
    text-decoration: none;
    color: var(--fcn-weiss);
    transition: border-color .15s, transform .1s;
}
.card-link:hover { border-color: var(--fcn-rot); transform: translateY(-2px); }

/* ---------- Emoji-Picker mit Kategorien ---------- */
.glubb-emoji-panel {
    display: none;
    position: fixed;
    background: var(--fcn-schwarz-soft);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    box-shadow: var(--schatten);
    z-index: 2000;
    width: 320px;
    max-width: 92vw;
    overflow: hidden;
}
.glubb-emoji-panel.offen { display: block; }
.glubb-emoji-tabs {
    display: flex;
    border-bottom: 1px solid #3a3a3a;
    background: #1a1a1a;
}
.glubb-emoji-tab {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 7px 4px;
    flex: 1;
    cursor: pointer;
    opacity: .55;
    border-bottom: 2px solid transparent;
}
.glubb-emoji-tab.aktiv { opacity: 1; border-bottom-color: var(--fcn-rot); }
.glubb-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 8px;
    max-height: 220px;
    overflow-y: auto;
}
.glubb-emoji-btn {
    font-size: 1.15rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    line-height: 1;
}
.glubb-emoji-btn:hover { background: rgba(255,255,255,.08); }

/* ---------- Eigenes SVG-Icon-Set (ersetzt Unicode-Emoji in Navigation) ---------- */
.glubb-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}
.glubb-icon svg { display: block; }
.mobile-bottombar a .glubb-icon,
.mobile-mehr-btn .glubb-icon {
    margin-right: 0;
    justify-content: center;
}

/* ---------- Glubb-Community-Ausweis (Dauerkarte-Optik für verifizierte User) ---------- */
.glubb-ausweis {
    background: linear-gradient(135deg, var(--fcn-rot) 0%, #7a0e1f 45%, var(--s04-blau-dunkel) 65%, var(--s04-blau) 100%);
    border-radius: 14px;
    padding: 18px 20px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.5);
    position: relative;
    overflow: hidden;
}
.glubb-ausweis::after {
    content: "";
    position: absolute;
    top: -40%; right: -20%;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
}
.glubb-ausweis-kopf {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.25);
    margin-bottom: 14px;
}
.glubb-ausweis-logo { font-size: 1.6rem; }
.glubb-ausweis-titel { font-weight: 800; letter-spacing: .04em; font-size: .95rem; }
.glubb-ausweis-subtitel { font-size: .72rem; opacity: .8; }
.glubb-ausweis-check { margin-left: auto; font-size: 1.2rem; }
.glubb-ausweis-koerper { display: flex; gap: 14px; align-items: center; }
.glubb-ausweis-foto {
    width: 64px; height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.5);
    flex-shrink: 0;
}
.glubb-ausweis-foto-fallback {
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.3);
    font-size: 1.6rem;
}
.glubb-ausweis-name { font-size: 1.15rem; font-weight: 800; }
.glubb-ausweis-zeile { font-size: .82rem; opacity: .9; }
.glubb-ausweis-fuss {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.25);
    font-size: .7rem;
    letter-spacing: .05em;
    opacity: .85;
}

/* ---------- Profil-Kopf (Avatar, Level, Glocke) oben in Sidebar/mobiler Kopfzeile ---------- */
.glubb-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2b2b2b;
}
.glubb-profil-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fcn-weiss);
    min-width: 0;
}
.glubb-profil-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #111;
}
.glubb-profil-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.glubb-profil-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
}
.glubb-profil-info strong {
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.glubb-profil-level {
    font-size: .72rem;
    color: var(--fcn-gold);
    font-weight: 700;
}
.glubb-profil-glocke { font-size: 1.15rem; flex-shrink: 0; }

.glubb-topbar-profil { display: flex; align-items: center; }

.glubb-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: .92rem;
    flex: 1 1 auto;
}
.glubb-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    transition: background .15s;
}
.glubb-nav a:hover, .glubb-nav a.active {
    background: linear-gradient(90deg, var(--fcn-rot), var(--s04-blau));
    color: var(--fcn-weiss);
}

.glubb-sidebar-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding-top: 14px;
    padding-bottom: 14px;
    border-top: 1px solid #2b2b2b;
    border-bottom: 1px solid #2b2b2b;
    margin-bottom: 14px;
}
.glubb-sidebar-auth .taler-pill,
.glubb-sidebar-auth #glocke-wrapper { align-self: flex-start; }
.glubb-sidebar-auth .btn { width: 100%; text-align: center; }

/* Seiteninhalt: auf Desktop um die Sidebar-Breite eingerückt */
.glubb-page { margin-left: 230px; }

/* ---------- Schmale Kopfzeile (nur Mobile, siehe Media Query unten) ---------- */
.glubb-topbar-mobile {
    display: none; /* Desktop: Sidebar übernimmt, diese Kopfzeile bleibt versteckt */
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--fcn-schwarz-soft);
    border-bottom: 3px solid var(--fcn-rot);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.glubb-topbar-mobile .glubb-logo { margin-bottom: 0; font-size: 1.1rem; }

.glubb-auth-buttons { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: 0 0 auto; }
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
}
.btn-primary { background: linear-gradient(90deg, var(--fcn-rot), var(--s04-blau)); color: #fff; }
.btn-primary:hover { background: linear-gradient(90deg, var(--fcn-rot-dunkel), var(--s04-blau-dunkel)); }
.btn-outline { background: transparent; border: 1px solid var(--fcn-grau); color: var(--fcn-weiss); }
.btn-outline:hover { border-color: var(--s04-blau); color: var(--s04-blau); }
.btn-gold { background: var(--fcn-gold); color: #1a1a1a; }

/* ---------- Hero ---------- */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 20px;
    text-align: center;
}
.hero-banner {
    width: 100%;
    aspect-ratio: 2523 / 383;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 6px;
}
.hero h1 .rot { color: var(--fcn-rot); }
.hero p.subtitle { color: var(--fcn-grau); margin-top: 0; }

.card {
    background: var(--fcn-schwarz-soft);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    border: 1px solid #2b2b2b;
    padding: 18px;
    overflow-x: auto; /* breite Inhalte (z.B. Tabellen) scrollen innerhalb der Karte statt die Seite zu sprengen */
}

.spieltag-card {
    max-width: 480px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.spieltag-card .team { font-weight: 700; }
.spieltag-card .vs { color: var(--fcn-rot); font-weight: 800; }

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fcn-rot);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(200,16,46,.6); }
    70% { box-shadow: 0 0 0 8px rgba(200,16,46,0); }
    100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}

.grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    display: grid;
    gap: 16px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.section-title {
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--fcn-rot), var(--s04-blau));
    border-image-slice: 1;
    padding-bottom: 8px;
    margin: 30px auto 12px;
    max-width: 1200px;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---------- Stream-Seite ---------- */
.stream-layout {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 16px;
}
@media (max-width: 900px) {
    .stream-layout { grid-template-columns: 1fr; }
}
.video-wrapper {
    position: relative;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}
.video-wrapper video { width: 100%; height: 100%; }
.video-offline {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--fcn-grau);
    flex-direction: column;
    gap: 8px;
}

.chat-box {
    background: var(--fcn-schwarz-soft);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: 560px;
    border: 1px solid #2b2b2b;
    min-width: 0; /* wichtig im Grid: sonst darf die Box nicht kleiner werden als ihr
                     Inhalt verlangt und läuft auf schmalen Screens über den Rand raus */
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chat-msg { font-size: .88rem; line-height: 1.35; }
.chat-msg .user { color: var(--fcn-rot); font-weight: 700; }
.chat-msg .zeit { color: var(--fcn-grau); font-size: .72rem; margin-left: 4px; }
.chat-input-row {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid #2b2b2b;
}
.chat-input-row input {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid #3a3a3a;
    background: #111;
    color: #fff;
}

/* ---------- Profil / Level ---------- */
.xp-bar-outer {
    background: #2b2b2b;
    border-radius: 20px;
    height: 14px;
    overflow: hidden;
    margin: 6px 0;
}
.xp-bar-inner {
    background: linear-gradient(90deg, var(--fcn-rot), var(--fcn-gold));
    height: 100%;
}

.taler-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2b2200;
    color: var(--fcn-gold);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: .85rem;
}

table.glubb-table {
    width: 100%;
    border-collapse: collapse;
}
table.glubb-table th, table.glubb-table td {
    padding: 10px;
    border-bottom: 1px solid #2b2b2b;
    text-align: left;
}
table.glubb-table th { color: var(--fcn-grau); font-size: .8rem; text-transform: uppercase; }

.badge-count {
    background: var(--fcn-rot);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: .72rem;
}

/* ---------- Formulare ---------- */
.form-box {
    max-width: 420px;
    margin: 60px auto;
}
.form-box input, .form-box textarea, .form-box select {
    width: 100%;
    padding: 11px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    border: 1px solid #3a3a3a;
    background: #111;
    color: #fff;
}
.form-box label { font-size: .85rem; color: var(--fcn-grau); }

/* ---------- Eigenständige Auth-Seite (Login/Registrieren, ohne Sidebar) ---------- */
body.auth-page {
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.auth-card {
    max-width: 440px;
    width: 100%;
    padding: 36px 32px;
    text-align: center;
}
.auth-card .auth-logo { font-size: 2.4rem; margin-bottom: 4px; }
.auth-card h1 {
    font-size: 1.5rem;
    margin: 4px 0 2px;
}
.auth-card p.auth-tagline {
    color: var(--fcn-grau);
    font-size: .9rem;
    margin: 0 0 26px;
}
.auth-card label {
    display: block;
    text-align: left;
    font-size: .82rem;
    color: var(--fcn-grau);
    margin-bottom: 4px;
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    border: 1px solid #3a3a3a;
    background: #111;
    color: #fff;
    font-size: .95rem;
}
.auth-password-feld { position: relative; }
.auth-password-feld input { padding-right: 42px !important; }
.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fcn-grau);
    font-size: 1.05rem;
    padding: 0;
}
.auth-submit {
    width: 100%;
    padding: 13px;
    font-size: 1rem;
    margin-top: 4px;
    margin-bottom: 18px;
}
.auth-links {
    font-size: .85rem;
    color: var(--fcn-grau);
    margin-bottom: 18px;
}
.auth-links a { color: var(--fcn-weiss); text-decoration: underline; }
.auth-links .trenner { margin: 0 8px; color: var(--fcn-grau); }

.auth-info-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    background: #191919;
    border: 1px solid #2b2b2b;
    border-radius: var(--radius);
    color: var(--fcn-weiss);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
}
.auth-info-inhalt {
    display: none;
    text-align: left;
    background: #191919;
    border: 1px solid #2b2b2b;
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 14px;
    margin-top: -1px;
    font-size: .84rem;
    color: var(--fcn-grau);
}
.auth-info-inhalt ul { margin: 6px 0; padding-left: 18px; }

.auth-footer {
    text-align: center;
    padding: 20px 16px 30px;
    color: var(--fcn-grau);
    font-size: .82rem;
}
.auth-footer-marke { color: var(--fcn-rot); font-weight: 700; }

/* ---------- Pop-up für Impressum/Datenschutz/Nutzungsbedingungen auf der Auth-Seite ---------- */
.legal-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.legal-modal-overlay.offen { display: flex; }
.legal-modal {
    position: relative;
    background: var(--fcn-schwarz-soft);
    border: 1px solid #2b2b2b;
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px 26px;
}
.legal-modal.legal-modal-breit { max-width: 1100px; padding: 20px; }
.legal-modal-schliessen {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #2b2b2b;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 1;
}
.legal-modal-schliessen:hover { background: var(--fcn-rot); }
.legal-modal .hero { padding-top: 0; text-align: left; max-width: none; }


/* ---------- Mobile Bottombar ---------- */
.mobile-bottombar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--fcn-schwarz-soft);
    border-top: 2px solid var(--fcn-rot);
    justify-content: space-around;
    padding: 8px 0;
    z-index: 200;
}
.mobile-bottombar a {
    text-align: center;
    font-size: .68rem;
    color: var(--fcn-grau);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}
.mobile-mehr-btn {
    background: none;
    border: none;
    color: var(--fcn-grau);
    font-size: .7rem;
    text-align: center;
    line-height: 1.3;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    flex: 1;
    min-width: 0;
}

/* ---------- Mobile Nav-Schublade (öffnet über "Mehr" in der Bottombar) ---------- */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 500;
}
.mobile-nav-overlay.offen { display: block; }
.mobile-nav-schublade {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 78%;
    max-width: 300px;
    background: var(--fcn-schwarz-soft);
    border-right: 2px solid var(--fcn-rot);
    padding: 60px 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateX(-100%);
    transition: transform .2s ease;
}
.mobile-nav-overlay.offen .mobile-nav-schublade { transform: translateX(0); }
.mobile-nav-schublade a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: #ffffff !important;
    text-decoration: none;
    font-size: .92rem;
    display: flex;
    align-items: center;
}
.mobile-nav-schublade a.active { background: linear-gradient(90deg, var(--fcn-rot), var(--s04-blau)); }
.mobile-nav-schliessen {
    position: absolute;
    top: 14px; right: 14px;
    background: #2b2b2b;
    border: none;
    color: #fff;
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}
.mobile-nav-schliessen:hover { background: var(--fcn-rot); }

@media (max-width: 860px) {
    .mobile-bottombar { display: flex; }
    .glubb-sidebar { display: none; }
    .glubb-topbar-mobile { display: flex; }
    .glubb-page { margin-left: 0; padding-bottom: 70px; }
    body { padding-bottom: 70px; }
    .glubb-ticker-leiste { top: 58px; } /* unterhalb der stickyen mobilen Kopfzeile einrasten, nicht überlappen */
    .glubb-logout-tuer { top: auto; bottom: 78px; } /* sonst Kollision mit der mobilen Kopfzeile oben */
}

/* ---------- Taler-Jagd Overlay ---------- */
.taler-spawn {
    position: fixed;
    z-index: 500;
    font-size: 2rem;
    cursor: pointer;
    animation: floaty 1.4s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(212,175,55,.8));
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

footer.glubb-footer {
    text-align: center;
    color: var(--fcn-grau);
    font-size: .8rem;
    padding: 30px 16px;
}
footer.glubb-footer .marke { color: var(--fcn-rot); font-weight: 700; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.footer-links a { color: var(--fcn-grau); font-size: .78rem; text-decoration: underline; }
.footer-links a:hover { color: var(--fcn-rot); }

/* ---------- Shop: Rahmen ---------- */
.profil-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #111;
    border: 3px solid #2b2b2b;
}
.rahmen-rot { border-color: var(--fcn-rot); box-shadow: 0 0 10px rgba(200,16,46,.5); }
.rahmen-blau { border-color: var(--s04-blau); box-shadow: 0 0 10px rgba(0,61,130,.5); }
.rahmen-gold { border-color: var(--fcn-gold); box-shadow: 0 0 12px rgba(212,175,55,.6); }
.rahmen-legende {
    border-color: var(--fcn-gold);
    box-shadow: 0 0 16px rgba(212,175,55,.9), 0 0 30px rgba(200,16,46,.5);
}
.rahmen-vip-animiert {
    border-color: var(--fcn-rot);
    animation: glubb-rahmen-farbwechsel 4s linear infinite, glubb-rahmen-puls 2s ease-in-out infinite;
}
@keyframes glubb-rahmen-farbwechsel {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
@keyframes glubb-rahmen-puls {
    0%, 100% { box-shadow: 0 0 10px rgba(200,16,46,.6); }
    50% { box-shadow: 0 0 20px rgba(0,61,130,.8); }
}
.vip-badge {
    background: linear-gradient(90deg, var(--fcn-gold), #fff3c4);
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
}

/* ---------- Toggle-Switch (Ersatz für Checkboxen bei An/Aus-Einstellungen) ---------- */
/* Nutzt weiterhin ein echtes <input type="checkbox"> darunter (nur visuell versteckt) —
   Formular-Verhalten (name, checked, required) bleibt exakt gleich. */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .schieber {
    position: relative;
    width: 46px;
    height: 26px;
    background: #3a3a3a;
    border-radius: 20px;
    flex-shrink: 0;
    transition: background .18s;
}
.toggle-switch .schieber::before {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .18s;
}
.toggle-switch input[type="checkbox"]:checked + .schieber {
    background: var(--fcn-rot);
}
.toggle-switch input[type="checkbox"]:checked + .schieber::before {
    transform: translateX(20px);
}
.toggle-switch input[type="checkbox"]:focus-visible + .schieber {
    box-shadow: 0 0 0 2px var(--fcn-gold);
}
.toggle-switch .label-text { font-size: .9rem; }

/* ---------- Werbebanner (am Ende jeder Seite) ---------- */
.werbebanner-bereich {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.werbebanner {
    position: relative;
    width: 100%;
    max-width: 728px;
    text-align: center;
    background: var(--fcn-schwarz-soft);
    border: 1px solid #2b2b2b;
    border-radius: var(--radius);
    padding: 10px;
}
.werbebanner img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 0 auto; }
.werbebanner-label {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: .65rem;
    color: var(--fcn-grau);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.werbebanner-code { padding: 0; background: transparent; border: none; }
