:root {
  --blue: #1d56a8;
  --blue-light: #dceaff;
  --ink: #071426;
  --muted: #6b7890;
  --green: #137a3f;
  --red: #b4232a;
  --amber: #c57900;
  --panel: rgba(255, 255, 255, 0.96);
  --line: rgba(220, 234, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #041023 url("./assets/taktiktafel.png") center / cover fixed no-repeat;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2, 9, 22, 0.62), rgba(2, 9, 22, 0.24)), rgba(2, 9, 22, 0.12);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(3, 13, 30, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.topbar__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar__nav a,
.topbar__nav button,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.topbar__nav a,
.topbar__nav button {
  background: transparent;
  color: var(--blue-light);
  font-size: 14px;
  font: inherit;
  cursor: pointer;
}

.topbar__nav a:hover,
.topbar__nav button:hover {
  background: rgba(255, 255, 255, 0.1);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(42px, 7vw, 84px) 0;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(auto, 1.25fr) minmax(250px, 0.75fr);
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-light);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.info-panel .eyebrow,
.trainer-card .eyebrow {
  color: var(--blue);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(40px, 5.5vw, 86px);
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.lead {
  width: min(760px, 100%);
  margin: 26px 0 0;
  color: #e9f1ff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.25;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  cursor: pointer;
  font-size: 15px;
}

.button--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.info-panel,
.player-table-wrap,
.response-form,
.admin-login,
.admin-list,
.trainer-card,
.thresholds article,
.tournament__video {
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.hero__logo-card {
  display: grid;
  place-items: center;
}

.hero__logo-card img {
  width: min(100%, 430px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.section--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trainer-schedule {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
}

.plain-copy p:not(.eyebrow),
.info-panel p,
.admin-note {
  color: #d9e7ff;
  font-size: 20px;
  line-height: 1.45;
}

.info-panel p {
  color: var(--muted);
}

.info-panel {
  padding: 30px;
}

.info-panel h2 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
}

.thresholds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.thresholds article {
  padding: 28px;
  display: grid;
  gap: 12px;
}

.thresholds strong {
  color: var(--blue);
  font-size: 26px;
}

.thresholds span {
  font-size: 22px;
  font-weight: 800;
}

.schedule-card {
  min-height: 290px;
  padding: 40px;
  border-radius: 8px;
}

.info-panel,
.trainer-card,
.schedule-card,
.thresholds article {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.info-panel:hover,
.trainer-card:hover,
.schedule-card:hover,
.thresholds article:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.trainer-card {
  min-height: 290px;
  padding: 34px;
}

.trainer-card h2 {
  color: var(--ink);
  font-size: clamp(28px, 3.5vw, 42px);
}

.trainer-card ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.trainer-card li {
  padding: 12px 0;
  border-bottom: 1px solid #e7eef9;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.schedule-card p {
  margin: 0 0 28px;
  font-weight: 800;
}

.schedule-card h2 {
  font-size: 52px;
}

.schedule-card strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
}

.schedule-card--blue {
  background: var(--blue);
}

.schedule-card--green {
  background: #075a30;
}

.timeline-section h2,
.players-section h2,
.form-section h2,
.admin-section h2 {
  color: #fff;
}

.timeline {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.timeline div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: #ff8585;
  font-weight: 900;
}

.timeline span {
  color: #fff;
  font-weight: 800;
}

.tournament__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.section-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}

.status-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.summary-pill {
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.summary-pill[data-status="Dabei"] {
  background: var(--green);
}

.summary-pill[data-status="Unsicher"] {
  background: var(--amber);
}

.summary-pill[data-status="Nicht dabei"] {
  background: var(--red);
}

.summary-pill[data-status="Offen"] {
  background: var(--blue);
}

.player-table-wrap {
  overflow-x: auto;
  padding: 16px;
}

.player-table {
  width: 100%;
  border-collapse: collapse;
}

.player-table th,
.player-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e7eef9;
  text-align: left;
  white-space: nowrap;
}

.player-table th {
  background: var(--blue);
  color: #fff;
}

.player-table tr[data-status="Dabei"] {
  background: #dff5e8;
}

.player-table tr[data-status="Unsicher"] {
  background: #fff4d9;
}

.player-table tr[data-status="Nicht dabei"] {
  background: #ffe3e3;
}

.response-form {
  margin-top: 24px;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.response-form label,
.response-form legend {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.response-form input,
.response-form select,
.response-form textarea {
  width: 100%;
  border: 1px solid #c8d6ee;
  border-radius: 7px;
  padding: 12px;
  font: inherit;
}

.response-form fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid #c8d6ee;
  border-radius: 7px;
  padding: 14px;
}

.response-form fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.response-form fieldset input {
  width: auto;
}

.form-message {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.whatsapp-link {
  display: none;
  width: fit-content;
  border-radius: 7px;
  padding: 12px 16px;
  background: #1f9d55;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.whatsapp-link.is-visible {
  display: inline-flex;
}

.admin-note {
  margin-top: 0;
}

.admin-locked {
  width: min(680px, 100%);
  margin: 0;
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #e9f1ff;
  font-weight: 850;
}

.admin-login {
  width: min(560px, 100%);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.admin-login label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.admin-login input {
  width: 100%;
  border: 1px solid #c8d6ee;
  border-radius: 7px;
  padding: 12px;
  font: inherit;
}

.admin-panel[hidden],
.admin-login[hidden],
.admin-locked[hidden],
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 9, 22, 0.72);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  border-radius: 8px;
  padding: 28px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.modal__dialog h2 {
  color: var(--ink);
  font-size: clamp(30px, 5vw, 44px);
}

.modal__dialog .admin-login {
  width: 100%;
  margin-top: 20px;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid #c8d6ee;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-list {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px 160px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 7px;
  background: #f6f9ff;
}

.admin-row strong {
  color: var(--ink);
}

.admin-row input,
.admin-row select {
  min-width: 0;
  border: 1px solid #c8d6ee;
  border-radius: 7px;
  padding: 10px;
  font: inherit;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section--grid,
  .section--split,
  .thresholds {
    grid-template-columns: 1fr;
  }

  .timeline div,
  .admin-row {
    grid-template-columns: 1fr;
  }
}
