/* HP Tickets - Custom Styles */
/* Vereinsfarben: Rot #E31E24, Blau #004B93, Gold #FFD700 */

.honeypot { position: absolute; left: -9999px; opacity: 0; }

.step-indicator { transition: all 0.3s ease; }
.step-indicator.active { background-color: #E31E24; color: #fff; }
.step-indicator.done { background-color: #004B93; color: #fff; }

.status-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 500; border: 1px solid transparent; }
.status-optin_offen { background: #f9fafb; color: #9ca3af; border-color: #e5e7eb; }
.status-offen { background: #eff6ff; color: #3b82f6; border-color: #bfdbfe; }
.status-warteliste { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.status-bestaetigt { background: #f0fdf4; color: #059669; border-color: #a7f3d0; }
.status-zahlung { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.status-bezahlt { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }
.status-abgeschlossen { background: #f9fafb; color: #6b7280; border-color: #e5e7eb; }
.status-storniert { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

.step-content { display: none; }
.step-content.active { display: block; }

.card-hover { transition: box-shadow 0.2s ease; }
.card-hover:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.comment-bubble { max-width: 80%; }
.comment-bubble.kunde { margin-right: auto; background: #dbeafe; }
.comment-bubble.admin { margin-left: auto; background: #f3f4f6; }

.content-page h3 { font-size: 1.1rem; font-weight: 600; color: #004B93; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-page p { margin-bottom: 0.75rem; }
.content-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.content-page li { margin-bottom: 0.25rem; }
.content-page a { color: #004B93; text-decoration: underline; }

/* Ladespinner */
#loading-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(255,255,255,0.7); display: flex;
    align-items: center; justify-content: center;
}
.spinner {
    width: 40px; height: 40px; border: 4px solid #e5e7eb;
    border-top-color: #E31E24; border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; opacity: 0.6; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Button-Hover */
button[type="submit"], a.bg-hp-red, a.bg-hp-blue, a.bg-green-600, a.bg-blue-600 {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
button[type="submit"]:hover, a.bg-hp-red:hover, a.bg-hp-blue:hover, a.bg-green-600:hover, a.bg-blue-600:hover {
  transform: scale(1.02);
}

#status-modal .transform { transition: transform 0.2s ease; }
#status-modal:not(.hidden) .transform { transform: scale(1); }
#status-modal.hidden { visibility: hidden; }

/* Responsive Tables: Zeilen werden auf Mobile zu Karten */
@media (max-width: 639px) {
  .responsive-table thead { display: none !important; }
  .responsive-table tbody tr {
    display: block !important; border: 1px solid #e5e7eb; border-radius: 8px;
    margin-bottom: 8px; padding: 4px 0; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  .responsive-table tbody td {
    display: flex !important; justify-content: space-between; align-items: center;
    padding: 6px 12px; text-align: right; border-bottom: 1px solid #f3f4f6;
    font-size: 0.8rem;
  }
  .responsive-table tbody td:last-child { border-bottom: none; }
  .responsive-table tbody td::before {
    content: attr(data-label); font-weight: 600; color: #6b7280;
    text-align: left; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.5px; flex-shrink: 0; margin-right: 12px;
  }
}
