/* ============================================================
   IT mit Mario CMS v1.0 — Frontend Stylesheet
   Dark IT Theme · Share Tech Mono · Rajdhani · Exo 2
   ============================================================ */

:root {
  --bg-void:    #070b10;
  --bg-deep:    #0d1117;
  --bg-card:    #111820;
  --bg-hover:   #162030;
  --bg-panel:   #0a1220;
  --border:     #1e3a4a;
  --border-glow:#00d4ff22;
  --accent:     #00d4ff;
  --accent2:    #00ff9f;
  --accent3:    #ff6b35;
  --warn:       #f0c040;
  --danger:     #ff3b5c;
  --text-hi:    #e8f4ff;
  --text-mid:   #8bafc8;
  --text-lo:    #3d6278;
  --font-mono:  'Share Tech Mono', monospace;
  --font-ui:    'Rajdhani', sans-serif;
  --font-body:  'Exo 2', sans-serif;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --header-h:   64px;
}

/* ============================================================ RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-void);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text-hi); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================ HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: var(--header-h);
  background: rgba(7,11,16,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), var(--accent3), transparent);
  opacity: 0.4;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { font-size: 22px; color: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.logo-text {
  font-family: var(--font-ui); font-size: 20px; font-weight: 700;
  color: var(--text-hi); letter-spacing: 1px; text-transform: uppercase;
}
.logo-dot { color: var(--accent3); }
.site-logo:hover .logo-text { color: var(--accent); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none;
  border-radius: var(--radius); transition: all .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent); background: var(--bg-hover);
}
.nav-arrow { font-size: 8px; opacity: 0.5; }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  /* padding-top schafft einen unsichtbaren Hover-Bereich zwischen Link und Dropdown */
  padding-top: 8px;
  background: transparent;
  min-width: 200px;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
/* Innere Box mit echtem Styling */
.nav-dropdown::before {
  content: '';
  position: absolute; top: 8px; left: 0; right: 0; bottom: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  z-index: -1;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.dropdown-link {
  display: block; padding: 10px 16px;
  font-family: var(--font-body); font-size: 13px; color: var(--text-mid);
  border-bottom: 1px solid var(--border); transition: all .15s;
}
.dropdown-link:last-child { border-bottom: none; }
.dropdown-link:hover { color: var(--accent); background: var(--bg-hover); padding-left: 20px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-header-primary, .btn-header-ghost, .btn-header-user {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  padding: 7px 16px; border-radius: var(--radius);
  letter-spacing: 0.5px; text-transform: uppercase; transition: all .15s;
  white-space: nowrap; text-decoration: none;
}
.btn-header-primary {
  background: var(--accent); color: #000; border: 1px solid var(--accent);
}
.btn-header-primary:hover { box-shadow: 0 0 12px var(--accent); color: #000; }
.btn-header-ghost {
  background: transparent; color: var(--text-mid); border: 1px solid var(--border);
}
.btn-header-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-header-user {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-hover); color: var(--text-mid); border: 1px solid var(--border);
}
.btn-header-user:hover { color: var(--accent); }
.user-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent2); box-shadow: 0 0 6px var(--accent2);
  flex-shrink: 0; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Burger */
.burger-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.burger-btn span { display: block; width: 22px; height: 2px; background: var(--text-mid); transition: all .3s; border-radius: 1px; }
.burger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================ HERO */
main { padding-top: var(--header-h); }
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, #00d4ff0d 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 30%, #00ff9f08 0%, transparent 50%),
    var(--bg-void);
}
.circuit-hero {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-glow) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}
.hero-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanline 6s linear infinite; opacity: 0.2;
}
@keyframes scanline { 0%{top:0} 100%{top:100%} }

.hero-content {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto; padding: 80px 24px;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-ui); font-size: clamp(52px,9vw,96px);
  font-weight: 800; color: var(--text-hi); line-height: 1;
  margin-bottom: 20px; letter-spacing: -1px;
  text-shadow: 0 0 40px rgba(0,212,255,0.15);
}
.text-accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(15px,2.2vw,18px); color: var(--text-mid);
  max-width: 600px; margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn-hero-primary, .btn-hero-ghost {
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  padding: 13px 28px; border-radius: var(--radius); letter-spacing: 1px;
  text-transform: uppercase; transition: all .2s; text-decoration: none;
}
.btn-hero-primary {
  background: var(--accent); color: #000; border: 1px solid var(--accent);
}
.btn-hero-primary:hover { box-shadow: 0 0 24px var(--accent); transform: translateY(-2px); color: #000; }
.btn-hero-ghost {
  background: transparent; color: var(--text-mid); border: 1px solid var(--border);
}
.btn-hero-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Hero Terminal */
.hero-terminal {
  max-width: 560px; margin: 0 auto;
  background: #050c10; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-align: left;
}
.ht-bar {
  background: var(--bg-card); padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.ht-dot { width: 10px; height: 10px; border-radius: 50%; }
.ht-title { margin-left: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); }
.ht-body {
  padding: 14px; font-family: var(--font-mono); font-size: 12px;
  min-height: 120px; line-height: 1.8;
}
.t-green { color: var(--accent2); }
.t-blue  { color: var(--accent); }
.t-orange{ color: var(--accent3); }
.t-dim   { color: var(--text-lo); }
.t-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent); margin-left: 2px; vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ============================================================ STATS BAR */
.stats-bar {
  background: var(--bg-panel); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; padding: 0 24px;
}
.stat-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px; gap: 4px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item .stat-icon { font-size: 22px; color: var(--accent); }
.stat-item .stat-value {
  font-family: var(--font-ui); font-size: 28px; font-weight: 800; color: var(--text-hi);
}
.stat-item .stat-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-lo);
  letter-spacing: 2px; text-transform: uppercase;
}

/* ============================================================ SECTIONS */
.section { padding: 72px 0; }
.section-dark { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--font-ui); font-size: 28px; font-weight: 800;
  color: var(--text-hi); letter-spacing: 0.5px;
}
.section-title::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin-top: 6px; border-radius: 2px;
}
.section-link {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px;
}
.section-link:hover { color: var(--text-hi); }

/* ============================================================ POST CARDS */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s; display: flex; flex-direction: column;
}
.post-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,212,255,0.1);
}
.post-card-img {
  height: 180px; overflow: hidden; position: relative;
  background: var(--bg-hover);
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
}
.placeholder-icon { font-size: 36px; color: var(--text-lo); opacity: 0.4; }
.post-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.post-cat {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase; padding: 2px 8px;
  border: 1px solid; border-radius: 3px; text-decoration: none;
}
.post-title {
  font-family: var(--font-ui); font-size: 16px; font-weight: 700;
  color: var(--text-hi); line-height: 1.35;
}
.post-title a { color: inherit; text-decoration: none; }
.post-card:hover .post-title a { color: var(--accent); }
.post-excerpt { font-size: 13px; color: var(--text-mid); line-height: 1.6; flex: 1; }
.post-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-lo);
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border);
}

/* ============================================================ CATEGORIES GRID */
.cats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.cat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; transition: all .15s;
}
.cat-card:hover { border-color: var(--accent); background: var(--bg-hover); transform: translateY(-2px); }
.cat-dot { width: 12px; height: 12px; border-radius: 50%; }
.cat-name { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--text-hi); }
.cat-count { font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); }

/* ============================================================ PAGE HERO */
.page-hero {
  background: var(--bg-panel); border-bottom: 1px solid var(--border);
  padding: 60px 0 48px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, #00d4ff08, transparent);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.page-eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.page-title { font-family: var(--font-ui); font-size: clamp(28px,5vw,48px); font-weight: 800; color: var(--text-hi); margin-bottom: 8px; }
.page-sub { font-size: 15px; color: var(--text-mid); }

/* ============================================================ FILTER BAR */
.filter-bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.search-form { display: flex; gap: 8px; }
.search-input {
  flex: 1; max-width: 400px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-hi);
  font-family: var(--font-body); font-size: 13px; padding: 10px 14px;
  outline: none; transition: border-color .15s;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--border-glow); }
.btn-filter-search {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  padding: 10px 20px; background: var(--accent); color: #000;
  border: none; border-radius: var(--radius); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: all .15s;
}
.btn-filter-search:hover { box-shadow: 0 0 12px var(--accent); }
.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter-btn {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-mid); text-decoration: none; transition: all .15s;
  letter-spacing: 0.3px;
}
.cat-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.cat-filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ============================================================ SINGLE POST */
.single-post-header { padding: 60px 0 32px; background: var(--bg-panel); border-bottom: 1px solid var(--border); }
.single-title { font-family: var(--font-ui); font-size: clamp(24px,4vw,40px); font-weight: 800; color: var(--text-hi); margin: 12px 0; line-height: 1.2; }
.single-meta { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--text-lo); flex-wrap: wrap; }
.single-featured-img { max-height: 420px; overflow: hidden; }
.single-featured-img img { width: 100%; object-fit: cover; }

/* CMS Content */
.cms-content { max-width: 800px; padding: 40px 0; }
.cms-content h2 { font-family: var(--font-ui); font-size: 22px; font-weight: 700; color: var(--text-hi); margin: 32px 0 12px; border-left: 3px solid var(--accent); padding-left: 12px; }
.cms-content h3 { font-family: var(--font-ui); font-size: 18px; font-weight: 600; color: var(--accent); margin: 24px 0 8px; }
.cms-content p { color: var(--text-mid); margin-bottom: 16px; line-height: 1.8; }
.cms-content ul, .cms-content ol { color: var(--text-mid); padding-left: 24px; margin-bottom: 16px; }
.cms-content li { margin-bottom: 6px; }
.cms-content code {
  font-family: var(--font-mono); font-size: 13px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 3px; padding: 2px 6px; color: var(--accent);
}
.cms-content pre {
  background: #050c10; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; overflow-x: auto; margin-bottom: 20px; position: relative;
}
.cms-content pre code { background: none; border: none; padding: 0; font-size: 13px; line-height: 1.7; }
.cms-content blockquote {
  border-left: 3px solid var(--accent3); padding: 12px 20px;
  background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px; color: var(--text-mid); font-style: italic;
}
.cms-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cms-content th { font-family: var(--font-mono); font-size: 11px; color: var(--text-lo); letter-spacing: 2px; text-transform: uppercase; padding: 10px 14px; border-bottom: 2px solid var(--accent); text-align: left; }
.cms-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-mid); font-size: 14px; }
.cms-content tr:hover td { background: var(--bg-hover); }
.cms-content img { border-radius: var(--radius); border: 1px solid var(--border); max-width: 100%; margin: 16px 0; }
.cms-content a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .15s; }
.cms-content a:hover { border-bottom-color: var(--accent); }
.legal-content { max-width: 800px; padding: 40px 0; }

/* Post tags */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.tag-link {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-lo);
  padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px;
  text-decoration: none; transition: all .15s;
}
.tag-link:hover { color: var(--accent); border-color: var(--accent); }
.post-nav { margin-top: 32px; }
.btn-back {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--text-mid); text-decoration: none; letter-spacing: 0.5px;
  padding: 10px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .15s;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================ PAGINATION */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
  font-family: var(--font-mono); font-size: 13px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-mid); text-decoration: none; transition: all .15s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ============================================================ EMPTY STATE */
.empty-state {
  grid-column: 1/-1; text-align: center; padding: 60px 24px;
  color: var(--text-lo); font-family: var(--font-mono);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }

/* ============================================================ AUTH */
.auth-section {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center; padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
}
.auth-logo {
  font-family: var(--font-ui); font-size: 22px; font-weight: 700;
  color: var(--text-hi); text-align: center; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px;
}
.auth-title {
  font-family: var(--font-ui); font-size: 18px; font-weight: 700;
  color: var(--text-mid); text-align: center; margin-bottom: 24px;
}
.auth-links { text-align: center; font-size: 13px; color: var(--text-lo); margin-top: 20px; }
.auth-links a { color: var(--accent); }

/* ============================================================ FORMS */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-lo);
  letter-spacing: 2px; text-transform: uppercase;
}
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="number"], select, textarea {
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-hi);
  font-family: var(--font-body); font-size: 14px; padding: 10px 12px;
  outline: none; width: 100%; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--border-glow);
}
textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; padding: 12px;
  background: var(--accent); color: #000;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: all .2s;
}
.btn-submit:hover { box-shadow: 0 0 16px var(--accent); }
.btn-sm-primary {
  display: inline-block; padding: 8px 16px;
  background: var(--accent); color: #000; font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; border-radius: var(--radius);
  text-decoration: none; transition: all .15s;
}
.btn-sm-primary:hover { box-shadow: 0 0 10px var(--accent); color: #000; }

/* Contact form */
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* ============================================================ ALERTS */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.alert-success { background: #00ff9f15; border: 1px solid var(--accent2); color: var(--accent2); }
.alert-error   { background: #ff3b5c15; border: 1px solid var(--danger); color: var(--danger); }
.alert-warning { background: #f0c04015; border: 1px solid var(--warn); color: var(--warn); }
.alert-info    { background: #00d4ff15; border: 1px solid var(--accent); color: var(--accent); }

/* ============================================================ KB */
.kb-list { display: flex; flex-direction: column; gap: 12px; }
.kb-entry-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  transition: all .15s; display: flex; flex-direction: column; gap: 8px;
}
.kb-entry-card:hover { border-color: var(--accent); background: var(--bg-hover); }
.kb-cat-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  padding: 2px 8px; border-radius: 3px; border: 1px solid; width: fit-content;
  letter-spacing: 1px; text-transform: uppercase;
}
.kb-cat-badge.anleitungen     { color: var(--accent2); border-color: var(--accent2); background: #00ff9f11; }
.kb-cat-badge.faqs            { color: var(--accent); border-color: var(--accent); background: #00d4ff11; }
.kb-cat-badge.dokumentationen { color: var(--accent3); border-color: var(--accent3); background: #ff6b3511; }
.kb-cat-badge.informationen   { color: var(--text-mid); border-color: var(--border); background: transparent; }
.kb-cat-badge.fehlerbehebungen{ color: var(--danger); border-color: var(--danger); background: #ff3b5c11; }
.kb-cat-badge.konfiguration   { color: var(--warn); border-color: var(--warn); background: #f0c04011; }
.kb-entry-title { font-family: var(--font-ui); font-size: 16px; font-weight: 700; color: var(--text-hi); }
.kb-entry-title a { color: inherit; text-decoration: none; }
.kb-entry-card:hover .kb-entry-title { color: var(--accent); }
.kb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.kb-tag {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-lo);
  text-decoration: none; transition: color .15s;
}
.kb-tag:hover { color: var(--accent); }
.kb-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); }

/* ============================================================ COOKIE BANNER */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  transform: translateY(0); transition: transform .3s;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner.hidden { transform: translateY(100%); }
.cookie-text { font-size: 13px; color: var(--text-mid); flex: 1; min-width: 200px; }
.cookie-text a { color: var(--accent); }
.cookie-btns { display: flex; gap: 8px; }
.btn-cookie-accept {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  padding: 8px 20px; background: var(--accent); color: #000;
  border: none; border-radius: var(--radius); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px; transition: all .15s;
}
.btn-cookie-accept:hover { box-shadow: 0 0 10px var(--accent); }
.btn-cookie-decline {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  padding: 8px 16px; background: transparent; color: var(--text-lo);
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px; transition: all .15s;
}
.btn-cookie-decline:hover { border-color: var(--text-mid); color: var(--text-mid); }

/* ============================================================ FOOTER */
.site-footer {
  background: var(--bg-panel); border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-lo); margin-top: 12px; line-height: 1.6; }
.footer-links h4 {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  color: var(--text-hi); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links a { font-size: 13px; color: var(--text-lo); padding: 4px 0; transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 24px;
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-lo);
}
.footer-ver { color: var(--text-lo); opacity: 0.5; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg-void); padding: 20px; gap: 4px;
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .nav-dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; margin-top: 4px; }
  .burger-btn { display: flex; }
  .btn-header-primary, .btn-header-ghost { display: none; }
  .hero-title { font-size: 48px; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 0 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .posts-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-terminal { display: none; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-hero-primary, .btn-hero-ghost { text-align: center; }
  .cats-grid { grid-template-columns: 1fr; }
}

/* ============================================================ ANIMATIONS */
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.fade-in-up { animation: fadeInUp .4s ease both; }

/* Scroll reveal classes added by JS */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BOOT ANIMATION — Overlay & Sequenz
   ============================================================ */

/* Sections auf Startseite zunächst unsichtbar */
body.boot-active #home-hero,
body.boot-active #home-stats,
body.boot-active #home-posts,
body.boot-active #home-cats {
  opacity: 0;
  transform: translateY(16px);
}

/* Fullscreen Boot-Overlay */
#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #070b10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none; /* kein Skip */
}

/* Innere Terminal-Box */
.boot-terminal {
  width: 100%;
  max-width: 700px;
  background: #04090e;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,212,255,0.08), 0 0 0 1px #00d4ff11;
  position: relative;
}

/* Scan-Linie im Overlay */
.boot-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: boot-scan-move 3s linear infinite;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}
@keyframes boot-scan-move { 0% { top: 0; } 100% { top: 100%; } }

/* Titelleiste */
.boot-bar {
  background: var(--bg-card);
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.boot-bar-dot { width: 10px; height: 10px; border-radius: 50%; }
.boot-bar-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-lo);
  letter-spacing: 1px;
}
.boot-bar-blink {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.2} }

/* Scrollbares Ausgabefenster */
#boot-lines {
  padding: 18px 22px 14px;
  height: 340px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  position: relative;
  z-index: 2;
}
/* Scrollbar im Boot */
#boot-lines::-webkit-scrollbar { width: 4px; }
#boot-lines::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Cursor-Zeile */
#boot-cursor {
  display: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-lo);
  padding: 0 22px 16px;
  position: relative;
  z-index: 2;
}
#boot-cursor::after {
  content: '█';
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* Logo über dem Terminal */
.boot-logo {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
}
.boot-logo span { color: var(--accent3); }

/* Text-Farben innerhalb des Boot-Terminals */
.t-dim    { color: var(--text-lo); }
.t-green  { color: var(--accent2); }
.t-blue   { color: var(--accent); }
.t-orange { color: var(--accent3); }
.t-red    { color: var(--danger); }

/* Mobil: kleineres Overlay-Terminal */
@media (max-width: 600px) {
  #boot-lines { height: 260px; font-size: 11px; padding: 12px 14px 10px; }
  #boot-cursor { font-size: 11px; padding: 0 14px 12px; }
  .boot-logo { font-size: 18px; }
}


/* ============================================================
   SOCIAL MEDIA ICONS IM FOOTER
   ============================================================ */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.social-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-lo);
  text-decoration: none;
  padding: 3px 0;
  transition: color .15s;
}
.social-icon-link:hover { color: var(--accent); }
.social-icon-inactive   { cursor: default; opacity: 0.4; }
.social-icon-link svg   { flex-shrink: 0; }

/* ============================================================
   FORUM — WoltLab-inspiriertes Layout im CMS-Dark-Stil
   ============================================================ */

/* Grid: Hauptbereich + Sidebar */
.forum-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start;
}
@media (max-width: 900px) {
  .forum-layout { grid-template-columns: 1fr; }
}

/* Kategorie-Box mit Klapp-Header (wie WoltLab "Main Category") */
.forum-cat-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.forum-cat-header {
  background: linear-gradient(135deg, var(--accent-dim, #0d2233), var(--bg-hover));
  padding: 12px 18px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  color: var(--text-hi); letter-spacing: 0.5px; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.forum-cat-header .cat-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* Forum-Zeile innerhalb einer Kategorie-Box */
.forum-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); text-decoration: none;
  color: inherit; transition: background .15s;
}
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: var(--bg-hover); }
.forum-row-icon {
  width: 38px; height: 38px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; border: 1px solid var(--border);
}
.forum-row-body { flex: 1; min-width: 0; }
.forum-row-title { font-family: var(--font-ui); font-size: 15px; font-weight: 700; color: var(--text-hi); margin-bottom: 2px; }
.forum-row-desc  { font-size: 12px; color: var(--text-mid); }
.forum-row-stats {
  text-align: right; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-lo); flex-shrink: 0; white-space: nowrap;
}
.forum-row-stats strong { color: var(--accent); display: block; font-size: 13px; }

/* Thread-Liste (innerhalb einer Kategorie) */
.thread-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: background .15s;
}
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: var(--bg-hover); }
.thread-avatar {
  width: 38px; height: 38px; border-radius: 4px; background: var(--bg-hover);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: var(--accent); flex-shrink: 0;
}
.thread-body { flex: 1; min-width: 0; }
.thread-title { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--text-hi); margin-bottom: 4px; }
.thread-meta  { font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); }
.thread-pin   { font-family: var(--font-mono); font-size: 10px; color: var(--accent3); margin-right: 6px; }
.thread-stats { font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); white-space: nowrap; flex-shrink: 0; text-align: right; }

/* Sidebar-Widgets */
.forum-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.forum-widget-header {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10px; color: var(--text-lo);
  letter-spacing: 2px; text-transform: uppercase;
}
.forum-widget-body { padding: 4px 0; }
.forum-widget-item {
  display: block; padding: 9px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.forum-widget-item:last-child { border-bottom: none; }
.forum-widget-item:hover { background: var(--bg-hover); }
.forum-widget-title { font-size: 12px; font-weight: 600; color: var(--text-hi); margin-bottom: 2px; }
.forum-widget-meta  { font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); }

/* Tag-Pills im Forum-Sidebar-Widget */
.forum-tag-cloud { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.forum-tag-pill {
  font-family: var(--font-mono); font-size: 10px; padding: 4px 10px;
  background: var(--bg-hover); border: 1px solid var(--border); border-radius: 12px;
  color: var(--accent); text-decoration: none; transition: all .15s;
}
.forum-tag-pill:hover { border-color: var(--accent); }

/* Statistik-Box */
.forum-stats-box { padding: 14px 16px; font-size: 12px; color: var(--text-mid); line-height: 1.8; }
.forum-stats-box strong { color: var(--accent); }

/* Breadcrumb */
.forum-breadcrumb {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-lo);
  margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.forum-breadcrumb a { color: var(--text-mid); text-decoration: none; transition: color .15s; }
.forum-breadcrumb a:hover { color: var(--accent); }

/* Thread-Detail: einzelne Post-Karten */
.thread-post {
  display: grid; grid-template-columns: 140px 1fr; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
}
@media (max-width: 600px) { .thread-post { grid-template-columns: 1fr; } }
.thread-post-author {
  background: var(--bg-hover); padding: 16px; text-align: center;
  border-right: 1px solid var(--border);
}
@media (max-width: 600px) {
  .thread-post-author { border-right: none; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; text-align: left; }
}
.thread-post-avatar {
  width: 56px; height: 56px; border-radius: 8px; background: var(--bg-deep);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 800; font-size: 22px; color: var(--accent);
  margin: 0 auto 8px;
}
@media (max-width: 600px) { .thread-post-avatar { margin: 0; width: 44px; height: 44px; font-size: 18px; } }
.thread-post-name { font-family: var(--font-ui); font-weight: 700; font-size: 13px; color: var(--text-hi); }
.thread-post-role {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  margin-top: 4px; padding: 2px 8px; border-radius: 10px; display: inline-block;
}
.thread-post-role.admin     { background: var(--accent3)22; color: var(--accent3); }
.thread-post-role.moderator { background: var(--accent2)22; color: var(--accent2); }
.thread-post-role.member    { background: var(--bg-deep); color: var(--text-lo); }
.thread-post-content {
  padding: 18px 20px; font-size: 14px; line-height: 1.8; color: var(--text-mid);
}
.thread-post-time {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-lo);
  padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}

/* Online-Indikator (wie WoltLab "Benutzer online") */
.forum-online-box { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.forum-online-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent2);
  box-shadow: 0 0 6px var(--accent2); flex-shrink: 0;
}

/* Logo-Bild im Header (falls hochgeladen) */
.logo-img { max-height: 80px; max-width: 280px; object-fit: contain; display: block; }

/* ============================================================
   WISSENSDATENBANK — Konzept aus Mockup, im CMS-Dark-Stil
   ============================================================ */

/* KB Layout: Sidebar + Haupt */
.kb-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 880px) { .kb-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.kb-sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
}
.kb-sidebar-section {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10px; color: var(--text-lo);
  letter-spacing: 2px; text-transform: uppercase;
}
.kb-sidebar-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; text-decoration: none; color: var(--text-mid);
  transition: all .15s; cursor: pointer;
  border-left: 2px solid transparent;
}
.kb-sidebar-item:last-child { border-bottom: none; }
.kb-sidebar-item.active { color: var(--accent); background: var(--bg-hover); border-left-color: var(--accent); }
.kb-sidebar-item:hover:not(.active) { background: var(--bg-hover); color: var(--text-hi); }
.kb-sidebar-count { font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); }

/* Prioritäts-Badges */
.prio-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 10px; flex-shrink: 0;
}
.prio-kritisch { background: #ff3b5c22; color: var(--danger);  border: 1px solid #ff3b5c44; }
.prio-hoch     { background: #ff6b3522; color: var(--accent3); border: 1px solid #ff6b3544; }
.prio-normal   { background: var(--bg-hover); color: var(--text-lo); border: 1px solid var(--border); }

/* KB-Karten */
.kb-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.kb-card:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(0,212,255,0.07); }
.kb-card.expanded { border-color: var(--accent); }
.kb-card-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.kb-card-title {
  font-family: var(--font-ui); font-size: 15px; font-weight: 700;
  color: var(--text-hi); flex: 1; min-width: 0;
}
.kb-card-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-lo); margin-bottom: 8px; }
.kb-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kb-tag-pill {
  font-family: var(--font-mono); font-size: 10px; padding: 3px 9px;
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: 10px; color: var(--accent); transition: all .15s; cursor: pointer;
}
.kb-tag-pill:hover { border-color: var(--accent); }

/* KB Einzel-Eintrag aufgeklappt */
.kb-card-content {
  display: none; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.kb-card.expanded .kb-card-content { display: block; }
.kb-card-content pre {
  background: var(--bg-deep); border: 1px solid var(--border); border-radius: 5px;
  padding: 14px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7;
  color: var(--accent2); overflow-x: auto; white-space: pre-wrap; word-break: break-word;
  margin-top: 8px;
}
.kb-card-content p { font-size: 13px; color: var(--text-mid); line-height: 1.8; margin-bottom: 8px; }

/* Theme-Toggle */
.kb-theme-toggle {
  font-family: var(--font-mono); font-size: 11px; padding: 6px 14px;
  background: var(--bg-hover); border: 1px solid var(--border); border-radius: 20px;
  color: var(--text-mid); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.kb-theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Stats-Balken oben im KB */
.kb-stats-bar {
  display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--text-lo);
}
.kb-stat { display: flex; align-items: center; gap: 6px; }
.kb-stat-val { color: var(--accent); font-weight: 700; font-size: 13px; }
