:root{
  --bg:#06140c;
  --panel:#0a1f14;
  --panel2:#082016;
  --text:#eafff1;
  --muted:#b9d8c6;

  --accent:#39d98a;     /* Lindau-Grün */
  --accent2:#a7ffcf;    /* Mint */
  --danger:#ff6b88;

  --border: rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{margin:0; padding:0; font-family:var(--sans); color:var(--text);}

body{
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(57,217,138,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(167,255,207,.10), transparent 55%),
    var(--bg);
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:28px 18px 60px}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border:1px solid var(--border); border-radius:var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  position: sticky; top: 14px; backdrop-filter: blur(10px); z-index: 10;
}

.brand{display:flex; gap:12px; align-items:center; font-weight:800; letter-spacing:.2px}
.logo{
  width:40px; height:40px; border-radius:14px;
  background: conic-gradient(from 200deg, var(--accent), var(--accent2), var(--accent));
  box-shadow: 0 10px 30px rgba(57,217,138,.18);
}
.navlinks{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

.pill{
  padding:10px 12px; border-radius:999px; border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.pill:hover{transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16);}

.hero{
  margin-top:18px;
  border-radius: 28px;
  padding: 26px 18px;
  border:1px solid var(--border);
  background:
    radial-gradient(600px 220px at 15% 15%, rgba(57,217,138,.14), transparent 60%),
    radial-gradient(600px 220px at 85% 35%, rgba(167,255,207,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

.hgrid{display:grid; gap:14px; grid-template-columns: 1.2fr .8fr}
@media (max-width: 900px){ .hgrid{grid-template-columns: 1fr;} }

.h1{font-size: clamp(26px, 3vw, 42px); margin: 0 0 8px; line-height: 1.05;}
.sub{color:var(--muted); margin:0 0 16px; max-width: 70ch}

.kpis{display:flex; gap:10px; flex-wrap:wrap}
.kpi{
  padding:10px 12px; border:1px solid var(--border); border-radius: 14px;
  background: rgba(0,0,0,.18);
  display:flex; flex-direction:column; gap:4px; min-width: 140px;
}
.kpi b{font-size: 16px}
.kpi span{font-size: 12px; color:var(--muted); font-family:var(--mono)}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  overflow:hidden;
}
.card .hd{padding:14px 14px 0}
.card h2{margin:0; font-size: 16px}
.card p{margin:8px 0 0; color:var(--muted); font-size: 13px}
.card .bd{padding:14px;}

.grid{display:grid; gap:14px; grid-template-columns: 1fr 1fr}
@media (max-width: 900px){ .grid{grid-template-columns: 1fr;} }
.rankingStack{grid-template-columns: 1fr;}

.table{width:100%; border-collapse:separate; border-spacing:0 8px}
.table th{font-size:12px; color:var(--muted); text-align:left; padding:0 10px}
.row{
  background: rgba(0,0,0,.18);
  border:1px solid var(--border);
  border-radius: 14px;
}
.table td{padding:12px 10px; font-size: 14px; vertical-align: top}
.worldRankingTable th,
.worldRankingTable td{ white-space: nowrap; }

@media (max-width: 900px){
  .worldRankingTable .year-col{ display:none; }
}

.badge{
  font-family: var(--mono); font-size: 12px; padding:6px 10px;
  border-radius:999px; border:1px solid var(--border);
  color: var(--muted); background: rgba(0,0,0,.14);
}
.badge.good{color:#c8ffe6; border-color: rgba(57,217,138,.30); background: rgba(57,217,138,.10)}
.badge.warn{color:#ffe3b8; border-color: rgba(255,196,122,.25); background: rgba(255,196,122,.08)}
.badge.danger{color:#ffd0d9; border-color: rgba(255,107,136,.25); background: rgba(255,107,136,.08)}

.search{display:flex; gap:10px; align-items:center}
.input{
  width:100%; padding:12px 12px; border-radius: 14px; outline:none;
  border:1px solid var(--border); background: rgba(0,0,0,.22); color: var(--text);
}

.small{font-size:12px; color:var(--muted)}
.footer{margin-top:22px; color:var(--muted); font-size: 12px; text-align:center}
.hr{height:1px; background: var(--border); margin: 10px 0}

.bar{
  height:10px; border-radius:999px; border:1px solid var(--border);
  background: rgba(0,0,0,.22); overflow:hidden;
}
.bar > i{
  display:block; height:100%;
  background: linear-gradient(90deg, rgba(57,217,138,.95), rgba(167,255,207,.85));
  width: 0%;
}

.avatar{
  width:34px; height:34px; border-radius: 12px;
  border:1px solid var(--border);
  object-fit: cover;
  background: rgba(0,0,0,.25);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.person{
  display:flex; gap:10px; align-items:center;
}
.tabs{
  display:flex; gap:10px; flex-wrap:wrap;
}
.tabbtn{
  cursor:pointer; user-select:none;
  padding:10px 12px; border-radius:999px; border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.tabbtn.active{
  border-color: rgba(57,217,138,.35);
  background: rgba(57,217,138,.10);
  color: #d8fff0;
}

.podium{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
  margin-top:10px;
}
@media (max-width: 900px){
  .podium{ grid-template-columns: 1fr; }
}

.podiumCard{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  position: relative;
}

/* leichtes “shine” */
.podiumCard::before{
  content:"";
  position:absolute;
  inset:-40% -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%);
  transform: rotate(12deg);
  pointer-events:none;
}

.podiumTop{
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  position: relative;
  z-index: 1;
}

.medal{
  width:36px; height:36px;
  border-radius: 14px;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  font-family: var(--mono);
  background: rgba(0,0,0,.22);
}

/* GOLD */
.podiumCard.gold{
  background:
    linear-gradient(135deg,
      rgba(255, 215, 130, .30) 0%,
      rgba(255, 180, 70,  .18) 30%,
      rgba(0,0,0, .10) 70%,
      rgba(0,0,0, .20) 100%);
  border-color: rgba(255, 215, 130, .40);
  box-shadow:
    0 18px 45px rgba(0,0,0,.35),
    0 0 0 1px rgba(255, 215, 130, .12) inset,
    0 0 28px rgba(255, 215, 130, .10);
}
/* SILVER */
.podiumCard.silver{
  background:
    linear-gradient(135deg,
      rgba(230, 235, 255, .22) 0%,
      rgba(190, 205, 235, .14) 35%,
      rgba(0,0,0, .10) 70%,
      rgba(0,0,0, .20) 100%);
  border-color: rgba(230, 235, 255, .30);
  box-shadow:
    0 18px 45px rgba(0,0,0,.35),
    0 0 0 1px rgba(230, 235, 255, .10) inset,
    0 0 22px rgba(230, 235, 255, .08);
}

/* BRONZE */
.podiumCard.bronze{
  background:
    linear-gradient(135deg,
      rgba(215, 160, 120, .22) 0%,
      rgba(175, 110, 70,  .16) 35%,
      rgba(0,0,0, .10) 70%,
      rgba(0,0,0, .20) 100%);
  border-color: rgba(215, 160, 120, .28);
  box-shadow:
    0 18px 45px rgba(0,0,0,.35),
    0 0 0 1px rgba(215, 160, 120, .08) inset,
    0 0 18px rgba(215, 160, 120, .07);
}

/* Medal Badge passt farblich dazu */
.podiumCard.gold .medal{
  background: linear-gradient(180deg, rgba(255,215,130,.28), rgba(0,0,0,.15));
  border-color: rgba(255,215,130,.45);
}
.podiumCard.silver .medal{
  background: linear-gradient(180deg, rgba(230,235,255,.22), rgba(0,0,0,.15));
  border-color: rgba(230,235,255,.35);
}
.podiumCard.bronze .medal{
  background: linear-gradient(180deg, rgba(215,160,120,.22), rgba(0,0,0,.15));
  border-color: rgba(215,160,120,.35);
}

.podiumTitle{
  display:flex; flex-direction:column; gap:2px;
}
.podiumTitle b{font-size:14px}
.podiumTitle span{font-size:12px; color:var(--muted)}

.podiumBody{
  padding: 0 14px 14px;
  position: relative;
  z-index: 1;
}

.qualRow{
  border-color: rgba(57,217,138,.35) !important;
  background: rgba(57,217,138,.08) !important;
}
.qualBadge{
  margin-left: 8px;
}

.siteLogo{
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
}

.heroLogo{
  width: 180px;
  margin-bottom: 12px;
  opacity: .9;
}

.videoGrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:14px;
  margin-top:14px;
}

.videoCard{
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(0,0,0,.25);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.videoWrapper{
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.videoWrapper iframe{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  border:0;
}

.quickLinks{
  display: flex;
  flex-direction: column;
  gap: 12px;   /* Abstand zwischen Einträgen */
  margin: 12px;
}

.quickLinks .pill{
  width: fit-content;
  padding: 8px 16px;
}

.filterBar{
  display:grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap:10px;
  align-items:end;
}
@media (max-width: 900px){
  .filterBar{ grid-template-columns: 1fr 1fr; }
}

.medalBoard{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}

.medalRow{
  display:grid;
  grid-template-columns: 140px repeat(4, minmax(90px, 1fr));
  gap:10px;
  align-items:stretch;
}

@media (max-width: 900px){
  .medalRow{
    grid-template-columns: 1fr 1fr;
  }
}

.medalLabel{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:12px;
  background: rgba(255,255,255,.04);
}

.medalStat{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:12px;
  background: rgba(0,0,0,.22);
}

.medalStat b{ font-size:18px; }
.medalStat span{ display:block; color:var(--muted); font-size:12px; margin-top:2px; }

.medalStat.gold{ border-color: rgba(255,215,130,.35); }
.medalStat.silver{ border-color: rgba(220,230,255,.25); }
.medalStat.bronze{ border-color: rgba(215,160,120,.25); }
.medalStat.total{ border-color: rgba(57,217,138,.25); }

.medalMini{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
}

.medalMiniRow{
  display:grid;
  grid-template-columns: 74px repeat(4, 1fr);
  gap:8px;
  align-items:center;
}

.medalMiniRow .lbl{
  font-size:12px;
  color: var(--muted);
  font-weight:700;
}

.medalMiniChip{
  border:1px solid var(--border);
  border-radius: 999px;
  padding:6px 10px;
  background: rgba(0,0,0,.18);
  font-size:12px;
  text-align:center;
  white-space:nowrap;
}

.medalMiniChip strong{ font-size:12px; }

.medalMiniChip.gold{ border-color: rgba(255,215,130,.30); }
.medalMiniChip.silver{ border-color: rgba(220,230,255,.25); }
.medalMiniChip.bronze{ border-color: rgba(215,160,120,.25); }
.medalMiniChip.total{ border-color: rgba(57,217,138,.25); }

/* Compact table cells */
.cellFlex{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:nowrap;
  white-space:nowrap;
}

.cellFlex .pill{
  white-space:nowrap;
}

.pill.smallPill{
  padding: 6px 10px;
  font-size: 12px;
}

.pill.miniPill{
  padding: 4px 8px;
  font-size: 12px;
}

.pill.ghostPill{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
.navMenu{
  position: relative;
}

.navMenuDrop{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:210px;
  background: linear-gradient(180deg, rgba(10,31,20,.98), rgba(8,32,22,.98));
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow: var(--shadow);
  padding:6px;
  display:none;
  z-index:30;
}

.navMenuDrop a{
  display:block;
  padding:9px 10px;
  border-radius:10px;
  color:var(--text);
}

.navMenuDrop a:hover{
  background: rgba(255,255,255,.06);
}

.navMenu:hover .navMenuDrop,
.navMenu:focus-within .navMenuDrop{
  display:block;
}
