/* HydroWiki — Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Mono:wght@300;400;500&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600&display=swap');

:root {
  /* Schwarz-Grün: tiefes Schwarz + frische Grüntöne */
  --bg:   #000000; --bg2: #0a0a0a; --bg3: #0d1210; --bg4: #111916; --bg5: #0a0f0d;
  --g:    #6bff9e; --g2: #4ade80;  --g3: #22c55e;  --g4: #166534;  --g-dim: #14532d;
  --amber:#f5c842; --blue:#5bc8f5; --red:#ff6b6b;   --purple:#b97fff; --orange:#ff9f43;
  --t:    #f0fdf4; --t2: #bbf7d0; --t3: #4ade80; --t-muted: #6b7c72;
  --b:    #1a1f1c; --b2: #262d28; --border-green: rgba(34, 197, 94, 0.25);
  --ff:   'Playfair Display', serif;
  --fm:   'DM Mono', monospace;
  --fb:   'Fraunces', serif;
  --r:    8px;
  --r-lg:  12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.4);
  --glow-green: 0 0 40px rgba(34, 197, 94, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--t);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}
/* Floraler Hintergrund: zarte Blatt-/Ranken-Optik auf Schwarz */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%2322c55e' fill-opacity='0.03' d='M60 10 Q85 35 80 65 Q75 95 60 110 Q45 95 40 65 Q35 35 60 10Z'/%3E%3Cpath fill='%2322c55e' fill-opacity='0.02' d='M10 60 Q35 45 65 50 Q95 55 110 60 Q95 75 65 70 Q35 65 10 60Z'/%3E%3C/svg%3E") repeat,
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(34,197,94,.07) 0% , transparent 55%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(22,101,52,.05) 0%, transparent 50%);
}
a { color: var(--g); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--g3); }

/* ===================== LAYOUT ===================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--b2);
  padding: 0 1.5rem;
  box-shadow: var(--glow-green);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  height: 58px; max-width: 1300px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo .logo-leaf { color: var(--g); }
.logo-text { font-family: var(--ff); font-size: 1.3rem; font-weight: 700; color: var(--g); letter-spacing: -.02em; }
.logo-sub { font-family: var(--fm); font-size: .55rem; color: var(--t-muted); letter-spacing: .15em; text-transform: uppercase; display: block; margin-top: -3px; }

.header-search { flex: 1; max-width: 360px; position: relative; }
.header-search form { position: relative; }
.header-search input {
  width: 100%; background: var(--bg2); border: 1px solid var(--b2);
  border-radius: var(--r); padding: 7px 12px 7px 30px;
  color: var(--t); font-family: var(--fm); font-size: .8rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.header-search input:focus { border-color: var(--g3); box-shadow: 0 0 0 2px rgba(34,197,94,.15); }
.header-search input::placeholder { color: var(--t-muted); }
.search-ico { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--t3); font-size: 12px; pointer-events: none; }

.header-nav { display: flex; gap: 3px; }
.nav-btn {
  padding: 6px 14px; background: transparent; border: 1px solid var(--b2);
  border-radius: var(--r); color: var(--t2); font-family: var(--fm); font-size: .72rem;
  cursor: pointer; transition: all .2s; letter-spacing: .05em; white-space: nowrap;
}
.nav-btn:hover, .nav-btn.act {
  background: rgba(34,197,94,.15); border-color: var(--g3); color: var(--g); text-decoration: none;
}
.header-user { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.user-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: rgba(34,197,94,.08); border: 1px solid var(--border-green);
  border-radius: var(--r); color: var(--g); font-family: var(--fm); font-size: .72rem;
  transition: all .2s; text-decoration: none;
}
.user-btn:hover { background: rgba(34,197,94,.18); border-color: var(--g3); text-decoration: none; }
.avatar { font-size: .9rem; }

.site-main { position: relative; z-index: 1; min-height: calc(100vh - 120px); }
.container { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem; }

.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--b2);
  padding: 1.75rem 1.5rem;
  background: var(--bg2);
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-logo { display: flex; flex-direction: column; }
.footer-sub { font-family: var(--fm); font-size: .6rem; color: var(--t-muted); margin-top: 2px; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { font-family: var(--fm); font-size: .72rem; color: var(--t-muted); transition: color .2s; }
.footer-links a:hover { color: var(--g); text-decoration: none; }
.footer-resources { display: flex; flex-direction: column; gap: 4px; }
.footer-resources a { font-family: var(--fm); font-size: .68rem; color: var(--t-muted); transition: color .2s; }
.footer-resources a:hover { color: var(--g); text-decoration: none; }
.footer-copy { margin-left: auto; font-family: var(--fm); font-size: .65rem; color: var(--t-muted); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 18px; border-radius: 2px; font-family: var(--fm);
  font-size: .78rem; letter-spacing: .06em; cursor: pointer;
  transition: all .15s; border: 1px solid transparent; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary,
a.btn-primary { background: var(--g); color: #0a0f0d !important; font-weight: 600; border-color: var(--g); }
.btn-primary:hover,
a.btn-primary:hover { background: var(--g2); border-color: var(--g2); color: #0a0f0d !important; }
.btn-outline { background: transparent; border-color: var(--b2); color: var(--t2); }
.btn-outline:hover { border-color: var(--g3); color: var(--g); background: rgba(34,197,94,.06); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--t3); }
.btn-ghost:hover { color: var(--t); }
.btn-danger { background: transparent; border-color: rgba(255,107,107,.3); color: var(--red); }
.btn-danger:hover { background: rgba(255,107,107,.1); }
.btn-sm { padding: 5px 12px; font-size: .7rem; }
.btn-lg { padding: 11px 24px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 1.1rem; }
.label {
  display: block; font-family: var(--fm); font-size: .62rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--t3); margin-bottom: 6px;
}
.input, .textarea, .select {
  width: 100%; background: var(--bg2); border: 1px solid var(--b2);
  border-radius: 2px; padding: 9px 13px; color: var(--t);
  font-family: var(--fb); font-size: .9rem; outline: none; transition: border-color .2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--g3); }
.input::placeholder, .textarea::placeholder { color: var(--t3); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.select { appearance: none; cursor: pointer; }
.input-hint { font-family: var(--fm); font-size: .65rem; color: var(--t3); margin-top: 4px; }
.input-error { border-color: var(--red) !important; }
.field-error { font-family: var(--fm); font-size: .65rem; color: var(--red); margin-top: 4px; }

/* ===================== CARDS ===================== */
.card { background: var(--bg3); border: 1px solid var(--b2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-card); }
.card-header { padding: .9rem 1.2rem; border-bottom: 1px solid var(--b2); display: flex; align-items: center; gap: .75rem; }
.card-title { font-family: var(--ff); font-size: 1.05rem; font-weight: 600; color: var(--t); }
.card-body { padding: 1.2rem; }
.card-footer { padding: .8rem 1.2rem; border-top: 1px solid var(--b2); background: var(--bg4); }

/* ===================== ALERTS ===================== */
.alert { padding: .75rem 1rem; border-radius: 2px; font-family: var(--fm); font-size: .78rem; margin-bottom: 1rem; }
.alert-success { background: rgba(77,255,145,.08); border: 1px solid rgba(77,255,145,.25); color: var(--g); }
.alert-error   { background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.25); color: var(--red); }
.alert-info    { background: rgba(91,200,245,.08); border: 1px solid rgba(91,200,245,.25); color: var(--blue); }
.flash-wrap { max-width: 1300px; margin: 1rem auto 0; padding: 0 1.5rem; }
.flash { padding: .75rem 1rem; border-radius: 2px; font-family: var(--fm); font-size: .78rem; }
.flash-success { background: rgba(77,255,145,.1); border: 1px solid rgba(77,255,145,.3); color: var(--g); }
.flash-error   { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.3); color: var(--red); }

/* ===================== TAGS / BADGES ===================== */
.tag { display: inline-block; padding: 2px 8px; border-radius: 2px; font-family: var(--fm); font-size: .6rem; letter-spacing: .05em; }
.tag-g { background: rgba(77,255,145,.1); color: var(--g); border: 1px solid rgba(77,255,145,.2); }
.tag-a { background: rgba(245,200,66,.1); color: var(--amber); border: 1px solid rgba(245,200,66,.2); }
.tag-b { background: rgba(91,200,245,.1); color: var(--blue); border: 1px solid rgba(91,200,245,.2); }
.tag-r { background: rgba(255,107,107,.1); color: var(--red); border: 1px solid rgba(255,107,107,.2); }
.tag-p { background: rgba(185,127,255,.1); color: var(--purple); border: 1px solid rgba(185,127,255,.2); }

/* ===================== SECTION HEADER ===================== */
.sec-header {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--b2);
}
.sec-title { font-family: var(--ff); font-size: 1.35rem; font-weight: 600; color: var(--t); }
.sec-meta { font-family: var(--fm); font-size: .65rem; color: var(--t-muted); }
.sec-action { margin-left: auto; font-family: var(--fm); font-size: .68rem; color: var(--g); }
.sec-action:hover { color: var(--g2); text-decoration: underline; }

/* ===================== PAGINATION ===================== */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
  padding: 5px 11px; border: 1px solid var(--b2); border-radius: 2px;
  font-family: var(--fm); font-size: .72rem; color: var(--t2);
  background: transparent; cursor: pointer; transition: all .15s; text-decoration: none;
}
.page-btn:hover, .page-btn.act { border-color: var(--g3); color: var(--g); background: rgba(77,255,145,.07); text-decoration: none; }

/* ===================== HERO ===================== */
.hero {
  padding: 4rem 0 3rem; text-align: center;
  position: relative;
  border-bottom: 1px solid var(--b2);
  margin-bottom: 2rem;
}
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 2px; background: linear-gradient(90deg, transparent, var(--g3), transparent); border-radius: 1px; opacity: .8;
}
.hero h1 {
  font-family: var(--ff); font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; line-height: .95; letter-spacing: -.03em; margin-bottom: 1rem; color: var(--t);
}
.hero-label {
  font-family: var(--fm); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--g); margin-bottom: 1.2rem; opacity: .9;
}
.hero h1 em { font-style: italic; color: var(--g); }
.hero-desc { color: var(--t2); max-width: 520px; margin: 0 auto 2rem; font-style: italic; font-size: 1.05rem; line-height: 1.65; }
.hero-search {
  display: flex; max-width: 560px; margin: 0 auto 2.5rem;
  border: 1px solid var(--b2); border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg2); transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--g3); box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.hero-search input {
  flex: 1; background: transparent; border: none; padding: 14px 20px;
  color: var(--t); font-family: var(--fm); font-size: .9rem; outline: none;
}
.hero-search input::placeholder { color: var(--t-muted); }
.hero-search button {
  background: var(--g); border: none; padding: 0 24px; color: #000;
  font-family: var(--fm); font-size: .75rem; font-weight: 600; letter-spacing: .1em; cursor: pointer; transition: background .2s;
}
.hero-search button:hover { background: var(--g2); }
.stats-bar { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.stat-num { font-family: var(--ff); font-size: 1.8rem; font-weight: 700; color: var(--g); display: block; line-height: 1; }
.stat-lbl { font-family: var(--fm); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--t-muted); margin-top: 4px; }

/* ===================== HOMEPAGE SECTIONS ===================== */
.home-section { margin-bottom: 3rem; }
.wiki-teaser-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .wiki-teaser-grid { grid-template-columns: 1fr; } }
.wiki-teaser-card {
  background: var(--bg3); border: 1px solid var(--b2); border-radius: var(--r);
  padding: 1.35rem; text-decoration: none; display: block; transition: border-color .2s, background .2s, box-shadow .2s;
  box-shadow: var(--shadow-card);
}
.wiki-teaser-card:hover { border-color: var(--border-green); background: var(--bg4); box-shadow: 0 0 0 1px rgba(34,197,94,.1); text-decoration: none; }
.wiki-teaser-main { grid-column: span 1; border-left: 4px solid var(--g); }
.wt-icon { font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.wt-title { font-family: var(--ff); font-size: 1rem; font-weight: 600; color: var(--t); margin-bottom: .35rem; }
.wt-desc { font-size: .82rem; color: var(--t-muted); line-height: 1.55; margin-bottom: .75rem; }
.wt-link { font-family: var(--fm); font-size: .68rem; color: var(--g); letter-spacing: .05em; }
.method-blocks { display: flex; flex-wrap: wrap; gap: 10px; }
.method-block {
  background: var(--bg3); border: 1px solid var(--b2); border-radius: var(--r);
  padding: 1rem 1.25rem; min-width: 140px; text-decoration: none; display: flex; flex-direction: column; gap: 2px;
  transition: border-color .2s, background .2s, box-shadow .2s; box-shadow: var(--shadow-card);
}
.method-block:hover { border-color: var(--g3); background: var(--bg4); box-shadow: 0 0 0 1px rgba(34,197,94,.12); text-decoration: none; }
.mb-name { font-family: var(--ff); font-size: .95rem; font-weight: 600; color: var(--t); }
.mb-count { font-family: var(--fm); font-size: .65rem; color: var(--t-muted); }
.mb-hint { font-family: var(--fm); font-size: .6rem; color: var(--g); margin-top: 4px; }
.highlight-section {
  background: linear-gradient(145deg, var(--bg3) 0%, var(--bg4) 100%);
  border: 1px solid var(--b2); border-radius: var(--r-lg); padding: 2rem; margin-bottom: 2rem;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(34,197,94,.04);
}
.highlight-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 800px) { .highlight-inner { grid-template-columns: 1fr; } }
.highlight-cta { }
.highlight-lead { font-size: 1.05rem; color: var(--t2); line-height: 1.7; margin-bottom: 1.25rem; }
.highlight-lead strong { color: var(--g); }
.hp-label { font-family: var(--fm); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t-muted); margin-bottom: .75rem; display: block; }
.hp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hp-card {
  background: var(--bg3); border: 1px solid var(--b2); border-radius: var(--r); padding: .85rem;
  text-decoration: none; display: flex; flex-direction: column; gap: 2px; transition: border-color .2s, background .2s;
}
.hp-card:hover { border-color: var(--border-green); background: var(--bg4); text-decoration: none; }
.hp-emoji { font-size: 1.5rem; }
.hp-name { font-family: var(--ff); font-size: .85rem; font-weight: 600; color: var(--t); }
.hp-meta { font-family: var(--fm); font-size: .58rem; color: var(--t-muted); }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 2.5rem; }
.card-link { text-decoration: none; transition: border-color .2s; }
.card-link:hover { border-color: var(--b2); text-decoration: none; }
.card-icon { font-size: 1.1rem; }
.card-meta { font-family: var(--fm); font-size: .6rem; color: var(--t3); margin-top: 2px; }

/* Plant detail: Geeignet für diese Systeme */
.plant-methods-box { background: var(--bg3); border: 1px solid var(--b); border-radius: var(--r); padding: 1.25rem; margin-bottom: 1.5rem; }
.plant-methods-box .pm-title { font-family: var(--ff); font-size: .95rem; font-weight: 600; margin-bottom: .75rem; color: var(--t); }
.pm-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(91,200,245,.1); border: 1px solid rgba(91,200,245,.25); border-radius: 2px; font-family: var(--fm); font-size: .78rem; color: var(--blue); text-decoration: none; transition: all .15s; }
.pm-link:hover { background: rgba(91,200,245,.18); border-color: var(--blue); color: var(--t); text-decoration: none; }

/* ===================== WIKI ARTICLE ===================== */
.wiki-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.article-content h2 { font-family: var(--ff); font-size: 1.3rem; font-weight: 700; color: var(--t); margin: 1.8rem 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--b); }
.article-content h3 { font-family: var(--ff); font-size: 1.1rem; font-weight: 600; color: var(--t2); margin: 1.4rem 0 .5rem; }
.article-content p { color: var(--t2); line-height: 1.8; margin-bottom: 1rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; color: var(--t2); margin-bottom: 1rem; }
.article-content li { margin-bottom: .3rem; line-height: 1.7; }
.article-content strong { color: var(--t); font-weight: 600; }
.article-content em { color: var(--g); font-style: italic; }
.article-content code { background: var(--bg4); border: 1px solid var(--b2); border-radius: 2px; padding: 1px 6px; font-family: var(--fm); font-size: .82rem; color: var(--amber); }
.article-content hr { border: none; border-top: 1px solid var(--b); margin: 1.5rem 0; }
.wiki-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.wiki-table th, .wiki-table td { padding: 8px 12px; border: 1px solid var(--b2); font-size: .88rem; }
.wiki-table th { background: var(--bg4); font-family: var(--fm); font-size: .7rem; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px,1fr)); gap: 1px; background: var(--b2); border: 1px solid var(--b2); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2.5rem; box-shadow: var(--shadow-card); }
.cat-card { background: var(--bg3); padding: 1.25rem; cursor: pointer; transition: background .2s; position: relative; overflow: hidden; text-decoration: none; display: block; border: 1px solid transparent; }
.cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cc, var(--g3)); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.cat-card:hover { background: var(--bg4); border-color: var(--border-green); text-decoration: none; }
.cat-card:hover::before { transform: scaleX(1); }
.cc-icon { font-size: 1.8rem; margin-bottom: .5rem; display: block; }
.cc-name { font-family: var(--ff); font-size: .95rem; font-weight: 600; color: var(--t); margin-bottom: 2px; }
.cc-cnt { font-family: var(--fm); font-size: .62rem; color: var(--t-muted); }

/* Article list */
.article-list { display: flex; flex-direction: column; gap: 1px; background: var(--b); border: 1px solid var(--b); border-radius: var(--r); overflow: hidden; }
.article-item { background: var(--bg3); padding: 1rem 1.2rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; transition: background .15s; text-decoration: none; }
.article-item:hover { background: var(--bg2); text-decoration: none; }
.ai-icon { width: 34px; height: 34px; background: var(--bg4); border: 1px solid var(--b2); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ai-title { font-family: var(--ff); font-size: .93rem; font-weight: 600; color: var(--t); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-meta { font-family: var(--fm); font-size: .62rem; color: var(--t3); }

/* ===================== PLANTS ===================== */
.db-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; }
.sidebar { position: sticky; top: 76px; height: fit-content; }
.filter-group { margin-bottom: 1.1rem; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ftag { padding: 3px 9px; background: var(--bg2); border: 1px solid var(--b2); border-radius: 2px; font-family: var(--fm); font-size: .68rem; color: var(--t2); cursor: pointer; transition: all .15s; user-select: none; }
.ftag:hover, .ftag.act { background: rgba(77,255,145,.1); border-color: var(--g3); color: var(--g); text-decoration: none; }
.plants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px,1fr)); gap: 10px; }
.plant-card { background: var(--bg3); border: 1px solid var(--b); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s; text-decoration: none; display: block; }
.plant-card:hover { border-color: var(--g3); transform: translateY(-2px); text-decoration: none; }
.pc-img { width: 100%; height: 100px; background: var(--bg4); display: flex; align-items: center; justify-content: center; font-size: 3rem; border-bottom: 1px solid var(--b); }
.pc-body { padding: .9rem; }
.pc-name { font-family: var(--ff); font-size: .95rem; font-weight: 600; margin-bottom: 2px; color: var(--t); }
.pc-latin { font-family: var(--fm); font-size: .62rem; color: var(--t3); font-style: italic; margin-bottom: .6rem; }
.pc-params { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: .6rem; }
.pc-param-lbl { font-family: var(--fm); font-size: .58rem; color: var(--t3); }
.pc-param-val { font-family: var(--fm); font-size: .72rem; color: var(--t); }

/* Plant detail */
.plant-detail-header { display: flex; align-items: center; gap: 1.5rem; background: var(--bg3); border: 1px solid var(--b); border-radius: var(--r); padding: 1.5rem 2rem; margin-bottom: 1.5rem; }
.pd-emoji { font-size: 4rem; flex-shrink: 0; }
.pd-title { font-family: var(--ff); font-size: 2rem; font-weight: 700; }
.pd-latin { font-family: var(--fm); font-size: .72rem; color: var(--t3); font-style: italic; margin-top: 4px; }
.param-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 10px; margin-bottom: 1.5rem; }
.param-card { background: var(--bg4); border: 1px solid var(--b); border-radius: 2px; padding: 1rem; }
.param-card-lbl { font-family: var(--fm); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--t3); margin-bottom: 5px; }
.param-card-val { font-family: var(--fm); font-size: 1rem; color: var(--g); }

/* ===================== FORUM ===================== */
.forum-layout { display: grid; grid-template-columns: 1fr 270px; gap: 1.5rem; }
.forum-cats { display: flex; flex-direction: column; gap: 1px; background: var(--b); border: 1px solid var(--b); border-radius: var(--r); overflow: hidden; }
.fcat { background: var(--bg3); padding: .9rem 1.1rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; transition: background .15s; text-decoration: none; }
.fcat:hover { background: var(--bg2); text-decoration: none; }
.fcat-icon { width: 36px; height: 36px; background: var(--bg4); border: 1px solid var(--b2); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.fcat-name { font-family: var(--ff); font-size: .95rem; font-weight: 600; color: var(--t); }
.fcat-desc { font-family: var(--fm); font-size: .65rem; color: var(--t3); margin-top: 1px; }
.fcat-cnt { text-align: right; }
.fcat-num { font-family: var(--fm); font-size: .8rem; color: var(--t2); }
.fcat-lbl { font-family: var(--fm); font-size: .6rem; color: var(--t3); }

.thread-item { background: var(--bg3); border: 1px solid var(--b); border-radius: var(--r); padding: .9rem 1.1rem; display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; transition: border-color .15s; text-decoration: none; margin-bottom: 8px; }
.thread-item:hover { border-color: var(--b2); text-decoration: none; }
.ti-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--g4); border: 1px solid var(--g3); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.ti-title { font-family: var(--ff); font-size: .93rem; font-weight: 600; color: var(--t); margin-bottom: 3px; }
.ti-meta { font-family: var(--fm); font-size: .62rem; color: var(--t3); }
.ti-meta .author { color: var(--g); }
.ti-stats { text-align: right; flex-shrink: 0; }
.ti-replies { font-family: var(--fm); font-size: .78rem; color: var(--t2); }
.ti-views { font-family: var(--fm); font-size: .6rem; color: var(--t3); }
.pin-badge { display: inline-block; padding: 1px 6px; background: rgba(245,200,66,.1); border: 1px solid rgba(245,200,66,.2); color: var(--amber); font-family: var(--fm); font-size: .55rem; border-radius: 1px; margin-right: 5px; }
.lock-badge { display: inline-block; padding: 1px 6px; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.2); color: var(--red); font-family: var(--fm); font-size: .55rem; border-radius: 1px; margin-right: 5px; }

/* Posts */
.post-item { background: var(--bg3); border: 1px solid var(--b); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.post-header { padding: .8rem 1.1rem; border-bottom: 1px solid var(--b); display: flex; align-items: center; gap: .75rem; }
.post-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--g4); border: 1px solid var(--g3); display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.post-user { font-family: var(--fm); font-size: .78rem; color: var(--g); font-weight: 500; text-decoration: none; }
.post-user:hover { text-decoration: underline; }
.post-role { padding: 1px 6px; background: rgba(77,255,145,.08); border: 1px solid var(--g4); color: var(--t3); font-family: var(--fm); font-size: .55rem; border-radius: 1px; margin-left: 6px; }
.post-role.admin { border-color: rgba(245,200,66,.3); color: var(--amber); background: rgba(245,200,66,.07); }
.post-time { font-family: var(--fm); font-size: .62rem; color: var(--t3); margin-left: auto; }
.post-body { padding: 1rem 1.1rem; color: var(--t2); line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.post-actions { padding: .6rem 1.1rem; border-top: 1px solid var(--b); display: flex; align-items: center; gap: .5rem; }
.like-form { display: inline; }
.like-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 2px; font-family: var(--fm); font-size: .68rem; cursor: pointer; transition: all .15s; background: transparent; border: 1px solid var(--b2); color: var(--t3); }
.like-btn:hover, .like-btn.liked { background: rgba(77,255,145,.08); border-color: var(--g3); color: var(--g); }
.post-num { margin-left: auto; font-family: var(--fm); font-size: .6rem; color: var(--t3); }

/* ===================== PROFILE ===================== */
.profile-hero { background: var(--bg3); border: 1px solid var(--b); border-radius: var(--r); padding: 1.5rem 2rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.profile-ava { width: 68px; height: 68px; border-radius: 50%; background: var(--g4); border: 2px solid var(--g3); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.profile-name { font-family: var(--ff); font-size: 1.5rem; font-weight: 700; }
.profile-meta { font-family: var(--fm); font-size: .65rem; color: var(--t3); margin-top: 3px; }

/* ===================== AUTH ===================== */
.auth-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { background: var(--bg2); border: 1px solid var(--b2); border-radius: var(--r); max-width: 420px; width: 100%; padding: 2.5rem; }
.auth-title { font-family: var(--ff); font-size: 1.8rem; font-weight: 700; margin-bottom: .3rem; }
.auth-sub { color: var(--t2); font-size: .88rem; margin-bottom: 1.8rem; font-style: italic; }

/* ===================== ADMIN ===================== */
/* Admin: Schwarz-Grün wie der Rest der Seite */
.admin-bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--b2);
  padding: .6rem 1.5rem;
  font-family: var(--fm);
  font-size: .72rem;
  color: var(--g);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-bar a { color: var(--g); }
.admin-bar a:hover { color: var(--g2); text-decoration: none; }

/* Admin-Tabellen: dunkel, lesbar */
.site-main table { width: 100%; border-collapse: collapse; font-size: .85rem; color: var(--t2); }
.site-main table thead tr { border-bottom: 1px solid var(--b2); }
.site-main table th { padding: .5rem .75rem; text-align: left; font-family: var(--fm); font-size: .62rem; color: var(--t-muted); letter-spacing: .1em; text-transform: uppercase; }
.site-main table td { padding: .5rem .75rem; border-bottom: 1px solid var(--b); color: var(--t2); }
.site-main table tbody tr:hover td { background: var(--bg4); }
.site-main table .btn { color: inherit; }

/* ===================== ASIDE ===================== */
.aside-box { background: var(--bg3); border: 1px solid var(--b); border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; }
.aside-title { padding: .65rem 1rem; border-bottom: 1px solid var(--b); font-family: var(--fm); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--t3); }
.aside-body { padding: .9rem; }
.aside-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--b); }
.aside-row:last-child { border-bottom: none; }
.aside-row-label { font-size: .8rem; color: var(--t2); flex: 1; }
.aside-row-val { font-family: var(--fm); font-size: .72rem; }

/* ===================== QUICK REF TABLE ===================== */
.qref-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--b); }
.qref-row:last-child { border-bottom: none; }
.qref-plant { width: 22px; text-align: center; }
.qref-name { font-size: .8rem; color: var(--t2); flex: 1; }

/* ===================== THEME TOGGLE ===================== */
.theme-toggle {
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--b2); border-radius: var(--r);
  background: var(--bg2); color: var(--t2); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--g3); color: var(--g); background: rgba(34,197,94,.08); }
.theme-icon-light { display: none; }
.theme-icon-dark { display: inline; }
html[data-theme="light"] .theme-icon-light { display: inline; }
html[data-theme="light"] .theme-icon-dark { display: none; }

/* ===================== LIGHT THEME ===================== */
html[data-theme="light"],
html[data-theme="light"] :root {
  --bg:   #f0fdf4; --bg2: #dcfce7; --bg3: #ecfdf5; --bg4: #d1fae5; --bg5: #bbf7d0;
  --g:    #15803d; --g2: #166534; --g3: #14532d; --g4: #052e16; --g-dim: #14532d;
  --t:    #052e16; --t2: #166534; --t3: #15803d; --t-muted: #4b7c59;
  --b:    #bbf7d0; --b2: #86efac; --border-green: rgba(21, 128, 61, 0.3);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --glow-green: 0 0 40px rgba(21, 128, 61, 0.06);
}
html[data-theme="light"] {
  background: #f0fdf4;
}
html[data-theme="light"] body {
  background: #f0fdf4; color: #052e16;
}
html[data-theme="light"] body::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%2315803d' fill-opacity='0.04' d='M60 10 Q85 35 80 65 Q75 95 60 110 Q45 95 40 65 Q35 35 60 10Z'/%3E%3Cpath fill='%2315803d' fill-opacity='0.03' d='M10 60 Q35 45 65 50 Q95 55 110 60 Q95 75 65 70 Q35 65 10 60Z'/%3E%3C/svg%3E") repeat,
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(21,128,61,.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(22,101,52,.04) 0%, transparent 50%);
}
html[data-theme="light"] .site-header {
  background: rgba(240,253,244,.95); border-bottom-color: #86efac; box-shadow: 0 1px 0 #86efac;
}
html[data-theme="light"] .header-search input,
html[data-theme="light"] .theme-toggle {
  background: #dcfce7; border-color: #86efac; color: #052e16;
}
html[data-theme="light"] .header-search input::placeholder { color: #4b7c59; }
html[data-theme="light"] .nav-btn { color: #166534; border-color: #86efac; }
html[data-theme="light"] .nav-btn:hover,
html[data-theme="light"] .nav-btn.act { background: rgba(21,128,61,.12); border-color: #14532d; color: #15803d; }
html[data-theme="light"] .user-btn { background: rgba(21,128,61,.1); border-color: rgba(21,128,61,.3); color: #15803d; }
html[data-theme="light"] .user-btn:hover { background: rgba(21,128,61,.18); }
html[data-theme="light"] .site-footer { background: #dcfce7; border-top-color: #86efac; }
html[data-theme="light"] .site-footer a { color: #4b7c59; }
html[data-theme="light"] .site-footer a:hover { color: #15803d; }
html[data-theme="light"] .logo .logo-leaf { color: #15803d; }
html[data-theme="light"] .logo-text { color: #15803d; }
html[data-theme="light"] .site-main,
html[data-theme="light"] .container { background: #f0fdf4; color: #052e16; }
html[data-theme="light"] .card,
html[data-theme="light"] .wiki-teaser-card,
html[data-theme="light"] .method-block,
html[data-theme="light"] .cat-card,
html[data-theme="light"] .aside-box { background: #ecfdf5; border-color: #86efac; color: #052e16; }
html[data-theme="light"] .sec-title,
html[data-theme="light"] .card-title,
html[data-theme="light"] .hero h1 { color: #052e16; }
html[data-theme="light"] .hero h1 em { color: #15803d; }
html[data-theme="light"] .hero-desc,
html[data-theme="light"] .sec-meta,
html[data-theme="light"] .stat-lbl { color: #166534; }
html[data-theme="light"] .stat-num { color: #15803d; }
html[data-theme="light"] .btn-primary,
html[data-theme="light"] a.btn-primary { background: #15803d; border-color: #15803d; color: #f0fdf4 !important; }
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] a.btn-primary:hover { background: #166534; border-color: #166534; color: #f0fdf4 !important; }
html[data-theme="light"] .btn-outline { border-color: #86efac; color: #166534; }
html[data-theme="light"] .btn-outline:hover { color: #15803d; border-color: #14532d; }
html[data-theme="light"] .btn-ghost { color: #4b7c59; }
html[data-theme="light"] .btn-ghost:hover { color: #052e16; }
html[data-theme="light"] .input,
html[data-theme="light"] .textarea,
html[data-theme="light"] .select { background: #dcfce7; border-color: #86efac; color: #052e16; }
html[data-theme="light"] .article-item,
html[data-theme="light"] .plant-card,
html[data-theme="light"] .hp-card { background: #ecfdf5; border-color: #86efac; color: #052e16; }
html[data-theme="light"] .ai-title,
html[data-theme="light"] .pc-name { color: #052e16; }
html[data-theme="light"] .ai-meta,
html[data-theme="light"] .pc-latin { color: #166534; }
html[data-theme="light"] a { color: #15803d; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #dcfce7; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #86efac; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #14532d; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1000px) {
  .wiki-layout, .forum-layout { grid-template-columns: 1fr; }
  .wiki-aside { display: none; }
  .db-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 2.5rem; }
  .stats-bar { gap: 1.5rem; }
  .plant-detail-header { flex-direction: column; text-align: center; }
  .header-nav .nav-btn:nth-child(n+4) { display: none; }
}
@media (max-width: 500px) {
  .auth-card { padding: 1.5rem; }
}
