/* ===========================================
   Try Scuba Briefing – Punkfish Version
   =========================================== */

.ts-container {
  --pf-purple: #422DA2;
  --pf-yellow: #FFEA00;
  --pf-teal: #00A6A6;
  --pf-orange: #FF8A00;
  --pf-pink: #D946EF;

  --pf-text: #1f1f1f;
  --pf-muted: #5f6673;
  --pf-border: rgba(66, 45, 162, 0.18);
  --pf-soft-bg: #f7f5ff;

  font-family: inherit;

  width: 100%;
  max-width: 1000px;

  margin: 0 auto;
  padding: 22px 16px;

  border: 1px solid rgba(66, 45, 162, 0.16);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  box-sizing: border-box;
}

.ts-container,
.ts-container *,
.ts-container *::before,
.ts-container *::after {
  box-sizing: border-box;
}

/* ===========================================
   Überschrift & Introtext
   =========================================== */

.ts-container h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  color: var(--pf-purple);
  text-align: center;
}

.ts-container p {
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: center;
  color: var(--pf-muted);
  line-height: 1.55;
}

/* ===========================================
   Board-Layout
   =========================================== */

.ts-container .container {
  display: flex;
  flex-direction: column;
  gap: 20px;

  width: 100%;
  max-width: 100%;
  margin: 0 auto 22px;
}

@media (min-width: 768px) {
  .ts-container .container {
    flex-direction: row;
    align-items: flex-start;
  }
}

.ts-container .column {
  flex: 1;
  min-height: 360px;

  padding: 14px;
  border-radius: 18px;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 12px;

  justify-content: flex-start;
  align-content: stretch;
}

/* Linke Spalte: verfügbare Themen */
.ts-container #source {
  background: linear-gradient(135deg, #fffdf1 0%, #fff9c8 100%);
  border: 1px solid rgba(255, 234, 0, 0.75);
}

/* Rechte Spalte: aktives Briefing */
.ts-container #target {
  background: linear-gradient(135deg, rgba(66, 45, 162, 0.08), rgba(255, 234, 0, 0.13));
  border: 1px dashed rgba(66, 45, 162, 0.45);
}

/* ===========================================
   Sticky Notes als Zeilen
   =========================================== */

.ts-container .sticky {
  width: 100%;
  min-height: auto;

  padding: 12px 14px;

  border-radius: 14px;
  border: 1px solid var(--pf-border);
  border-left: 7px solid var(--pf-yellow);

  background: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);

  cursor: grab;

  display: grid;
  grid-template-columns: minmax(180px, 32%) 1fr;
  gap: 14px;
  align-items: start;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.ts-container .sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.12);
}

.ts-container .sticky[draggable="true"]:active {
  cursor: grabbing;
}

/* Linke Karten etwas ruhiger */
.ts-container #source .sticky {
  background: rgba(255, 255, 255, 0.82);
  border-left-color: var(--pf-yellow);
}

/* Rechte Karten farbiger */
.ts-container #target .sticky {
  border-left-color: var(--pf-teal);
  background: linear-gradient(135deg, #eaffff 0%, #ffffff 100%);
}

/* ===========================================
   Titel & eigene Titel-Felder
   =========================================== */

.ts-container .note-title {
  font-weight: 800;
  line-height: 1.3;
  color: var(--pf-purple);

  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.ts-container .note-number {
  flex: 0 0 auto;
  font-weight: 900;
  color: var(--pf-purple);
}

.ts-container .note-title-text {
  display: inline-block;
}

.ts-container .note-title--custom {
  align-items: center;
}

.ts-container .custom-title-input {
  width: 100%;

  border: 1px solid rgba(66, 45, 162, 0.24);
  border-radius: 10px;

  padding: 0.55rem 0.7rem;

  font: inherit;
  font-weight: 800;
  color: var(--pf-purple);

  background: rgba(255, 255, 255, 0.88);
}

.ts-container .custom-title-input::placeholder {
  color: rgba(66, 45, 162, 0.55);
}

.ts-container .custom-title-input:focus {
  outline: none;
  border-color: var(--pf-purple);
  box-shadow: 0 0 0 3px rgba(66, 45, 162, 0.15);
}

/* ===========================================
   Notizfeld
   =========================================== */

.ts-container .note-input {
  width: 100%;
  min-height: 4.2rem;

  resize: vertical;

  border: 1px solid rgba(66, 45, 162, 0.15);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.92);

  padding: 0.75rem 0.85rem;

  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--pf-text);
}

.ts-container .note-input::placeholder {
  color: rgba(31, 31, 31, 0.42);
}

.ts-container .note-input:focus {
  outline: none;
  border-color: var(--pf-purple);
  box-shadow: 0 0 0 3px rgba(66, 45, 162, 0.12);
}

/* Im aktiven Briefing etwas kräftiger */
.ts-container #target .note-title,
.ts-container #target .note-number,
.ts-container #target .custom-title-input {
  color: #2f2078;
}

/* ===========================================
   Buttons
   =========================================== */

.ts-container button {
  display: block;

  margin: 10px auto 0;
  padding: 10px 22px;

  font-size: 0.95rem;
  font-weight: 700;

  background: var(--pf-purple);
  color: #ffffff;

  border: none;
  border-radius: 999px;

  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.12s ease,
    box-shadow 0.2s ease;
}

.ts-container button + button {
  margin-top: 8px;
}

.ts-container button:hover {
  background: #2f2078;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(66, 45, 162, 0.28);
}

.ts-container button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ===========================================
   Mobile
   =========================================== */

@media (max-width: 760px) {
  .ts-container .sticky {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ts-container .note-input {
    min-height: 5rem;
  }
}

@media (max-width: 480px) {
  .ts-container {
    padding: 16px 10px;
  }

  .ts-container .column {
    padding: 12px;
  }

  .ts-container button {
    width: 100%;
    max-width: 280px;
  }
}