/* bet24 UI (Vergleichs­portal-ähnlich: blauer Header, Akzentfarbe, Pills, Suche) */

:root {
  --c24-teal: rgb(9, 47, 143);
  --c24-teal-dark: rgb(6, 34, 108);
  --c24-blue: #005ea8;
  --c24-blue-dark: #004a86;
  --c24-yellow: #f5b400;
  --c24-ink: #1a1a1a;
  --c24-ink-muted: #555;
  --c24-border: #d4d8dc;
  --c24-bg-page: #eceff2;
  --c24-bg-card: #ffffff;
  --c24-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --c24-radius: 12px;
  --c24-pill-radius: 22px;
  --c24-font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body.c24 {
  margin: 0;
  min-height: 100vh;
  font-family: var(--c24-font);
  line-height: 1.5;
  color: var(--c24-ink);
  background: var(--c24-bg-page);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--c24-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.c24-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Header ——— */
.c24-header {
  background: var(--c24-teal);
  color: #fff;
}

.c24-header-top {
  padding: 0.65rem 1rem 0.5rem;
}

.c24-header-top-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
}

@media (max-width: 60rem) {
  .c24-header-top-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .c24-userbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .c24-search {
    max-width: 100%;
    width: 100%;
  }
}

.c24-brand {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.c24-brand:hover {
  text-decoration: none;
  opacity: 0.95;
}

.c24-logo {
  display: inline-flex;
  align-items: flex-end;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.c24-logo-bet {
  color: #fff;
}

.c24-logo-24-wrap {
  position: relative;
  display: inline-block;
  margin-left: 0.05em;
}

.c24-logo-24 {
  color: var(--c24-blue);
  /* leichtes Leuchten wie auf hellen Logos */
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.35);
}

.c24-logo-smile {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 0.45rem;
  overflow: visible;
}

/* ——— Suchfeld ——— */
.c24-search {
  display: flex;
  align-items: stretch;
  max-width: 36rem;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.c24-search-input {
  flex: 1;
  border: none;
  padding: 0.65rem 1rem 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--c24-ink);
  min-width: 0;
}

.c24-search-input::placeholder {
  color: #8899a3;
}

.c24-search-input:focus {
  outline: none;
}

.c24-search:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 2px var(--c24-blue);
}

.c24-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: none;
  background: #fff;
  cursor: pointer;
}

.c24-search-submit:hover {
  background: #f5f8fa;
}

/* ——— Nutzer-Zeile ——— */
.c24-userbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1.1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.c24-userlink {
  cursor: default;
  opacity: 0.92;
}

.c24-userlink-strong {
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0.65rem;
  border-radius: var(--c24-pill-radius);
}

/* ——— Nav-Pills (zweite Zeile) ——— */
.c24-header-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 1rem 0.75rem;
}

.c24-header-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.c24-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  align-items: center;
}

.c24-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--c24-pill-radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}

.c24-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  color: #fff;
}

.c24-pill.is-active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* ——— Countdown (Wettfrist) ——— */
.c24-countdown-bar {
  background: linear-gradient(90deg, #fff8e1 0%, #e8f4fc 50%, #fff8e1 100%);
  border-bottom: 1px solid var(--c24-border);
  color: var(--c24-ink);
  font-size: 0.9rem;
}

.c24-countdown-bar--locked {
  background: #f0f0f2;
  color: var(--c24-ink-muted);
}

.c24-countdown-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  text-align: center;
}

.c24-countdown-label {
  font-weight: 600;
}

.c24-countdown-digits {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--c24-blue);
}

.c24-countdown-bar--locked .c24-countdown-digits {
  color: inherit;
}

.c24-countdown-meta,
.c24-countdown-meta .muted {
  color: var(--c24-ink-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

@media (max-width: 36rem) {
  .c24-countdown-inner {
    flex-direction: column;
    align-items: center;
  }
}

/* ——— Content ——— */
.c24-main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
}

.c24-sheet {
  background: var(--c24-bg-card);
  border: 1px solid var(--c24-border);
  border-radius: var(--c24-radius);
  box-shadow: var(--c24-shadow);
  padding: 1.4rem 1.5rem 1.75rem;
}

.c24-page-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--c24-blue);
  color: var(--c24-ink);
}

.notice {
  background: #f0f7fb;
  border: 1px solid #b8d4ea;
  padding: 0.85rem 1.1rem;
  border-radius: var(--c24-radius);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--c24-ink);
}

.errors {
  background: #fff0f0;
  border: 1px solid #e8b4b4;
  padding: 0.75rem 1rem;
  border-radius: var(--c24-radius);
  margin-bottom: 1rem;
  color: #7a1414;
}

form.stacked label {
  display: block;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--c24-ink-muted);
}

form.stacked input,
form.stacked select {
  margin-top: 0.3rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--c24-border);
  border-radius: 8px;
  width: 100%;
  max-width: 22rem;
  font-family: inherit;
  font-size: 1rem;
}

form.stacked input:focus,
form.stacked select:focus {
  outline: 2px solid rgba(0, 94, 168, 0.25);
  border-color: var(--c24-blue);
}

form.stacked button {
  margin-top: 1.15rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--c24-pill-radius);
  border: 1px solid var(--c24-blue-dark);
  background: var(--c24-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 94, 168, 0.25);
  transition:
    background 0.15s ease,
    transform 0.08s ease;
}

form.stacked button:hover {
  background: var(--c24-blue-dark);
}

form.stacked button:active {
  transform: translateY(1px);
}

form.stacked button:disabled,
.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--c24-bg-card);
  border: 1px solid var(--c24-border);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #ececec;
}

th {
  background: linear-gradient(180deg, #f8f9fa 0%, #eef1f3 100%);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c24-ink-muted);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #f7fafc;
}

.table-actions {
  white-space: nowrap;
  width: 1%;
  text-align: right;
  vertical-align: middle;
}

form.inline-delete {
  margin: 0;
  display: inline-block;
}

.btn-danger {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid #9e1a1a;
  background: #c62828;
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.btn-danger:hover {
  background: #b71c1c;
}

.muted {
  color: var(--c24-ink-muted);
  font-size: 0.9rem;
}

.tag-exact {
  font-size: 0.75rem;
  font-weight: 600;
  background: #e3f2fd;
  color: var(--c24-blue-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.tag-near {
  font-size: 0.75rem;
  font-weight: 600;
  background: #fff8e1;
  color: #856404;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.tag-miss {
  font-size: 0.75rem;
  background: #efefef;
  color: #555;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--c24-border);
}

h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c24-ink);
}

/* ——— Footer ——— */
.c24-footer {
  background: var(--c24-bg-card);
  border-top: 1px solid var(--c24-border);
  margin-top: auto;
}

.c24-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.35rem;
}

.c24-footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--c24-ink-muted);
  text-align: center;
}

@media (max-width: 36rem) {
  .c24-logo {
    font-size: 1.4rem;
  }

  .c24-pills {
    justify-content: center;
  }
}
