/* === KORK-HINTERGRUND FÜR DEN GESAMTEN BEREICH === 
#blackboard-wrapper {
  background-image: url('../img/kork.jpg');
  background-repeat: repeat-y;
  background-position: center top;
  background-size: cover;
  padding: 2rem;
} */

#blackboard-wrapper {
  background-image: url('../img/kork.jpg');
  background-repeat: repeat-y;
  background-position: center top;
  background-size: cover;
  padding: 2rem;
  min-height: 100vh;
}

.bb-entry-form-wrapper {
  grid-column: 1 / -1;
  background: #ffffffde;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 6px solid #008cba;
  width: 200px;
}

/* === GRID === */
.bb-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  justify-content: center !important;
}

/* === EINTRAG (Kachel) === */
.bb-entry {
  position: relative;
  z-index: 1;
  background: #fffde9;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.1);
  transform: rotate(var(--rotate));
  transform-origin: top center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 1rem;
  width: 280px;
  flex-grow: 0;
  flex-shrink: 0;
}

.bb-entry.expanded {
z-index: 100;
}

/* === Inhaltsbereich mit max-Höhe === */
.bb-entry-inner {
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  flex-grow: 1;
  position: relative;
}

.bb-entry.expanded .bb-entry-inner {
  max-height: none;
}

.bb-entry-inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 253, 233, 0), #fffde9);
  pointer-events: none;
  transition: opacity 0.3s;
}

.bb-entry.expanded .bb-entry-inner::after {
  opacity: 0;
}

/* === PIN oben === */
.bb-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  z-index: 2;
  pointer-events: none;
}

/* === Avatar === */
.bb-entry-avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

/* === Button „Mehr anzeigen“ === */
.bb-toggle-content {
  margin-top: 0.5em;
  background: none;
  border: none;
  color: #c69c53;
  cursor: pointer;
  font-size: 0.9em;
  text-align: left;
  padding: 0;
}

.bb-toggle-content:hover {
  text-decoration: underline;
}

/* === Kategorie-Filter === */
.bb-filter {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.bb-filter label {
  margin-right: 1em;
}

/* === Buttons === */
.bb-button {
  display: inline-block;
  padding: 0.4em 1em;
  background-color: #008cba;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer; 
  font-size: 0.95em;
}

.bb-button:hover {
  background-color: #0073a8;
}

.bb-button.small {
  padding: 0.3em 0.8em;
  font-size: 0.85em;
}

/* === Titel, Text === */
.bb-entry h4 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* === Erfolg / Fehlernachrichten === */
.bb-success-message {
  background-color: #e6ffed;
  border: 1px solid #a4d7b1;
  padding: 1em;
  border-radius: 6px;
  color: #155724;
  margin-top: 1em;
}

.bb-error-message {
  color: red;
  margin-top: 1em;
}

/* === Eintrag bei Filter ausblenden === */
.bb-entry.hidden {
  display: none;
}


    .mv-input {
        background: #f5f5f5 !important;
        padding: 8px 12px !important;
        border: 1px solid #ccc !important;
        border-radius: 8px !important;
        color: #000 !important;
        font-family: inherit !important;
    }
    .mv-input:focus {
        border-color: #0073aa;
        outline: none;
        background: #fff;
    }