:root{
  --bg:#424242;
  --card: rgba(0,0,0,.18);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.6);
  --accent:#cd2626;
  --danger:#9a1c1c;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;

  /* Neu */
  --surface: rgba(255,255,255,.05);
  --surface2: rgba(255,255,255,.07);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background: var(--bg);
  color: var(--text);
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.header{
  text-align:center;
  margin-bottom: 18px;
}
.header.row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  text-align:left;
  gap: 12px;
}
.header h1{margin:0 0 6px;font-size: clamp(24px,3.5vw,34px)}
.header p{margin:0;color:var(--muted)}

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

label{display:block;margin:12px 0 6px;color:var(--muted);font-weight:600}
input,textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
}
textarea{resize:vertical}

button{
  margin-top: 14px;
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor:pointer;
}
button:hover{filter:brightness(.95)}
button.ghost{background: rgba(255,255,255,.10)}
button.danger{background: var(--danger)}

.hint{margin-top:12px;color:var(--muted);font-size: 13px}
.footer{margin-top:18px;text-align:center;color:var(--muted);font-size:12px}

.alert{
  background: rgba(205,38,38,.18);
  border: 1px solid rgba(205,38,38,.35);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.link{color:var(--text);text-decoration:none;border-bottom:1px dotted var(--muted)}
.link:hover{opacity:.9}

/* ===== Turnier-Infos (NEU) ===== */
.tournament{
  margin-bottom: 18px;
}

.section-head{
  text-align:center;
  margin-bottom: 14px;
}
.section-head h2{
  margin: 0 0 6px;
  font-size: 18px;
}
.section-sub{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.info-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.info-item{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.info-title{
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 8px;
}

.info-body{
  color: var(--text);
  line-height: 1.55;
}
.info-body b{
  color: rgba(255,255,255,.95);
}

.divider{
  margin: 18px 0 6px;
  opacity: .25;
  border: 0;
  border-top: 1px solid var(--border);
}

/* ===== Admin-Table / Badges (bestehend) ===== */
.table{display:flex;flex-direction:column;gap:10px}
.thead,.trow{
  display:grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
  gap:12px;
  align-items:start;
}
.thead{
  padding: 10px 8px;
  color: var(--muted);
  font-weight:700;
  font-size: 13px;
}
.trow{
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}
.actions{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.actions button{width:100%;margin:0}
.badge{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--border);
}
.badge.pending{background: rgba(255,255,255,.06)}
.badge.approved{background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.35)}
.badge.rejected{background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.35)}
.note{
  margin: -6px 8px 10px;
  padding: 12px 12px;
  border-left: 3px solid rgba(255,255,255,.25);
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 820px){
  .info-grid{
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .thead{display:none}
  .trow{
    grid-template-columns: 1fr;
    gap:10px;
  }
  .actions{flex-direction:row;flex-wrap:wrap}
  .actions button{flex:1;min-width:120px}
}