:root{
  --bg:#07070b;
  --bg2:#0a0a12;
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.12);
  --text:#eef0ff;
  --muted:rgba(238,240,255,.72);
  --red:#ff2a2a;
  --red2:#ff6b2a;
  --ok:#22c55e;
  --shadow: 0 18px 70px rgba(0,0,0,.58);
  --r: 22px;
  --max: 1080px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 18% 15%, var(--red), transparent 10%),
    radial-gradient(900px 700px at 85% 15%, var(--red2), transparent 20%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

.wrap{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }
a{ color:inherit; text-decoration:none; }

/* ================= TOPBAR ================= */
.topbar{
  position:sticky; top:0; z-index:50;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7,7,11,.62);
  backdrop-filter: blur(14px);
}
.topbar__inner{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 0; gap:14px;
}

.brand{ display:flex; align-items:center; gap:10px; font-weight:950; }
.brand__mark{
  width:12px; height:12px; border-radius:999px;
  background: linear-gradient(135deg, var(--red), var(--red2));
  box-shadow: 0 0 0 6px rgba(255,42,42,.10);
}

.nav{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.nav__link{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--muted);
}

.btn{
  border:0;
  border-radius:999px;
  padding:12px 16px;
  font-weight:900;
  cursor:pointer;
}
.btn--primary{
  background: linear-gradient(135deg, var(--red), var(--red2));
  color:#120607;
}

/* ================= MAIN ================= */
.main{ padding:24px 0 32px; }

.card{
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.05));
  border-radius:var(--r);
  box-shadow:var(--shadow);
  backdrop-filter: blur(14px);
  padding:22px;
}

.title{
  margin:14px 0 6px;
  font-size:clamp(24px, 3.8vw, 38px);
  letter-spacing:-.6px;
}
.subtitle{
  margin:0 0 12px;
  color:var(--muted);
}

/* ================= SCHEDULE ================= */
.schedule{
  display:grid;
  gap:10px;
  margin-top:12px;
}

/* ROW */
.scheduleRow{
  display:flex;
  gap:12px;
  padding:12px;
  border-radius:16px;

  /* clean base */
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);

  align-items:flex-start;
}

/* CRITICAL: allow shrinking (fixes text cut-off) */
.scheduleRow > *{
  min-width:0;
}

/* left side flexible */
.scheduleRow__left{
  flex:1 1 auto;
  min-width:0;
}

/* title: max 2 lines */
.scheduleRow__title{
  font-weight:900;
  line-height:1.25;

  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  word-break:break-word;
}

/* meta: max 2 lines */
.scheduleRow__meta{
  margin-top:4px;
  font-size:12.5px;
  color:rgba(238,240,255,.6);

  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  word-break:break-word;
}

/* tag: clean pill, no aggressive red outline */
.scheduleRow__tag{
  flex: 0 0 auto;
  max-width: 46%;
  align-self: center;

  font-size: 12.5px;
  color: rgba(238,240,255,.55);

  /* ✅ NICHT mehr abschneiden */
  white-space: normal;
  overflow: hidden;

  /* ✅ 3 Zeilen anzeigen (stell 2/3/4 ein wie du willst) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;

  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);

  word-break: break-word;
}



/* ================= MOBILE ================= */
@media (max-width:520px){
  .wrap{ width:min(var(--max), calc(100% - 22px)); }
  .main{ padding:18px 0 24px; }

  .card{ padding:16px; }

  .title{ font-size:26px; line-height:1.15; }
  .subtitle{ font-size:14px; }

  /* STACK rows on mobile */
  .scheduleRow{
    flex-direction:column;
    gap:8px;
    align-items:flex-start;
  }

  .scheduleRow__tag{
    max-width:100%;
    white-space:normal;
    overflow:visible;
    text-overflow:unset;
  }

  .nav__link, .btn{
    min-height:44px;
  }
}

.footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:16px 0 30px;
  color:rgba(238,240,255,.6);
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}
