/* ============================================================
   NOVATEK CORPORATION – Theme
   Dunkles Corporate-Military-Design in Silber / Rot
   ============================================================ */

:root {
    --bg:        #08090c;
    --bg-2:      #0c0e12;
    --panel:     #101318;
    --panel-2:   #14171d;
    --border:    #23262d;
    --border-2:  #34383f;

    /* Texttöne – bewusst KEIN reines Weiß, sondern warmes Silber-Grau */
    --text:      #c3c6cb;
    --muted:     #868a90;
    --dim:       #5c6067;

    --silver:    #b4b7bd;   /* helles Silbergrau statt Weiß */
    --silver-hi: #d4d7dc;   /* Überschriften – hell, aber nicht weiß */

    /* EIN Akzent: Rot (Logo) */
    --red:       #c01f2b;
    --red-hi:    #e23440;
    --red-dim:   #7a141d;
    --red-soft:  rgba(224,52,64,.14);
    --gold:      #b4b7bd;   /* neutralisiert: wie Silber (kein zweiter Akzent) */

    --ink:       #f3e9ea;   /* Text auf roten Flächen – warmes Off-White, kein #fff */

    --radius:    14px;
    --radius-sm: 9px;
    --shadow:    0 14px 40px rgba(0,0,0,.55);
    --glow:      0 0 0 1px rgba(224,52,64,.25), 0 8px 30px rgba(192,31,43,.28);
    --maxw:      100%;
    --pad:       clamp(20px, 4.2vw, 72px);

    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }
html, body { margin: 0; padding: 0; }

body {
    background:
        radial-gradient(1400px 700px at 50% -260px, rgba(192,31,43,.16), transparent 70%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
/* Lesbarkeitsbreite nur für reine Textblöcke */
.readable { max-width: 1180px; margin-left: auto; margin-right: auto; }

a { color: var(--silver); text-decoration: none; transition: color .15s; }
a:hover { color: var(--silver-hi); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: .3px; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }

.page { flex: 1 0 auto; padding: 32px 20px 64px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .7em 1.3em; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; letter-spacing: .4px;
    border: 1px solid transparent; cursor: pointer; text-transform: uppercase;
    transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .5em .9em; font-size: .82rem; }
.btn-lg { padding: .9em 1.8em; font-size: 1.05rem; }

.btn-primary {
    background: linear-gradient(180deg, var(--red-hi), var(--red));
    color: var(--ink); border-color: var(--red-dim);
    box-shadow: 0 6px 18px rgba(192,31,43,.35);
}
.btn-primary:hover { color: var(--ink); box-shadow: 0 10px 30px rgba(224,52,64,.55); }

/* „Silber"-Button ohne Weiß: dunkler Graphit mit Rot-Rand */
.btn-silver {
    background: linear-gradient(180deg, #1b1e24, #12151a);
    color: var(--silver-hi); border-color: var(--red-dim);
}
.btn-silver:hover { color: var(--silver-hi); border-color: var(--red); box-shadow: var(--glow); }

.btn-ghost {
    background: rgba(255,255,255,.03);
    color: var(--silver); border-color: var(--border-2);
}
.btn-ghost:hover { background: rgba(224,52,64,.08); color: var(--silver-hi); border-color: var(--red-dim); }

.btn-discord { background: #4b5060; color: var(--ink); border-color:#3a3f4c; }
.btn-discord:hover { color: var(--ink); background:#565c6e; border-color: var(--red-dim); }

.btn-danger { background: transparent; color: var(--red-hi); border-color: var(--red-dim); }
.btn-danger:hover { background: rgba(179,32,46,.15); color: var(--red-hi); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12,14,18,.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: 44px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; letter-spacing: 3px; color: var(--silver-hi); font-size: 1.05rem; }
.brand-sub  { font-size: .62rem; letter-spacing: 4px; color: var(--red-hi); font-weight: 600; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.main-nav > a { color: var(--muted); font-weight: 600; font-size: .92rem; letter-spacing: .5px; }
.main-nav > a:hover { color: var(--silver-hi); }
.nav-admin { color: var(--red-hi) !important; }
.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-2); }
.nav-username { font-weight: 700; font-size: .9rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--silver); display: block; }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.flash-info    { background: rgba(255,255,255,.03); border-color: var(--border-2); color: var(--silver); }
.flash-success { background: var(--red-soft); border-color: var(--red-dim); color: #f0c3c6; }
.flash-error   { background: rgba(192,31,43,.14); border-color: var(--red); color: #f0b9bf; }

/* ---------- Panels / Cards ---------- */
.panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.panel-pad { padding: 24px; }
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-2); }

.section-title {
    display: flex; align-items: center; gap: 14px;
    margin: 48px 0 22px; text-transform: uppercase; letter-spacing: 2px;
    font-size: 1.15rem; color: var(--silver-hi); font-weight: 700;
}
.section-title::before,
.section-title::after { content: ""; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); flex: 1; }
.section-title span { color: var(--red-hi); }

/* ---------- HERO ---------- */
.hero {
    position: relative; text-align: center; padding: 80px 20px 70px; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 50% 30%, rgba(179,32,46,.14), transparent 70%);
    pointer-events: none;
}
.hero-logo { width: 190px; max-width: 55vw; filter: drop-shadow(0 12px 40px rgba(0,0,0,.6)); position: relative; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: 6px; margin: 22px 0 6px; color: var(--silver-hi); }
.hero .slogan {
    font-size: clamp(.9rem, 2.5vw, 1.15rem); letter-spacing: 8px; color: var(--red-hi);
    font-weight: 700; text-transform: uppercase; margin-bottom: 22px;
}
.hero .lead { max-width: 640px; margin: 0 auto 30px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Feature-Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature .feature-icon { font-size: 1.6rem; margin-bottom: 8px; }
.feature h3 { color: var(--silver-hi); font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; }
.feature p { color: var(--muted); margin: 0; }
.feature-bar { height: 3px; width: 42px; background: var(--red); border-radius: 2px; margin-bottom: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; text-align: center; }
.stat .stat-num { font-size: 2.4rem; font-weight: 800; color: var(--silver-hi); }
.stat .stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; }

/* ---------- Impressionen: Kino-Showcase ---------- */
.showcase-wrap { margin: 8px 0 10px; }
.showcase-wrap .section-title { margin-top: 44px; }
.showcase {
    position: relative; width: 100%; aspect-ratio: 21 / 9; max-height: 80vh; min-height: 320px;
    overflow: hidden; background: #000;
    border-top: 1px solid var(--border); border-bottom: 2px solid var(--red);
    box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 0 120px rgba(0,0,0,.5);
}
.showcase-track { position: absolute; inset: 0; }
.shot { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.shot.active { opacity: 1; z-index: 1; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.shot.active img { animation: kenburns 8s ease-out both; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.14); } }

.showcase-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        radial-gradient(130% 90% at 50% -10%, transparent 52%, rgba(8,9,12,.55)),
        linear-gradient(0deg, rgba(8,9,12,.95) 2%, rgba(8,9,12,.15) 34%, transparent 55%),
        radial-gradient(80% 60% at 12% 92%, rgba(192,31,43,.20), transparent 60%);
}
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: clamp(22px, 4vw, 58px); }
.shot-cap-text {
    display: inline-block; max-width: 900px; font-size: clamp(1.15rem, 2.7vw, 2.1rem); font-weight: 800;
    letter-spacing: .4px; line-height: 1.15; color: var(--silver-hi);
    border-left: 3px solid var(--red); padding-left: 16px; text-shadow: 0 2px 24px rgba(0,0,0,.85);
    opacity: 0; transform: translateY(16px);
}
.shot.active .shot-cap-text { animation: fadeUp .8s .3s ease forwards; }

.showcase-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1;
    background: rgba(8,9,12,.5); border: 1px solid var(--border-2); color: var(--silver);
    backdrop-filter: blur(4px); transition: background .15s, border-color .15s, transform .15s;
}
.showcase-nav:hover { background: rgba(192,31,43,.8); border-color: var(--red); color: var(--ink); }
.showcase-nav.prev { left: clamp(12px, 2vw, 26px); } .showcase-nav.next { right: clamp(12px, 2vw, 26px); }

.showcase-count {
    position: absolute; top: clamp(14px, 2.4vw, 26px); left: clamp(16px, 4vw, 58px); z-index: 4;
    font-weight: 800; letter-spacing: 3px; font-size: .9rem; color: var(--silver-hi);
    background: rgba(8,9,12,.5); border: 1px solid var(--red-dim); padding: 5px 12px; border-radius: 6px; backdrop-filter: blur(4px);
}
.showcase-count .cur { color: var(--red-hi); }

.showcase-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 9px; }
.showcase-dots button { width: 26px; height: 4px; border-radius: 3px; border: 0; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.showcase-dots button:hover { background: rgba(255,255,255,.5); }
.showcase-dots button.active { background: var(--red-hi); transform: scaleY(1.4); }

.showcase-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.06); z-index: 4; }
.showcase-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-hi)); box-shadow: 0 0 10px rgba(226,52,64,.7); }
.showcase-progress.run span { animation: progressFill 6s linear forwards; }
@keyframes progressFill { from { width: 0; } to { width: 100%; } }

.showcase-manage { position: absolute; top: clamp(14px, 2.4vw, 26px); right: clamp(14px, 2.4vw, 26px); z-index: 5; }

/* Eck-Klammern (HUD) */
.sc-corner { position: absolute; width: 34px; height: 34px; z-index: 4; pointer-events: none; }
.sc-corner.tl { top: 12px; left: 12px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.sc-corner.br { bottom: 12px; right: 12px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }

/* Leerer Zustand */
.showcase-empty { position: relative; border: 1px dashed var(--border-2); border-radius: var(--radius);
    background: radial-gradient(90% 120% at 50% 0%, rgba(192,31,43,.10), transparent 60%), var(--panel);
    min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.showcase-empty-inner { padding: 30px; }
.showcase-empty-inner svg { color: var(--red-hi); opacity: .85; margin-bottom: 12px; }
.showcase-empty-inner h3 { color: var(--silver-hi); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.showcase-empty-inner p { color: var(--muted); max-width: 460px; margin: 0 auto 16px; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.video-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--panel); }
.video-embed { position: relative; aspect-ratio: 16/9; background:#000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { padding: 12px 16px; font-weight: 600; color: var(--silver-hi); }

/* ---------- Discord CTA ---------- */
.discord-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 28px 30px; border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(192,31,43,.16), rgba(192,31,43,.03));
    border: 1px solid var(--red-dim);
}
.discord-cta h3 { margin: 0; color: var(--silver-hi); }
.discord-cta p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 460px; margin: 0 auto; }
.form-wide { max-width: 720px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--silver); font-size: .9rem; letter-spacing: .3px; }
.input, .textarea, select {
    width: 100%; padding: .7em .85em; border-radius: var(--radius-sm);
    background: #0e1116; border: 1px solid var(--border-2); color: var(--text);
    font-family: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,32,46,.18); }
.textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: .82rem; color: var(--dim); margin-top: 4px; }
.form-title { text-align: center; margin-bottom: 6px; }
.form-subtitle { text-align: center; color: var(--muted); margin-bottom: 24px; }
.form-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: 1px; }
.table tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: .2em .65em; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border: 1px solid currentColor; }

/* ---------- Forum ---------- */
.forum-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.forum-cat:last-child { border-bottom: 0; }
.forum-cat h3 { margin: 0 0 2px; font-size: 1.1rem; }
.forum-cat p { margin: 0; color: var(--muted); font-size: .9rem; }
.forum-cat .cat-meta { color: var(--dim); font-size: .85rem; text-align: right; white-space: nowrap; }

.thread-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.thread-row:last-child { border-bottom: 0; }
.thread-row .t-main { flex: 1; min-width: 0; }
.thread-row .t-title { font-weight: 600; color: var(--silver-hi); }
.thread-row .t-title a { color: inherit; }
.thread-row .t-sub { font-size: .82rem; color: var(--dim); }
.thread-row .t-meta { text-align: right; color: var(--dim); font-size: .82rem; white-space: nowrap; }
.pin { color: var(--gold); font-size: .8rem; }
.lock { color: var(--red-hi); font-size: .8rem; }

.post { display: flex; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border); }
.post:last-child { border-bottom: 0; }
.post-side { width: 130px; flex-shrink: 0; text-align: center; }
.post-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-2); margin: 0 auto 8px; display: block; }
.post-author { font-weight: 700; }
.post-role { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }
.post-body { flex: 1; min-width: 0; }
.post-content { color: var(--text); word-wrap: break-word; }
.post-meta { color: var(--dim); font-size: .8rem; margin-bottom: 8px; }

/* ---------- Profile ---------- */
.profile-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-2); box-shadow: var(--shadow); }
.profile-name { font-size: 1.8rem; font-weight: 800; color: var(--silver-hi); margin: 0; }

.avatar-preview { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-2); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.gap { gap: 12px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; border: 0; }
.empty { text-align: center; color: var(--dim); padding: 40px 20px; }

/* ---------- Footer ---------- */
.site-footer { flex-shrink: 0; border-top: 1px solid var(--border); background: rgba(0,0,0,.35); margin-top: auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 46px; width: 46px; object-fit: contain; }
.footer-name { font-weight: 800; letter-spacing: 2px; color: var(--silver-hi); }
.footer-slogan { font-size: .72rem; letter-spacing: 3px; color: var(--red-hi); }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--muted); }
.footer-copy { color: var(--dim); font-size: .82rem; text-align: right; }
.footer-fineprint { color: #4a4f58; }

/* ============================================================
   HUD-HERO (Banner-Look) & Abteilungen – v2
   ============================================================ */

/* HUD-Rahmen mit Eck-Klammern */
.hud {
    position: relative;
    border: 1px solid rgba(179,32,46,.35);
    border-radius: 6px;
    background:
        radial-gradient(1000px 500px at 50% -5%, rgba(179,32,46,.18), transparent 60%),
        linear-gradient(180deg, rgba(20,10,12,.6), rgba(10,11,15,.6));
    padding: 64px 30px 54px;
    overflow: hidden;
}
.hud::before, .hud::after,
.hud .hud-tr, .hud .hud-bl {
    content: ""; position: absolute; width: 46px; height: 46px; pointer-events: none;
    border-color: var(--red-hi); border-style: solid; border-width: 0;
}
.hud::before { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.hud::after  { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.hud .hud-tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.hud .hud-bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }

/* dezentes Techraster im Hintergrund */
.hud-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image:
        linear-gradient(rgba(150,155,162,.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150,155,162,.15) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}

.hero-corner-note {
    position: absolute; top: 20px; font-size: .7rem; letter-spacing: 2px; line-height: 1.5;
    color: var(--muted); text-transform: uppercase; max-width: 200px;
}
.hero-corner-note.left  { left: 26px; text-align: left; border-left: 2px solid var(--red); padding-left: 10px; }
.hero-corner-note.right { right: 26px; text-align: right; border-right: 2px solid var(--red); padding-right: 10px; }
.hero-corner-note .accent { color: var(--red-hi); }

.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-shield { width: 150px; max-width: 40vw; filter: drop-shadow(0 10px 34px rgba(179,32,46,.35)); }
.hero-title {
    font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: 8px;
    margin: 16px 0 4px; color: var(--silver-hi);
    text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 18px; }
.hero-rule span { color: var(--red-hi); letter-spacing: 6px; font-weight: 700; font-size: clamp(.8rem,2vw,1rem); text-transform: uppercase; }
.hero-rule::before, .hero-rule::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--red)); }
.hero-rule::after { transform: scaleX(-1); }

.hero-lead { max-width: 620px; margin: 0 auto 26px; color: var(--muted); font-size: 1.06rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Vier Säulen-Icons unter dem Hero */
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 38px; position: relative; z-index: 2; }
.pillar { text-align: center; padding: 14px 8px; border-left: 1px solid var(--border); }
.pillar:first-child { border-left: 0; }
.pillar .pico { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--silver); }
.pillar .pico svg { width: 100%; height: 100%; }
.pillar h4 { margin: 0; font-size: .95rem; letter-spacing: 2px; color: var(--silver-hi); text-transform: uppercase; }
.pillar p { margin: 2px 0 0; font-size: .74rem; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }

/* ---------- Hexagon-Badges ---------- */
.divhex {
    --accent: #b3202e; --divsize: 96px;
    width: var(--divsize); height: calc(var(--divsize) * 1.1);
    display: inline-grid; place-items: center; position: relative; flex-shrink: 0;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(160deg, #e6e8ec, #8b9099 45%, #5a5f68);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
}
.divhex-inner {
    position: absolute; inset: 3px; display: grid; place-items: center;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background:
        radial-gradient(circle at 50% 30%, rgba(179,32,46,.18), transparent 60%),
        linear-gradient(160deg, #232833, #101319);
}
.divhex-svg { width: 62%; height: 62%; color: var(--silver-hi); }
.divhex-img { width: 100%; height: 100%; object-fit: cover;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---------- Abteilungs-Grid ---------- */
.divisions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.division-card {
    text-align: center; padding: 22px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), var(--panel-2)); transition: border-color .15s, transform .15s;
}
.division-card:hover { border-color: var(--red-dim); transform: translateY(-3px); }
.division-abbr { font-size: 1.8rem; font-weight: 800; letter-spacing: 3px; color: var(--silver-hi); margin-top: 14px; }
.division-name { font-size: .78rem; letter-spacing: 1px; color: var(--red-hi); text-transform: uppercase; font-weight: 700; margin-top: 2px; min-height: 2.4em; }
.division-desc { font-size: .86rem; color: var(--muted); margin-top: 10px; }

/* Leitung hervorheben */
.division-lead { border-color: var(--border-2); background: linear-gradient(180deg, #1c2028, #14171d); grid-column: 1 / -1; }
.division-lead .flex-lead { display: flex; align-items: center; gap: 22px; text-align: left; justify-content: center; flex-wrap: wrap; }
.division-lead .division-abbr { margin: 0; color: var(--silver-hi); }
.division-lead .division-name { color: var(--silver); min-height: auto; }

/* ---------- Rang- & Abteilungs-Chips ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: .28em .7em; border-radius: 6px;
    font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    background: rgba(255,255,255,.04); border: 1px solid var(--border-2); color: var(--silver);
}
.chip.rank { border-color: var(--border-2); color: var(--silver); }
.chip.division { border-color: var(--red-dim); color: var(--silver-hi); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ============================================================
   Forum-Komfort & Eventplaner – v3
   ============================================================ */

/* Zitate & Code in Beiträgen */
.post-quote {
    margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--red);
    background: rgba(255,255,255,.03); border-radius: 0 6px 6px 0; color: var(--muted);
}
.post-quote .quote-head { font-size: .8rem; color: var(--red-hi); font-weight: 700; margin-bottom: 4px; }
.post-content code { background: #0c0f14; border: 1px solid var(--border-2); border-radius: 4px; padding: .1em .4em; font-size: .9em; }

/* Editor-Toolbar */
.editor-toolbar { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.editor-toolbar button {
    background: rgba(255,255,255,.04); border: 1px solid var(--border-2); color: var(--silver);
    border-radius: 6px; padding: .35em .7em; cursor: pointer; font-size: .82rem;
}
.editor-toolbar button:hover { background: rgba(255,255,255,.09); color: var(--silver-hi); }

/* Post-Aktionen (Like, Zitieren, Bearbeiten, Löschen) */
.post-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.post-actions form { display: inline; }
.like-btn {
    display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.03);
    border: 1px solid var(--border-2); color: var(--muted); border-radius: 999px; padding: .3em .8em;
    cursor: pointer; font-size: .82rem; transition: all .15s;
}
.like-btn:hover { border-color: var(--red-dim); color: var(--silver-hi); }
.like-btn.liked { border-color: var(--red); color: var(--red-hi); background: rgba(179,32,46,.12); }
.post-link { font-size: .82rem; color: var(--dim); background: none; border: 0; cursor: pointer; }
.post-link:hover { color: var(--silver-hi); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 38px; text-align: center; padding: .45em .7em; border-radius: 6px;
    border: 1px solid var(--border); color: var(--muted); font-size: .9rem;
}
.pagination a:hover { border-color: var(--border-2); color: var(--silver-hi); }
.pagination .current { background: var(--red); border-color: var(--red-dim); color: var(--ink); font-weight: 700; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* Suchbalken */
.search-bar { display: flex; gap: 8px; }
.search-bar .input { flex: 1; }

/* ---------- Eventplaner ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-title { font-size: 1.4rem; font-weight: 800; color: var(--silver-hi); letter-spacing: 1px; text-transform: capitalize; }
.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th { padding: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border-bottom: 1px solid var(--border); }
.calendar td { border: 1px solid var(--border); vertical-align: top; height: 96px; padding: 6px; position: relative; }
.calendar td.other { background: rgba(0,0,0,.2); }
.calendar td.today { outline: 2px solid var(--red); outline-offset: -2px; }
.cal-daynum { font-size: .82rem; color: var(--dim); position: absolute; top: 5px; right: 8px; }
.calendar td.today .cal-daynum { color: var(--red-hi); font-weight: 700; }
.cal-event {
    display: block; margin-top: 20px; margin-bottom: 4px; padding: 3px 6px; border-radius: 4px;
    background: linear-gradient(180deg, var(--red-hi), var(--red)); color: var(--ink);
    font-size: .74rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-event:hover { color: var(--ink); filter: brightness(1.12); }
.cal-event.div { background: linear-gradient(180deg, #23272f, #171a20); border-left: 3px solid var(--red-dim); }

.event-item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.event-item:last-child { border-bottom: 0; }
.event-date {
    flex-shrink: 0; width: 66px; text-align: center; border: 1px solid var(--border-2); border-radius: 8px;
    padding: 8px 4px; background: #0e1116;
}
.event-date .d { font-size: 1.5rem; font-weight: 800; color: var(--silver-hi); line-height: 1; }
.event-date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--red-hi); }
.event-main { flex: 1; min-width: 0; }
.event-main h3 { margin: 0 0 2px; font-size: 1.1rem; }
.event-main .meta { color: var(--muted); font-size: .86rem; }
.event-rsvp-counts { display: flex; gap: 12px; font-size: .82rem; color: var(--dim); flex-wrap: wrap; }
.rsvp-yes { color: var(--red-hi); } .rsvp-maybe { color: var(--silver); } .rsvp-no { color: var(--dim); }

.rsvp-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.rsvp-buttons button { flex: 1; min-width: 120px; }
.rsvp-buttons .active-yes { background: linear-gradient(180deg, var(--red-hi), var(--red)); color: var(--ink); border-color: var(--red-dim); }
.rsvp-buttons .active-maybe { background: #1b1e24; color: var(--silver-hi); border-color: var(--border-2); }
.rsvp-buttons .active-no { background: #14161b; color: var(--muted); border-color: var(--red-dim); }

.attendee { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 999px; margin: 0 6px 6px 0; }
.attendee img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .grid-3, .video-grid, .stats { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .divisions { grid-template-columns: repeat(2, 1fr); }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(3) { border-left: 0; }
    .hero-corner-note { display: none; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
        background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 12px;
        margin: 0; display: none;
    }
    body.nav-open .main-nav { display: flex; }
    .main-nav .nav-user { justify-content: flex-start; }
    .post { flex-direction: column; }
    .post-side { width: auto; display: flex; align-items: center; gap: 12px; text-align: left; }
    .post-avatar { width: 44px; height: 44px; margin: 0; }
    .footer-copy { text-align: left; }
    .calendar td { height: 70px; }
    .cal-event { font-size: .62rem; }
    .event-item { flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .cal-wrap { overflow-x: auto; }
    .calendar { min-width: 520px; }
}
@media (max-width: 760px) {
    .showcase { aspect-ratio: 4 / 5; max-height: none; min-height: 0; }
    .showcase-nav { width: 40px; height: 40px; font-size: 1.2rem; }
    .shot-cap-text { border-left-width: 2px; padding-left: 12px; }
    .showcase-manage { top: 10px; right: 10px; }
}

/* ============================================================
   Animationen & moderne Effekte – v4 (dezent)
   ============================================================ */
@keyframes fadeUp   { from { opacity:0; transform: translateY(26px); } to { opacity:1; transform:none; } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes auraPulse{ 0%,100% { opacity:.45; transform: scale(1); } 50% { opacity:.85; transform: scale(1.08); } }
@keyframes floatUp  { 0% { transform: translateY(0); opacity:0; } 12% { opacity:.7; } 100% { transform: translateY(-120px); opacity:0; } }
@keyframes gridDrift{ from { background-position: 0 0; } to { background-position: 46px 46px; } }
@keyframes sheen    { 0% { transform: translateX(-120%);} 60%,100% { transform: translateX(220%);} }

/* Scroll-Reveal (per JS mit .is-visible) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s; } [data-reveal].d2 { transition-delay: .16s; }
[data-reveal].d3 { transition-delay: .24s; } [data-reveal].d4 { transition-delay: .32s; }

/* Hero-Aura (pulsierender Rot-Schein) */
.hud-aura {
    position: absolute; left: 50%; top: 34%; width: min(900px, 90%); aspect-ratio: 1;
    transform: translate(-50%,-50%); pointer-events: none; z-index: 1;
    background: radial-gradient(circle, rgba(224,52,64,.32), rgba(192,31,43,.08) 42%, transparent 66%);
    filter: blur(8px); animation: auraPulse 6s ease-in-out infinite;
}
.hud-grid { animation: gridDrift 14s linear infinite; }

/* Schwebende Partikel */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.particles span {
    position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
    background: rgba(226,52,64,.8); box-shadow: 0 0 8px rgba(226,52,64,.8);
    animation: floatUp linear infinite;
}
.particles span:nth-child(1){ left:8%;  animation-duration:11s; animation-delay:0s;  }
.particles span:nth-child(2){ left:18%; animation-duration:14s; animation-delay:2s; width:2px;height:2px; }
.particles span:nth-child(3){ left:27%; animation-duration:9s;  animation-delay:1s;  }
.particles span:nth-child(4){ left:36%; animation-duration:13s; animation-delay:4s; width:4px;height:4px; }
.particles span:nth-child(5){ left:45%; animation-duration:10s; animation-delay:2.5s; }
.particles span:nth-child(6){ left:54%; animation-duration:15s; animation-delay:.5s; width:2px;height:2px; }
.particles span:nth-child(7){ left:63%; animation-duration:12s; animation-delay:3s;  }
.particles span:nth-child(8){ left:72%; animation-duration:9s;  animation-delay:1.5s; width:4px;height:4px; }
.particles span:nth-child(9){ left:81%; animation-duration:13s; animation-delay:4.5s; }
.particles span:nth-child(10){left:90%; animation-duration:11s; animation-delay:2s; width:2px;height:2px; }
.particles span:nth-child(11){left:14%; animation-duration:16s; animation-delay:5s; }
.particles span:nth-child(12){left:68%; animation-duration:14s; animation-delay:6s; width:2px;height:2px; }

/* Hero-Einblendung beim Laden (nur Landing) */
.landing .hero-inner > * { opacity: 0; animation: fadeUp .8s ease forwards; }
.landing .hero-shield  { animation-delay: .05s; }
.landing .hero-title   { animation-delay: .18s; }
.landing .hero-rule    { animation-delay: .30s; }
.landing .hero-lead    { animation-delay: .42s; }
.landing .hero-actions { animation-delay: .54s; }
.landing .hero-shield  { transition: transform .4s ease; }
.landing .hero-shield:hover { transform: translateY(-4px) scale(1.03); }
.landing .pillars      { opacity: 0; animation: fadeUp .8s .66s ease forwards; }
.landing .hero-corner-note { opacity: 0; animation: fadeIn 1s 1s ease forwards; }

/* Karten-Hover mit Rot-Glow */
.division-card, .card, .video-card { transition: border-color .18s, transform .18s, box-shadow .18s; }
.division-card:hover, .video-card:hover { border-color: var(--red-dim); transform: translateY(-4px); box-shadow: var(--glow); }
.feature.card:hover { border-color: var(--red-dim); box-shadow: var(--glow); }
.divhex { transition: transform .25s ease, filter .25s ease; }
.division-card:hover .divhex { transform: translateY(-2px) scale(1.05); filter: drop-shadow(0 8px 20px rgba(192,31,43,.5)); }

/* Primär-Buttons: dezenter Licht-Sheen beim Hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content:""; position:absolute; top:0; left:0; width:40%; height:100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
    transform: translateX(-120%);
}
.btn-primary:hover::after { animation: sheen .9s ease; }

/* Sticky-Header bekommt beim Scrollen etwas mehr Tiefe */
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.5); border-bottom-color: var(--red-dim); }

/* Zähler */
.stat-num { transition: color .3s; }

/* Barrierefreiheit: Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .landing .hero-inner > *, .landing .pillars, .landing .hero-corner-note { opacity: 1 !important; animation: none !important; }
    .particles, .hud-aura { display: none; }
}

/* ---------- Full-Bleed Layout (Desktop full size) ---------- */
.fullbleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.hud.fullbleed { margin-top: -32px; border-radius: 0; border-left: 0; border-right: 0; padding-left: var(--pad); padding-right: var(--pad); }
.hud > .hero-inner, .hud > .pillars { position: relative; z-index: 2; max-width: 1200px; margin-left: auto; margin-right: auto; }
.hud > .particles, .hud > .hud-aura, .hud > .hud-grid { z-index: 1; }

/* ---------- Showcase: Video-Slides ---------- */
.shot-video { position: absolute; inset: 0; background: #000; }
.shot-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Bei aktivem Video die Vignette abschwächen, damit die YT-Steuerung frei bleibt */
.showcase.video-active .showcase-vignette { opacity: 0; transition: opacity .5s ease; }
/* Video-Caption nach oben (unter den Zähler), damit sie die Player-Leiste nicht verdeckt */
.shot-cap.shot-cap-top { top: clamp(52px, 8vw, 70px); bottom: auto; }
.shot-cap.shot-cap-top .shot-cap-text { font-size: clamp(1rem, 2.2vw, 1.5rem); }
/* Video-Slides pausieren nicht per Hover-Overlay – Klicks gehen an den Player */
.shot-video-slide .shot-cap { pointer-events: none; }

/* Admin: Typ-Auswahl (Bild/Video) */
.type-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border-2); border-radius: 8px; cursor: pointer; color: var(--silver); }
.type-opt:hover { border-color: var(--red-dim); }

/* ---------- Google-Login-Button + Trenner ---------- */
.btn-google { background: linear-gradient(180deg,#1b1e24,#12151a); color: var(--silver-hi); border-color: var(--border-2); }
.btn-google:hover { color: var(--silver-hi); border-color: var(--red-dim); box-shadow: var(--glow); }
.or-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--dim); font-size: .82rem; text-transform: uppercase; letter-spacing: 2px; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }
