/* ==========================================================================
   ZoomV Modern Glassmorphism Forum Style
   Inklusive animiertem Hintergrund (Orbs & Raster)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0b0c10;
    --card-glass: rgba(24, 24, 37, 0.75);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-border-hover: rgba(137, 180, 250, 0.35);
    
    --accent-primary: #89b4fa;
    --accent-secondary: #cba6f7;
    --accent-glow: rgba(137, 180, 250, 0.35);
    --gradient-btn: linear-gradient(135deg, #89b4fa 0%, #b4befe 50%, #cba6f7 100%);
    
    --input-bg: rgba(11, 12, 16, 0.8);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-border-focus: #89b4fa;
    
    --text-heading: #ffffff;
    --text-body: #cdd6f4;
    --text-muted: #a6adc8;
    
    --danger-bg: rgba(243, 139, 168, 0.15);
    --danger-text: #f38ba8;
    --danger-border: rgba(243, 139, 168, 0.3);
    
    --success-bg: rgba(166, 227, 161, 0.15);
    --success-text: #a6e3a1;
    --success-border: rgba(166, 227, 161, 0.3);
}

/* ==================== RESETS & BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main) !important;
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #11111b 0%, #0b0c10 100%) fixed !important;
}

/* ==================== ANIMIERTER HINTERGRUND (ORBS & RASTER) ==================== */
/* Dezent animierte Farborbs im Hintergrund */
body::before {
    content: "";
    position: fixed;
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(137, 180, 250, 0.25) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -2;
    animation: floatOrbs 15s infinite alternate ease-in-out;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203, 166, 247, 0.2) 0%, transparent 70%);
    filter: blur(90px);
    z-index: -2;
    animation: floatOrbs 18s infinite alternate-reverse ease-in-out;
    pointer-events: none;
}

@keyframes floatOrbs {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, -60px) scale(0.9); }
}

/* Subtiles Grid-Muster über dem Hintergrund */
.container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

/* ==================== HEADER & NAVBAR ==================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 16, 26, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px !important;
    border-bottom: 1px solid var(--card-border) !important;
    color: var(--text-heading) !important;
}

header a {
    color: var(--text-heading) !important;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

header div[style*="font-size: 1.3em"] a {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

nav a {
    margin-left: 18px !important;
    font-size: 0.9em !important;
    color: var(--text-body) !important;
    font-weight: 600;
}

nav a:hover {
    color: var(--accent-primary) !important;
}

/* ==================== CONTAINER & CARDS ==================== */
.container {
    max-width: 1200px !important;
    margin: 30px auto !important;
    padding: 0 20px !important;
    width: 100%;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--card-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border) !important;
    border-radius: 18px !important;
    padding: 24px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    color: var(--text-body) !important;
}

.card.forum-card {
    padding: 0 !important;
    overflow: hidden !important;
}

/* Überschriften im Forum */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading) !important;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

/* ==================== FOREN-ÜBERSICHT (INDEX & FORUM) ==================== */
.category-header {
    background: rgba(11, 12, 16, 0.6) !important;
    color: var(--text-heading) !important;
    padding: 14px 24px !important;
    font-weight: 800 !important;
    font-size: 1.1em !important;
    border-bottom: 1px solid var(--card-border) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-item {
    padding: 18px 24px !important;
    border-bottom: 1px solid var(--card-border) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.forum-item:last-child {
    border-bottom: none !important;
}

.forum-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.forum-title {
    font-size: 1.1em !important;
    font-weight: 700 !important;
    color: var(--accent-primary) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.forum-title:hover {
    color: var(--accent-secondary) !important;
}

.forum-description {
    color: var(--text-muted) !important;
    font-size: 0.88em !important;
    margin-top: 5px !important;
    line-height: 1.5;
}

.forum-stats {
    text-align: right;
    color: var(--text-muted) !important;
    font-size: 0.85em !important;
    min-width: 120px;
    line-height: 1.6;
}

.forum-stats strong {
    color: var(--text-heading);
}

/* ==================== FORMULAR-ELEMENTE & INPUTS ==================== */
.form-group {
    margin-bottom: 18px !important;
}

.form-group label {
    display: block;
    margin-bottom: 8px !important;
    font-size: 0.88em !important;
    font-weight: 700 !important;
    color: var(--text-body) !important;
}

.form-group input, 
.form-group select, 
.form-group textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 10px !important;
    color: var(--text-heading) !important;
    font-size: 0.9em !important;
    font-family: inherit !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus,
input:focus, select:focus, textarea:focus {
    border-color: var(--input-border-focus) !important;
    background: rgba(11, 12, 16, 0.95) !important;
    box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.15) !important;
}

/* ==================== BUTTONS ==================== */
.btn, 
button[type="submit"],
.btn-glow {
    all: unset;
    box-sizing: border-box !important;
    height: 42px !important;
    padding: 0 22px !important;
    background: var(--gradient-btn) !important;
    color: #11111b !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 6px 18px rgba(137, 180, 250, 0.2) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.btn:hover, 
button[type="submit"]:hover,
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(137, 180, 250, 0.35) !important;
    color: #11111b !important;
}

/* Sekundärer Glassmorphismus Button */
.btn-secondary,
.btn-glass-secondary {
    all: unset;
    box-sizing: border-box !important;
    height: 42px !important;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-body) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.btn-secondary:hover,
.btn-glass-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-heading) !important;
}

/* ==================== ALERTS & HINWEISE ==================== */
.alert {
    padding: 14px 18px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: var(--danger-bg) !important;
    color: var(--danger-text) !important;
    border: 1px solid var(--danger-border) !important;
}

.alert-success {
    background-color: var(--success-bg) !important;
    color: var(--success-text) !important;
    border: 1px solid var(--success-border) !important;
}

/* ==================== TABELLEN (ACP & LISTEN) ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    padding: 12px 14px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.82em;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid var(--card-border);
}

td {
    padding: 14px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-body);
    font-size: 0.9em;
}

tr:last-child td {
    border-bottom: none;
}

/* ==================== BADGES & TAGS ==================== */
.badge,
.category-badge,
.blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(137, 180, 250, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(137, 180, 250, 0.3);
}

/* ==================== FOOTER ==================== */
footer {
    margin-top: auto;
    padding: 25px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85em;
    border-top: 1px solid var(--card-border);
    background: rgba(11, 12, 16, 0.6);
}

footer a {
    color: var(--text-body);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-primary);
}

/* ==================== SCROLLBARS ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}