/* ============================================================
   Tastings — Verkostungs-Modul
   ============================================================ */

.tastings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.tastings-empty {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.tastings-empty .empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--spaetburgunder, #421422);
  margin-bottom: 12px;
}

.tastings-empty .empty-sub {
  color: var(--text-muted, #7a7974);
  margin-bottom: 24px;
  line-height: 1.6;
}

.tasting-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 8px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tasting-card:hover {
  border-color: var(--spaetburgunder, #421422);
  box-shadow: 0 2px 8px rgba(66, 20, 34, 0.08);
  transform: translateY(-1px);
}

.tasting-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.tasting-card-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--spaetburgunder, #421422);
  margin: 4px 0 0 0;
  font-weight: 500;
}

.tasting-card-title .eyebrow {
  color: var(--text-muted, #7a7974);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
}

.tasting-card-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.tasting-badge-soon {
  background: var(--premium-gold, #d4af37);
  color: var(--spaetburgunder, #421422);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tasting-badge-later {
  background: var(--riesling-creme, #f5efe3);
  color: var(--text, #28251d);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border, #e5e2d9);
}

.tasting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted, #7a7974);
  font-size: 13px;
}

.tasting-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============ Detail-Panel ============ */

.tasting-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

.tasting-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tasting-detail-title {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border, #e5e2d9);
}

.tasting-detail-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--spaetburgunder, #421422);
  margin: 6px 0 8px 0;
  font-weight: 500;
}

.tasting-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tasting-block {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 8px;
  padding: 18px 20px;
}

.tasting-block-feedback,
.tasting-block-followup {
  background: var(--riesling-creme, #f9f6ef);
  border-left: 3px solid var(--rebhang-gruen, #1a3b26);
}

.block-label {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--spaetburgunder, #421422);
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-label .hint-badge {
  background: var(--rebhang-gruen, #1a3b26);
  color: var(--riesling-creme, #f5efe3);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
}

.block-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .block-row-2col {
    grid-template-columns: 1fr;
  }
}

/* ============ Teilnehmer ============ */

.participant-row {
  display: grid;
  grid-template-columns: 1fr 180px 32px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.participant-row input,
.participant-row select {
  padding: 8px 10px;
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 4px;
  background: var(--bg, #fdfbf4);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

#btn-add-participant {
  margin-top: 8px;
  font-size: 13px;
}

/* ============ Weine ============ */

.tasting-wine-row {
  display: grid;
  grid-template-columns: 1fr auto 32px;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #e5e2d9);
  align-items: start;
}

.tasting-wine-row:last-child {
  border-bottom: none;
}

.tasting-wine-name strong {
  color: var(--spaetburgunder, #421422);
  font-weight: 500;
}

.tasting-wine-feedback {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 280px;
}

.tasting-wine-feedback select,
.tasting-wine-feedback input {
  padding: 6px 8px;
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 4px;
  background: var(--bg, #fdfbf4);
  font-size: 12px;
}

.wine-add-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ============ Follow-up ============ */

.followup-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e5e2d9);
}

.followup-mail .field {
  margin-bottom: 12px;
}

.followup-mail textarea,
.followup-mail input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 4px;
  background: var(--bg, #fff);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.followup-mail textarea {
  min-height: 200px;
  resize: vertical;
}

.followup-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ============ Aktions-Leiste ============ */

.tasting-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #e5e2d9);
  align-items: center;
}

.tasting-detail-actions .spacer {
  flex: 1;
}

.btn-danger {
  color: var(--error, #a12c7b) !important;
}

.btn-danger:hover {
  background: rgba(161, 44, 123, 0.08) !important;
}

/* Neues Tasting-Modal */

.new-tasting-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.new-tasting-form select,
.new-tasting-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 4px;
  background: var(--bg, #fdfbf4);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.hint-muted {
  color: var(--text-muted, #7a7974);
  font-size: 13px;
  padding: 8px 0;
}

/* Follow-up-Actions nebeneinander */
.tasting-followup-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0;
}

/* Status-Chip abgesagt */
.st-abgesagt {
  background: rgba(122, 121, 116, 0.15);
  color: var(--text-muted, #7a7974);
  border-color: transparent;
}

/* ============================================================
   Meta-Items (Termin / Ort / Wein-Anzahl) — Wegeler-Style
   ============================================================ */
.tasting-meta .meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.tasting-meta .meta-label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--text-muted, #7a7974);
  letter-spacing: 0.3px;
}
.tasting-meta .meta-chip {
  padding: 2px 8px;
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 3px;
  font-size: 11px;
  color: var(--spaetburgunder, #421422);
  background: var(--riesling-creme, #f5efe3);
}

/* Button-Pfeil-Styling für sekundäre Aktionen (wie Anschreiben-Button) */
.btn-with-arrow .btn-label { margin-right: 6px; }
.btn-with-arrow .btn-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn-with-arrow:hover .btn-arrow { transform: translateX(3px); }

/* View-Toggle */
.view-toggle {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 4px;
  padding: 2px;
  margin-right: 8px;
  background: var(--surface, #fff);
}
.view-toggle .chip {
  background: transparent;
  border: none;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-muted, #7a7974);
  cursor: pointer;
  border-radius: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.view-toggle .chip.active {
  background: var(--spaetburgunder, #421422);
  color: var(--riesling-creme, #f5efe3);
}

/* ============================================================
   Kanban-Board
   ============================================================ */
.tastings-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 12px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  overflow-x: auto;
}

.kanban-col {
  background: var(--surface-alt, #faf8f3);
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 6px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
}

/* Letzte Spalte (→ Listing) visuell abgesetzt als Übergang */
.kanban-col[data-col="listing"] {
  border: 1px dashed var(--premium-gold, #d4af37);
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.06), transparent 30%);
}
.kanban-col[data-col="listing"] .kanban-col-title {
  color: var(--rebhang-gruen, #1a3b26);
}

.kanban-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.kanban-col-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--spaetburgunder, #421422);
  font-weight: 500;
}
.kanban-col-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted, #7a7974);
  background: rgba(66, 20, 34, 0.06);
  padding: 2px 8px;
  border-radius: 10px;
}
.kanban-col-hint {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--text-muted, #7a7974);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, #e5e2d9);
  margin-bottom: 10px;
  line-height: 1.4;
}

.kanban-col-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}

.kanban-empty {
  color: var(--text-muted, #7a7974);
  font-size: 12px;
  text-align: center;
  padding: 16px 0;
  opacity: 0.5;
}

.kanban-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.kanban-card:hover {
  border-color: var(--spaetburgunder, #421422);
  box-shadow: 0 2px 6px rgba(66, 20, 34, 0.08);
  transform: translateY(-1px);
}
.kanban-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--spaetburgunder, #421422);
  line-height: 1.3;
  margin-bottom: 2px;
}
.kanban-card-sub {
  font-size: 11px;
  color: var(--text-muted, #7a7974);
  margin-bottom: 6px;
}
.kanban-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted, #7a7974);
}
.kanban-card-date {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--spaetburgunder, #421422);
}
.kanban-card-wines {
  padding: 1px 6px;
  border: 1px solid var(--border, #e5e2d9);
  border-radius: 3px;
}
.kanban-day-soon {
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--spaetburgunder, #421422);
  color: var(--riesling-creme, #f5efe3);
  font-weight: 500;
}
.kanban-day-later {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(66, 20, 34, 0.08);
  color: var(--spaetburgunder, #421422);
}

@media (max-width: 900px) {
  .tastings-kanban {
    grid-template-columns: repeat(4, 240px);
  }
}
