@charset "UTF-8";
/* Lane View – nur Startseite: Bühne mit Bahnbild, Hallenkarten,
   Ergebnisübersicht und laufende Scoretafel. */

/* Schrift der Scoretafel und der Abschnittstitel (lokal, nicht von Google) */
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Farben der TOMS-Anzeige (anzeige.php) */
:root {
  --titel: "Barlow Condensed", "Arial Narrow", sans-serif;
  --leise: #b3babc;
  --linie: #2c3134;
  --rahmen: #484f53;
  --kopfzelle: #3a4044;
  --kopftext: #e3e9ed;
  --hellgrau: #d0d4d6;
  --dunkeltext: #20272b;
  --zelle: #c8ccce;
  --zelle-dunkel: #3a4145;
  --gesamt: #363d40;
  --gelb: #fff475;
  --rot: #e00000;
}

.landing { padding-bottom: 64px; }

/* ------------------------------------------------------------ Bühne mit Bahnbild */
.landing .hero {
  display: grid;
  align-items: center;
  min-height: clamp(360px, 55vh, 620px);
  min-height: clamp(360px, 55svh, 620px);
  padding: 42px 0 112px;
  background-image:
    linear-gradient(90deg, rgb(16 17 18 / 65%), transparent 73%),
    url("bahnx.jpg");
  background-position: 0 0, center 45%;
  background-size: auto, cover;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}
.landing h1 {
  margin: 0 0 15px;
  font-size: clamp(58px, 6.8vw, 100px);
  color: #f0efed;
}
.landing h1 em { color: var(--score-green); }
.landing .hero p { font-size: 18px; line-height: 1.5; color: var(--text-leise); }

/* ------------------------------------------------------------ Hallenkarten */
.landing .center {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: calc(62px + 2 * clamp(23px, 3vw, 38px));
  margin: clamp(-76px, -7vh, -44px) auto 0;
  margin: clamp(-76px, -7svh, -44px) auto 0;
  padding: clamp(23px, 3vw, 38px);
  background: #333435;
  border-radius: 9px;
  box-shadow: 0 8px 28px rgb(0 0 0 / 13%);
}
.landing .center small { color: #bdbbb6; font-size: 12px; font-weight: bold; letter-spacing: 1.6px; }
.landing h2 { margin: 4px 0 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -1.9px; }
.center-logo { flex: none; border-radius: 6px; }

.landing .cta {
  display: inline-block;
  margin-left: auto;
  padding: 13px 18px;
  border-radius: 6px;
  background: var(--score-green);
  color: #222324;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
.landing .cta:hover { background: var(--score-green-hell); }

.landing .hall-card { margin: 14px auto 0; color: inherit; text-decoration: none; }
.landing .hall-card:hover { background: #3b3c3d; }

/* ------------------------------------------------------------ Abschnitte (Ergebnisübersicht, Jeder Wurf. Live.) */
.abschnitt { padding: clamp(72px, 9vw, 124px) 0; }

.zeile-klein {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font: 600 15px/1 var(--titel); letter-spacing: .2em; text-transform: uppercase;
  color: var(--leise);
}
.strich { flex: none; width: 32px; height: 2px; background: var(--score-green); }

.landing .gross-titel {
  margin: 0 0 22px;
  font: 700 clamp(2.8rem, 6.6vw, 5.8rem)/.9 var(--titel);
  letter-spacing: -.005em;
  text-transform: uppercase;
}

/* Ergebnisübersicht */
.bahnen {
  margin-top: 64px;
  background: var(--site-chrome);
  border-block: 1px solid var(--linie);
}
.bahnen-raster {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.bahnen-text > p { color: var(--leise); font-size: 1.1rem; line-height: 1.6; }
.zahlen { margin: 40px 0 0; }
.zahlen div {
  display: grid; grid-template-columns: minmax(140px, auto) 1fr; align-items: baseline; gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--linie);
}
.zahlen dt { font: 700 clamp(2.4rem, 4.2vw, 3.6rem)/1 var(--titel); color: var(--score-green); }
.zahlen dd { margin: 0; color: var(--leise); line-height: 1.6; }

.bahnen-bild { position: relative; margin: 0; padding-bottom: 48px; }
.bildrahmen {
  margin: 0; overflow: hidden;
  border: 1px solid var(--rahmen); border-radius: 16px;
  box-shadow: 0 50px 100px -40px rgb(0 0 0 / 90%);
}
.bildrahmen img, .handy img { display: block; width: 100%; height: auto; }
.handy {
  position: absolute; right: -18px; bottom: 0; width: 29%;
  margin: 0; overflow: hidden; background: #000;
  border: 8px solid #0b0c0d; border-radius: 34px;
  box-shadow: 0 0 0 1px #3a4044, 0 40px 80px -20px rgb(0 0 0 / 90%);
}

/* Jeder Wurf. Live. */
.live-bereich {
  background:
    radial-gradient(55% 60% at 75% 40%, rgb(128 255 40 / 14%), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, rgb(255 255 255 / 5%), transparent 70%);
}
.live-raster {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.live-text { container-type: inline-size; }
.landing .live-titel {
  margin: 0;
  font: 700 clamp(3.6rem, 8vw, 8rem)/.84 var(--titel);
  font-size: 18.6cqi;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.live-titel span { display: block; }
.live-titel .gruen { color: var(--score-green); text-shadow: 0 0 60px rgb(128 255 40 / 35%); }
.live-titel .punkt {
  display: inline-block; width: .16em; height: .16em; margin-left: .05em;
  border-radius: 50%; background: var(--score-green);
  box-shadow: 0 0 .3em rgb(128 255 40 / 80%);
  animation: blinken 1.6s ease-in-out infinite;
}
@keyframes blinken { 50% { opacity: .25; box-shadow: none; } }
.einleitung {
  max-width: 32em; margin: 30px 0 0;
  color: var(--leise); font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.6;
}

/* ------------------------------------------------------------ Laufende Scoretafel */
.tafel-karte {
  container-type: inline-size;
  padding: 18px;
  background: linear-gradient(180deg, rgb(50 55 58 / 94%), rgb(40 44 46 / 94%));
  border: 1px solid #4a5256; border-radius: 20px;
  box-shadow:
    0 60px 120px -40px rgb(0 0 0 / 90%),
    inset 0 1px 0 rgb(255 255 255 / 6%),
    0 0 180px -60px rgb(128 255 40 / 50%);
  transform: perspective(1500px) rotateY(-9deg) rotateX(3deg);
  transition: transform .6s ease;
}
.tafel-karte:hover { transform: perspective(1500px) rotateY(0) rotateX(0); }

.tafel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tafel-art {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; border-radius: 999px;
  background: rgb(128 255 40 / 14%); color: var(--score-green);
  font: 600 14px/1 var(--titel); letter-spacing: .14em; text-transform: uppercase;
}
.tafel-art[hidden] { display: none; }
.tafel-ort { font: 500 16px/1.2 var(--titel); letter-spacing: .04em; color: var(--leise); text-align: right; }
.tafel-hinweis { margin: 14px 0 0; font-size: 13px; color: #8d979c; }
.tafel-hinweis:empty { display: none; }
.tafel-ohne-js { margin: 0; padding: 30px; text-align: center; color: var(--leise); }

.live-punkt {
  position: relative; display: inline-block; flex: none;
  width: 8px; height: 8px; border-radius: 50%; background: var(--score-green);
}
.live-punkt::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: puls 2s ease-out infinite;
}
@keyframes puls { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.tafel { display: grid; gap: clamp(4px, 1.3cqi, 8px); }
.t-zeile {
  display: grid; gap: 2px;
  grid-template-columns: minmax(0, 1.95fr) repeat(9, minmax(0, 1fr)) minmax(0, 1.45fr) minmax(0, 1.35fr);
}
.t-kopf > span {
  padding: clamp(4px, 1.2cqi, 7px) 0;
  background: var(--kopfzelle); color: var(--kopftext); text-align: center;
  font: 500 clamp(10px, 2.5cqi, 14px)/1 var(--titel);
}
.t-kopf > span:first-child { text-align: left; padding-left: clamp(5px, 1.6cqi, 10px); border-radius: 5px 0 0 5px; }
.t-kopf > span:last-child { border-radius: 0 5px 5px 0; }
.t-name {
  display: flex; align-items: center; min-width: 0;
  padding: 0 clamp(5px, 1.6cqi, 10px);
  background: var(--hellgrau); color: var(--dunkeltext); border-radius: 6px 0 0 6px;
  font: 600 clamp(11px, 3cqi, 17px)/1.1 var(--titel);
  transition: background-color .3s ease;
}
.t-name span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.t-zeile.aktiv .t-name { background: var(--gelb); color: #081623; }
.t-frame { display: grid; min-width: 0; }
.t-wuerfe {
  display: flex; height: clamp(19px, 5.4cqi, 30px);
  background: var(--zelle); color: var(--dunkeltext);
}
.t-wuerfe span {
  position: relative; flex: 1; display: grid; place-items: center; min-width: 0;
  font: 600 clamp(10px, 2.9cqi, 16px)/1 var(--titel);
}
.t-wuerfe .split::before {
  content: ""; position: absolute; width: 1.5em; height: 1.5em;
  border: 2px solid var(--rot); border-radius: 50%;
}
.t-stand {
  display: grid; place-items: center; height: clamp(21px, 6cqi, 34px);
  background: var(--zelle-dunkel); color: var(--score-green);
  font: 700 clamp(12px, 3.7cqi, 22px)/1 var(--titel);
}
.t-gesamt {
  display: grid; place-items: center;
  background: var(--gesamt); color: var(--score-green); border-radius: 0 6px 6px 0;
  font: 700 clamp(15px, 5cqi, 30px)/1 var(--titel);
}
.t-wuerfe span.neu { animation: wurf .5s cubic-bezier(.2, .9, .3, 1.25); }
.t-wuerfe span.strike.neu { animation: wurf .5s cubic-bezier(.2, .9, .3, 1.25), blitz 1s ease-out; }
.t-stand span.neu, .t-gesamt span.neu { display: inline-block; animation: auf .4s ease-out; }
@keyframes wurf { from { transform: scale(2.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blitz { 0% { background: var(--score-green); } 100% { background: transparent; } }
@keyframes auf { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.tafel.ausblenden { opacity: 0; transition: opacity .5s ease; }

/* ------------------------------------------------------------ Schmalere Bildschirme */
@media (max-width: 1080px) {
  .bahnen-raster, .live-raster { grid-template-columns: minmax(0, 1fr); }
  .live-text { max-width: 760px; }
  .tafel-karte, .tafel-karte:hover { transform: none; max-width: 760px; }
  .bahnen-bild { max-width: 820px; }
}

@media (max-width: 700px) {
  .landing .hero p { font-size: 16px; }
  .landing .center { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 640px) {
  .tafel-karte { padding: 12px; border-radius: 16px; }
  .tafel-kopf { flex-wrap: wrap; gap: 8px; }
  .tafel-ort { font-size: 14px; text-align: left; }
  .zahlen div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .handy { width: 34%; right: -6px; border-width: 5px; border-radius: 22px; }
}

@media (max-width: 580px) {
  .landing .hero {
    min-height: 340px;
    padding: 40px 0 105px;
    background-image:
      linear-gradient(90deg, rgb(16 17 18 / 84%), rgb(16 17 18 / 25%)),
      url("bahnx.jpg");
    background-position: 70% center;
  }
  .landing .cta { width: 100%; margin-top: 6px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .live-punkt::after, .live-titel .punkt { animation: none; }
  .tafel-karte, .tafel-karte:hover { transform: none; transition: none; }
}
