:root {
  --bg: #030812;
  --bg-2: #07111f;
  --card: rgba(255,255,255,.075);
  --card-2: rgba(255,255,255,.11);
  --text: #f5f7fb;
  --muted: #a8b2c5;
  --lime: #b7e900;
  --blue: #00a7ff;
  --cyan: #36e4ff;
  --line: rgba(255,255,255,.15);
  --shadow: 0 30px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0,167,255,.2), transparent 32rem),
    radial-gradient(circle at top right, rgba(183,233,0,.12), transparent 26rem),
    var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(3, 8, 18, .76);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-dot {
  width: .9rem;
  height: .9rem;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 24px var(--lime);
}
.nav nav {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav nav a {
  padding: .65rem .9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}
.nav nav a:hover { background: var(--card); color: var(--text); }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,8,18,.62), rgba(3,8,18,.18) 50%, rgba(3,8,18,.72));
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(260px, 620px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 6vw, 5rem);
}
.hero-logo {
  width: min(100%, 430px);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.kicker {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  font-size: .82rem;
  margin: 0 0 .8rem;
}
h1, h2, h3 { margin: 0; line-height: .95; }
h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  letter-spacing: -.07em;
  text-shadow: 0 10px 34px rgba(0,0,0,.45);
}
.subtitle {
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 800;
  margin: 1rem 0 1.5rem;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--line);
}
.btn.primary {
  background: var(--lime);
  color: #07111f;
  box-shadow: 0 0 34px rgba(183,233,0,.28);
}
.btn.ghost { background: rgba(255,255,255,.08); }
.btn:hover { transform: translateY(-1px); }

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stats article, .news-card, .iframe-card, .info-card {
  background: linear-gradient(135deg, var(--card), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.stats article {
  padding: 1.4rem;
  text-align: center;
}
.stats strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.8rem);
  color: var(--lime);
  line-height: .9;
}
.stats span { color: var(--muted); font-weight: 800; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.section-head.left { text-align: left; margin: 0; }
.section-head h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }

.iframe-card {
  overflow: hidden;
  padding: .5rem;
}
.iframe-card iframe {
  width: 100%;
  height: min(78vh, 820px);
  min-height: 620px;
  border: 0;
  border-radius: 20px;
  background: #fff;
}

.split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 2rem;
  align-items: start;
}
.news-list { display: grid; gap: 1rem; }
.news-card { padding: 1.4rem; }
.news-card span {
  color: var(--lime);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.news-card h3 { margin-top: .65rem; font-size: 1.55rem; }
.news-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.news-card.highlight { border-color: rgba(183,233,0,.45); }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.photo {
  min-height: 220px;
  border-radius: 26px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,167,255,.22), rgba(183,233,0,.16)), var(--card);
  display: grid;
  place-items: end start;
  padding: 1.1rem;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
}
.photo:nth-child(even) { background: linear-gradient(135deg, rgba(183,233,0,.18), rgba(255,255,255,.08)), var(--card); }

.info-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.info-card img {
  width: 100%;
  border-radius: 24px;
}
.info-card p:not(.kicker) { color: var(--muted); line-height: 1.65; font-size: 1.1rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer a { color: var(--lime); font-weight: 900; }

@media (max-width: 850px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-logo { max-width: 280px; }
  .stats, .split, .gallery, .info-card { grid-template-columns: 1fr; }
  .iframe-card iframe { min-height: 760px; }
}

/* News update layout */
.news-section {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 2.2fr);
  grid-template-areas:
    "intro features"
    "quick quick";
  gap: 1.6rem;
  align-items: start;
}
.news-intro { grid-area: intro; }
.news-intro h2 {
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  letter-spacing: -.07em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.news-intro > p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}
.btn.small { min-height: 42px; padding: .7rem 1.05rem; }
.phase-card {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}
.phase-card .phase-icon { font-size: 2rem; filter: drop-shadow(0 0 18px rgba(183,233,0,.45)); }
.phase-card strong { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.phase-card b { display: block; color: var(--lime); font-size: 1.35rem; margin-bottom: .55rem; }
.phase-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.feature-news {
  grid-area: features;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature-card {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--card), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}
.draw-card { border-color: rgba(183,233,0,.8); box-shadow: 0 0 42px rgba(183,233,0,.12), var(--shadow); }
.announcement-card { border-color: rgba(54,228,255,.75); box-shadow: 0 0 42px rgba(54,228,255,.11), var(--shadow); }
.image-reveal, .image-full {
  position: relative;
  display: block;
  width: 100%;
  height: 285px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #08111e;
  cursor: pointer;
}
.image-reveal img, .image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.image-reveal img {
  object-position: 50% 7%;
  filter: brightness(.98) contrast(1.03);
}
.image-reveal::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, rgba(3,8,18,.08), rgba(3,8,18,.92));
  pointer-events: none;
}
.image-full img { object-position: center; }
.image-reveal:hover img, .image-full:hover img { transform: scale(1.035); }
.reveal-badge {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  width: 118px;
  height: 118px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  gap: .1rem;
  color: var(--text);
  background: rgba(3,8,18,.78);
  border: 1px solid var(--lime);
  box-shadow: 0 0 34px rgba(183,233,0,.28);
  font-size: 1.55rem;
  z-index: 2;
}
.reveal-badge small { display: block; font-size: .74rem; line-height: 1.15; font-weight: 800; }
.feature-body { padding: 1.55rem; }
.feature-body time { color: var(--lime); font-weight: 900; }
.announcement-card .feature-body time { color: var(--cyan); }
.feature-body h3 { margin: .75rem 0 .85rem; font-size: clamp(1.65rem, 2.5vw, 2.15rem); line-height: 1.05; }
.feature-body p { color: var(--muted); line-height: 1.62; font-size: 1.05rem; margin: 0 0 1.35rem; }
.btn.outline {
  border-color: rgba(183,233,0,.75);
  color: var(--lime);
  background: rgba(183,233,0,.04);
  cursor: pointer;
}
.btn.outline.cyan { border-color: rgba(54,228,255,.75); color: var(--cyan); background: rgba(54,228,255,.04); }
.quick-news {
  grid-area: quick;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.quick-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 108px;
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}
.quick-card:nth-child(1) { border-bottom-color: var(--lime); }
.quick-card:nth-child(2) { border-bottom-color: #7dff00; }
.quick-card:nth-child(3) { border-bottom-color: var(--cyan); }
.quick-card span { font-size: 1.9rem; }
.quick-card b { display: block; font-size: 1.1rem; margin-bottom: .25rem; }
.quick-card small { color: var(--muted); }
.quick-card i { font-style: normal; font-size: 2.1rem; color: var(--text); opacity: .85; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: min(4vw, 2rem);
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
}
.modal.open { display: grid; }
.modal img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
}
.modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
body.modal-open { overflow: hidden; }
@media (max-width: 1000px) {
  .news-section { grid-template-columns: 1fr; grid-template-areas: "intro" "features" "quick"; }
}
@media (max-width: 760px) {
  .feature-news, .quick-news { grid-template-columns: 1fr; }
  .image-reveal, .image-full { height: 245px; }
  .reveal-badge { width: 104px; height: 104px; }
}

/* v3: clickable live plan + embed fallback */
.stats .stat-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.stats .stat-link:hover {
  border-color: rgba(190, 255, 0, 0.75);
  box-shadow: 0 0 28px rgba(190, 255, 0, 0.18);
  transform: translateY(-2px);
}
.spielplan-card {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(190,255,0,.35);
  border-radius: 28px;
  padding: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(190,255,0,.16), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(0,230,255,.13), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 0 34px rgba(190,255,0,.12);
}
.spielplan-card-inner {
  min-height: 360px;
  border-radius: 22px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(135deg, rgba(2,7,14,.92), rgba(10,18,28,.88));
}
.spielplan-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .95;
  text-transform: uppercase;
}
.spielplan-card p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}
.embed-note {
  max-width: 760px;
  padding: 16px 18px;
  border-radius: 16px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
}
.embed-note strong { color: var(--lime); }
@media (max-width: 720px) {
  .spielplan-card-inner { padding: 30px 22px; min-height: 300px; }
}

/* v4: original layout kept, live card upgraded */
.stats .live-stat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.15rem;
  overflow: hidden;
  padding: 1.35rem 1.55rem;
  min-height: 118px;
  border: 1px solid rgba(183,233,0,.75);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 22%, rgba(183,233,0,.22), transparent 34%),
    radial-gradient(circle at 16% 50%, rgba(54,228,255,.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.028));
  box-shadow: 0 0 36px rgba(183,233,0,.16), var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.stats .live-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.12) 42%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .55s ease;
  pointer-events: none;
}
.stats .live-stat:hover {
  border-color: var(--lime);
  box-shadow: 0 0 52px rgba(183,233,0,.28), 0 20px 70px rgba(0,0,0,.44);
  transform: translateY(-3px);
}
.stats .live-stat:hover::before { transform: translateX(130%); }
.live-signal {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(54,228,255,.45);
  background: rgba(54,228,255,.06);
  box-shadow: 0 0 22px rgba(54,228,255,.18);
  font-size: 1.05rem;
}
.live-stat strong {
  font-size: clamp(2rem, 4vw, 3.8rem);
  color: var(--lime);
  line-height: .9;
  text-align: left;
}
.live-stat span:not(.live-signal):not(.live-chip):not(.tap-icon) {
  display: block;
  text-align: left;
  color: var(--text);
}
.live-chip {
  position: absolute;
  top: .8rem;
  right: 1rem;
  color: var(--lime);
  font-weight: 1000;
  font-size: .82rem;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(183,233,0,.5);
}
.live-chip::before {
  content: "";
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .35rem;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
  vertical-align: .06rem;
}
.tap-icon {
  position: absolute;
  right: 1.3rem;
  bottom: 1rem;
  color: var(--lime);
  font-size: 2rem;
  filter: drop-shadow(0 0 15px rgba(183,233,0,.4));
}
@media (max-width: 850px) {
  .stats .live-stat { grid-template-columns: auto 1fr; padding-right: 4.5rem; }
}


/* =========================
   UHN Open Turniermanager
   ========================= */

.tournament-section {
  scroll-margin-top: 5.5rem;
}

.tm-shell {
  border: 1px solid rgba(183,233,0,.18);
  background:
    radial-gradient(circle at top left, rgba(183,233,0,.10), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(0,167,255,.10), transparent 22rem),
    rgba(255,255,255,.055);
  border-radius: 2rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .4rem .2rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.tm-header h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: .2rem 0;
}

.tm-header p {
  margin: 0;
  color: var(--muted);
}

.tm-admin {
  min-width: min(100%, 330px);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  border-radius: 1.4rem;
  padding: 1rem;
}

.tm-admin-status {
  font-weight: 900;
  margin-bottom: .75rem;
  color: var(--lime);
}

.tm-login,
.tm-admin-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

.tm-admin input {
  flex: 1;
  min-width: 130px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.45);
  color: white;
  border-radius: .9rem;
  padding: .8rem .9rem;
  outline: none;
}

.tm-admin button,
.tm-match button {
  border: 0;
  border-radius: .9rem;
  padding: .8rem 1rem;
  font-weight: 900;
  cursor: pointer;
  background: var(--lime);
  color: #07111f;
}

.tm-admin .tm-ghost {
  background: rgba(255,255,255,.10);
  color: white;
}

.tm-admin .tm-danger {
  background: rgba(255,70,70,.18);
  color: #ffb7b7;
  border: 1px solid rgba(255,70,70,.28);
}

.tm-admin small {
  display: block;
  margin-top: .65rem;
  color: rgba(255,255,255,.45);
}

.tm-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .85rem;
  margin: 1rem 0;
}

.tm-stat-grid article {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.24);
  border-radius: 1.2rem;
  padding: 1rem;
}

.tm-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
}

.tm-stat-grid b {
  display: block;
  margin-top: .35rem;
  font-size: 2rem;
  color: white;
}

.tm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 1rem;
  align-items: start;
}

.tm-main,
.tm-panel {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  border-radius: 1.5rem;
  padding: 1rem;
}

.tm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.tm-tabs button {
  border: 0;
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 900;
  cursor: pointer;
  color: var(--text);
  background: rgba(255,255,255,.10);
}

.tm-tabs button.active {
  background: var(--lime);
  color: #07111f;
}

.tm-table-wrap {
  overflow-x: auto;
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 1rem;
}

.tm-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: .92rem;
}

.tm-table th {
  background: var(--lime);
  color: #07111f;
  padding: .85rem .7rem;
  text-align: left;
}

.tm-table td {
  padding: .85rem .7rem;
  border-top: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.86);
}

.tm-table td:not(:nth-child(2)),
.tm-table th:not(:nth-child(2)) {
  text-align: center;
}

.tm-rank {
  color: var(--lime) !important;
  font-weight: 1000;
}

.tm-matches {
  display: grid;
  gap: .85rem;
}

.tm-match {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  border-radius: 1.25rem;
  padding: 1rem;
}

.tm-match-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
}

.tm-match-title {
  font-weight: 1000;
  font-size: 1.05rem;
}

.tm-match-meta {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .82rem;
}

.tm-badge {
  border-radius: 999px;
  padding: .4rem .7rem;
  font-weight: 1000;
  font-size: .78rem;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.75);
}

.tm-badge.done {
  background: var(--lime);
  color: #07111f;
}

.tm-badge.error {
  background: rgba(255,60,60,.18);
  color: #ffbaba;
  border: 1px solid rgba(255,60,60,.28);
}

.tm-set-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .9rem;
}

.tm-set {
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1rem;
  padding: .75rem;
  min-width: 118px;
}

.tm-set label {
  display: block;
  color: rgba(255,255,255,.52);
  font-size: .76rem;
  font-weight: 900;
  margin-bottom: .45rem;
}

.tm-score-inputs {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.tm-score-inputs input {
  width: 44px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.48);
  color: white;
  border-radius: .75rem;
  padding: .6rem .25rem;
  text-align: center;
  font-weight: 900;
  outline: none;
}

.tm-score-inputs input:disabled {
  opacity: .5;
}

.tm-match-note {
  margin-top: .7rem;
  color: rgba(255,255,255,.42);
  font-size: .78rem;
}

.tm-side {
  display: grid;
  gap: 1rem;
}

.tm-panel h3 {
  margin: .25rem 0 .55rem;
  font-size: 1.55rem;
}

.tm-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.tm-bracket {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.tm-bracket-item {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  border-radius: 1rem;
  padding: .85rem;
}

.tm-bracket-item strong {
  display: block;
  color: var(--lime);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tm-bracket-item span {
  display: block;
  margin-top: .25rem;
  color: rgba(255,255,255,.86);
  font-weight: 800;
}

.tm-rules {
  padding-left: 1.15rem;
  color: rgba(255,255,255,.70);
  line-height: 1.7;
}

@media (max-width: 1000px) {
  .tm-layout {
    grid-template-columns: 1fr;
  }

  .tm-stat-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 560px) {
  .tm-stat-grid {
    grid-template-columns: 1fr;
  }

  .tm-admin {
    min-width: 100%;
  }
}


/* Admin Login hidden refinement */
.tm-admin {
  min-width: auto;
}

.tm-admin-status-button {
  width: 100%;
  border: 1px solid rgba(183,233,0,.24);
  background: rgba(183,233,0,.08);
  color: var(--lime);
  border-radius: 999px;
  padding: .85rem 1rem;
  font-weight: 1000;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.tm-admin-status-button:hover {
  transform: translateY(-1px);
  background: rgba(183,233,0,.14);
  box-shadow: 0 0 22px rgba(183,233,0,.13);
}

.tm-admin-status-button.is-admin {
  cursor: default;
  background: var(--lime);
  color: #07111f;
}

.tm-login-hidden {
  margin-top: .75rem;
}

.tm-admin-actions {
  margin-top: .75rem;
}


/* Admin accordion fix */
.tm-login[hidden],
.tm-admin-actions[hidden] {
  display: none !important;
}

.tm-admin:has(.tm-login[hidden]):has(.tm-admin-actions[hidden]) {
  padding: .75rem;
}

.tm-admin-status-button {
  margin: 0;
}

.tm-login-hidden:not([hidden]),
.tm-admin-actions:not([hidden]) {
  display: flex;
}

.tm-login-hidden:not([hidden]) {
  margin-top: .75rem;
}

.tm-admin-actions:not([hidden]) {
  margin-top: .75rem;
}


/* =========================
   Mobile Optimierung Turniermanager v11
   ========================= */

@media (max-width: 760px) {
  .section {
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .section-head h2 {
    font-size: clamp(2rem, 12vw, 3.1rem);
    line-height: .95;
  }

  .tm-shell {
    border-radius: 1.25rem;
    padding: .75rem;
    margin-left: -.25rem;
    margin-right: -.25rem;
  }

  .tm-header {
    gap: .8rem;
    padding-bottom: .85rem;
  }

  .tm-header h3 {
    font-size: 2rem;
    line-height: 1;
  }

  .tm-header p {
    font-size: .88rem;
  }

  .tm-admin {
    width: 100%;
    padding: .65rem;
    border-radius: 1.1rem;
  }

  .tm-admin-status-button {
    padding: .7rem .85rem;
    font-size: .9rem;
  }

  .tm-login,
  .tm-admin-actions {
    gap: .45rem;
  }

  .tm-admin input {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
    padding: .75rem;
  }

  .tm-admin button {
    flex: 1;
    padding: .75rem .7rem;
    font-size: .86rem;
  }

  .tm-stat-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .55rem;
    margin: .8rem 0;
  }

  .tm-stat-grid article {
    border-radius: 1rem;
    padding: .75rem;
  }

  .tm-stat-grid span {
    font-size: .72rem;
  }

  .tm-stat-grid b {
    font-size: 1.55rem;
  }

  .tm-layout {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .tm-main,
  .tm-panel {
    border-radius: 1.15rem;
    padding: .75rem;
  }

  .tm-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .35rem;
    margin-bottom: .75rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .tm-tabs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: .65rem .9rem;
    font-size: .83rem;
  }

  .tm-table-wrap {
    border-radius: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tm-table {
    min-width: 640px;
    font-size: .78rem;
  }

  .tm-table th,
  .tm-table td {
    padding: .62rem .45rem;
    white-space: nowrap;
  }

  .tm-table th:nth-child(8),
  .tm-table td:nth-child(8) {
    display: none;
  }

  .tm-matches {
    gap: .65rem;
  }

  .tm-match {
    border-radius: 1rem;
    padding: .8rem;
  }

  .tm-match-title {
    font-size: .95rem;
  }

  .tm-match-meta,
  .tm-match-note {
    font-size: .72rem;
  }

  .tm-badge {
    width: 100%;
    text-align: center;
    margin-top: .25rem;
  }

  .tm-set-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: .45rem;
  }

  .tm-set {
    min-width: 0;
    padding: .55rem;
    border-radius: .85rem;
  }

  .tm-set label {
    font-size: .68rem;
    text-align: center;
  }

  .tm-score-inputs {
    justify-content: center;
    gap: .22rem;
  }

  .tm-score-inputs input {
    width: 34px;
    padding: .5rem .15rem;
    border-radius: .55rem;
    font-size: .85rem;
  }

  .tm-side {
    gap: .8rem;
  }

  .tm-panel h3 {
    font-size: 1.25rem;
  }

  .tm-panel p,
  .tm-rules {
    font-size: .84rem;
  }

  .tm-bracket {
    max-height: 520px;
    overflow-y: auto;
    padding-right: .25rem;
    -webkit-overflow-scrolling: touch;
  }

  .tm-bracket-item {
    border-radius: .9rem;
    padding: .7rem;
  }

  .tm-bracket-item strong {
    font-size: .68rem;
  }

  .tm-bracket-item span {
    font-size: .82rem;
  }
}

@media (max-width: 420px) {
  .tm-stat-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .tm-table {
    min-width: 590px;
  }

  .tm-table th:nth-child(6),
  .tm-table td:nth-child(6) {
    display: none;
  }

  .tm-set-row {
    grid-template-columns: 1fr;
  }

  .tm-set {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
  }

  .tm-set label {
    margin-bottom: 0;
    text-align: left;
  }

  .tm-score-inputs {
    justify-content: flex-end;
  }

  .tm-match-note {
    display: none;
  }
}



/* =========================
   News Bereich Responsive Fix v12
   ========================= */

.news-section {
  overflow: hidden;
}

.news-intro h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 1180px) {
  .news-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-intro {
    max-width: 100%;
  }

  .news-intro h2 {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: .92;
  }

  .feature-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-news {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .news-section {
    padding-top: 3rem;
  }

  .news-intro h2 {
    font-size: clamp(2.7rem, 15vw, 4.8rem);
    line-height: .9;
  }

  .feature-news {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-width: 0;
  }

  .feature-body h3 {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
  }

  .quick-news {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .news-section {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .news-intro h2 {
    font-size: clamp(2.4rem, 17vw, 3.8rem);
    letter-spacing: -.06em;
  }

  .news-intro p {
    font-size: .95rem;
  }

  .phase-card {
    width: 100%;
  }

  .feature-card {
    border-radius: 1.35rem;
  }

  .feature-body {
    padding: 1.1rem;
  }

  .feature-body p {
    font-size: .95rem;
  }

  .image-reveal,
  .image-full {
    min-height: 230px;
  }
}



/* =========================
   News Layout Fix v13
   ========================= */

/* verhindert, dass große Überschriften in der linken Grid-Spalte abgeschnitten werden */
.news-intro {
  min-width: 0;
}

.news-intro h2 {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

/* ab Laptop/Tablet-Breite: Intro volle Breite, Karten darunter */
@media (max-width: 1350px) {
  .news-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .news-intro {
    grid-column: 1 / -1;
    max-width: 760px;
  }

  .news-intro h2 {
    font-size: clamp(3.6rem, 8vw, 6.2rem);
    line-height: .9;
    max-width: 760px;
  }

  .feature-news {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-news {
    grid-column: 1 / -1;
  }
}

/* ab kleiner Tablet-Breite: alles untereinander */
@media (max-width: 900px) {
  .news-section {
    grid-template-columns: 1fr;
  }

  .news-intro {
    max-width: 100%;
  }

  .news-intro h2 {
    max-width: 100%;
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .feature-news {
    grid-template-columns: 1fr;
  }
}

/* Handy: Text bewusst kleiner, damit nichts seitlich rausläuft */
@media (max-width: 560px) {
  .news-intro h2 {
    font-size: clamp(2.55rem, 16vw, 4rem);
    line-height: .92;
  }
}



/* =========================
   v14 Chrome News Fix + Mobile Scroll
   ========================= */

/* Chrome/Fallback: News-Intro bleibt links, aber wird nicht abgeschnitten */
@media (min-width: 901px) and (max-width: 1500px) {
  .news-section {
    display: grid !important;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.95fr) !important;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
    overflow: visible !important;
  }

  .news-intro {
    grid-column: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .news-intro h2 {
    font-size: clamp(3.4rem, 5.6vw, 5.25rem) !important;
    line-height: .92 !important;
    letter-spacing: -.055em;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .feature-news {
    grid-column: auto !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0;
  }

  .quick-news {
    grid-column: 1 / -1 !important;
  }
}

/* falls sehr knapp: Schrift minimal kleiner, aber Layout bleibt gleich */
@media (min-width: 901px) and (max-width: 1250px) {
  .news-section {
    grid-template-columns: minmax(280px, .7fr) minmax(0, 2fr) !important;
  }

  .news-intro h2 {
    font-size: clamp(3rem, 5.2vw, 4.5rem) !important;
  }
}

/* Firefox/Chrome: kein komischer Bindestrichumbruch bei NEWS & UPDATES */
.news-intro h2 {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
}

/* Turniermanager auf Touch-Geräten leichter horizontal verschiebbar */
.tm-table-wrap,
.tm-tabs,
.tm-bracket {
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
}

.tm-table-wrap {
  cursor: grab;
}

.tm-table-wrap:active {
  cursor: grabbing;
}

@media (max-width: 760px) {
  .tm-table-wrap::before {
    content: "← Tabelle seitlich wischen →";
    display: block;
    padding: .55rem .75rem;
    color: rgba(255,255,255,.55);
    font-size: .78rem;
    font-weight: 800;
    background: rgba(255,255,255,.045);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .tm-table {
    min-width: 720px !important;
  }
}

