@font-face {
  font-family: 'NeuethingSans';
  src: url('neuething-sans/web/woff/NeuethingSans-Regular.woff') format('woff');
  font-weight: 400; /* Regular */
  font-style: normal;
}

@font-face {
  font-family: 'NeuethingSans';
  src: url('neuething-sans/web/woff/NeuethingSans-Meduim.woff') format('woff');
  font-weight: 500; /* Medium */
  font-style: normal;
}

@font-face {
  font-family: 'NeuethingSans';
  src: url('neuething-sans/web/woff/NeuethingSans-SemiBold.woff') format('woff');
  font-weight: 600; /* Semibold */
  font-style: normal;
}

@font-face {
  font-family: 'NeuethingSans';
  src: url('neuething-sans/web/woff/NeuethingSans-Bold.woff') format('woff');
  font-weight: 700; /* Bold */
  font-style: normal;
}

@font-face {
  font-family: 'NeuethingSans';
  src: url('neuething-sans/web/woff/NeuethingSans-ExtraBold.woff') format('woff');
  font-weight: 800; /* Extrabold */
  font-style: normal;
}

@font-face {
  font-family: 'NeuethingSans';
  src: url('neuething-sans/web/woff/NeuethingSans-Black.woff') format('woff');
  font-weight: 900; /* Black */
  font-style: normal;
}


/* ==========================================
   🔹 Grundstruktur / Layout
========================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--tblr-bg-surface);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'NeuethingSans', sans-serif;
  font-weight: 500;
}

.layout {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  flex-grow: 1;
  width: 100%;
  background-color: var(--tblr-body-bg);
}

.content-area {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}


.header {
  background-color: var(--tblr-bg-surface);
  border-bottom: 1px solid var(--tblr-border-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.main-scroll {
  overflow-y: auto;
  padding: 2rem;
  flex-grow: 1;
}

.rightbar {
  position: sticky;                  /* bleibt beim Scrollen fixiert */
  top: 0;                            /* fixiert am oberen Rand */
  height: 100vh;                     /* volle Höhe */
  padding: 1rem;                     /* Innenabstand */
  background-color: var(--tblr-bg-surface);
  border-left: 1px solid var(--tblr-border-color);
  overflow-y: auto;                  /* Scrollbar wenn Inhalt zu groß */
  scrollbar-width: thin;             /* Firefox: dünne Scrollbar */
  scrollbar-color: rgba(0,0,0,.2) transparent;
}

/* Chrome/Edge/Opera Scrollbar */
.rightbar::-webkit-scrollbar {
  width: 6px;
}
.rightbar::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,.25);
  border-radius: 3px;
}
.rightbar::-webkit-scrollbar-track {
  background: transparent;
}


/* ==========================================
   🔹 Sidebar
========================================== */
.sidebar-sticky {
  padding: 1.5rem 1rem;
  background-color: var(--tblr-bg-surface);
  border-right: 1px solid var(--tblr-border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.sidebar-sticky .list-group-item {
  font-size: 16px;
  padding: 0.70rem 1rem;
  border-radius: 0.75rem;
  margin: 0 0.25rem 0.5rem 1.2rem;
  color: var(--tblr-body-color);
  transition: all 0.2s ease;
}


.sidebar-sticky .list-group-item i {
  font-size: 22px;
  transition: transform 0.2s;
}

.sidebar-sticky .list-group-item:hover {
  background-color: #e3e3e395;
  text-decoration: none;
}

.sidebar-sticky .list-group-item.active {
  background-color: var(--bs-primary-bg-subtle); /* oder dein Wunschfarbton */
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}


/* Ränder oben/unten für aktiven ersten/letzten */
.sidebar-sticky .list-group-item:first-child.active,
.sidebar-sticky .list-group-item:first-child:hover {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.sidebar-sticky .list-group-item:last-child.active,
.sidebar-sticky .list-group-item:last-child:hover {
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

/* DARK MODE Sidebar */
html[data-bs-theme="dark"] .sidebar-sticky .list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.027);
}

html[data-bs-theme="dark"] .sidebar-sticky .list-group-item.active {
  background-color: rgba(255, 255, 255, 0.068);
  color: #fff;
}

html[data-bs-theme="dark"] .sidebar-sticky .list-group-item.active i {
  color: #fff;
}

/* ==========================================
   🔹 Bottom Navigation (Mobile)
========================================== */
.bottom-nav {
  display: none;
}

@media (max-width: 991px) {
    /* 🔸 WICHTIG: Platz für Bottom Nav schaffen */
  .main-scroll {
    padding-bottom: 100px !important;
  }
  
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding-bottom: 100px !important;
  }

  .sidebar-sticky,
  .rightbar {
    display: none;
  }

  .header {
    justify-content: center;
  }

  .header h2,
  .header select {
    display: none;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--tblr-bg-surface);
    border-top: 1px solid var(--tblr-border-color);
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    height: 56px; /* optional: feste Höhe */
  }

  .bottom-nav a {
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    color: var(--tblr-body-color);
    padding: 0.25rem 0;
    border-top: 2px solid transparent;
    transition: border-top 0.2s ease;
  }

  .bottom-nav a:hover,
  .bottom-nav a:focus {
    color: var(--tblr-primary);
    text-decoration: none;
  }

  .bottom-nav a.active {
    color: var(--tblr-primary);
    font-weight: 600;
  }

  .bottom-nav a i {
    font-size: 22px;
    display: block;
  }

  .w-sm-100 {
    width: 100% !important;
  }


}


/* ==========================================
   🔹 Logo / Branding
========================================== */
.logo, .logo-mobile {
  font-family: 'NeuethingSans', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.logo {
  margin-bottom: 2rem;
  font-family: 'NeuethingSans', sans-serif;
  font-weight: 600;
}

.logo-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--tblr-bg-light);
}

.logo-hover:hover {
  transform: scale(1.05);
  text-decoration: none;
  color: var(--tblr-bg-light);
}

/* ==========================================
   🔹 Animationen
========================================== */
@keyframes spin {
  0% { transform: rotate(0deg); opacity: 1; }
  50% { transform: rotate(90deg); opacity: 0; }
  100% { transform: rotate(180deg); opacity: 1; }
}

.animate-spin {
  animation: spin 0.4s ease-in-out;
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 1.5s linear infinite;
}

/* ==========================================
   🔹 Interaktion: Upvote & Buttons
========================================== */
.interaction-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.interaction-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.interaction-btn i {
  font-size: 1.1rem;
}

.interaction-btn:hover {
  background: #e9ecef;
  transform: scale(1.05);
}

/* Upvote States */
.upvote-btn.voted {
  background: #e0f0ff;
  color: #007bff;
  border-color: #007bff;
}

[data-bs-theme=dark] .upvote-btn {
  color: #007bff;
}

[data-bs-theme=dark] .upvote-btn:hover {
  color: #0056b3;
}

[data-bs-theme=dark] .upvote-btn.voted {
  background: #1e3a5a;
  color: #66b3ff;
  border-color: #66b3ff;
}

[data-bs-theme=dark] .upvote-btn.voted i {
  color: #66b3ff;
}

[data-bs-theme=light] .upvote-btn.voted i {
  color: #007bff;
}

/* Dark Mode Interactions */
[data-bs-theme=dark] .interaction-btn {
  background: #272A34;
  border: 1px solid #444;
  color: #ddd;
}

[data-bs-theme=dark] .interaction-btn:hover {
  background: #272A34;
  border-color: #555;
  transform: scale(1.05);
}

/* ==========================================
   🔹 Toast / Notifications
========================================== */
#toast-area {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-toast {
  min-width: 250px;
  max-width: 400px;
  backdrop-filter: blur(6px);
  border: 0.2px solid;
  border-color: #9e9e9e3a;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  font-weight: 500;
  animation: slideUpFade 0.3s ease-out;
  margin-top: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Toast Farben */
[data-bs-theme="light"] .toast-error {
  background-color: rgba(255, 232, 232, 0.8);
  color: #f03e3e;
}

[data-bs-theme="light"] .toast-success {
  background-color: rgba(228, 255, 239, 0.8);
  color: #2f9e44;
}

[data-bs-theme="dark"] .toast-error {
  background-color: rgba(60, 0, 0, 0.5);
  color: #ffa8a8;
}

[data-bs-theme="dark"] .toast-success {
  background-color: rgba(0, 60, 30, 0.5);
  color: #b2f2bb;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   🔹 Diverses
========================================== */
.verified i {
  color: #0081cc;
}


.sidebar-scroll {
  flex-grow: 1;
  overflow-y: auto;
}


.sidebar-footer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--tblr-border-color);
  z-index: 10;
}
.badge-notify {
  position: absolute;
  top: 2px;
  right: 2px;
  transform: translate(30%, -30%);
  background: #f03e3e; /* rot */
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.gradient-icon {
  background:     linear-gradient(135deg, #a6d6ff, #b597f7, #f7b5d7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* für Safari/Chrome */
  background-clip: text;
  color: transparent; /* Fallback */
}

/* Card-Basis */
.card[class*="mood-"] {
  position: relative;
  overflow: hidden;
  background:  var(--tblr-body-bg);
}

/* Glow-Layer */
.card[class*="mood-"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--mood-color) 0%, transparent 70%);
  opacity: 0.25;
  animation: pulse-glow 12s ease-in-out infinite;
  z-index: 0;
}

/* Content bleibt oben */
.card[class*="mood-"] .card-body {
  position: relative;
  z-index: 1;
}

/* sanftes Atmen */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.35; transform: translate(-50%, -50%) scale(1.05); }
}

/* Mood-Farben */
.mood-happy   { --mood-color: rgba(255, 193, 7, 0.6); }   /* warmes Gelb */
.mood-sad     { --mood-color: rgba(63, 81, 181, 0.6); }   /* Blau */
.mood-angry   { --mood-color: rgba(183, 28, 28, 0.6); }   /* Rot */
.mood-tired   { --mood-color: rgba(97, 97, 97, 0.6); }    /* Grau */
.mood-neutral { --mood-color: rgba(76, 175, 80, 0.6); }   /* Grün */


.ask-gradient i,
.ask-gradient span {
  background: linear-gradient(90deg, #6EC6FF, #FF80AB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

/* 👇 nur Text bekommt Gewicht */
.ask-gradient span {
  font-weight: 600;
}

.supporter-heart {
  position: absolute;
  bottom: -2px;   /* sitzt im unteren Bereich */
  right: -2px;    /* leicht nach außen */
  background:  var(--tblr-body-bg);
  border-radius: 50%;
  padding: 3px;
  color: #e63946; /* Rot fürs Herz */
  font-size: 14px;
  transform: rotate(-15deg); /* schräg drin */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* Basis Toast */
.custom-toast-question {
  background: #fff;
  color: #111;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-top: 10px;
  opacity: 0;
  transform: translateX(50px);
  border: 1px solid #ccc;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 240px;
  max-width: 320px;
}

/* Darkmode mit Bootstrap */
[data-bs-theme="dark"] .custom-toast-question {
  background: #1f1f1f;
  color: #f5f5f5;
  border-color: #333;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
#commentForm {
  flex-wrap: nowrap;
}

@media (max-width: 576px) {
  #commentForm {
    flex-wrap: wrap;
  }

  #commentForm .avatar {
    margin-bottom: .5rem;
  }

  #commentForm input {
    flex: 1 1 100%;
  }

  #commentForm .d-flex.align-items-center.gap-2.flex-shrink-0 {
    width: 100%;
    justify-content: flex-end;
    margin-top: .5rem;
  }
}
