html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Aktionsknöpfe (Deaktivieren/Löschen) einer Katalogzeile: eigene Zeile unter
   dem Namensfeld, damit das Namensfeld nie zusammengequetscht wird. Gleiche
   Breite je Knopf wie .bc-action-btn (Nutzer-Feedback 08.09.2026), hier direkt
   am Wrapper statt an jedem einzelnen Knopf, weil dieser Wrapper ausschließlich
   für solche Knopfreihen verwendet wird. */
.catalog-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.catalog-item-actions .btn {
  min-width: 7rem;
}

/* Erklär-Icon neben Formularfeldern (data-bs-toggle="tooltip" + title). */
.field-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.3rem;
  border-radius: 50%;
  background: #e9ecef;
  color: #495057;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
  user-select: none;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ==========================================================================
   Big-Combat Kampfsport-Theme
   Dunkle Kopf-/Fußzeile mit Rot-Akzent statt reinem Bootstrap-Schwarz-Weiß,
   restliche Fläche bewusst hell gehalten (Formulare/Tabellen bleiben gut
   lesbar; ein vollständig dunkles Theme wäre für die datenlastigen
   Admin-Formulare dieser Anwendung ein eigenes, größeres Vorhaben).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&display=swap');

:root {
  --bc-ink: #17181c;
  --bc-ink-soft: #24262c;
  --bc-red: #d8262c;
  --bc-red-dark: #a91d22;
  --bc-gold: #e0a324;
  --bc-bs-primary: var(--bc-red);
  --bs-primary: var(--bc-red);
  --bs-primary-rgb: 216, 38, 44;
  --bs-link-color: var(--bc-red-dark);
  --bs-link-hover-color: var(--bc-red);
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: "Oswald", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  text-transform: uppercase;
  border-bottom: 4px solid var(--bc-red);
  padding-bottom: 0.35rem;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.navbar {
  background: linear-gradient(135deg, var(--bc-ink) 0%, var(--bc-ink-soft) 100%) !important;
  border-bottom: 3px solid var(--bc-red) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #f2f2f2 !important;
}

.navbar .navbar-brand {
  text-transform: uppercase;
  font-size: 1.35rem;
}

.navbar .navbar-brand::before {
  content: "🥊";
  margin-right: 0.4rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--bc-gold) !important;
}

.navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Mehrwortige Menüpunkte (z. B. "Meine Organisationen") sollen nicht mitten
   im Wort umbrechen und die Kopfzeile zweizeilig zerreißen - lieber die
   ganze Leiste umbrechen lassen (flex-wrap ist Bootstrap-Standard) als ein
   einzelnes Label. */
.navbar .nav-link {
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--bc-red);
  border-color: var(--bc-red);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--bc-red-dark) !important;
  border-color: var(--bc-red-dark) !important;
}

.btn-outline-primary {
  color: var(--bc-red-dark);
  border-color: var(--bc-red);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  background-color: var(--bc-red);
  border-color: var(--bc-red);
}

.btn-success {
  background-color: #1f7a4d;
  border-color: #1f7a4d;
}

.accordion-button:not(.collapsed) {
  color: var(--bc-red-dark);
  background-color: #fdf1ec;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(216, 38, 44, 0.25);
}

footer.footer {
  background: var(--bc-ink);
  color: #d8d8d8 !important;
  border-top: 3px solid var(--bc-red) !important;
}

footer.footer a {
  color: var(--bc-gold) !important;
}

/* "Meine Organisationen": ein Block je Organisation, darin je Thema
   (Kämpfer, Veranstaltungen, ...) eine eigene Kachel mit Zahlenwert. Rahmen
   farbig nach Organisations-Status statt immer Rot (stärkere Kontur,
   Nutzer-Feedback: "flächendeckend... stärkere Frames bei Kacheln"). */
.org-block {
  border: 1px solid #e2e2e2;
  border-left: 5px solid var(--bc-red);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.org-block-approved { border-left-color: #1f7a4d; }
.org-block-pendingapproval, .org-block-emailverificationpending { border-left-color: var(--bc-gold); }
.org-block-rejected, .org-block-suspended, .org-block-archived { border-left-color: #6c757d; }

.org-block-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.org-block-name {
  font-family: "Oswald", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.org-tile-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  white-space: nowrap;
  background: #e9ecef;
  color: #495057;
}

.org-tile-status.badge-status-approved {
  background: #e3f6ea;
  color: #1f7a4d;
}

.org-tile-status.badge-status-pendingapproval,
.org-tile-status.badge-status-emailverificationpending {
  background: #fdf1de;
  color: #a3690f;
}

.org-tile-status.badge-status-rejected,
.org-tile-status.badge-status-suspended,
.org-tile-status.badge-status-archived {
  background: #fbeaea;
  color: var(--bc-red-dark);
}

.stat-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.9rem 0.5rem;
  border-radius: 0.5rem;
  background: #f8f4ef;
  border: 1px solid #ece5db;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.stat-tile:hover, .stat-tile:focus {
  background: #f1e3d8;
  color: inherit;
  transform: translateY(-1px);
}

.stat-tile-value {
  font-family: "Oswald", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--bc-red-dark);
  line-height: 1;
}

.stat-tile-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-tile.stat-tile-alert .stat-tile-value {
  color: var(--bc-gold);
}

/* Veranstaltungsliste: auffälliger Rahmen statt generischem Hellgrau-auf-Weiß,
   damit auf einen Blick erkennbar ist, ob eine Veranstaltung noch Daten
   braucht (gelb), aktiv/veröffentlicht ist (grün) oder abgelaufen ist
   (dunkel) - siehe Events/Index.cshtml.cs StatusFrameClass. */
.event-card {
  border-width: 1px 1px 1px 6px !important;
  border-style: solid !important;
  margin-bottom: 0.4rem;
  border-radius: 0.4rem;
}

.event-card-active {
  border-color: #cfe8d8 #cfe8d8 #cfe8d8 #1f7a4d !important;
  background-color: #eef8f1;
}

.event-card-active:hover {
  background-color: #e2f2e8;
}

.event-card-pending {
  border-color: #f3e3bb #f3e3bb #f3e3bb var(--bc-gold) !important;
  background-color: #fdf6e3;
}

.event-card-pending:hover {
  background-color: #faedc6;
}

.event-card-expired {
  border-color: #d6d6d8 #d6d6d8 #d6d6d8 var(--bc-ink) !important;
  background-color: #e9e9ea;
  color: #6c757d;
}

.event-card-expired:hover {
  background-color: #dedede;
  color: #6c757d;
}

.event-card-legend {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.event-card-legend.event-card-active { background-color: #1f7a4d; border: none; }
.event-card-legend.event-card-pending { background-color: var(--bc-gold); border: none; }
.event-card-legend.event-card-expired { background-color: var(--bc-ink); border: none; }

/* Matching-Seite: die Kachel selbst bekommt Farbe, nicht nur das Badge -
   Nutzer-Feedback: "damit jeder sofort sieht, welche Kachel ... bedeutet".
   Siehe Events/Matching.cshtml + MatchingLabels.ProposalCardClass. */
.match-card {
  border-width: 1px 1px 1px 6px !important;
  border-style: solid !important;
  border-color: #e2e2e2 #e2e2e2 #e2e2e2 #adb5bd !important;
}

.match-card-selected {
  border-left-color: #0dcaf0 !important;
  background-color: #eafaff;
}

.match-card-waiting {
  border-left-color: var(--bc-gold) !important;
  background-color: #fdf6e3;
}

.match-card-accepted {
  border-left-color: #1f7a4d !important;
  background-color: #eef8f1;
}

.match-card-locked {
  border-left-color: var(--bc-ink) !important;
  background-color: #eef0f2;
}

.match-card-attention {
  border-left-color: var(--bc-red) !important;
  background-color: #fbeaea;
}

.match-card-done {
  border-left-color: #495057 !important;
  background-color: #e9ecef;
}

/* In einer Tabellenzeile funktioniert kein Rahmen sinnvoll (Excel-artige
   Ansicht, Nutzer-Feedback) - nur die Hintergrundfarbe bleibt, wie eine
   bedingte Formatierung. */
.matching-table tr.match-card {
  border: none !important;
}

.matching-table th {
  white-space: nowrap;
  background-color: #f8f9fa;
}

.matching-table td {
  vertical-align: top;
}

/* Matching-Regelprofile (Admin/Matching/Index.cshtml): farblich abgesetzter
   Rahmen je Aktiv-Status, analog zu .event-card/.match-card, plus
   einklappbare Themenbereiche (Harte Regeln / Weiche Kriterien) statt einer
   langen Formularwand - Nutzer-Feedback: "Themenbereiche einklappbar und
   farblich im frame abhebender". */
.profile-card {
  border-width: 1px 1px 1px 6px !important;
  border-style: solid !important;
}

.profile-card-active {
  border-color: #cfe8d8 #cfe8d8 #cfe8d8 #1f7a4d !important;
}

.profile-card-inactive {
  border-color: #d6d6d8 #d6d6d8 #d6d6d8 #adb5bd !important;
  background-color: #f8f9fa;
}

/* Zwei Themenbereiche je Profil farblich unterscheiden: "Harte Regeln"
   (Ausschlusskriterien, rot wie andere Warn-/Grenzwert-Elemente) und
   "Weiche Kriterien" (Score-Gewichtung, blau wie neutrale Kennzahlen). */
.accordion-button.section-hard:not(.collapsed) {
  background-color: #fbeaea;
  color: var(--bc-red-dark);
}

.accordion-button.section-soft:not(.collapsed) {
  background-color: #eafaff;
  color: #0a58ca;
}

/* ==========================================================================
   Generische Kachel- und Tabellen-Bausteine (projektweit, Nutzer-Feedback:
   "sitze grundsätzlich flächendeckend in dem Projekt, diese stärkeren
   Frames bei Kacheln ein... Listenansichten ähnlich wie Excel dargestellt
   werden und rechts die entsprechenden Aktions Buttons"). Die seitenspezifischen
   Klassen oben (.event-card, .match-card, .profile-card) bleiben bestehen,
   neue Seiten nutzen diese generischen Bausteine statt eigener Einzelklassen.
   ========================================================================== */

/* .bc-tile: farblich klar abgesetzter Rahmen für Kacheln/Karten, die einen
   Status ausdrücken (offen/aktiv/inaktiv/kritisch...). Ersetzt schlichte
   Bootstrap-.card ohne Konturfarbe. */
.bc-tile {
  border-width: 1px 1px 1px 6px !important;
  border-style: solid !important;
  border-radius: 0.4rem;
}

.bc-tile-neutral {
  border-color: #e2e2e2 #e2e2e2 #e2e2e2 #adb5bd !important;
}

.bc-tile-positive {
  border-color: #cfe8d8 #cfe8d8 #cfe8d8 #1f7a4d !important;
  background-color: #eef8f1;
}

.bc-tile-attention {
  border-color: #f3e3bb #f3e3bb #f3e3bb var(--bc-gold) !important;
  background-color: #fdf6e3;
}

.bc-tile-danger {
  border-color: #f3c6c6 #f3c6c6 #f3c6c6 var(--bc-red) !important;
  background-color: #fbeaea;
}

.bc-tile-info {
  border-color: #bfeaf5 #bfeaf5 #bfeaf5 #0dcaf0 !important;
  background-color: #eafaff;
}

.bc-tile-muted {
  border-color: #d6d6d8 #d6d6d8 #d6d6d8 #adb5bd !important;
  background-color: #f8f9fa;
  color: #6c757d;
}

/* .bc-field-pair: dezente Klammer um zwei oder mehr Formularfelder, die
   fachlich zusammengehören (z. B. Kartenart-Menge + zugehöriger Preis) -
   Nutzer-Feedback: "baue dezente farbliche Akzente um die Kartenarten-Preis
   (was zusammen gehört)". Bewusst neutral statt Statusfarbe, weil hier keine
   Zustandsaussage gemacht wird, nur eine Gruppierung. */
.bc-field-pair {
  margin: 0;
  padding: 0.5rem 0.5rem 0.25rem;
  border: 1px solid var(--bc-line);
  border-radius: 0.4rem;
  background-color: var(--bc-surface-muted);
}

/* .bc-table: Excel-artige Listenansicht - kompakte Kopfzeile, Aktionen immer
   in der letzten (rechtsbündigen) Spalte. In einer Tabellenzeile funktioniert
   kein Rahmen sinnvoll, nur die Hintergrundfarbe bleibt (wie eine bedingte
   Formatierung), siehe .bc-row-* unten. */
.bc-table th {
  white-space: nowrap;
  background-color: #f8f9fa;
}

.bc-table td {
  vertical-align: middle;
}

.bc-table td.bc-table-actions,
.bc-table th.bc-table-actions {
  text-align: right;
  white-space: nowrap;
}

/* .bc-action-btn: gleiche Breite fuer Aktions-Knopfreihen wie "Bearbeiten/
   Archivieren/Zusammenfuehren/Loeschen" (Nutzer-Feedback 08.09.2026: "Button
   sollen im Idealfall, wenn es mehr als einer ist, die gleiche Breite
   haben"). Nur eine Mindestbreite, kein fester Wert - laengere Uebersetzungen
   duerfen den Knopf trotzdem noch sprengen, statt Text abzuschneiden. */
.bc-action-btn {
  min-width: 7rem;
}

.bc-table tr.bc-row-positive { background-color: #eef8f1; }
.bc-table tr.bc-row-attention { background-color: #fdf6e3; }
.bc-table tr.bc-row-danger { background-color: #fbeaea; }

/* .bc-list-item: wie .bc-tile, aber nur der linke Rahmen - für
   list-group-item, wo sich Ober-/Unterkante mit dem Nachbarelement
   überlappen sollen (z. B. Athletes/Index.cshtml, bewusst Kartenliste statt
   Tabelle für Mobilgeräte, docs/07_UX_AND_DESIGN.md). */
.bc-list-item {
  border-left-width: 6px !important;
  border-left-style: solid !important;
}

.bc-list-item-positive { border-left-color: #1f7a4d !important; }
.bc-list-item-attention { border-left-color: var(--bc-gold) !important; }
.bc-list-item-danger { border-left-color: var(--bc-red) !important; }
.bc-list-item-muted { border-left-color: #adb5bd !important; }
.bc-table tr.bc-row-muted, .bc-table tr.bc-row-muted td { background-color: #f1f1f1; color: #6c757d; }

/* ==========================================================================
   Designsystem 2026: freundlich, klar und kampfsportorientiert
   Die sportliche Identität entsteht durch starke Konturen, Ringlinien und
   präzise Akzente. Arbeitsflächen bleiben hell und ruhig.
   ========================================================================== */

:root {
  --bc-canvas: #f4f1ea;
  --bc-surface: #fffdf9;
  --bc-surface-strong: #ffffff;
  --bc-surface-muted: #ebe7dd;
  --bc-ink: #172326;
  --bc-ink-soft: #243438;
  --bc-text: #253236;
  --bc-text-muted: #667275;
  --bc-line: #d9d5ca;
  --bc-line-strong: #c2bcae;
  --bc-red: #cf4b3f;
  --bc-red-dark: #a93831;
  --bc-coral-soft: #fae8e4;
  --bc-gold: #d9a441;
  --bc-gold-soft: #fbf1d8;
  --bc-teal: #26726c;
  --bc-teal-dark: #195852;
  --bc-teal-soft: #e2f1ee;
  --bc-blue-soft: #e7f0f4;
  --bc-success: #34775b;
  --bc-danger: #b43c36;
  --bc-sidebar-collapsed: 5rem;
  --bc-sidebar-expanded: 17rem;
  --bc-radius-sm: 0.55rem;
  --bc-radius: 0.9rem;
  --bc-radius-lg: 1.35rem;
  --bc-shadow-sm: 0 0.25rem 0.9rem rgba(23, 35, 38, 0.07);
  --bc-shadow: 0 0.8rem 2.4rem rgba(23, 35, 38, 0.1);
  --bs-primary: var(--bc-red);
  --bs-primary-rgb: 207, 75, 63;
  --bs-link-color: var(--bc-teal-dark);
  --bs-link-hover-color: var(--bc-red-dark);
  --bs-body-color: var(--bc-text);
  --bs-body-bg: var(--bc-canvas);
  --bs-border-color: var(--bc-line);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.bc-shell {
  min-height: 100vh;
  margin: 0;
  color: var(--bc-text);
  background:
    radial-gradient(circle at 90% 4%, rgba(217, 164, 65, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 35rem),
    var(--bc-canvas);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

body.bc-shell::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 12rem;
  content: "";
  pointer-events: none;
  opacity: 0.32;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2.85rem,
    rgba(38, 114, 108, 0.1) 2.85rem,
    rgba(38, 114, 108, 0.1) 3rem
  );
  mask-image: linear-gradient(to bottom, black, transparent);
}

a {
  color: var(--bc-teal-dark);
  text-underline-offset: 0.17em;
}

a:hover {
  color: var(--bc-red-dark);
}

.bc-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--bc-red-dark);
  border-radius: var(--bc-radius-sm);
  transform: translateY(-150%);
}

.bc-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

/* Branding */
.bc-brand-mark {
  display: block;
  flex: 0 0 2.9rem;
  width: 2.9rem;
  height: 2.9rem;
  object-fit: contain;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 0 0.16rem rgba(217, 164, 65, 0.24);
}

/* Standardmäßig schmale Desktop-Navigation; erst der Nutzer klappt sie auf. */
.bc-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: var(--bc-sidebar-collapsed);
  padding: 1rem 0.65rem;
  flex-direction: column;
  overflow: visible;
  color: #f5f1e9;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 4.75rem, rgba(255, 255, 255, 0.045) 4.75rem, rgba(255, 255, 255, 0.045) 4.9rem),
    linear-gradient(165deg, #1d3134 0%, var(--bc-ink) 58%, #10191b 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0.75rem 0 2.5rem rgba(23, 35, 38, 0.15);
  transition: width 180ms ease;
}

.bc-sidebar::after {
  display: none;
}

.bc-sidebar-brand-row {
  position: relative;
  min-height: 4rem;
  margin-bottom: 1.2rem;
}

.bc-sidebar-brand,
.bc-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.bc-sidebar-brand:hover,
.bc-mobile-brand:hover {
  color: #fff;
}

.bc-sidebar-brand strong,
.bc-mobile-brand strong {
  display: block;
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bc-sidebar-brand small,
.bc-mobile-brand small {
  display: block;
  margin-top: 0.15rem;
  color: #bfccc9;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bc-sidebar-toggle {
  position: absolute;
  top: 0.7rem;
  right: -1.35rem;
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  color: var(--bc-ink);
  background: var(--bc-surface);
  border: 1px solid var(--bc-line-strong);
  border-radius: 50%;
  box-shadow: var(--bc-shadow-sm);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease;
}

.bc-sidebar-toggle:hover,
.bc-sidebar-toggle:focus-visible {
  background: var(--bc-gold-soft);
}

.bc-sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.35rem;
}

.bc-nav-link {
  display: flex;
  width: 100%;
  min-height: 2.85rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.45rem;
  overflow: hidden;
  color: #dbe4e2;
  background: transparent;
  border: 0;
  border-radius: 0.7rem;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.bc-nav-link:hover,
.bc-nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(0.1rem);
}

.bc-nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(207, 75, 63, 0.34), rgba(207, 75, 63, 0.08));
  box-shadow: inset 0.2rem 0 var(--bc-red);
}

.bc-nav-cluster {
  display: grid;
  gap: 0.2rem;
}

.bc-nav-submenu {
  display: none;
  margin: 0.05rem 0 0.35rem 1.45rem;
  padding: 0.15rem 0 0.15rem 0.75rem;
  border-left: 1px solid rgba(217, 164, 65, 0.38);
  gap: 0.12rem;
}

body.bc-nav-expanded .bc-nav-submenu,
.bc-mobile-nav-submenu {
  display: grid;
}

.bc-nav-sublink {
  position: relative;
  display: flex;
  min-height: 2rem;
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  align-items: center;
  overflow: hidden;
  color: #bac8c6;
  border-radius: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.bc-nav-sublink::before {
  position: absolute;
  left: 0.15rem;
  width: 0.3rem;
  height: 0.3rem;
  content: "";
  background: #82918f;
  border-radius: 50%;
}

.bc-nav-sublink:hover,
.bc-nav-sublink:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.bc-nav-sublink.active {
  color: #fff;
  background: rgba(217, 164, 65, 0.13);
}

.bc-nav-sublink.active::before {
  background: var(--bc-gold);
}

.bc-nav-icon {
  display: inline-flex;
  flex: 0 0 2.05rem;
  width: 2.05rem;
  height: 2.05rem;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}

.bc-nav-label {
  width: 0;
  overflow: hidden;
  opacity: 0;
  font-weight: 650;
  transition: opacity 120ms ease 40ms;
}

.bc-admin-menu > .bc-nav-link::after {
  display: none;
}

.bc-admin-dropdown {
  min-width: 14rem;
  padding: 0.55rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
}

.bc-admin-dropdown .dropdown-header {
  margin: 0;
  color: var(--bc-red-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bc-admin-dropdown .dropdown-item {
  padding: 0.55rem 0.7rem;
  color: var(--bc-text);
  border-radius: 0.45rem;
}

.bc-admin-dropdown .dropdown-item:hover,
.bc-admin-dropdown .dropdown-item:focus {
  color: var(--bc-teal-dark);
  background: var(--bc-teal-soft);
}

.bc-sidebar-account {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bc-account-nav {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
}

.bc-account-nav form {
  margin: 0;
}

.bc-account-avatar {
  color: #fff;
  background: rgba(217, 164, 65, 0.26);
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
}

.bc-account-label small,
.bc-account-label strong {
  display: block;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-account-label small {
  color: #aebbb9;
  font-size: 0.65rem;
  font-weight: 500;
}

body.bc-nav-expanded .bc-sidebar {
  width: var(--bc-sidebar-expanded);
}

body.bc-nav-expanded .bc-sidebar .bc-nav-label {
  width: auto;
  opacity: 1;
}

body.bc-nav-expanded .bc-sidebar-toggle {
  transform: rotate(180deg);
}

.bc-page-shell {
  display: flex;
  min-height: 100vh;
  margin-left: var(--bc-sidebar-collapsed);
  flex-direction: column;
  transition: margin-left 180ms ease;
}

body.bc-nav-expanded .bc-page-shell {
  margin-left: var(--bc-sidebar-expanded);
}

/* Mobile-Navigation ist ebenfalls standardmäßig geschlossen. */
.bc-mobile-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: linear-gradient(145deg, var(--bc-ink-soft), var(--bc-ink));
  border-bottom: 0.2rem solid var(--bc-red);
  box-shadow: var(--bc-shadow-sm);
}

.bc-mobile-menu-button {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.65rem;
  flex-direction: column;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.7rem;
}

.bc-mobile-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1rem;
}

.bc-mobile-drawer {
  width: min(88vw, 21rem) !important;
  color: #fff;
  background: linear-gradient(165deg, #1d3134, #10191b);
  border-right: 0;
}

.bc-mobile-drawer .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bc-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bc-mobile-drawer .bc-nav-label {
  width: auto;
  opacity: 1;
}

.bc-mobile-nav-submenu {
  margin: -0.05rem 0 0.45rem 1.45rem;
}

.bc-mobile-nav-group {
  overflow: hidden;
  color: #dbe4e2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
}

.bc-mobile-nav-group summary {
  display: flex;
  min-height: 2.85rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.bc-mobile-nav-group summary::-webkit-details-marker {
  display: none;
}

.bc-mobile-nav-group summary::after {
  margin-left: auto;
  content: "+";
  color: var(--bc-gold);
  font-size: 1.2rem;
}

.bc-mobile-nav-group[open] summary::after {
  content: "−";
}

.bc-mobile-nav-group > div {
  display: grid;
  padding: 0.25rem 0.55rem 0.65rem 3.2rem;
  gap: 0.2rem;
}

.bc-mobile-nav-group a {
  padding: 0.42rem 0;
  color: #dbe4e2;
  text-decoration: none;
}

.bc-mobile-account {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Seitenfläche und Hierarchie */
.bc-main {
  flex: 1 1 auto;
  padding: clamp(1.15rem, 2.3vw, 2.4rem);
}

.bc-content {
  width: min(100%, 92rem);
  margin-inline: auto;
}

.bc-breadcrumbs {
  margin-bottom: 1.15rem;
}

.bc-breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--bc-text-muted);
  font-size: 0.82rem;
  list-style: none;
}

.bc-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bc-breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: var(--bc-line-strong);
  font-size: 1rem;
}

.bc-breadcrumbs a {
  padding: 0.25rem 0.45rem;
  color: var(--bc-teal-dark);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(194, 188, 174, 0.72);
  border-radius: 999px;
  text-decoration: none;
}

.bc-breadcrumbs a:hover,
.bc-breadcrumbs a:focus-visible {
  color: var(--bc-red-dark);
  background: #fff;
  border-color: var(--bc-red);
}

.bc-breadcrumbs [aria-current="page"] {
  max-width: min(32rem, 68vw);
  overflow: hidden;
  color: var(--bc-text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-app-footer {
  display: flex;
  min-height: 4.5rem;
  padding: 1rem clamp(1.15rem, 2.3vw, 2.4rem);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #d3dcda;
  background: var(--bc-ink);
  border-top: 0.18rem solid var(--bc-red);
  font-size: 0.82rem;
}

.bc-app-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bc-app-footer a {
  color: #f4dba7;
}

.bc-footer-brand {
  color: #fff;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Typografie */
h1, h2, h3, h4, h5, h6,
.card-title,
.accordion-button {
  font-family: Bahnschrift, "Segoe UI Variable Display", "Segoe UI", sans-serif;
  color: var(--bc-ink);
}

h1 {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.35rem;
  padding: 0 0 0.65rem;
  border: 0;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-transform: none;
}

h1::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4.2rem;
  height: 0.28rem;
  content: "";
  background: linear-gradient(90deg, var(--bc-red) 0 63%, var(--bc-gold) 63%);
  border-radius: 99px;
}

h2 {
  font-weight: 700;
}

.lead {
  color: var(--bc-text-muted);
}

.text-muted {
  color: var(--bc-text-muted) !important;
}

/* Einheitliche Arbeitskomponenten */
.card,
.org-block,
.list-group-item {
  background-color: var(--bc-surface);
  border-color: var(--bc-line);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow-sm);
}

.card {
  overflow: hidden;
}

.card-header {
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, rgba(38, 114, 108, 0.08), rgba(255, 255, 255, 0.74));
  border-bottom-color: var(--bc-line);
  font-weight: 700;
}

.card-body {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.bc-content > form:not(.d-inline):not(.form-inline),
.bc-content > .row > [class*="col-"] > form:not(.d-inline) {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow-sm);
}

/* Identity-Personaldaten: zusammengehörige Aktionen in einer ruhigen Zeile. */
#download-data {
  display: inline-flex;
  margin: 0 0.45rem 0.5rem 0;
  padding: 0;
  vertical-align: top;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#download-data + p {
  display: inline-flex;
  margin: 0 0 0.5rem;
  vertical-align: top;
}

#download-data .btn-primary {
  color: var(--bc-ink-soft);
  background: #efede7;
  border-color: #9ca3a2;
}

#download-data .btn-primary:hover,
#download-data .btn-primary:focus,
#download-data .btn-primary:active {
  color: var(--bc-ink) !important;
  background: #e2dfd7 !important;
  border-color: #737e7d !important;
}

#delete.btn-primary {
  color: #fff;
  background: var(--bc-danger);
  border-color: var(--bc-danger);
}

.form-label,
label:not(.form-check-label) {
  color: #344347;
  font-weight: 650;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 2.75rem;
  color: var(--bc-text);
  background-color: #fff;
  border-color: var(--bc-line-strong);
  border-radius: var(--bc-radius-sm);
}

.form-control-sm,
.form-select-sm,
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .input-group-text {
  min-height: 2.25rem;
}

.form-control:hover,
.form-select:hover {
  border-color: #a8a193;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--bc-teal);
  box-shadow: 0 0 0 0.22rem rgba(38, 114, 108, 0.17);
}

.form-check-input:checked {
  background-color: var(--bc-teal);
  border-color: var(--bc-teal);
}

.field-hint {
  color: var(--bc-teal-dark);
  background: var(--bc-teal-soft);
  border: 1px solid #b9d9d4;
}

.btn {
  min-height: 2.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  box-shadow: none;
  transition: transform 130ms ease, box-shadow 130ms ease, background-color 130ms ease, border-color 130ms ease;
}

.btn-sm {
  min-height: 2.2rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.83rem;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0.35rem 0.85rem rgba(23, 35, 38, 0.12);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, #dc5b4f, var(--bc-red-dark));
  border-color: var(--bc-red-dark);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff !important;
  background: linear-gradient(145deg, var(--bc-red), #8f2e29) !important;
  border-color: #8f2e29 !important;
}

.btn-outline-primary {
  color: var(--bc-red-dark);
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--bc-red);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff;
  background: var(--bc-red);
  border-color: var(--bc-red);
}

.btn-success {
  background: var(--bc-success);
  border-color: var(--bc-success);
}

.btn-outline-secondary,
.btn-outline-dark {
  color: var(--bc-ink-soft);
  background: rgba(255, 255, 255, 0.55);
  border-color: #8a9493;
}

.btn-danger,
.btn-outline-danger:hover {
  background-color: var(--bc-danger);
  border-color: var(--bc-danger);
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 0.2rem solid var(--bc-gold);
  outline-offset: 0.16rem;
}

.alert {
  color: var(--bc-text);
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-left-width: 0.35rem;
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow-sm);
}

.alert-info {
  background: var(--bc-blue-soft);
  border-left-color: var(--bc-teal);
}

.alert-success {
  background: var(--bc-teal-soft);
  border-left-color: var(--bc-success);
}

.alert-warning {
  background: var(--bc-gold-soft);
  border-left-color: var(--bc-gold);
}

.alert-danger {
  background: var(--bc-coral-soft);
  border-left-color: var(--bc-danger);
}

.badge {
  padding: 0.42em 0.68em;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bg-secondary {
  background-color: #637173 !important;
}

/* Accordions und native Details bleiben initial geschlossen. */
.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion-item {
  overflow: hidden;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line) !important;
  border-radius: var(--bc-radius) !important;
  box-shadow: var(--bc-shadow-sm);
}

.accordion-button {
  min-height: 3.6rem;
  padding: 0.9rem 1rem;
  color: var(--bc-ink);
  background: linear-gradient(90deg, rgba(38, 114, 108, 0.075), transparent);
  font-weight: 720;
}

.accordion-button.collapsed:hover {
  background: linear-gradient(90deg, rgba(217, 164, 65, 0.12), transparent);
}

.accordion-button:not(.collapsed) {
  color: var(--bc-teal-dark);
  background: var(--bc-teal-soft);
  box-shadow: inset 0 -1px var(--bc-line);
}

.accordion-button::after {
  padding: 0.25rem;
  background-color: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.accordion-body {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.bc-content details:not(.bc-mobile-nav-group) {
  overflow: hidden;
  margin-block: 0.75rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-sm);
}

.bc-content details:not(.bc-mobile-nav-group) > summary {
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  color: var(--bc-teal-dark);
  background: rgba(38, 114, 108, 0.07);
  font-weight: 700;
}

.bc-content details:not(.bc-mobile-nav-group) > :not(summary) {
  margin-inline: 0.85rem;
}

/* Listen und Tabellen */
.list-group {
  gap: 0.65rem;
}

.list-group-item {
  padding: 0.9rem 1rem;
  border-width: 1px;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  color: var(--bc-text);
  background: var(--bc-teal-soft);
}

.table,
.bc-table,
.matching-table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
  color: var(--bc-text);
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow-sm);
}

.table > :not(caption) > * > *,
.bc-table > :not(caption) > * > * {
  padding: 0.78rem 0.72rem;
  border-bottom-color: #e5e1d7;
}

.table thead th,
.bc-table thead th,
.matching-table th {
  color: #354549;
  background: #eceae3;
  border-bottom: 2px solid var(--bc-line-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.table tbody tr:last-child > *,
.bc-table tbody tr:last-child > * {
  border-bottom: 0;
}

.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(38, 114, 108, 0.07);
  color: var(--bc-text);
}

.table-responsive {
  padding: 0.15rem 0.15rem 0.8rem;
  border-radius: var(--bc-radius);
}

.event-card,
.match-card,
.profile-card,
.bc-tile {
  border-radius: var(--bc-radius) !important;
  box-shadow: var(--bc-shadow-sm);
}

.org-block {
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border-left-width: 0.35rem;
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow);
}

.org-block-header {
  margin-bottom: 1rem;
}

.org-block-name {
  color: var(--bc-ink);
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: 1.35rem;
}

.stat-tile-grid {
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.8rem;
}

.stat-tile {
  min-height: 7rem;
  background: linear-gradient(145deg, #fff, #f2eee5);
  border-color: var(--bc-line);
  border-radius: var(--bc-radius);
}

.stat-tile::before {
  width: 2rem;
  height: 0.18rem;
  content: "";
  background: var(--bc-gold);
  border-radius: 99px;
}

.stat-tile:hover,
.stat-tile:focus {
  background: linear-gradient(145deg, #fff, var(--bc-teal-soft));
  box-shadow: var(--bc-shadow-sm);
  transform: translateY(-2px);
}

.stat-tile-value {
  color: var(--bc-teal-dark);
  font-family: Bahnschrift, "Segoe UI", sans-serif;
}

.stat-tile-label {
  color: var(--bc-text-muted);
  font-weight: 700;
}

/* Öffentliche Startseite */

/* Start-Angebot: als "Patch" auf den Hero-Banner geheftet statt als
   eigener Balken davor (Nutzer-Skizze: aufgeklebter, leicht gedrehter
   Aufkleber im rechten Bannerbereich) - auf Startseite UND Tarife-Seite.
   Muss Beginn, Ende und 0-Euro-Betrag konkret nennen, keine vage
   Dauerwerbung. */
.bc-launch-patch {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  z-index: 2;
  max-width: 19rem;
  padding: 1.1rem 1.4rem;
  background: rgba(217, 164, 65, 0.18);
  border: 3px dashed var(--bc-red);
  border-radius: 1rem;
  color: #fff;
  text-align: left;
  text-decoration: none;
  transform: rotate(4deg);
  box-shadow: 0 0 0 4px rgba(212, 61, 45, 0.14);
  transition: transform 150ms ease, background 150ms ease;
}

.bc-launch-patch:hover,
.bc-launch-patch:focus-visible {
  color: #fff;
  background: rgba(217, 164, 65, 0.28);
  transform: rotate(0deg) scale(1.04);
}

.bc-launch-patch-badge {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--bc-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bc-launch-patch strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.35;
}

.bc-launch-patch small {
  display: block;
  margin-top: 0.4rem;
  color: #d8e2e0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.bc-hero {
  position: relative;
  display: grid;
  min-height: clamp(19rem, 36vw, 25rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  align-content: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(15, 29, 32, 0.98) 0%, rgba(23, 48, 50, 0.94) 57%, rgba(38, 114, 108, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--bc-shadow);
}

.bc-hero::before,
.bc-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.bc-hero::before {
  inset: 14% -4rem auto 43%;
  height: 9rem;
  opacity: 0.42;
  transform: rotate(-7deg);
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 2rem, rgba(255, 255, 255, 0.5) 2rem, rgba(255, 255, 255, 0.5) 2.1rem);
}

.bc-hero::after {
  right: -4rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border: 3rem solid rgba(217, 164, 65, 0.12);
  border-radius: 50%;
}

.bc-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
}

.bc-eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.42rem 0.75rem;
  color: #ffe7b8;
  background: rgba(217, 164, 65, 0.13);
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bc-hero h1 {
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 3.9rem);
  letter-spacing: -0.045em;
}

.bc-hero h1::after {
  width: 6.5rem;
  background: linear-gradient(90deg, var(--bc-red) 0 58%, var(--bc-gold) 58%);
}

.bc-hero .lead {
  max-width: 34rem;
  color: #d8e2e0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.bc-hero-actions {
  display: flex;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.bc-hero .btn-outline-light:hover {
  color: var(--bc-ink);
}

.bc-stat-grid {
  display: grid;
  margin: clamp(1rem, 2vw, 1.4rem) 0 clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.bc-public-stat {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.55rem);
  overflow: hidden;
  background: var(--bc-surface);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow-sm);
}

.bc-public-stat::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.8rem;
  height: 0.22rem;
  content: "";
  background: var(--bc-gold);
}

.bc-public-stat strong {
  display: block;
  color: var(--bc-teal-dark);
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.bc-public-stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--bc-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.bc-section-heading {
  display: flex;
  margin-bottom: 1rem;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.bc-section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.bc-public-event-card {
  position: relative;
  border-top: 0.25rem solid var(--bc-teal) !important;
}

.bc-public-event-card .card-title {
  font-size: 1.2rem;
}

.bc-empty-state {
  padding: 1.2rem;
  color: var(--bc-text-muted);
  background: rgba(255, 253, 249, 0.62);
  border: 1px dashed var(--bc-line-strong);
  border-radius: var(--bc-radius);
  text-align: center;
}

/* Fightcard: sachliche Wettkampfplanung statt plakativem Event-Look. */
.bc-fightcard-toolbar {
  display: flex;
  margin: -0.45rem 0 1.35rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 650;
}

.bc-fightcard-toolbar a {
  color: var(--bc-teal-dark);
  text-decoration-color: rgba(29, 88, 84, 0.35);
  text-underline-offset: 0.2rem;
}

.bc-fightcard-toolbar a:hover,
.bc-fightcard-toolbar a:focus-visible {
  color: var(--bc-ink);
  text-decoration-color: currentColor;
}

.bc-fightcard-filter {
  background: rgba(255, 253, 249, 0.82);
  border-color: var(--bc-line-strong);
  box-shadow: none;
}

.bc-fightcard-filter .card-body {
  padding: 1rem 1.15rem 1.1rem;
}

.bc-fightcard-section-heading {
  display: flex;
  margin: 0.2rem 0 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.bc-count {
  display: inline-grid;
  min-width: 1.8rem;
  min-height: 1.8rem;
  margin-left: 0.35rem;
  place-items: center;
  color: var(--bc-text-muted);
  background: #ebe8e1;
  border: 1px solid var(--bc-line);
  border-radius: 0.35rem;
  font-size: 0.74rem;
  font-weight: 750;
  vertical-align: middle;
}

.bc-fightcard-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  color: var(--bc-text-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.bc-fightcard-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap;
}

.bc-fightcard-legend span::before {
  width: 0.8rem;
  height: 0.16rem;
  content: "";
  background: #9da5a8;
  border-radius: 99px;
}

.bc-fightcard-legend .bc-legend-attention::before { background: #a77c2d; }
.bc-fightcard-legend .bc-legend-info::before { background: #477e82; }
.bc-fightcard-legend .bc-legend-positive::before { background: #397258; }
.bc-fightcard-legend .bc-legend-danger::before { background: #a84b4b; }

.bc-fight-card {
  background: var(--bc-surface);
  border-width: 1px 1px 1px 3px !important;
  border-radius: 0.55rem !important;
  box-shadow: none !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.bc-fight-card:hover {
  box-shadow: 0 0.25rem 0.85rem rgba(21, 35, 37, 0.055) !important;
}

.bc-fight-card.bc-tile-neutral {
  border-color: var(--bc-line) var(--bc-line) var(--bc-line) #9ba5aa !important;
}

.bc-fight-card.bc-tile-positive {
  background: var(--bc-surface);
  border-color: var(--bc-line) var(--bc-line) var(--bc-line) #397258 !important;
}

.bc-fight-card.bc-tile-attention {
  background: var(--bc-surface);
  border-color: var(--bc-line) var(--bc-line) var(--bc-line) #a77c2d !important;
}

.bc-fight-card.bc-tile-danger {
  background: var(--bc-surface);
  border-color: var(--bc-line) var(--bc-line) var(--bc-line) #a84b4b !important;
}

.bc-fight-card.bc-tile-info {
  background: var(--bc-surface);
  border-color: var(--bc-line) var(--bc-line) var(--bc-line) #477e82 !important;
}

.bc-fight-card.bc-tile-muted {
  background: #f8f7f4;
  border-color: var(--bc-line) var(--bc-line) var(--bc-line) #a9adae !important;
}

.bc-fight-card-heading {
  margin: 0;
}

.bc-fight-card .bc-fight-card-header {
  display: grid;
  min-height: 5.5rem;
  padding: 0.85rem 1rem;
  grid-template-columns: 4.5rem minmax(26rem, 1fr) minmax(7.5rem, auto) 1.35rem;
  align-items: center;
  gap: 1rem;
  color: var(--bc-ink);
  background: #fffefa;
  border: 0;
  box-shadow: none;
  text-align: left;
}

.bc-fight-card .bc-fight-card-header.collapsed:hover,
.bc-fight-card .bc-fight-card-header:not(.collapsed) {
  color: var(--bc-ink);
  background: #faf9f5;
  box-shadow: none;
}

.bc-fight-card .bc-fight-card-header::after {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  grid-column: 4;
  margin-left: 0;
  place-items: center;
  content: "+";
  color: var(--bc-text-muted);
  background-color: #f1efe9;
  background-image: none;
  border: 1px solid var(--bc-line);
  border-radius: 0.25rem;
  font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.62;
  transform: none;
}

.bc-fight-card .bc-fight-card-header:not(.collapsed)::after {
  content: "−";
  background-image: none;
  transform: none;
}

.bc-fight-number {
  display: grid;
  min-height: 3.25rem;
  padding-right: 0.9rem;
  align-content: center;
  border-right: 1px solid var(--bc-line);
}

.bc-fight-number span {
  color: var(--bc-text-muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.bc-fight-number strong {
  margin-top: 0.22rem;
  color: var(--bc-ink);
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.bc-fight-matchup {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.bc-fighter {
  display: grid;
  min-width: 0;
  gap: 0.26rem;
}

.bc-corner-label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--bc-text-muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.bc-corner-label::before {
  width: 0.65rem;
  height: 0.13rem;
  content: "";
  background: #8e989b;
  border-radius: 99px;
}

.bc-fighter-red .bc-corner-label::before { background: #a14e57; }
.bc-fighter-blue .bc-corner-label::before { background: #4c6f91; }

.bc-fighter-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.bc-fighter-copy strong {
  overflow: hidden;
  color: var(--bc-ink);
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-fighter-copy small {
  overflow: hidden;
  color: var(--bc-text-muted);
  font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-versus {
  color: #8a8f90;
  font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bc-fight-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.bc-fight-card .bc-fight-tags .badge {
  padding: 0.36em 0.58em;
  color: #526063 !important;
  background: transparent !important;
  border: 1px solid #c9cdcc;
  border-radius: 0.28rem;
  font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
}

.bc-fight-card.bc-tile-positive .bc-fight-status {
  color: #2f684e !important;
  border-color: #9fc2b1;
}

.bc-fight-card.bc-tile-attention .bc-fight-status {
  color: #805d1d !important;
  border-color: #d8bc82;
}

.bc-fight-card.bc-tile-info .bc-fight-status {
  color: #35686b !important;
  border-color: #9bbfc1;
}

.bc-fight-card .bc-fight-tags .bg-danger {
  color: #8f3333 !important;
  background: #fbefed !important;
  border-color: #dfa5a0;
}

.bc-fight-card .card-body {
  background: #fdfcf9;
  border-top: 1px solid var(--bc-line);
}

.bc-fight-meta {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.38rem 0.55rem;
  color: var(--bc-text-muted);
  background: #f1efe9;
  border-radius: 0.28rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.bc-fight-proposal {
  padding: 1rem 1.15rem;
  background: var(--bc-surface);
  border-left-width: 3px !important;
  box-shadow: none;
}

@media (max-width: 1199.98px) {
  .bc-fight-card .bc-fight-card-header {
    grid-template-columns: 4rem minmax(0, 1fr) 1.35rem;
  }

  .bc-fight-tags {
    grid-column: 2;
    justify-content: flex-start;
  }

  .bc-fight-card .bc-fight-card-header::after {
    grid-row: 1 / span 2;
    grid-column: 3;
  }
}

@media (max-width: 767.98px) {
  .bc-fightcard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .bc-fightcard-legend {
    column-gap: 0.7rem;
  }

  .bc-fight-card .bc-fight-card-header {
    min-height: 0;
    padding: 0.85rem 0.75rem;
    grid-template-columns: 3.35rem minmax(0, 1fr) 1.15rem;
    align-items: start;
    gap: 0.7rem;
  }

  .bc-fight-number {
    min-height: 2.8rem;
    padding-right: 0.65rem;
  }

  .bc-fight-number strong {
    font-size: 1.12rem;
  }

  .bc-fight-matchup {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .bc-versus {
    display: none;
  }

  .bc-fighter-blue {
    padding-top: 0.65rem;
    border-top: 1px solid var(--bc-line);
  }

  .bc-fighter-copy strong,
  .bc-fighter-copy small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .bc-fight-tags {
    grid-column: 2;
  }

  .bc-fight-card .bc-fight-card-header::after {
    grid-row: 1 / span 2;
    grid-column: 3;
    align-self: center;
  }

  .bc-fight-proposal .bc-fight-matchup {
    gap: 0.8rem;
  }
}

/* Statusrahmen an die ruhigere Palette angleichen. */
.org-block-approved,
.bc-tile-positive,
.event-card-active,
.match-card-accepted {
  border-left-color: var(--bc-success) !important;
}

.org-block-pendingapproval,
.org-block-emailverificationpending,
.bc-tile-attention,
.event-card-pending,
.match-card-waiting {
  border-left-color: var(--bc-gold) !important;
}

.bc-tile-danger,
.match-card-attention {
  border-left-color: var(--bc-danger) !important;
}

@media (max-width: 991.98px) {
  .bc-page-shell,
  body.bc-nav-expanded .bc-page-shell {
    margin-left: 0;
  }

  .bc-main {
    padding-top: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .bc-main {
    padding: 1rem 0.8rem 1.5rem;
  }

  .bc-breadcrumbs ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .bc-breadcrumbs li {
    flex: 0 0 auto;
  }

  .bc-content > form:not(.d-inline):not(.form-inline) {
    padding: 1rem;
  }

  .bc-stat-grid {
    grid-template-columns: 1fr;
  }

  .bc-public-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .bc-public-stat span {
    margin-top: 0;
    text-align: right;
  }

  .bc-hero {
    min-height: 22rem;
    padding: 1.25rem;
  }

  .bc-hero::before {
    inset: 8rem -5rem auto 24%;
  }

  .bc-hero-actions .btn {
    width: 100%;
  }

  /* Patch auf Mobilgeraeten nicht schwebend/gedreht ueber dem Text -
     stattdessen als normaler Block ueber dem restlichen Inhalt. */
  .bc-launch-patch {
    position: static;
    max-width: none;
    margin-bottom: 1rem;
    transform: none;
  }

  .table,
  .bc-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* .bc-stack-table / .matching-table: breite Datentabellen auf dem Telefon
     als gestapelte Karten statt seitlich wegscrollend.

     .matching-table (Paarungen prüfen/bestätigen, Gegner von Hand suchen)
     NICHT wie oben nur wegscrollen: eine <table> mit auto-Layout, die eine
     aufklappbare Detailzeile (colspan über alle Spalten, darin ein Bootstrap-
     Grid mit Formularfeldern) enthält, zwingt beim Aufklappen das gesamte
     <table> auf die Breite dieses Grids (hier gemessen: ~1850px statt
     375px), weil ein <td> im auto-Layout sich an seinem Inhalt orientiert -
     "white-space: nowrap" oben würde das sogar verschärfen. Nutzer-Feedback:
     "muss ich am Handy sehr weit in die Breite zoomen".
     Fix: <table>/<tbody>/<tr>/<td> werden zu normalen Blockboxen gestapelt
     (verlassen das Tabellen-Layout komplett), <thead> wird ausgeblendet und
     durch das Spalten-Label als data-label-Attribut vor jeder Zelle ersetzt
     (siehe Matching.cshtml). Die aufklappbare Detailzelle (kein data-label)
     bleibt dabei ein normaler, voll umbrechender Block. */
  .matching-table,
  .bc-stack-table {
    display: block;
    width: 100%;
  }

  .matching-table thead,
  .bc-stack-table thead {
    display: none;
  }

  .matching-table tbody,
  .matching-table tr,
  .bc-stack-table tbody,
  .bc-stack-table tr {
    display: block;
    width: 100%;
  }

  .matching-table tr.match-card,
  .bc-stack-table tbody > tr {
    border-bottom: 1px solid var(--bc-line);
  }

  .matching-table td,
  .bc-stack-table td {
    display: block;
    width: 100% !important;
    white-space: normal;
    border-bottom: none;
    padding-block: 0.35rem;
  }

  .matching-table td[data-label]::before,
  .bc-stack-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.15rem;
  }

  .matching-table td.text-end,
  .bc-stack-table td.text-end {
    text-align: left !important;
  }

  .matching-table td .justify-content-end,
  .bc-stack-table td .justify-content-end {
    justify-content: flex-start !important;
  }

  .list-group-item.d-flex,
  .card-header.d-flex,
  .alert.d-flex {
    align-items: stretch !important;
  }

  .bc-app-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 479.98px) {
  .bc-mobile-header {
    padding-inline: 0.75rem;
  }

  .bc-mobile-brand small {
    display: none;
  }

  .btn:not(.btn-sm) {
    min-height: 2.85rem;
  }

  .input-group {
    align-items: stretch;
  }

  .input-group > .btn {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* To-do abschliessen/erneut oeffnen: das Haekchen-Symbol selbst ist der
   Tap-Bereich, nicht nur ein separater Text-Button - Nutzer-Feedback
   05.09.2026 ("Haekchen funktioniert nicht korrekt", Details.cshtml). Min.
   44x44px Tapflaeche (Empfehlung fuer Touch-Ziele), volle Zeilenbreite als
   Klickflaeche statt nur des Symbols. */
.bc-todo-toggle-form {
  min-width: 0;
}

.bc-todo-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  width: 100%;
  color: inherit;
}

.bc-todo-toggle:hover,
.bc-todo-toggle:focus {
  color: inherit;
}

.bc-todo-checkbox {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}

@media print {
  .bc-sidebar,
  .bc-mobile-header,
  .bc-breadcrumbs,
  .bc-app-footer {
    display: none !important;
  }

  .bc-page-shell {
    margin: 0 !important;
  }

  body.bc-shell {
    background: #fff;
  }

  .card,
  .table,
  .org-block {
    box-shadow: none !important;
  }
}
