/* =====================================
   BASISLAYOUT & STRUKTUR
===================================== */

.mtb-container {
  height: 100%;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  overflow-x: hidden;
  position: relative;
}

.mtb-main-content {
  flex: 1;
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.mtb-sidebar {
  position: fixed;
  top: 120px;
  left: 0;
  width: 250px;
  min-height: calc(100vh - 140px);
  background: #f0f0f0;
  overflow-y: auto;
  z-index: 10;
  padding: 20px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}

/* =====================================
   HEADERBEREICH IM INHALT
===================================== */

.mtb-header {
  width: 100%;
  padding: 10px 0;
  text-align: center;
  background: white;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.mtb-main-title {
  font-size: 2em;
  color: #2c3e50;
  margin-bottom: 8px;
}

.mtb-subtitle {
  color: #7f8c8d;
  font-size: 1em;
}

/* =====================================
   INTERAKTIVE INHALTE
===================================== */

.mtb-step {
  margin-bottom: 10px;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
}

.mtb-step:hover {
  background-color: #e0e0e0;
}

.mtb-step.active {
  background-color: #007bff;
  color: white;
}

.mtb-content-section {
  display: none;
  flex: 1;
  min-width: 0;
  position: relative;
}

.mtb-content-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mtb-textarea {
  width: calc(100% - 16px);
  min-height: 80px;
  margin-top: 5px;
  padding: 8px;
  resize: vertical;
}

.mtb-checklist,
.mtb-overview,
.mtb-summary-section {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.mtb-input-group {
  margin-bottom: 15px;
}

.mtb-input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.mtb-block5 .mtb-input-group label {
  font-size: 1.1em !important;
  margin-bottom: 8px;
}

.mtb-button {
  background-color: #2b7a8b;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mtb-button:hover {
  background-color: #246674;
}

.mtb-save-controls {
  display: flex;
  gap: 10px; /* Abstand zwischen Buttons */
  margin-top: 20px;
  flex-wrap: wrap; /* Für kleinere Bildschirme */
}

.mtb-checkbox-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95em;
}


/* =====================================
   FLEX-LAYOUTS & DRAGGABLE ELEMENTE
===================================== */


/* Für zwei Spalten (z. B. Vorbereitungstexte + Sticky Notes) */
.mtb-two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

/* Für Sticky-Note-Bereiche (z. B. Präsentationsinhalte) */
.mtb-presentation-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}

/* Für Drag-Zonen innerhalb von Zeilen */
.mtb-draggable-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  margin-bottom: 40px;
}

/* Jede neue Zeile in Block 6 */
.mtb-draggable-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  min-height: 120px;
  padding: 10px;
  background-color: #fefefe;
  border: 1px dashed #ccc;
}


.mtb-draggable-container,
.mtb-draggable-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 40px;
}

.mtb-draggable-item {
  padding: 10px;
  margin: 5px 0;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: move;
}

.mtb-draggable-item:hover {
  background-color: #e9ecef;
}

/* =====================================
   STICKY NOTES
===================================== */

.mtb-sticky-note {
  width: 220px;
  min-width: 200px;
  max-width: 100%;
  min-height: 200px;
  background: #fff7d1;
  padding: 15px;
  border-radius: 2px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.mtb-sticky-note textarea {
  width: 100%;
  min-height: 60px;
  border: none;
  background: transparent;
  resize: none;
  margin: 5px 0;
}

/* =====================================
   RESPONSIVE STYLES
===================================== */

@media (max-width: 900px) {
  .mtb-sidebar {
    width: 120px;
    padding: 8px;
    font-size: 0.9em;
  }

  .mtb-main-content {
    margin-left: 120px;
  }
}

@media (max-width: 700px) {
  .mtb-sidebar {
    width: 80px;
    padding: 4px;
    font-size: 0.85em;
  }

  .mtb-main-content {
    margin-left: 80px;
  }

  .mtb-sticky-note {
    min-width: 120px;
    max-width: 180px;
  }
}

/* =====================================
   PRINT STYLES
===================================== */

@media print {
  body * {
    visibility: hidden !important;
  }

  #block6,
  #block6 * {
    visibility: visible !important;
  }

  #block6 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
    background: white;
  }

  header,
  #header,
  footer,
  #footer {
    display: none !important;
  }
}
