/*
 * custom.css – SAM Theme Erweiterungen
 * Wird nach main.css geladen (via functions.php).
 * main.css wird NIE verändert.
 * ─────────────────────────────────────────────
 */

/* ══════════════════════════════════════════════════════
   TIMETABLE SAM – page-timetable.php
   ══════════════════════════════════════════════════════ */

.samtt-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.samtt-title {
  text-align: center;
  color: var(--red);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 1.5rem;
}

/* ── Legende ──────────────────────────────────────────── */
.samtt-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: #555;
}

.samtt-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.samtt-legend__dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.samtt-legend__item--regular .samtt-legend__dot {
  background: #fff;
  border: 2px solid #ddd;
}

.samtt-legend__item--guest .samtt-legend__dot {
  background: var(--gold-bg, #FBF6E9);
  border: 2px solid var(--gold, #C9A84C);
}

/* ── Tages-Block ─────────────────────────────────────── */
.samtt-day {
  margin-bottom: 2.5rem;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.samtt-day__header {
  background: #2C2C2C;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: .03em;
  padding: 12px 20px;
}

/* ── Tabelle ──────────────────────────────────────────── */
.samtt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.samtt-table thead th {
  background: #f5f5f5;
  color: #444;
  font-size: 0.75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 9px 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.samtt-table tbody tr {
  border-bottom: 1px solid #eeeeee;
  transition: background .15s ease;
}

.samtt-table tbody tr:last-child {
  border-bottom: none;
}

.samtt-table td {
  padding: 13px 16px;
  vertical-align: middle;
  color: #2C2C2C;
}

/* Spaltenbreiten */
.samtt-col--time { width: 130px; white-space: nowrap; }
.samtt-col--cat  { width: 160px; }

/* Hover – reguläre Zeilen */
.samtt-table tbody tr:not(.samtt-row--guest):hover {
  background: #fafafa;
}

/* ── Reguläre Zeile ──────────────────────────────────── */
.samtt-row {
  background: #ffffff;
}

/* ── Gastaufguss-Zeile ───────────────────────────────── */
.samtt-row--guest {
  background: var(--gold-bg, #FBF6E9) !important;
}

.samtt-row--guest td {
  color: #4a3500;
}

/* Goldener Akzent links */
.samtt-row--guest td:first-child {
  border-left: 4px solid var(--gold, #C9A84C);
  padding-left: 12px;
}

/* Hover Gastzeile */
.samtt-row--guest:hover {
  background: #f3e8c8 !important;
}

/* Stern-Icon */
.samtt-guest-star {
  color: var(--gold, #C9A84C);
  margin-right: 4px;
  font-size: .9em;
}

/* ── Badge «Gastaufguss» ─────────────────────────────── */
.samtt-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.samtt-badge--guest {
  background: rgba(201, 168, 76, 0.18);
  color: #7a5c00;
  border: 1px solid rgba(201, 168, 76, 0.45);
}

/* ── Hinweis-Boxen ───────────────────────────────────── */
.samtt-notice {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: .95rem;
}

.samtt-notice--warning {
  background: var(--red-bg, #FDF2F3);
  border-left: 4px solid var(--red, #C8001B);
  color: #6b0011;
}

.samtt-notice--info {
  background: #f0f4ff;
  border-left: 4px solid #4a6cf7;
  color: #1a2d6b;
}

/* ── Fussnote ────────────────────────────────────────── */
.samtt-footnote {
  text-align: center;
  color: #888;
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .samtt-table thead th,
  .samtt-table td {
    padding: 10px 10px;
  }
  .samtt-col--time { width: 90px; }
  .samtt-col--cat  { width: 110px; }
  .samtt-badge     { padding: 2px 7px; font-size: .72rem; }
}
