/* ==========================================================================
   TV 1875 Paderborn e.V. • F2-Junioren – Dezent, Eckig & Stylisch
   ========================================================================== */

:root {
  --club-red: #D71920;
  --club-red-hover: #B8141A;
  --club-slate-900: #0F172A;
  --club-slate-800: #1E293B;
  --club-slate-600: #475569;
  --club-slate-200: #E2E8F0;
  --club-slate-100: #F1F5F9;
  --club-slate-50: #F8FAFC;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--club-slate-50);
  color: var(--club-slate-900);
}

/* Sharp, precise box styling (keine runden KI-Bubbles) */
.box-sharp {
  border-radius: 2px;
}

.card-sharp {
  background-color: #FFFFFF;
  border: 1px solid var(--club-slate-200);
  border-radius: 2px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-sharp:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

/* Subtle accent edge */
.accent-edge {
  border-left: 3px solid var(--club-red) !important;
}

/* Minimalist Button Styling */
.btn-sharp {
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
}

.btn-primary {
  background-color: var(--club-red);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--club-red-hover);
}

.btn-outline {
  background-color: #FFFFFF;
  border: 1px solid var(--club-slate-200);
  color: var(--club-slate-800);
}
.btn-outline:hover {
  background-color: var(--club-slate-100);
  border-color: #CBD5E1;
}

/* Modal styling - clean & minimal */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.12s ease-out;
}

.modal-sharp-box {
  background-color: #FFFFFF;
  border: 1px solid var(--club-slate-200);
  border-radius: 2px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: popIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Calendar Day Cell - Sharp & Compact */
.cal-day-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 2px;
  transition: all 0.12s ease;
  user-select: none;
}
.cal-day-cell:hover:not(.empty-cell) {
  background-color: #F1F5F9;
}
.cal-day-cell.selected-day {
  background-color: #FEF2F2 !important;
  border-color: var(--club-red) !important;
  color: var(--club-red) !important;
  font-weight: 700;
}
.cal-day-cell.today-cell {
  font-weight: 700;
}
.cal-day-cell.today-cell::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background-color: var(--club-red);
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 2px;
}

/* Prominent next event, with unabridged details on mobile and desktop. */
.next-event-card { border: 1px solid #fecaca; border-left: 5px solid var(--club-red); background: #fff; padding: 22px; box-shadow: 0 4px 18px rgba(15,23,42,.05); overflow-wrap: anywhere; }
.next-event-label { color: var(--club-red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.next-event-type { font-size: 12px; font-weight: 600; color: var(--club-slate-600); }
.next-event-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; line-height: 1.3; margin: 4px 0 20px; }
.next-event-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 24px; }
.next-event-facts dt { font-size: 11px; color: var(--club-slate-600); margin-bottom: 3px; }
.next-event-facts dd { font-size: 14px; font-weight: 600; margin: 0; }
.next-event-address { display: block; font-size: 13px; font-weight: 400; margin-top: 3px; }
.next-event-notes { background: var(--club-slate-50); padding: 14px; margin-top: 20px; border: 1px solid var(--club-slate-200); }
.next-event-notes h4 { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.next-event-notes p { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.next-event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
@media (max-width: 480px) { .next-event-card { padding: 16px; } .next-event-facts { grid-template-columns: 1fr; gap: 14px; } }

/* Compact disclosure: full event details appear only when opened. */
.next-event-card { padding: 0; box-shadow: none; }
.next-event-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 14px 16px; list-style: none; }
.next-event-summary::-webkit-details-marker { display: none; }
.next-event-summary .next-event-label { display: block; font-size: 10px; margin: 0 0 4px; }
.next-event-summary-text { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.next-event-toggle { font-size: 18px; font-weight: 600; color: var(--club-red); flex-shrink: 0; }
.next-event-toggle::before { content: '+'; }
.next-event-card[open] .next-event-toggle::before { content: '−'; }
.next-event-summary:focus-visible { outline: 2px solid var(--club-red); outline-offset: 3px; }
.next-event-details { padding: 16px; border-top: 1px solid var(--club-slate-200); }
@media (max-width: 480px) { .next-event-card { padding: 0; } }

/* Shared centered page width and responsive trainer contacts. */
.portal-container { width: 100%; max-width: 1280px; margin-inline: auto; }
.coach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.coach-card { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 26px 20px 18px; border: 1px solid #e6eaf0; border-radius: 16px; background: white; box-shadow: 0 3px 14px rgba(15,23,42,.035); text-align: center; }
.coach-profile { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.coach-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #f1f5f9; border: 4px solid #fff; box-shadow: 0 0 0 1px #e2e8f0; }
.coach-role { color: var(--club-red); font-size: 11px; font-weight: 600; line-height: 1.5; }
.coach-name { color: var(--club-slate-900); font-size: 16px; font-weight: 700; line-height: 1.5; margin-top: 3px; overflow-wrap: anywhere; }
.coach-contact { width: 100%; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.coach-contact a { border-radius: 8px; padding: 8px 12px; font-size: 12px; }
.coach-contact a:focus-visible { outline: 2px solid var(--club-red); outline-offset: 3px; }
@media (max-width: 700px) { .coach-grid { grid-template-columns: 1fr; gap: 12px; } .coach-card { padding: 18px; } .coach-profile { flex-direction: row; text-align: left; } .coach-avatar { width: 60px; height: 60px; flex-shrink: 0; } .coach-contact { justify-content: flex-start; } }

/* Quiet schedule controls: category tabs, one view selector, icon export. */
.schedule-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.schedule-header h2 { font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.calendar-import { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #475569; background: #fff; border: 1px solid #e2e8f0; transition: background .15s, color .15s; }
.calendar-import:hover { color: var(--club-red); background: #fff1f2; border-color: #fecdd3; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e2e8f0; }
.schedule-filters { display: flex; gap: 22px; }
.schedule-filters .filter-btn { background: transparent; color: #64748b; font-size: 13px; font-weight: 600; padding: 12px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.schedule-filters .filter-btn:hover { color: #0f172a; }
.schedule-filters .filter-btn[aria-pressed="true"] { color: var(--club-red); border-bottom-color: var(--club-red); }
.schedule-view { display: inline-flex; align-items: center; gap: 7px; color: #64748b; margin-bottom: 6px; }
.schedule-view select { background: transparent; color: #334155; font-size: 13px; font-weight: 600; padding: 7px 4px; cursor: pointer; border: 0; }
.schedule-toolbar :focus-visible, .calendar-import:focus-visible { outline: 2px solid var(--club-red); outline-offset: 4px; border-radius: 4px; }
#calendarNavBar { border: 0; background: transparent; padding: 4px 0; gap: 8px; }
#calendarNavBar button { border-radius: 8px; border-color: transparent; background: #fff; }
@media (max-width: 400px) { .schedule-filters { gap: 16px; } .schedule-view { gap: 4px; } }

.cancelled-badge { display: inline-block; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 4px; padding: 3px 7px; font-size: 11px; font-weight: 700; }
