@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --accent: #7EC8E3;
  --accent-dk: #4aaec8;
  --gold: #c08a12;
  --silver: #8794a3;
  --bronze: #ad6a34;
  --muted: #67768a;
  --border: #e4e9ef;
  --bg: #f4f7f9;
  --surface: #ffffff;
}

body { font-family: 'Hanken Grotesk', sans-serif; background: var(--bg); color: #16202b; }
h1,h2,h3,h4,h5 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; }

.brand-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.brand-sub { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.brand-logo { height: 48px; width: auto; }

.sidebar { background: var(--surface); border-right: 1px solid var(--border); }
@media (min-width: 768px) {
  .sidebar { position: fixed; top: 0; left: 0; width: 16.6667%; height: 100vh; overflow-y: auto; z-index: 100; }
  .col-12.col-md-10 { margin-left: 16.6667%; }
}
/* Sticky tab-bars – verwendet auf Tipps und Tipp-Übersicht */
.sticky-tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  padding-bottom: 4px;
}
.sticky-subtabs {
  position: sticky;
  top: var(--phase-tabs-h, 48px);
  z-index: 40;
  background: var(--bg);
  padding-top: 4px;
  padding-bottom: 4px;
}

.nav-link { color: #16202b; border-radius: 8px; font-weight: 500; padding: .5rem .75rem; }
.nav-link:hover, .nav-link.active { background: rgba(126,200,227,.1); color: var(--accent); }

.btn-accent { background: var(--accent); color: #fff; border: none; border-radius: 10px; font-weight: 700; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dk); color: #fff; }

.match-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.match-meta { font-size: .75rem; color: var(--muted); margin-bottom: 4px; }

.score-input { width: 60px !important; text-align: center; font-weight: 700; font-size: 1.1rem; border-radius: 8px !important; border: 1px solid var(--border) !important; }
.score-input:focus { border-color: var(--accent) !important; outline: none; box-shadow: 0 0 0 3px rgba(126,200,227,.15) !important; }

.rank-1 { color: var(--gold); font-weight: 800; }
.rank-2 { color: var(--silver); font-weight: 700; }
.rank-3 { color: var(--bronze); font-weight: 700; }

.progress { height: 6px !important; }
.progress-bar-accent { background: var(--accent); }

/* Bootstrap-Grün → #1E4E8C */
.table-success {
  --bs-table-bg:          rgba(30,78,140,.12);
  --bs-table-border-color: rgba(30,78,140,.2);
  --bs-table-hover-bg:    rgba(30,78,140,.2);
  --bs-table-hover-color: #16202b;
  --bs-table-striped-bg:  rgba(30,78,140,.15);
  --bs-table-active-bg:   rgba(30,78,140,.2);
  --bs-table-color:       #16202b;
}
.alert-success { background-color: rgba(30,78,140,.1); border-color: rgba(30,78,140,.3); color: #1E4E8C; }
.alert-success .alert-link { color: #163a6a; }
.bg-success { background-color: #1E4E8C !important; }
.text-success { color: #1E4E8C !important; }
.btn-success { background-color: #1E4E8C; border-color: #1E4E8C; }
.btn-success:hover { background-color: #163a6a; border-color: #163a6a; }
.border-success { border-color: #1E4E8C !important; }
.border-success-subtle { border-color: rgba(30,78,140,.35) !important; }

.mobile-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

@media (max-width: 767px) {
  body { padding-top: 52px; }
  .score-input { width: 52px !important; font-size: 1rem; }
}

@keyframes bonus-glow {
  0%, 100% { box-shadow: none; color: inherit; }
  50% { box-shadow: 0 0 10px rgba(192,138,18,.6); color: var(--gold) !important; }
}
.nav-glow-gold {
  animation: bonus-glow 1.8s ease-in-out infinite;
  border-radius: 8px;
}
