:root{
  /* Light theme */
  --bg: #f6f7fb;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;

  /* Farben aus eurem Logo */
  --sv-red: #d02030;
  --sv-yellow: #f0d000;
  --sv-blue: #20a0e0;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(17,24,39,.10);

  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(32,160,224,.12), transparent 55%),
    radial-gradient(900px 500px at 80% 0%, rgba(240,208,0,.10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 60%);
  color: var(--text);
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.small{ font-size: .92rem; }
.grid{ display:grid; gap: 16px; }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-content{ padding: 18px; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border: 1px solid rgba(32,160,224,.35);
  background: rgba(32,160,224,.10);
  color: rgba(17,24,39,.92);
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  width: fit-content;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  color: var(--text);
  font-weight: 800;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor:pointer;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,1); border-color: rgba(17,24,39,.18); }
.btn:active{ transform: translateY(0px); }

.btn-primary{
  border-color: rgba(208,32,48,.35);
  background: linear-gradient(90deg, rgba(208,32,48,.95), rgba(240,208,0,.85));
  color: #101013;
}
.btn-primary:hover{ border-color: rgba(240,208,0,.55); }

.btn-ghost{ background: transparent; }

.link{
  display:inline-flex;
  gap:8px;
  align-items:center;
  color: rgba(17,24,39,.92);
  opacity: .9;
}
.link:hover{ opacity: 1; text-decoration: underline; }

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.80);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand-logo{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(240,208,0,.65);
  background: rgba(255,255,255,.7);
  padding: 4px;
}
.brand-title{ display:block; font-weight: 900; letter-spacing:.2px; }
.brand-subtitle{ display:block; font-size:.9rem; color: var(--muted); }

.site-nav{ display:flex; align-items:center; gap: 10px; }
.nav-link{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(17,24,39,.88);
}
.nav-link:hover{ background: rgba(17,24,39,.04); border-color: rgba(17,24,39,.08); }
.nav-link.active{ border-color: rgba(32,160,224,.35); background: rgba(32,160,224,.10); }

/* Mobile menu toggle */
.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.75);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px;
  width: 18px;
  background: rgba(17,24,39,.85);
  margin: 4px auto;
  border-radius: 2px;
}

/* Hero */
.hero{ padding: 54px 0 28px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 18px;
  align-items: stretch;
}
.hero-copy h1{
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 14px 0 10px;
  letter-spacing: -0.6px;
}
.lead{ font-size: 1.06rem; color: rgba(17,24,39,.78); line-height: 1.55; max-width: 56ch; }
.hero-actions{ display:flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero-stats{ margin-top: 18px; display:flex; gap: 10px; flex-wrap: wrap; }
.stat{
  min-width: 140px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
}
.stat-value{ font-weight: 900; font-size: 1.3rem; }
.stat-label{ font-size: .92rem; color: var(--muted); }

.hero-card{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(400px 240px at 30% 20%, rgba(208,32,48,.10), transparent 55%),
    radial-gradient(400px 240px at 70% 40%, rgba(240,208,0,.11), transparent 55%),
    radial-gradient(400px 240px at 50% 90%, rgba(32,160,224,.10), transparent 55%),
    rgba(255,255,255,.85);
  box-shadow: var(--shadow);
}
.hero-card-inner{
  padding: 18px;
  height: 100%;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.hero-logo{
  width: 170px;
  height: 170px;
  align-self: flex-start;
  border-radius: 24px;
  padding: 10px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
}

@media (max-width: 520px){
  .hero-logo{ width: 130px; height: 130px; }
}
.hero-card-text h3{ margin: 0 0 6px; }
.hero-card-text p{ margin: 0; line-height: 1.5; }

/* Sections */
.section{ padding: 38px 0; }
.section-alt{
  background: rgba(17,24,39,.02);
  border-top: 1px solid rgba(17,24,39,.06);
  border-bottom: 1px solid rgba(17,24,39,.06);
}
.section-head{ margin-bottom: 14px; }
.section-head h2{ margin: 0 0 6px; letter-spacing: -.3px; }
.section-actions{ margin-top: 10px; }

/* Tables */
.table-wrap{ overflow:auto; }
.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.table th, .table td{
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(17,24,39,.08);
  font-size: .95rem;
}
.table th{ color: rgba(17,24,39,.90); font-weight: 900; }
.table td{ color: rgba(17,24,39,.88); }

/* Cards grid */
.cards-grid{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px){ .cards-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .cards-grid{ grid-template-columns: 1fr; } }

/* Page head */
.page-head{ padding: 38px 0 16px; }
.page-head h1{ margin:0 0 8px; letter-spacing: -.4px; }
.page-head-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar{ display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }

.input, .select, .textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  color: var(--text);
  outline: none;
}
.input::placeholder, .textarea::placeholder{ color: rgba(75,85,99,.85); }
.select{ min-width: 200px; }
.textarea{ resize: vertical; }

.label{ display:block; font-weight: 900; margin-bottom: 8px; color: rgba(17,24,39,.90); }

/* Players */
.players-grid{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px){ .players-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px){ .players-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .players-grid{ grid-template-columns: 1fr; } }

.player-card{ overflow:hidden; }
.player-photo{
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width:100%;
  background: rgba(17,24,39,.03);
  border-bottom: 1px solid rgba(17,24,39,.08);
}
.player-meta{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .86rem;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(17,24,39,.04);
}
.pill.red{ border-color: rgba(208,32,48,.35); background: rgba(208,32,48,.10); }
.pill.blue{ border-color: rgba(32,160,224,.35); background: rgba(32,160,224,.10); }
.pill.yellow{ border-color: rgba(240,208,0,.55); background: rgba(240,208,0,.15); }

/* History */
.history-grid{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px){ .history-grid{ grid-template-columns: 1fr; } }
.history-item{ display:flex; flex-direction: column; gap: 10px; }
.history-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.history-title{ font-weight: 900; margin: 0; }
.history-sub{ margin: 0; color: var(--muted); font-size: .95rem; }

/* Callout */
.callout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(17,24,39,.08);
  background: linear-gradient(90deg, rgba(32,160,224,.10), rgba(208,32,48,.08));
  box-shadow: var(--shadow);
}
@media (max-width: 720px){ .callout{ flex-direction: column; align-items: flex-start; } }

/* Footer */
.site-footer{
  border-top: 1px solid rgba(17,24,39,.08);
  padding: 22px 0;
  background: rgba(255,255,255,.75);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-brand{ display:flex; align-items:center; gap: 10px; }
.footer-brand img{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(17,24,39,.12);
  padding: 4px;
  background: rgba(255,255,255,.9);
}
.footer-links{ display:flex; gap: 12px; flex-wrap: wrap; }
.footer-links a{ color: rgba(17,24,39,.86); }
.footer-links a:hover{ text-decoration: underline; }

/* Responsive nav */
@media (max-width: 780px){
  .nav-toggle{ display:block; }
  .site-nav{
    display:none;
    position:absolute;
    right: 16px;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(17,24,39,.10);
    background: rgba(255,255,255,.95);
    box-shadow: var(--shadow);
  }
  body.nav-open .site-nav{ display:flex; }
}

/* Admin helpers */
.notice{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(32,160,224,.25);
  background: rgba(32,160,224,.08);
}
.notice.error{
  border-color: rgba(208,32,48,.25);
  background: rgba(208,32,48,.08);
}

.codebox{
  width: 100%;
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.45;
}
