/* ============================================================
   Gedichtesammlung.net v2 — Design System
   Warm & Elegant · Bootstrap 5 · Mobile-First
   ============================================================ */

/* Font Awesome font-display: swap (überschreibt CDN-Default) */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-solid-900.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-regular-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-brands-400.woff2') format('woff2');
}


:root {
  --bg:           #FAFAF8;
  --primary:      #C8860A;
  --primary-dark: #8B5A00;
  --primary-light:#FFF8E7;
  --primary-border:#E8C840;
  --text:         #2C2C2C;
  --text-muted:   #6B6B6B;
  --border:       #E8E0D0;
  --card:         #FFFFFF;
  --radius:       10px;
  --shadow:       0 2px 12px rgba(44,28,0,.08);
  --shadow-hover: 0 6px 24px rgba(44,28,0,.14);
  --nav-height:   64px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  line-height: 1.25;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* ── Navigation ─────────────────────────────────────────── */
.gdn-nav {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.gdn-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.gdn-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark) !important;
  white-space: nowrap;
}
.gdn-logo span { color: var(--primary); }
.gdn-nav .nav-link {
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 500;
  padding: .4rem .75rem !important;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.gdn-nav .nav-link:hover,
.gdn-nav .nav-link.active {
  background: var(--primary-light);
  color: var(--primary-dark) !important;
}
.gdn-nav .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
  min-width: 200px;
}
.gdn-nav .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.gdn-search-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .15s;
}
.gdn-search-btn:hover { border-color: var(--primary); color: var(--primary); }
.navbar-toggler { border: 1px solid var(--border); }

/* ── Hero ────────────────────────────────────────────────── */
.gdn-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff8e1 50%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 36px;
  text-align: center;
}
.gdn-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.gdn-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.gdn-hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
}
.gdn-hero-search input {
  flex: 1;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
  background: #fff;
}
.gdn-hero-search input:focus { border-color: var(--primary); }
.gdn-hero-search button {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.gdn-hero-search button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ── Stats Bar ───────────────────────────────────────────── */
.gdn-stats {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.gdn-stat-item {
  text-align: center;
  padding: 4px 0;
}
.gdn-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}
.gdn-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}
.gdn-stat-divider {
  border-left: 1px solid var(--border);
}

/* ── Occasion Tiles ─────────────────────────────────────── */
.gdn-occasions {
  padding: 32px 0 16px;
}
.gdn-occasion-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  gap: 8px;
}
.gdn-occasion-tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--primary-dark);
}
.gdn-occasion-tile i {
  font-size: 1.4rem;
  color: var(--primary);
}

/* ── Section Title ───────────────────────────────────────── */
.gdn-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* ── Gedicht des Tages ───────────────────────────────────── */
.gdn-poem-day {
  background: linear-gradient(135deg, #fffbf0, #fff8e1);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
}
.gdn-poem-day-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gdn-poem-day h2 {
  font-size: 1.35rem;
  margin: 0 0 6px;
}
.gdn-poem-day-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.gdn-poem-day-teaser {
  font-style: italic;
  color: #555;
  margin-bottom: 14px;
  font-size: 14px;
}
.btn-primary-gdn {
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.btn-primary-gdn:hover { background: var(--primary-dark); }

/* ── Poem Cards ──────────────────────────────────────────── */
.gdn-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.gdn-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.gdn-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-top: 4px solid var(--primary);
}
.gdn-card-img-placeholder {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-border) 100%);
}
.gdn-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gdn-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.gdn-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.gdn-card-title a { color: var(--text); }
.gdn-card-title a:hover { color: var(--primary-dark); }
.gdn-card-teaser {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gdn-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  background: #fafaf8;
}
.gdn-card-author { display: flex; align-items: center; gap: 6px; }
.gdn-card-author img {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.gdn-card-meta { display: flex; gap: 10px; align-items: center; }
.gdn-card-meta span { display: flex; align-items: center; gap: 3px; }

/* ── Sidebar Widgets ─────────────────────────────────────── */
.gdn-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.gdn-widget-header {
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gdn-widget-body { padding: 12px 16px; }
.gdn-widget-list { list-style: none; margin: 0; padding: 0; }
.gdn-widget-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gdn-widget-list li:last-child { border-bottom: none; }
.gdn-widget-list a { color: var(--text); font-weight: 500; }
.gdn-widget-list a:hover { color: var(--primary-dark); }
.gdn-sb-thumb {
  width: 34px; height: 34px;
  min-width: 34px; max-width: 34px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.gdn-sb-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gdn-sb-title:hover { color: var(--primary-dark); }
.gdn-badge {
  font-size: 11px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  padding: 1px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Load More ───────────────────────────────────────────── */
.gdn-load-more {
  text-align: center;
  margin: 32px 0;
}
.btn-load-more {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 8px;
  padding: 10px 32px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-load-more:hover { background: var(--primary); color: #fff; }

/* ── Navigation Arrows ───────────────────────────────────── */
.gdn-poem-nav {
  display: flex;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-light);
}
.gdn-poem-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
  min-width: 0;
}
.gdn-poem-nav a:hover { background: #fff8d6; }
.gdn-poem-nav a + a { border-left: 1px solid var(--primary-border); justify-content: flex-end; text-align: right; }
.gdn-poem-nav span + a { justify-content: flex-end; text-align: right; }
.gdn-poem-nav-label { font-size: 10px; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; display: block; }
.gdn-poem-nav-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.gdn-poem-nav i { color: var(--primary); flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.gdn-footer {
  background: #2C2C2C;
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 48px;
}
.gdn-footer h5, .gdn-footer-heading {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}
.gdn-footer a { color: #bbb; font-size: 13px; }
.gdn-footer a:hover { color: var(--primary); }
.gdn-footer ul { list-style: none; padding: 0; margin: 0; }
.gdn-footer ul li { margin-bottom: 6px; font-size: 13px; }
.gdn-footer-bottom {
  border-top: 1px solid #444;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.gdn-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
  display: block;
}
.gdn-footer-logo span { color: var(--primary); }

/* ── Utilities ───────────────────────────────────────────── */
.text-primary-gdn { color: var(--primary) !important; }
.bg-primary-gdn { background: var(--primary) !important; }
.border-primary-gdn { border-color: var(--primary) !important; }
.section-gap { padding: 32px 0; }

/* ── Bootstrap 5 overrides ───────────────────────────────── */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary-dark) !important;
  color: #fff !important;
}
.btn-primary:hover { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(200,134,10,.2); }
.form-group { margin-bottom: .75rem; }
.checkbox label { font-size: 13px; color: var(--text-muted); }

/* ── Legacy widget compat (old HTML included from functions/) ── */
.avatar { float: left; margin: 2px 8px 0 0; line-height: 1; }
.avatar img { border-radius: 4px; }
.article-content { overflow: hidden; line-height: 30px; font-size: 13px; }
.article-content a { color: var(--text); }
.article-content a:hover { color: var(--primary-dark); }
.trennlinie_small { border: none; border-top: 1px solid var(--border); margin: 4px 0; clear: both; }
.msg_red { color: #c0392b; font-size: 13px; margin-top: 8px; }

/* ── Tag cloud (Schlagwortwolke widget) ─────────────────── */
.gdn-widget-body span a { color: var(--text-muted); text-decoration: none; line-height: 1.8; }
.gdn-widget-body span a:hover { color: var(--primary-dark); }
.gdn-widget-body .x-small  { font-size: 11px; }
.gdn-widget-body .small    { font-size: 13px; }
.gdn-widget-body .smallmedium { font-size: 14px; }
.gdn-widget-body .medium   { font-size: 16px; font-weight: 500; }
.gdn-widget-body .big      { font-size: 19px; font-weight: 700; color: var(--primary-dark); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .gdn-hero { padding: 28px 0 24px; }
  .gdn-hero h1 { font-size: 1.6rem; }
  .gdn-stat-divider { border-left: none; border-top: 1px solid var(--border); }
  .gdn-poem-day { padding: 16px; }
  .gdn-occasions .col { min-width: 33%; }
}
@media (max-width: 480px) {
  .gdn-occasions .col { min-width: 50%; }
  .gdn-card-img { height: 120px; }
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.gdn-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
}
.gdn-breadcrumb a { color: var(--text-muted); }
.gdn-breadcrumb a:hover { color: var(--primary-dark); }

/* ── Author Profile ──────────────────────────────────────── */
.gdn-autor-header {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* Bootstrap 5 nav-tabs — match site palette */
.nav-tabs .nav-link {
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 14px;
  padding: .5rem 1rem;
  border: 1px solid transparent;
  background: none;
  transition: color .15s, background .15s;
}
.nav-tabs .nav-link.active {
  background: #fff;
  border-color: var(--border) var(--border) #fff;
}
.nav-tabs .nav-link:not(.active):hover {
  background: var(--primary-light);
  border-color: var(--border) var(--border) transparent;
}

/* ── Compatibility: msg classes from root function files ── */
.msg_red   { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; border-radius:6px; padding:10px 14px; margin:10px 0; }
.msg_green { background:#d4edda; color:#155724; border:1px solid #c3e6cb; border-radius:6px; padding:10px 14px; margin:10px 0; }
.msg_orange{ background:#fff3cd; color:#856404; border:1px solid #ffecb5; border-radius:6px; padding:10px 14px; margin:10px 0; }
.msg_red i, .msg_green i, .msg_orange i { margin-right:6px; }

/* ── Autoren-Verzeichnis ── */
.gdn-autor-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:16px; transition:box-shadow .15s; }
.gdn-autor-card:hover { box-shadow:0 2px 8px rgba(0,0,0,.08); }
.gdn-autor-avatar { width:56px; height:56px; border-radius:50%; object-fit:cover; border:2px solid var(--border); flex-shrink:0; }

/* ── Edit Profil Tabs ── */
.gdn-settings-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:24px; }

/* ── Publish ── */
.gdn-publish-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:24px; }

/* ── FAQ Accordion ── */
.accordion-button:not(.collapsed) { background:var(--primary-light); color:var(--primary-dark); box-shadow:none; }
.accordion-button:focus { box-shadow:0 0 0 .2rem rgba(200,134,10,.25); }
.accordion-button::after { filter: brightness(0.5) sepia(1) hue-rotate(5deg); }

/* ── Root-compatibility classes ── */
.article-title { font-family:'Playfair Display',Georgia,serif; font-size:1.5rem; font-weight:700; color:var(--primary-dark); margin-bottom:16px; }
.article-content { font-size:14px; line-height:1.8; }
.normalueberschriftrot { color:var(--primary-dark); font-weight:600; }
.kleinnormal { font-size:13px; }
.green-alert { color:#155724; }
.orange-alert { color:#856404; }

/* ── Preview Banner ── */
.gdn-preview-banner { background:var(--primary); color:#fff; text-align:center; padding:8px; font-weight:600; letter-spacing:.5px; font-size:14px; }

/* ══ Dark Mode ══════════════════════════════════════════════ */
html.gdn-dark {
  --bg:           #18160F;
  --primary:      #D4930C;
  --primary-dark: #F0A820;
  --primary-light:#2A2010;
  --primary-border:#6B4800;
  --text:         #E8E0CC;
  --text-muted:   #9A9080;
  --border:       #38321E;
  --card:         #201E14;
  --shadow:       0 2px 12px rgba(0,0,0,.5);
  --shadow-hover: 0 6px 24px rgba(0,0,0,.7);
}
html.gdn-dark body          { background:var(--bg); color:var(--text); }
html.gdn-dark .gdn-nav      { background:#1C1A12; border-bottom-color:var(--primary); }
html.gdn-dark .gdn-nav .gdn-logo span,
html.gdn-dark .nav-link     { color:var(--text); }
html.gdn-dark .gdn-offcanvas { background:#1C1A12; }
html.gdn-dark .gdn-widget,
html.gdn-dark .gdn-poem-card,
html.gdn-dark .gdn-autor-card { background:var(--card); border-color:var(--border); }
html.gdn-dark .gdn-widget-header { background:var(--primary-light); color:var(--primary-dark); border-color:var(--border); }
html.gdn-dark .form-control,
html.gdn-dark .form-select  { background:#26231A; color:var(--text); border-color:var(--border); }
html.gdn-dark .form-control:focus,
html.gdn-dark .form-select:focus { background:#2E2A1E; border-color:var(--primary); box-shadow:0 0 0 .2rem rgba(200,134,10,.25); }
html.gdn-dark .btn-outline-secondary { color:var(--text-muted); border-color:var(--border); }
html.gdn-dark .card         { background:var(--card); border-color:var(--border); }
html.gdn-dark .alert-info   { background:#1E2A20; border-color:#2A4A30; color:#90C090; }
html.gdn-dark .alert-warning { background:#2A2010; border-color:#4A3810; color:#D4A030; }
html.gdn-dark .alert-danger  { background:#2A1010; border-color:#4A1818; color:#D08080; }
html.gdn-dark .alert-success { background:#102010; border-color:#183018; color:#80C080; }
html.gdn-dark .accordion-button { background:var(--card); color:var(--text); }
html.gdn-dark .accordion-button:not(.collapsed) { background:var(--primary-light); color:var(--primary-dark); }
html.gdn-dark .accordion-body  { background:var(--card); }
html.gdn-dark .pagination .page-link { background:var(--card); border-color:var(--border); color:var(--primary-dark); }
html.gdn-dark table         { color:var(--text); }
html.gdn-dark hr            { border-color:var(--border); }
html.gdn-dark blockquote    { border-left-color:var(--primary); background:var(--primary-light); }
html.gdn-dark .gdn-breadcrumb { color:var(--text-muted); }
html.gdn-dark .gdn-footer   { background:#14120C; border-top-color:var(--border); }

/* Hero */
html.gdn-dark .gdn-hero { background:linear-gradient(135deg, #2A2010 0%, #1E1A0C 50%, #18160F 100%); }
html.gdn-dark .gdn-hero-search input { background:#26231A; color:var(--text); }

/* Stats Bar */
html.gdn-dark .gdn-stats { background:var(--card); }

/* Occasion Tiles */
html.gdn-dark .gdn-occasion-tile { background:var(--card); border-color:var(--border); }
html.gdn-dark .gdn-occasion-tile:hover { background:var(--primary-light); }

/* Gedicht des Tages */
html.gdn-dark .gdn-poem-day { background:var(--card); border-color:var(--border); }

/* Poem Cards */
html.gdn-dark .gdn-poem-card { background:var(--card); }
html.gdn-dark .gdn-card-body { background:var(--card); }

/* Profil inline-Hintergründe (draft #fffbf0) */
html.gdn-dark [style*="background:#fffbf0"] { background:var(--primary-light) !important; }

/* Bootstrap Dropdown */
html.gdn-dark .dropdown-menu { background:#1C1A12; border-color:var(--border); box-shadow:0 4px 16px rgba(0,0,0,.6); }
html.gdn-dark .dropdown-item { color:var(--text); }
html.gdn-dark .dropdown-item:hover,
html.gdn-dark .dropdown-item:focus { background:var(--primary-light); color:var(--primary-dark); }
html.gdn-dark .dropdown-divider { border-color:var(--border); }

/* Inputs (auch ohne .form-control Klasse) */
html.gdn-dark input[type="text"],
html.gdn-dark input[type="email"],
html.gdn-dark input[type="password"],
html.gdn-dark input[type="search"],
html.gdn-dark input[type="number"],
html.gdn-dark textarea,
html.gdn-dark select { background:#26231A; color:var(--text); border-color:var(--border); }
html.gdn-dark input::placeholder,
html.gdn-dark textarea::placeholder { color:var(--text-muted); }

/* Weiße Hintergründe in Karten/Divs */
html.gdn-dark [style*="background:#fff"],
html.gdn-dark [style*="background: #fff"],
html.gdn-dark [style*="background:#ffffff"],
html.gdn-dark [style*="background: #ffffff"],
html.gdn-dark [style*="background:white"],
html.gdn-dark [style*="background: white"] { background:var(--card) !important; }

/* Bootstrap Modal */
html.gdn-dark .modal-content { background:var(--card); border-color:var(--border); color:var(--text); }
html.gdn-dark .modal-header,
html.gdn-dark .modal-footer  { border-color:var(--border); }

/* Bootstrap Badge / Pills */
html.gdn-dark .badge.bg-light { background:var(--primary-light) !important; color:var(--primary-dark) !important; }

/* Profil Stat-Cards */
html.gdn-dark .gdn-stat-card { background:var(--card); border-color:var(--border); }
html.gdn-dark .gdn-stat-card .gdn-stat-num { color:var(--primary-dark); }

/* Navigation Login-Bereich im Offcanvas */
html.gdn-dark .offcanvas,
html.gdn-dark .offcanvas-body { background:#1C1A12; color:var(--text); }

/* Tabellen */
html.gdn-dark .table { color:var(--text); border-color:var(--border); }
html.gdn-dark .table-striped>tbody>tr:nth-of-type(odd)>* { background:rgba(255,255,255,.03); }

/* Inline-Stile mit weißem Hintergrund in Feed/Kommentaren */
html.gdn-dark .gdn-comment-block,
html.gdn-dark .gdn-reply-block { background:var(--card) !important; border-color:var(--border) !important; }

/* Autor-Header Box */
html.gdn-dark .gdn-autor-header { background:var(--card); }

/* Comment Login Box */
html.gdn-dark .gdn-comment-form-wrap { background:var(--card); border-color:var(--border); }

/* Gedichttext — Inline-Farben (#555, #333 etc.) aus altem Editor überschreiben */
html.gdn-dark .gdn-poem-content,
html.gdn-dark .gdn-poem-content p,
html.gdn-dark .gdn-poem-content span,
html.gdn-dark .gdn-poem-content font,
html.gdn-dark .gdn-poem-content i,
html.gdn-dark .gdn-poem-content em,
html.gdn-dark .gdn-poem-content div { color:var(--text) !important; }

/* Gedicht des Tages Teaser */
html.gdn-dark .gdn-poem-day-teaser { color:var(--text-muted); }

/* Input-Gruppen */
html.gdn-dark .input-group-text { background:#26231A; color:var(--text-muted); border-color:var(--border); }

/* Dark Mode Toggle Button */
.gdn-dm-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: border-color .2s, color .2s;
}
.gdn-dm-toggle:hover { border-color:var(--primary); color:var(--primary); }
