/* wiki.findnix.eu -- theme.css
   Header: dunkelblau wie findnix.eu Hauptseite
   Body-Hintergrund: Blauverlauf wie kids.findnix.eu
   Schrift: durchgehend weiss */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

:root{
  --bg-header:  rgba(10,10,15,0.97);
  --bg-body-1:  #0a1628;
  --bg-body-2:  #1560bd;
  --bg-body-3:  #5ba3e8;
  --card:       rgba(255,255,255,0.08);
  --card-solid: #12121e;
  --border:     rgba(255,255,255,0.14);
  --border2:    rgba(255,255,255,0.22);
  --text:       #ffffff;
  --muted:      rgba(255,255,255,0.65);
  --accent:     #5b8dee;
  --accent2:    #7c5bde;
  --green:      #3dd68c;
  --red:        #ff6b6b;
  --orange:     #ffa94d;
  --sans:       'DM Sans', system-ui, sans-serif;
  --radius:     10px;
  --radius-lg:  16px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  color:var(--text);
  min-height:100vh;
  font-size:15px;
  line-height:1.6;
  background:linear-gradient(160deg, var(--bg-body-1) 0%, var(--bg-body-2) 22%, var(--bg-body-3) 100%);
  background-attachment:fixed;
}

a{color:inherit}

/* Interne Links standardmaessig weiss (wie Header/Footer) -- explizite Buttons/
   Tags/Vote-Buttons behalten ihre eigene Farbe, siehe weiter unten */
.card a, .card-solid a, .entries a, .comment a, .alert a,
.entry-desc a, .entry-content a {
  color:#fff;
  text-decoration:underline;
  text-decoration-color:rgba(255,255,255,0.4);
}
.card a:hover, .card-solid a:hover, .entries a:hover, .comment a:hover, .alert a:hover,
.entry-desc a:hover, .entry-content a:hover {
  text-decoration-color:#fff;
}
/* Footer-Links (schon eigenes Grau/Underline-Muster -- auf weiss umstellen) */
footer a{ color:#fff !important; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header{
  position:sticky;
  top:0;
  z-index:200;
  background:var(--bg-header);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.logo-img{ height:56px; width:auto; }
.logo-text{
  font-size:20px;
  font-weight:800;
  color:#fff;
  letter-spacing:-.3px;
}
.logo-sub{
  font-size:11px;
  color:var(--muted);
  font-weight:400;
  display:block;
  margin-top:-2px;
}
.header-nav{
  display:flex;
  align-items:center;
  gap:22px;
  font-size:14px;
  flex-wrap:wrap;
}
.header-nav a{
  color:var(--muted);
  text-decoration:none;
  transition:color .15s;
  font-weight:500;
}
.header-nav a:hover{ color:#fff; }
.header-nav a.btn-header{
  background:var(--accent);
  color:#fff !important;
  padding:8px 16px;
  border-radius:8px;
  font-weight:600;
}
.header-nav a.btn-header:hover{ background:#4a7de0; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container{ max-width:1100px; margin:0 auto; padding:32px 20px 60px; }
.container-narrow{ max-width:760px; margin:0 auto; padding:32px 20px 60px; }

.card{
  background:var(--card);
  backdrop-filter:blur(6px);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
}
.card-solid{
  background:var(--card-solid);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
}

h1{ color:#fff; font-weight:800; letter-spacing:-.3px; }
h2{ color:#fff; font-weight:700; }
h3{ color:#fff; font-weight:700; }
p,li,span,div,label,td,th{ color:inherit; }
.text-muted{ color:var(--muted) !important; }

/* ── FORMS ──────────────────────────────────────────────── */
.form-group{ margin-bottom:18px; }
.form-label{ font-size:13px; font-weight:600; margin-bottom:7px; display:block; color:#fff; }
.form-control{
  width:100%;
  padding:11px 14px;
  border:1.5px solid var(--border2);
  border-radius:var(--radius);
  font-size:14px;
  font-family:inherit;
  background:rgba(255,255,255,0.08);
  color:#fff;
}
.form-control::placeholder{ color:rgba(255,255,255,0.4); }
.form-control:focus{ outline:none; border-color:var(--accent); background:rgba(255,255,255,0.12); }
textarea.form-control{ min-height:130px; resize:vertical; }
select.form-control{ cursor:pointer; }
select.form-control option{ background:#12121e; color:#fff; }
.help{ font-size:12px; color:var(--muted); margin-top:5px; }
.radio-group{ display:flex; gap:20px; flex-wrap:wrap; }
.radio-label{ display:flex; align-items:center; gap:8px; cursor:pointer; font-size:14px; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:11px 22px;
  border-radius:var(--radius);
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  transition:background .15s, transform .1s;
  font-family:inherit;
}
.btn:hover{ background:#4a7de0; }
.btn:active{ transform:scale(.97); }
.btn-ghost{ background:rgba(255,255,255,0.1); border:1px solid var(--border2); }
.btn-ghost:hover{ background:rgba(255,255,255,0.18); }
.btn-success{ background:var(--green); }
.btn-success:hover{ background:#2fb876; }
.btn-danger{ background:var(--red); }
.btn-danger:hover{ background:#e85555; }

/* ── ALERTS ─────────────────────────────────────────────── */
.alert{ padding:13px 16px; border-radius:var(--radius); margin-bottom:18px; font-size:14px; }
.alert-error{ background:rgba(255,107,107,0.15); border:1.5px solid rgba(255,107,107,0.4); color:#ffb3b3; }
.alert-success{ background:rgba(61,214,140,0.15); border:1.5px solid rgba(61,214,140,0.4); color:#8ef0c0; }

/* ── STATS ──────────────────────────────────────────────── */
.stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:28px; }
.stat-card{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px; text-align:center; }
.stat-value{ font-size:28px; font-weight:800; color:#fff; }
.stat-label{ font-size:12px; color:var(--muted); margin-top:4px; }

/* ── SIDEBAR / KATEGORIEN ──────────────────────────────── */
.grid{ display:grid; grid-template-columns:280px 1fr; gap:24px; align-items:start; }
@media(max-width:768px){ .grid{ grid-template-columns:1fr; } }
.sidebar{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; }
.sidebar-title{ font-size:14px; font-weight:700; margin-bottom:14px; color:#fff; }
.cat-list{ list-style:none; }
.cat-group{ margin-bottom:14px; }
.cat-group-name{ display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:8px; cursor:pointer; font-weight:700; font-size:14px; transition:background .15s; }
.cat-group-name:hover{ background:rgba(255,255,255,0.08); }
.cat-group-name.active{ background:var(--accent); }
.cat-sub{ padding:7px 12px 7px 32px; border-radius:8px; cursor:pointer; font-size:13px; color:var(--muted); transition:background .15s; }
.cat-sub:hover{ background:rgba(255,255,255,0.06); color:#fff; }
.cat-sub.active{ background:rgba(91,141,238,0.25); color:#fff; }
.cat-icon{ font-size:16px; }
.cat-add-link{ font-size:12px; color:#fff; text-decoration:underline; text-decoration-color:rgba(255,255,255,0.4); margin-top:6px; display:inline-block; }
.cat-add-link:hover{ text-decoration-color:#fff; }

/* ── EINTRAEGE ──────────────────────────────────────────── */
.entries{ display:grid; gap:14px; }
.entry-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:20px;
  transition:transform .15s, box-shadow .15s, background .15s;
}
.entry-card:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.25); background:rgba(255,255,255,0.12); }
.entry-header{ display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; font-size:12px; }
.entry-type{ padding:3px 10px; border-radius:6px; font-weight:700; text-transform:uppercase; font-size:11px; }
.type-link{ background:rgba(91,141,238,0.25); color:#a8c4f5; }
.type-article{ background:rgba(61,214,140,0.25); color:#8ef0c0; }
.entry-title{ font-size:17px; font-weight:700; color:#fff; text-decoration:none; display:block; margin-bottom:8px; }
.entry-title:hover{ color:#fff; text-decoration:underline; }
.entry-desc{ font-size:13.5px; color:var(--muted); line-height:1.6; margin-bottom:12px; }
.entry-meta{ display:flex; gap:16px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.entry-meta span{ display:flex; align-items:center; gap:4px; }
.empty{ text-align:center; padding:60px 20px; color:var(--muted); }

/* ── SEARCH BAR ─────────────────────────────────────────── */
.search-bar{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:12px 16px;
  margin-bottom:24px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.search-bar input[type="text"]{ flex:1; min-width:180px; background:none; border:none; outline:none; color:#fff; font-size:14px; }
.search-bar input::placeholder{ color:rgba(255,255,255,.45); }
.search-bar select{ background:rgba(255,255,255,0.08); color:#fff; border:1px solid var(--border2); border-radius:8px; padding:8px 10px; font-size:13px; }
.search-bar select option{ background:#12121e; }
.search-bar button{ background:var(--accent); color:#fff; border:none; padding:9px 20px; border-radius:8px; font-weight:600; cursor:pointer; }

/* ── CAPTCHA ────────────────────────────────────────────── */
.captcha-box{
  background:rgba(255,255,255,0.06);
  border:1.5px dashed var(--border2);
  border-radius:var(--radius);
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.captcha-question{ font-weight:700; font-size:15px; color:#fff; }
.captcha-box input{ width:80px; }

/* ── TABS (Admin) ───────────────────────────────────────── */
.tabs{ display:flex; gap:6px; margin-bottom:24px; border-bottom:1.5px solid var(--border); flex-wrap:wrap; }
.tab{ padding:11px 18px; border:none; background:none; cursor:pointer; font-weight:600; color:var(--muted); border-bottom:2px solid transparent; transition:all .15s; font-family:inherit; font-size:13.5px; }
.tab.active{ color:#fff; border-bottom-color:var(--accent); }
.tab:hover{ color:#fff; }

/* ── COMMENTS ───────────────────────────────────────────── */
.comment{ background:rgba(255,255,255,0.06); border-radius:var(--radius); padding:14px 16px; margin-bottom:10px; }
.comment-header{ display:flex; justify-content:space-between; margin-bottom:6px; font-size:12px; color:var(--muted); flex-wrap:wrap; gap:6px; }
.comment-text{ font-size:14px; line-height:1.6; }
.comment-form{ background:rgba(255,255,255,0.06); border-radius:var(--radius-lg); padding:20px; }
.tags{ display:flex; gap:8px; margin-top:18px; flex-wrap:wrap; }
.tag{ background:rgba(255,255,255,0.1); border:1px solid var(--border); padding:4px 12px; border-radius:6px; font-size:12px; color:var(--muted); text-decoration:none; }
.tag:hover{ color:#fff; border-color:var(--border2); }
.vote-buttons{ display:flex; gap:10px; margin:18px 0; }
.vote-btn{ background:rgba(255,255,255,0.08); border:1px solid var(--border2); padding:9px 18px; border-radius:var(--radius); cursor:pointer; font-size:13.5px; font-weight:600; color:#fff; transition:all .15s; font-family:inherit; }
.vote-btn:hover{ background:rgba(255,255,255,0.16); border-color:var(--accent); }

@media(max-width:768px){
  .header-inner{ padding:12px 16px; }
  .logo-img{ height:42px; }
  .header-nav{ gap:14px; font-size:13px; }
  .container, .container-narrow{ padding:20px 14px 40px; }
}
