/* ============================================================
   Galaxy Roleplay - Makeover im Stil von forum.opinsel.net
   (NamelessMC "Cobalt"-Look: dunkles #101010, Akzent Teal)
   ============================================================ */

/* --- Design-Tokens ueberschreiben (laden spaeter, gewinnt) --- */
:root {
  --bg: #101010;
  --bg-white: #171717;
  --bg-hover: #1f1f1f;
  --bg-active: #222222;
  --border: #262626;
  --border-light: #1e1e1e;
  --text: #ececec;
  --text-secondary: #c4c4c4;
  --text-muted: #8a8a8a;
  --accent: #1684A2;
  --accent-hover: #1a9ac2;
  --accent-light: rgba(22, 132, 162, 0.12);
  --accent-ring: rgba(22, 132, 162, 0.35);
  --brand-violet: #1684A2;
  --brand-violet-deep: #0e5f77;
  --brand-gold: #f0af31;
  --brand-gold-deep: #b45309;
  --brand-space: #101010;
  --radius: 6px;
  --radius-sm: 6px;
}

/* --- Grundflaeche: dunkel statt Foto --- */
body {
  background: var(--bg) !important;
  background-image: none !important;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* --- Slim Navbar (Cobalt-Stil) --- */
.navbar { background: #0d0d0d; border-bottom: 1px solid var(--border); padding: 0; }
.navbar::after { display: none; }
.nav-container { max-width: 1200px; }
.nav-logo { color: var(--text); font-weight: 800; font-size: 1.02rem; }
.nav-center { display: none; }
.nav-links { flex: 1; justify-content: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 16px; margin: 0;
  color: var(--text-secondary); font-size: 0.86rem; font-weight: 500;
  border-bottom: 2px solid transparent;
  background: transparent;
}
.nav-link:hover { color: var(--text); border-bottom-color: var(--accent); background: transparent; }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); background: transparent; }
.gx-nav-store { background: transparent; color: var(--text-secondary); }
.gx-nav-more-btn { color: var(--text-secondary); }
.btn-nav-login {
  background: var(--accent); border-color: var(--accent); color: #fff;
  border-radius: 6px; box-shadow: 0 0 14px rgba(22, 132, 162, 0.35);
}
.btn-nav-login:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* --- Header (wie OpInsel: Status | Logo | Discord am unteren Rand) --- */
.gx-hero { margin: 0 0 26px; }
.gx-hero-band {
  position: relative;
  width: 100%;
  min-height: 340px;
  height: min(475px, 46vw);
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1100px 420px at 50% -90px, rgba(22, 132, 162, 0.28), transparent 70%),
    radial-gradient(900px 320px at 12% 110%, rgba(22, 132, 162, 0.10), transparent 60%),
    radial-gradient(700px 320px at 88% 110%, rgba(22, 132, 162, 0.10), transparent 60%),
    linear-gradient(180deg, #15222b 0%, #101010 100%);
}
.gx-banner-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
  background-image: linear-gradient(180deg, #1b2a33 0%, #101010 100%);
  background-size: cover; background-position: center top; background-repeat: no-repeat;
}
.gx-ext .gx-banner-bg { background-image: url('https://i.imgur.com/61FACtZ.jpeg'); }
.gx-banner-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.10) 40%, rgba(16, 16, 16, 0.72) 100%);
  pointer-events: none;
}
.gx-hero-top {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 24px 34px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px;
}
.gx-hero-side {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 0;
  backdrop-filter: blur(3px);
}
.gx-hero-right { flex-direction: row-reverse; text-align: right; }
.gx-side-text { display: flex; flex-direction: column; gap: 3px; }
.gx-side-text-right { align-items: flex-end; }
.gx-side-value {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text);
}
.gx-side-ip {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 0.78rem; color: var(--accent);
  background: none; border: none; padding: 0;
}
.gx-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; animation: mcPulse 2.2s infinite; }
.gx-play-btn, .gx-discord-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.gx-play-btn { background: var(--accent); box-shadow: 0 0 0 4px rgba(22, 132, 162, 0.18); }
.gx-discord-btn { background: var(--accent); box-shadow: 0 0 0 4px rgba(22, 132, 162, 0.18); }
.gx-play-btn:hover, .gx-discord-btn:hover { background: var(--accent-hover); transform: scale(1.05); }
.gx-hero-logo { min-width: 0; text-align: center; }
.gx-kicker {
  margin: 0 0 8px; text-align: center;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.gx-logo-wrap { width: 100%; max-width: 520px; min-width: 0; margin: 0 auto; }
.gx-logo-img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 14px 30px rgba(22, 132, 162, 0.45));
  animation: logoFloat 4.5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .gx-logo-img { animation: none; }
}

/* --- Willkommen + Store (Welcome-Card + Store-Box) --- */
.gx-welcome-row { max-width: 1200px; margin: 22px auto 0; padding: 0 20px; display: flex; gap: 16px; flex-wrap: wrap; }
.gx-quick-actions { max-width: 1200px; margin: 16px auto 0; padding: 0 20px; display: flex; align-items: center; gap: 14px; }
.gx-welcome-card {
  flex: 3 1 320px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #171717; border: 1px solid var(--border); border-radius: 12px; padding: 18px 24px;
}
.gx-welcome-avatar { border-radius: 10px; border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(22, 132, 162, 0.15); flex-shrink: 0; }
.gx-welcome-text { flex: 1 1 180px; }
.gx-welcome-text h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--text); }
.gx-welcome-text p { margin: 0; font-size: 0.86rem; color: var(--text-secondary); }
.gx-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.gx-store-card {
  flex: 1 1 210px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(135deg, rgba(22, 132, 162, 0.85), rgba(14, 95, 119, 0.85));
  border: 3px solid var(--accent); border-radius: 12px; padding: 18px 24px; color: #fff;
  box-shadow: 0 0 18px rgba(22, 132, 162, 0.5);
}
.gx-store-card:hover { color: #fff; box-shadow: 0 0 26px rgba(22, 132, 162, 0.7); transform: translateY(-2px); }
.gx-store-title { font-weight: 900; font-size: 1.3rem; letter-spacing: 0.04em; }
.gx-store-sub { font-size: 0.8rem; opacity: 0.9; }
.gx-store-icon { opacity: 0.8; }
.gx-quick-actions #btnNewTopicHome { display: none; }
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff;
  border-radius: 6px; box-shadow: 0 4px 14px rgba(22, 132, 162, 0.3);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-secondary); border-radius: 6px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* --- Stats-Bar ausblenden (Infos liefert die Sidebar) --- */
.stats-bar { display: none; }

/* --- Forum: Hauptspalte links, Widgets rechts --- */
.forum-main { padding: 0 0 40px; }
.forum-layout {
  max-width: 1200px; margin: 26px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 280px; gap: 22px;
}
.forum-layout > .forum-content { order: 1; }
.forum-layout > .sidebar { order: 2; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-section { background: #151515; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.sidebar-title {
  display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 12px 16px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); border-bottom: 1px solid var(--border);
}
.sidebar-title svg { color: var(--accent); opacity: 0.8; }
.sidebar-empty { color: var(--text-muted); font-size: 0.85rem; }

/* --- Section Header (Breadcrumb-artig) --- */
.section-header { margin-bottom: 14px; }
.section-header h2 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; color: var(--text); }
.section-header h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.section-header h2 svg { display: none; }

/* --- Kategorien: Forum-Zeilen statt Kacheln --- */
.categories-grid { display: flex; flex-direction: column; background: #151515; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.category-card {
  display: grid; grid-template-columns: 46px 1fr 150px 1.2fr; align-items: center; gap: 14px;
  padding: 14px 18px; background: transparent; border: none; border-bottom: 1px solid var(--border);
  border-radius: 0; color: var(--text); text-decoration: none;
  transition: background 0.15s ease;
}
.category-card:last-child { border-bottom: none; }
.category-card:hover { background: #1b1b1b; }
.category-card-icon { width: 38px; height: 38px; border-radius: 8px; background: #1d2326 !important; color: var(--accent) !important; }
.category-card-info { min-width: 0; }
.category-card-info h3 { margin: 0 0 2px; font-size: 0.98rem; font-weight: 600; color: var(--text); }
.category-card-info p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.category-card-stats { display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; color: var(--text-muted); text-align: right; }
.category-card-stats strong { color: var(--text); font-weight: 600; }
.category-card-latest { min-width: 0; border-left: 1px solid var(--border); padding-left: 14px; }
.latest-info { display: flex; flex-direction: column; gap: 2px; }
.latest-title { font-size: 0.85rem; color: var(--text-secondary); }
.latest-time { font-size: 0.76rem; color: var(--text-muted); }

/* --- Letzte Aktivitaeten --- */
.recent-topics { background: #151515; border: 1px solid var(--border); border-radius: 8px; padding: 18px; }
.empty-state { text-align: center; padding: 26px 10px; color: var(--text-muted); }
.empty-title { font-size: 1rem; color: var(--text); font-weight: 600; }
.empty-text { font-size: 0.85rem; }

/* --- Discord-CTA ausblenden (passt nicht zum Forum-Look) --- */
.mc-discord { display: none; }

/* --- Footer (f-large + f-small) --- */
.gx-footer { max-width: none; margin: 46px 0 0; padding: 0; background: #141414; border-top: 1px solid var(--border); }
.gx-footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 44px 20px 30px; }
.gx-footer-col h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--text); }
.gx-footer-underline { width: 26px; height: 3px; border-radius: 2px; background: var(--accent); display: inline-block; }
.gx-footer-col p { margin: 0 0 14px; font-size: 0.86rem; color: var(--text-secondary); }
.gx-footer-col a { display: block; font-size: 0.86rem; color: var(--text-secondary); margin-bottom: 8px; }
.gx-footer-col a:hover { color: var(--accent); }
.gx-footer-ip-btn, .gx-footer-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent);
  color: var(--accent); background: transparent; border-radius: 6px; padding: 9px 16px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.gx-footer-ip-btn:hover, .gx-footer-btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.gx-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #101010; padding: 16px 20px;
  border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted);
}
.gx-footer-bottom .footer-left { display: flex; align-items: center; gap: 8px; }
.gx-footer-disclaimer { color: #6f6f6f; }
.sync-status { font-size: 0.76rem; display: inline-flex; align-items: center; gap: 6px; }
.sync-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8a8a8a; }
.sync-status.ok { color: var(--accent); }
.sync-status.ok::before { background: #34d399; }
.sync-status.off { color: #f0af31; }
.sync-status.off::before { background: #f0af31; }

/* --- Responsive (Tablet + Handy) --- */
@media (max-width: 900px) {
  .forum-layout { grid-template-columns: 1fr; }
  .gx-hero-band { height: auto; min-height: 0; }
  .gx-hero-top { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 40px 16px 24px; }
  .gx-hero-side { width: min(340px, 88vw); }
  .category-card { grid-template-columns: 40px 1fr; }
  .category-card-stats { grid-column: 2; text-align: left; }
  .category-card-latest { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--border); padding: 10px 0 0; }
  /* Navbar: zwei Zeilen statt Ueberlauf */
  .nav-container { height: auto; flex-wrap: wrap; padding: 8px 16px; gap: 6px 18px; }
  .nav-logo { margin-right: auto; }
  .nav-center { display: none; }
  .nav-links { flex: 1 1 100%; order: 3; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .nav-links { gap: 2px; }
  .nav-link { padding: 10px 9px; font-size: 0.78rem; }
  .btn-nav-login { padding: 9px 12px; font-size: 0.78rem; }
  .gx-welcome-row, .gx-quick-actions, .forum-layout { padding: 0 16px; }
  .gx-play-btn, .gx-discord-btn { width: 38px; height: 38px; }
  .gx-welcome-card { padding: 16px 18px; min-width: 0; flex-basis: 100%; }
  .gx-store-card { flex-basis: 100%; }
  .gx-hero-logo { max-width: 92vw; }
  .gx-footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 20px 24px; }
  .gx-footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal-overlay { padding: 10px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav-link { padding: 10px 7px; font-size: 0.74rem; }
  .nav-links { justify-content: space-between; }
  .gx-logo-wrap { max-width: 100%; }
  .gx-kicker { font-size: 0.66rem; }
  .gx-welcome-actions .btn { padding: 8px 12px; font-size: 0.8rem; }
}

/* ============================================================
   Kategorie-Seite (dunkel)
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.category-header {
  display: flex; align-items: center; gap: 16px;
  background: #151515; border: 1px solid var(--border); border-radius: 8px;
  padding: 18px; margin-bottom: 20px;
}
.category-header-icon {
  background: #1d2326 !important; color: var(--accent) !important;
  width: 54px; height: 54px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.category-header-info h1 { color: var(--text); font-size: 1.3rem; margin: 0 0 2px; }
.category-header-info p { color: var(--text-secondary); font-size: 0.87rem; margin: 0; }
.perm-note { color: var(--brand-gold); }

.thread-list-header {
  display: grid;
  grid-template-columns: 32px 1fr 90px 80px 160px;
  gap: 12px; padding: 10px 16px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted);
  background: #151515; border: 1px solid var(--border); border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.thread-list-header span:nth-child(4), .thread-list-header span:nth-child(5) { text-align: right; }

.thread-list { background: #171717; border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; }

.thread-row {
  display: grid;
  grid-template-columns: 32px 1fr 90px 80px 90px 160px;
  gap: 12px; align-items: center;
  padding: 12px 16px;
  background: transparent; border-bottom: 1px solid var(--border-light);
}
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: #1b1b1b; }
.thread-pinned { background: #2a2110 !important; }
.thread-pinned:hover { background: #342813 !important; }

.thread-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.thread-title { color: var(--text); font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 4px; }
.thread-title:hover { color: var(--accent); }
.thread-meta { font-size: 0.78rem; color: var(--text-muted); }
.thread-replies { text-align: center; font-size: 0.85rem; color: var(--text-secondary); }
.thread-replies strong { color: var(--text); }
.thread-views, .thread-comment { text-align: center; font-size: 0.85rem; color: var(--text-secondary); }
.topic-comment-link { color: var(--text-muted); font-size: 0.8rem; }
.topic-comment-link:hover { color: var(--accent); }
.thread-last-post { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.lp-name { color: var(--text-secondary); font-size: 0.8rem; display: block; }
.lp-time { color: var(--text-muted); font-size: 0.72rem; }

.stat-row, .stats-list { color: var(--text-secondary); font-size: 0.85rem; }
.stat-row { display: flex; align-items: center; gap: 8px; padding: 8px 16px; }
.stat-row svg { color: var(--accent); }

/* ============================================================
   Thema-Seite (dunkel)
   ============================================================ */
.thread-header {
  background: #151515; border: 1px solid var(--border); border-radius: 8px;
  padding: 18px; margin-bottom: 20px;
}
.thread-header h1 { color: var(--text); font-size: 1.3rem; margin: 0 0 8px; }
.thread-header-meta, .thread-header-meta .topic-sep { color: var(--text-muted); font-size: 0.83rem; }

.posts-container {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin-bottom: 20px;
}
.post { display: flex; gap: 0; background: #171717; }
.post-sidebar {
  width: 160px; padding: 20px 16px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #151515; border-right: 1px solid var(--border-light);
}
.post-username { color: var(--text); font-weight: 700; font-size: 0.9rem; }
.post-content { flex: 1; min-width: 0; padding: 20px; }
.post-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.post-author { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.post-date { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }
.post-body { font-size: 0.9rem; line-height: 1.7; color: var(--text); }
.post-action { background: none; color: var(--text-muted); }
.post-action:hover { background: #1b1b1b; color: var(--text-secondary); }
.post-action.liked { color: var(--accent); background: var(--accent-light); }

.participant { font-size: 0.85rem; color: var(--text-secondary); }

.reply-notice {
  background: #2a2110; border: 1px solid #574110; color: var(--brand-gold);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
}
.reply-notice-text { font-size: 0.85rem; }

.reply-box { background: #171717; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.reply-header { padding: 14px 20px; border-bottom: 1px solid var(--border-light); color: var(--text); font-weight: 700; }
.reply-header svg { color: var(--text-muted); }
.reply-editor textarea {
  display: block; width: 100%; min-height: 120px;
  border: none; padding: 16px 20px;
  background: #171717; color: var(--text);
  font-family: inherit; font-size: 0.9rem; line-height: 1.6;
  resize: vertical; outline: none;
}
.reply-editor textarea::placeholder { color: var(--text-muted); }
.reply-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-top: 1px solid var(--border-light);
  background: #151515;
}
.toolbar-left { display: flex; gap: 2px; }
.toolbar-btn { background: none; color: var(--text-muted); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.toolbar-btn:hover { background: #1f1f1f; color: var(--text); }
.attach-preview img { border-radius: 6px; border: 1px solid var(--border); }

.sidebar-cat { color: var(--text-secondary); }
.sidebar-cat:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-cat.active { background: var(--accent-light); color: var(--accent); }

/* --- Mobile: Kategorie + Thema --- */
@media (max-width: 900px) {
  .thread-list-header { display: none; }
  .thread-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .thread-views, .thread-comment, .thread-last-post { display: none; }
  .post { flex-direction: column; }
  .post-sidebar {
    width: 100%; flex-direction: row; padding: 12px 16px;
    border-right: none; border-bottom: 1px solid var(--border-light);
  }
  .category-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .category-header { padding: 14px; }
  .category-header-icon { width: 46px; height: 46px; }
  .breadcrumb { font-size: 0.78rem; }
  .reply-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .toolbar-left { flex-wrap: wrap; }
  .reply-header, .reply-editor textarea { padding: 12px 14px; }
  .post-content, .post-sidebar { padding: 12px 14px; }
  .thread-header { padding: 14px; }
}

/* ============================================================
   Discord Widget (Sidebar) - Design 2026m
   ============================================================ */
.discord-widget { overflow: hidden; padding: 0; }
.dw { display: flex; flex-direction: column; animation: dwAppear 0.5s ease both; }
@keyframes dwAppear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dw-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(22, 132, 162, 0.10), transparent 72%);
  border-bottom: 1px solid var(--border);
}
.dw-brand {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center; background: #0d0d0d;
}
.dw-brand img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dw-head-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dw-name {
  display: block; font-size: 0.92rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.dw-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; color: var(--text-muted); font-weight: 500;
}
.dw-live i {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
  animation: dwPulse 2.2s ease-in-out infinite;
}
.dw-live.off i { background: var(--text-muted); animation: none; box-shadow: none; }
@keyframes dwPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

/* Anwesenheits-Uebersicht (Chunks) */
.dw-stats { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.dw-stat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 600; color: var(--text-secondary);
  background: #151515; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 8px;
}
.dw-stat i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.dw-body { padding: 10px 16px 4px; }

/* Avatar-Leiste */
.dw-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dw-chip {
  position: relative; width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid #1a1a1a;
  cursor: default;
  animation: dwFade 0.4s ease both;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.dw-chip:hover { transform: translateY(-3px); border-color: var(--accent); }
.dw-chip img, .dw-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #24262c; }
.dw-chip > span, .dw-ava > span {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%;
  color: #fff; font-size: 0.68rem; font-weight: 700;
}
.dw-chip > i, .dw-ava > i {
  position: absolute; right: -3px; bottom: -3px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid #151515;
}
@keyframes dwFade { from { opacity: 0; } to { opacity: 1; } }

/* Mitgliederliste */
.dw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dw-row {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 6px 8px; border-radius: 8px;
  color: var(--text);
  animation: dwSlide 0.3s ease both;
  transition: background 0.15s ease;
}
@keyframes dwSlide { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.dw-row:hover { background: var(--bg-hover); }
.dw-ava {
  position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid #1a1a1a;
}
.dw-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.dw-info b {
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.dw-sub {
  font-size: 0.7rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dw-state { flex-shrink: 0; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; }
.dw-more { padding: 6px 8px 2px; font-size: 0.75rem; color: var(--text-muted); }
.dw-botnote { display: block; padding: 6px 8px 2px; font-size: 0.7rem; color: var(--brand-gold); }
.dw-empty {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 8px; font-size: 0.8rem; color: var(--text-muted);
}
.dw-empty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }

/* Beitreten-Button */
.dw-join {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 8px 16px 14px; padding: 10px 14px;
  background: #5865f2; color: #fff; font-weight: 700; font-size: 0.85rem;
  border: none; border-radius: 8px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.dw-join svg { flex-shrink: 0; }
.dw-join span { flex: 1; text-align: center; }
.dw-join:hover { background: #4752c4; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(88, 101, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15); }

/* Ladezustand */
.discord-widget-loading { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 16px; font-size: 0.85rem; color: var(--text-muted); }
.discord-widget-loading-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(22, 132, 162, 0.3); border-top-color: var(--accent);
  animation: discordWidgetSpin 0.8s linear infinite;
}
@keyframes discordWidgetSpin { to { transform: rotate(360deg); } }

/* ============================================================
   FULL DARK 2026
   Alles so dunkel wie moeglich, Schrift weiss. Beseitigt helle
   Reste aus style.css (Navbar beim Scrollen, Suche, Formulare,
   Modals, Toasts, User-Menue) und kennzeichnet im
   Discord-Widget Bots getrennt von echten Mitgliedern.
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --bg-white: #121212;
  --bg-hover: #1a1a1a;
  --bg-active: #202020;
  --border: #242424;
  --border-light: #1a1a1a;
  --text: #ffffff;
  --text-secondary: #ececec;
  --text-muted: #a8a8a8;
}

body { color: var(--text); }

.navbar,
.navbar.scrolled { background: #0d0d0d; }

.search-box {
  background: #1a1a1a;
  border-color: var(--border);
  color: var(--text-secondary);
}
.search-box input { color: #ffffff; }
.search-box input::placeholder { color: var(--text-muted); }

.btn-ghost {
  background: var(--bg-white);
  border-color: #333333;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: #1a1a1a;
  border-color: var(--accent);
  color: var(--text);
}

.stat-row:hover { background: var(--bg-hover); }

.reply-editor textarea,
.form-group input,
.form-group select,
.form-group textarea {
  background: #161616;
  border-color: #333333;
  color: #ffffff;
}
.form-group select option { background: #161616; color: #ffffff; }
.reply-editor textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.modal-close { background: #262626; color: var(--text-secondary); }
.modal-close:hover { background: #333333; color: #ffffff; }

.toast {
  background: #171717;
  border-color: var(--border);
}

.user-menu {
  background: #161616;
  border-color: var(--border);
}

.hero-ip { background: none; border: none; }
.hero-tag {
  background: #1a1a1a;
  border-color: #333333;
  color: var(--text);
}

/* ============================================================
   IMPRESSUM - Neugestaltung
   Konzept: ein einziges Dokument statt Kartenstapel.
   - Die zwei Kontaktbloecke stehen nebeneinander in einem gemeinsamen Rahmen
   - Name gross, Adresse und Mail ruhig darunter, keine Icons
   - Rechtstexte als Randspalte (Ueberschrift links) + Fliesstext (rechts)
   ============================================================ */
.impressum-page {
  --imp-line: #262626;
  --imp-line-soft: #1d1d1d;
  --imp-paper: #121212;
  --imp-muted: #8f8f8f;
  --imp-copy: #d9d9d9;
  --imp-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;

  max-width: 940px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* --- Kopf: linksbuendig, ohne Icon --- */
.impressum-page .impressum-header {
  display: block;
  text-align: left;
  margin: 0 0 36px;
  padding: 0;
}
.impressum-page .impressum-header > svg { display: none; }

.impressum-page .impressum-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.impressum-page .impressum-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--imp-muted);
}

/* --- Kontaktbloecke: ein Rahmen, zwei Spalten --- */
.impressum-page .impressum-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--imp-paper);
  border: 1px solid var(--imp-line);
  border-radius: 10px;
  overflow: hidden;
}

.impressum-page .impressum-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.impressum-page .impressum-card + .impressum-card {
  border-left: 1px solid var(--imp-line);
}

.impressum-page .impressum-card .card-header {
  display: block;
  padding: 16px 28px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--imp-line);
}
.impressum-page .impressum-card .card-header svg { display: none; }
.impressum-page .impressum-card .card-header h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--imp-muted);
}

.impressum-page .impressum-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 28px;
}

.impressum-page .impressum-card .info-row {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  transform: none;
}
.impressum-page .impressum-card .info-row:hover { background: none; transform: none; }
.impressum-page .impressum-card .info-row > svg { display: none; }

.impressum-page .impressum-card .info-row > div {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--imp-copy);
  overflow-wrap: anywhere;
}
.impressum-page .impressum-card .info-row span { color: inherit; font-size: inherit; }

/* 1. Zeile: Name */
.impressum-page .impressum-card .info-row:nth-child(1) > div,
.impressum-page .impressum-card .info-row:nth-child(1) strong {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
}
.impressum-page .impressum-card .info-row:nth-child(1) { margin-bottom: 16px; }

/* 2. Zeile: Adresse */
.impressum-page .impressum-card .info-row:nth-child(2) { margin-bottom: 14px; }

/* 4. Zeile: Gemeinschaft, unten abgesetzt */
.impressum-page .impressum-card .info-row:nth-child(4) {
  margin-top: auto;
  padding-top: 20px;
}
.impressum-page .impressum-card .info-row:nth-child(4) > div {
  padding-top: 14px;
  border-top: 1px solid var(--imp-line-soft);
  font-size: 0.86rem;
  color: var(--imp-muted);
}
.impressum-page .impressum-card .info-row:nth-child(4) strong {
  font-weight: 500;
  color: inherit;
}

/* --- Links: schlicht unterstrichen --- */
.impressum-page .impressum-card .info-row a,
.impressum-page .legal-section a {
  display: inline;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(22, 132, 162, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.impressum-page .impressum-card .info-row a:hover,
.impressum-page .legal-section a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}
.impressum-page a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Rechtstexte: Randspalte + Fliesstext --- */
.impressum-page .impressum-legal {
  margin-top: 56px;
  border-top: 1px solid var(--imp-line);
}

.impressum-page .legal-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px 40px;
  margin: 0;
  padding: 32px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--imp-line);
  border-radius: 0;
  box-shadow: none;
}

.impressum-page .legal-section h3 {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: #fff;
}
.impressum-page .legal-section h3 svg { display: none; }

.impressum-page .legal-section p {
  grid-column: 2;
  margin: 0 0 14px;
  max-width: 64ch;
  font-family: var(--imp-serif);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--imp-copy);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
}
.impressum-page .legal-section p:last-child { margin-bottom: 0; }

/* --- Impressum: Tablet / Handy --- */
@media (max-width: 760px) {
  .impressum-page { padding: 40px 16px 72px; }
  .impressum-page .impressum-header { margin-bottom: 26px; }

  .impressum-page .impressum-cards { grid-template-columns: 1fr; border-radius: 8px; }
  .impressum-page .impressum-card + .impressum-card {
    border-left: none;
    border-top: 1px solid var(--imp-line);
  }
  .impressum-page .impressum-card .card-header { padding: 14px 20px; }
  .impressum-page .impressum-card .card-body { padding: 22px 20px 22px; }
  .impressum-page .impressum-card .info-row:nth-child(1) > div,
  .impressum-page .impressum-card .info-row:nth-child(1) strong { font-size: 1.25rem; }

  .impressum-page .impressum-legal { margin-top: 40px; }
  .impressum-page .legal-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
  }
  .impressum-page .legal-section h3,
  .impressum-page .legal-section p { grid-column: 1; grid-row: auto; }
  .impressum-page .legal-section p { font-size: 1rem; line-height: 1.7; }
}

/* ============================================================
   MOBILE 2026 - Handy-Fixes
   Solide Darstellung auf Smartphones & Tablets:
   kein horizontaler Overflow, kein Auto-Zoom auf iOS,
   grosse Touch-Ziele, sauberes Stapeln von Hero/Modals/Listen.
   ============================================================ */
@media (max-width: 900px) {
  /* Verhindert horizontales Scrollen (100vw + Scrollbar / 92vw-Logo) */
  html, body { overflow-x: clip; }

  /* iOS zoomt automatisch hinein, wenn die Input-Schrift < 16px ist */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .reply-editor textarea,
  .search-box input { font-size: 16px; }

  /* Thread-Zeilen: Titel/Infos links, Antworten rechts */
  .thread-row { grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 12px 14px; }
  .thread-replies { text-align: left; font-size: 0.73rem; color: var(--text-muted); justify-self: end; white-space: nowrap; }
  .thread-replies strong { color: var(--text-secondary); font-size: 0.85rem; }

  /* Kategorie-Stats inline statt gestapelt */
  .category-card-stats { flex-direction: row; gap: 14px; }
}

@media (max-width: 600px) {
  /* Hero: kompakt, ohne Ueberlauf */
  .gx-hero-top { padding: 24px 14px 18px; gap: 12px; }
  .gx-hero-logo { max-width: 100%; }
  .gx-logo-wrap { max-width: 100%; }
  .gx-hero-side { width: 100%; max-width: none; justify-content: center; padding: 10px 14px; }
  .gx-side-text-right { align-items: flex-start; text-align: left; }
  .gx-side-value { font-size: 0.76rem; }

  /* Begruessung + Store: Buttons raeumen die Zeile */
  .gx-welcome-card, .gx-store-card { padding: 14px 16px; }
  .gx-welcome-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .gx-welcome-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }

  /* Kategorie-Header: "Neues Thema" voll breit */
  .category-header { gap: 12px; }
  .category-header .btn { width: 100%; justify-content: center; }

  /* Modals als Bottom-Sheet, ohne Notch-Problem */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { max-height: calc(100dvh - 24px); border-radius: 18px 18px 12px 12px; }

  /* Antipp-Ziele vergroessern */
  .toolbar-btn { width: 38px; height: 38px; }
  .dw-join { padding: 13px 14px; }
  .btn-nav-login { min-height: 40px; }

  /* Laengere Titel/Texte umbrechen statt rauszulaufen */
  .thread-title, .thread-header h1, .category-card-info h3,
  .latest-title, .breadcrumb, .post-body, .post-username,
  .thread-header-meta { overflow-wrap: anywhere; }

  /* Toast am unteren Rand, sicherer Notch-Bereich */
  .toast { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); justify-content: center; text-align: center; }

  /* Footer unten mit sicherer Flaeche */
  .gx-footer-bottom { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   P1: Team-Rollen Badges (Developer, Builder, Supporter)
   ========================================================================== */
.badge-dev { background: rgba(167,139,250,0.16); color: #c4b5fd; }
.badge-builder { background: rgba(251,146,60,0.16); color: #fdba74; }
.badge-supporter { background: rgba(52,211,153,0.16); color: #6ee7b7; }

/* ==========================================================================
   P2: Online-Status & Team-Uebersicht
   ========================================================================== */

.presence-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #565d68; flex: none; vertical-align: middle;
  transition: background .2s ease, box-shadow .2s ease;
}
.presence-dot.on { background: var(--green, #22c55e); box-shadow: 0 0 6px rgba(34,197,94,.7); }

/* Punkt am Nav-Avatar */
.nav-avatar-wrap { position: relative; }
.nav-avatar-wrap .presence-dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 10px; height: 10px;
  border: 2px solid var(--bg, #101010);
}
.admin-user-name .presence-dot { margin-left: 8px; }

/* Profil: Status-Zeilen */
.profile-badges { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.profile-meta-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.84rem; color: var(--text-muted, #9ca3af);
  padding: 7px 0; border-bottom: 1px solid var(--border-light, #1e1e1e);
}
.profile-meta-row:last-child { border-bottom: none; }
.profile-meta-row strong { color: var(--text, #f3f4f6); font-weight: 600; }
.profile-meta-row .presence-dot { margin-right: 6px; }
.presence-text { font-size: 0.84rem; color: var(--text-muted, #9ca3af); }
.presence-text.on { color: var(--green, #22c55e); }

/* Team-Modal */
.team-summary { display: flex; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.team-stat {
  flex: 1 1 120px; display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-white, #171717); border: 1px solid var(--border, #262626);
  border-radius: 10px; padding: 10px 14px;
}
.team-stat strong { font-size: 1.3rem; color: var(--accent, #22d3ee); }
.team-stat span { font-size: 0.78rem; color: var(--text-muted, #9ca3af); }
.team-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-muted, #9ca3af);
  margin: 12px 0 4px;
}
.team-list { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow: auto; padding-right: 4px; }
.team-user-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-white, #171717); border: 1px solid var(--border, #262626);
  border-radius: 10px; padding: 8px 12px;
}
.team-user-info { min-width: 0; }
.team-user-name {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--text, #f3f4f6);
}
.team-user-meta { font-size: 0.76rem; color: var(--text-muted, #9ca3af); overflow-wrap: anywhere; }
.team-empty { color: var(--text-muted, #9ca3af); padding: 14px; text-align: center; }
.team-section-divider {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #262626);
}

/* ==========================================================================
   P3: Tickets & Bewerbungen
   ========================================================================== */

.ticket-nav { display: flex; gap: 8px; margin-bottom: 14px; }
.ticket-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.ticket-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow: auto; padding-right: 2px; }
.ticket-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-white, #171717); border: 1px solid var(--border, #262626);
  border-radius: 10px; padding: 10px 12px;
}
.ticket-row-main { min-width: 0; }
.ticket-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-row-title strong { font-size: 0.92rem; color: var(--text, #f3f4f6); overflow-wrap: anywhere; }
.ticket-row-meta { font-size: 0.76rem; color: var(--text-muted, #9ca3af); margin-top: 3px; overflow-wrap: anywhere; }
.ticket-row-side { display: flex; align-items: center; gap: 10px; flex: none; }

.ticket-type-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: .03em;
  border-radius: 999px; padding: 3px 9px; text-transform: uppercase;
}
.tk-ticket { background: rgba(56,189,248,0.15); color: #7dd3fc; }
.tk-bewerbung { background: rgba(251,191,36,0.16); color: #fcd34d; }

.badge-ticket-open { background: rgba(96,165,250,0.16); color: #93c5fd; }
.badge-ticket-work { background: rgba(251,146,60,0.16); color: #fdba74; }
.badge-ticket-closed { background: rgba(148,163,184,0.16); color: #cbd5e1; }
.badge-ticket-accepted { background: rgba(52,211,153,0.16); color: #6ee7b7; }
.badge-ticket-rejected { background: rgba(248,113,113,0.16); color: #fca5a5; }

.ticket-detail-head {
  background: var(--bg-white, #171717); border: 1px solid var(--border, #262626);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.ticket-detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ticket-detail-title h3 { margin: 0; font-size: 1.05rem; color: var(--text, #f3f4f6); overflow-wrap: anywhere; }
.ticket-detail-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px;
  font-size: 0.76rem; color: var(--text-muted, #9ca3af);
}
.ticket-detail-meta .badge { font-size: 0.72rem; }

.ticket-posts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ticket-post {
  display: flex; gap: 12px; background: var(--bg-white, #171717);
  border: 1px solid var(--border, #262626); border-radius: 10px; padding: 10px 12px;
}
.ticket-post.opening { border-left: 3px solid var(--accent, #22d3ee); }
.ticket-post-ava { flex: none; }
.ticket-post-body { min-width: 0; flex: 1; }
.ticket-post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: 0.86rem; }
.ticket-post-head .badge { font-size: 0.7rem; }
.ticket-post-time { margin-left: auto; font-size: 0.72rem; color: var(--text-muted, #9ca3af); font-weight: 400; }
.ticket-post-text { margin-top: 5px; font-size: 0.88rem; color: var(--text, #f3f4f6); overflow-wrap: anywhere; line-height: 1.5; }

.ticket-status-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 12px;
  background: var(--bg-white, #171717); border: 1px solid var(--border, #262626); border-radius: 10px;
}
.ticket-status-row label { font-size: 0.82rem; color: var(--text-muted, #9ca3af); }
.ticket-status-row select { flex: none; }
.ticket-reply { margin-top: 14px; }
.ticket-reply textarea { margin-bottom: 10px; }

.ticket-type-row { display: flex; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.ticket-type-opt {
  flex: 1 1 150px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-white, #171717); border: 1px solid var(--border, #262626);
  border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 0.86rem;
}
.ticket-type-opt span { color: var(--text, #f3f4f6); }
.btn-success { background: rgba(34,197,94,0.16); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }
.btn-success:hover { background: rgba(34,197,94,0.28); }

/* ==========================================================================
   P5: Support-Seite (support.galaxy-roleplay.de)
   ========================================================================== */
.support-page { max-width: 880px; margin: 0 auto; padding: 40px 20px 72px; }
.support-header { text-align: center; margin-bottom: 22px; }
.support-header svg { color: var(--accent, #22d3ee); }
.support-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--text, #f3f4f6); margin: 10px 0 4px;
}
.support-subtitle { color: var(--text-muted, #9ca3af); font-size: 0.95rem; }
.support-intro {
  max-width: 720px; margin: 0 auto 18px;
  background: var(--bg-white, #171717); border: 1px solid var(--border, #262626);
  border-radius: 14px; padding: 14px 18px;
  color: var(--text-muted, #9ca3af); font-size: 0.9rem; line-height: 1.55;
}
.support-intro strong { color: var(--text, #f3f4f6); }
.support-login-hint {
  max-width: 520px; margin: 0 auto 18px; text-align: center;
  background: var(--bg-white, #171717); border: 1px solid var(--border, #262626);
  border-radius: 14px; padding: 26px 20px;
}
.support-login-hint p { color: var(--text-muted, #9ca3af); margin: 0 0 14px; font-size: 0.92rem; }
.support-shell { max-width: 720px; margin: 0 auto; }
.support-shell .ticket-list { max-height: none; }

/* ==========================================================================
   P6: Passwort-Reset-Seite + rundere, weichere Optik
   ========================================================================== */
.reset-page { max-width: 520px; margin: 0 auto; padding: 48px 20px 80px; }
.reset-card {
  background: var(--bg-white, #171717); border: 1px solid var(--border, #262626);
  border-radius: 22px; box-shadow: var(--shadow); padding: 28px;
}
.reset-header { text-align: center; margin-bottom: 20px; }
.reset-header svg { color: var(--accent, #22d3ee); }
.reset-header h1 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--text, #f3f4f6); margin: 12px 0 6px;
}
.reset-header p { color: var(--text-muted, #9ca3af); font-size: 0.88rem; line-height: 1.5; margin: 0; }
.reset-invalid { text-align: center; }
.reset-invalid p { color: var(--text-muted, #9ca3af); margin: 0 0 18px; }

.modal { border-radius: 22px; }
.btn { border-radius: 12px; }
input, select, textarea { border-radius: 12px; }
.ticket-row, .ticket-post, .ticket-detail-head, .ticket-status-row,
.ticket-type-opt, .team-stat, .team-user-row, .support-intro,
.support-login-hint, .reset-card {
  border-radius: 16px;
}
.btn, .ticket-row, .ticket-post, .ticket-type-opt, .team-user-row {
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover, .ticket-row:hover, .ticket-type-opt:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   P7: Mail-Einstellungen im Admin-Panel
   ========================================================================== */
.mail-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.mail-test-row { display: flex; gap: 10px; margin-top: 12px; }
.mail-test-row input { flex: 1; min-width: 0; }
.mail-test-row .btn { flex: none; }
.mail-status { margin: 10px 0 0; font-size: 0.84rem; color: var(--text-muted, #9ca3af); line-height: 1.45; overflow-wrap: anywhere; }
.mail-status.ok { color: var(--green, #22c55e); }
.mail-status.err { color: var(--red, #f87171); }
@media (max-width: 600px) {
  .mail-form-grid { grid-template-columns: 1fr; }
  .mail-test-row { flex-direction: column; }
  .mail-test-row .btn { width: 100%; }
}