/* =====================================================
   FLUNKYBALLZ — Hauptstylesheet
   Design: Bier, Outdoor, Werfen | Dark Theme
   Mobile-First
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* === CSS-VARIABLEN === */
:root {
  /* Hintergründe */
  --bg:          #16130E;
  --surface:     #1F1C14;
  --surface-2:   #28241A;
  --surface-3:   #332E22;
  --surface-4:   #3D3828;

  /* Rahmen */
  --border:      #3D3828;
  --border-2:    #4A4535;

  /* Gold / Bier */
  --gold:        #E8A020;
  --gold-light:  #F5C050;
  --gold-dark:   #C07810;
  --gold-alpha:  rgba(232,160,32,0.12);
  --gold-alpha2: rgba(232,160,32,0.25);

  /* Grün / Outdoor */
  --green:       #4A7C3A;
  --green-light: #5E9B4A;
  --green-dark:  #355828;
  --green-alpha: rgba(74,124,58,0.12);

  /* Text */
  --text:        #F0EAE0;
  --text-2:      #C5BAA8;
  --text-muted:  #8A8070;
  --text-dim:    #5A5045;

  /* Status */
  --danger:      #C84030;
  --danger-l:    #E05545;
  --danger-a:    rgba(200,64,48,0.12);
  --success:     #3A9A55;
  --success-a:   rgba(58,154,85,0.12);
  --warning:     #D4901A;
  --info:        #4A8AC0;

  /* Layout */
  --nav-h:       62px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-sm:   6px;
  --radius-xs:   4px;

  /* Schatten */
  --shadow:      0 4px 24px rgba(0,0,0,0.55);
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 24px rgba(232,160,32,0.18);

  /* Transition */
  --t:           0.18s ease;
}

/* === RESET & BASIS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
ul, ol { list-style: none; }

/* === TYPOGRAFIE === */
h1, h2, h3, h4, h5 {
  font-family: 'Bebas Neue', 'Impact', Arial Narrow, sans-serif;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 4vw, 2rem); }
h4 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 600; }

p { margin-bottom: 0.75rem; }
small { font-size: 0.82rem; color: var(--text-muted); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  flex: 1;
  padding-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: 4rem;
}

.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header-left { flex: 1; min-width: 0; }
.page-header h1, .page-header h2 { margin: 0; }
.page-header .subtitle { color: var(--text-muted); margin-top: 0.25rem; font-size: 0.9rem; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(22,19,14,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.1em;
  color: var(--gold) !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--text); }

.nav-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  color: var(--text-2) !important;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--surface-3);
  color: var(--text) !important;
}
.nav-link.active { color: var(--gold) !important; }

.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 0.5rem; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2) !important;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--t);
  position: relative;
}
.nav-user:hover { border-color: var(--gold); color: var(--gold) !important; }
.nav-user .avatar-sm { flex-shrink: 0; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 2px solid var(--gold);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}
.nav-drawer .nav-divider { width: 100%; height: 1px; margin: 0.5rem 0; }
.nav-drawer .nav-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.nav-drawer .nav-user-info .name { font-weight: 600; color: var(--text); }
.nav-drawer .nav-user-info .email { font-size: 0.8rem; color: var(--text-muted); }

@media (min-width: 768px) {
  .nav-menu { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

/* === CARDS === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.card-header h3, .card-header h4 { margin: 0; }
.card-body { padding: 1.25rem; }
.card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  color: var(--text) !important;
}
.card-link:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--text) !important;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #1a1208;
}

.btn-secondary {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-4);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-success {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-success:hover:not(:disabled) {
  background: var(--green-light);
  border-color: var(--green-light);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-l);
  border-color: var(--danger-l);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover:not(:disabled) {
  background: var(--gold-alpha);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}

.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* === FORMULARE === */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}
.form-label .required { color: var(--gold); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-alpha);
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A8070' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 90px; }

.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.8rem; color: var(--danger-l); margin-top: 0.3rem; }

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

/* Passwort-Stärke */
.password-strength { margin-top: 0.4rem; }
.strength-bar { height: 4px; background: var(--surface-4); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s ease, background 0.3s ease; }

/* === ALERTS === */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  position: relative;
}
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: inherit;
  opacity: 0.6;
  padding: 0;
  flex-shrink: 0;
}
.alert-close:hover { opacity: 1; }

.alert-success { background: var(--success-a); color: #6ED48A; border-color: var(--success); }
.alert-error   { background: var(--danger-a);  color: #F08070; border-color: var(--danger); }
.alert-warning { background: rgba(212,144,26,0.12); color: #E0B040; border-color: var(--warning); }
.alert-info    { background: rgba(74,138,192,0.12); color: #80B8E8; border-color: var(--info); }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-gold    { background: var(--gold-alpha2); color: var(--gold-light); }
.badge-green   { background: var(--green-alpha); color: var(--green-light); border: 1px solid var(--green); }
.badge-red     { background: var(--danger-a);    color: var(--danger-l); }
.badge-muted   { background: var(--surface-3);   color: var(--text-muted); }
.badge-admin   { background: var(--gold-alpha2); color: var(--gold); border: 1px solid var(--gold-dark); }

/* === AVATARE === */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1208;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }

/* === TABELLEN === */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th {
  text-align: left;
  padding: 0.65rem 0.9rem;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }

/* === STAT-KARTEN === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

/* === LEERER ZUSTAND === */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text-2); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.9rem; margin-bottom: 1.5rem; }

/* === GRID-LAYOUTS === */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* === TEAM-ANZEIGE (Runden) === */
.teams-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.team-column {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.team-header {
  padding: 0.65rem 0.9rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.team-1 .team-header { background: var(--gold-alpha2); color: var(--gold-light); }
.team-2 .team-header { background: var(--green-alpha); color: var(--green-light); }

.team-1 { border-color: var(--gold-dark); }
.team-2 { border-color: var(--green); }

.team-winner .team-header { position: relative; }
.team-winner .team-header::after { content: ' 🏆'; }

.team-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
  background: var(--surface);
}
.team-player:last-child { border-bottom: none; }
.team-player-name { font-size: 0.88rem; font-weight: 500; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hit Counter */
.hit-counter {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.hit-count {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  min-width: 1.8rem;
  text-align: center;
  line-height: 1;
}
.btn-hit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-hit:active { transform: scale(0.9); }
.btn-hit.btn-plus { border-color: var(--gold); color: var(--gold); }
.btn-hit.btn-plus:hover { background: var(--gold); color: #1a1208; }
.btn-hit.btn-minus:hover { background: var(--surface-3); }

/* === RUNDENLISTE (Event) === */
.round-list { display: flex; flex-direction: column; gap: 0.75rem; }

.round-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t);
}
.round-item:hover { border-color: var(--border-2); }
.round-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}
.round-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.round-vs {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
.round-team-name { color: var(--text); }
.round-vs-sep { color: var(--text-dim); font-size: 0.8rem; }
.round-status { flex-shrink: 0; }
.round-winner-badge {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  background: var(--gold-alpha2);
  color: var(--gold-light);
  white-space: nowrap;
}
.round-active-badge {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  background: var(--success-a);
  color: var(--success);
}

/* === RANGLISTEN-TABELLE === */
.ranking-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.ranking-row:last-child { border-bottom: none; }
.rank-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--text-muted);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.rank-1 .rank-num { color: #FFD700; }
.rank-2 .rank-num { color: #C0C0C0; }
.rank-3 .rank-num { color: #CD7F32; }
.rank-name { flex: 1; font-weight: 500; }
.rank-value { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--gold); }

/* === MITGLIEDER-LISTE === */
.member-list { display: flex; flex-direction: column; gap: 0.5rem; }
.member-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.member-info { flex: 1; min-width: 0; }
.member-name { font-weight: 600; font-size: 0.9rem; }
.member-email { font-size: 0.78rem; color: var(--text-muted); }
.member-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* === AUTH-SEITEN (Login/Register) === */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,160,32,0.08) 0%, transparent 60%);
}
.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.auth-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.25rem;
}
.auth-logo span { color: var(--text-2); }
.auth-title { text-align: center; color: var(--text); font-size: 1.5rem; margin-bottom: 0.4rem; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.75rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 1.25rem; color: var(--text-muted); font-size: 0.88rem; }

/* === LANDING PAGE === */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(232,160,32,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(74,124,58,0.08) 0%, transparent 40%);
  padding: 3rem 0 4rem;
}
.hero-content { max-width: 680px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--gold-alpha2);
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--text); margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: 1.05rem; color: var(--text-2); margin-bottom: 2rem; max-width: 520px; line-height: 1.7; }
.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.features { padding: 4rem 0; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--t), transform var(--t);
}
.feature-card:hover { border-color: var(--gold-dark); transform: translateY(-3px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

.cta-section {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0 4rem;
}
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-2); margin-bottom: 1.75rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* === SPIELER-EINGABE (Runden erstellen) === */
.player-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}
.player-row select, .player-row input { flex: 1; min-width: 0; }
.player-row .btn-remove {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--danger-a);
  color: var(--danger-l);
  border: 1px solid var(--danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--t);
}
.player-row .btn-remove:hover { background: var(--danger); color: #fff; }

.team-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.team-section-header {
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.team-1-header { background: var(--gold-alpha); color: var(--gold-light); border-bottom: 1px solid var(--gold-dark); }
.team-2-header { background: var(--green-alpha); color: var(--green-light); border-bottom: 1px solid var(--green); }
.team-section-body { padding: 0.75rem; background: var(--surface-2); }

/* === TABS === */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: 0.7rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t);
  font-family: inherit;
}
.tab-btn.active, .tab-btn:hover { color: var(--gold); }
.tab-btn.active { border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* === WINNER-AUSWAHL === */
.winner-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
.winner-option input[type="radio"] { display: none; }
.winner-label {
  display: block;
  padding: 1rem;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
}
.winner-label:hover { border-color: var(--gold-dark); }
.winner-option input:checked + .winner-label {
  border-color: var(--gold);
  background: var(--gold-alpha);
  color: var(--gold-light);
}
.winner-label .wl-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.winner-label .wl-sub { font-size: 0.78rem; color: var(--text-muted); }

/* === ADMIN === */
.admin-sidebar {
  display: none;
}
.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .admin-layout { grid-template-columns: 220px 1fr; }
  .admin-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    align-self: start;
  }
}
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-2) !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--t);
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: var(--surface-3);
  color: var(--gold) !important;
}

/* === FOOTER === */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.1em; color: var(--gold); }
.footer-brand .logo span { color: var(--text-2); }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

.footer-col h5 { color: var(--text-2); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.footer-col a { display: block; color: var(--text-muted) !important; font-size: 0.88rem; padding: 0.2rem 0; transition: color var(--t); }
.footer-col a:hover { color: var(--gold) !important; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-danger { color: var(--danger-l); }
.text-success{ color: var(--success); }
.fw-bold     { font-weight: 700; }
.fw-600      { font-weight: 600; }
.font-heading{ font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.06em; }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm      { gap: 0.5rem; }
.gap         { gap: 1rem; }
.mt-sm       { margin-top: 0.5rem; }
.mt          { margin-top: 1rem; }
.mt-lg       { margin-top: 2rem; }
.mb-sm       { margin-bottom: 0.5rem; }
.mb          { margin-bottom: 1rem; }
.mb-lg       { margin-bottom: 2rem; }
.p           { padding: 1rem; }
.p-sm        { padding: 0.5rem; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

/* === SELEKTION === */
::selection { background: var(--gold-alpha2); color: var(--text); }

/* === RESPONSIVE HELFER === */
@media (max-width: 599px) {
  .hide-mobile { display: none !important; }
  .teams-wrapper { grid-template-columns: 1fr 1fr; }
  .team-player { padding: 0.4rem 0.5rem; }
  .team-player-name { font-size: 0.78rem; }
  .hit-count { font-size: 1.2rem; }
  .btn-hit { width: 30px; height: 30px; font-size: 1rem; }
}
@media (min-width: 600px) {
  .hide-desktop { display: none !important; }
}

/* === GRUPPENÜBERSICHT-KARTEN === */
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.group-card:hover { border-color: var(--gold-dark); box-shadow: var(--shadow-gold); }
.group-card-top { display: flex; align-items: flex-start; gap: 0.75rem; }
.group-icon {
  width: 46px; height: 46px;
  background: var(--gold-alpha2);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.group-info { flex: 1; min-width: 0; }
.group-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.2rem; }
.group-desc { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-meta { display: flex; gap: 0.75rem; font-size: 0.8rem; color: var(--text-muted); }

/* === EVENT-KARTEN === */
.event-status-active { color: var(--success); }
.event-status-closed { color: var(--text-muted); }

/* === FORMULARKARTEN === */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

/* === TOASTS === */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  pointer-events: all;
  animation: slideInRight 0.25s ease;
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
