/*
Theme Name: Lekiam Motorsport
Theme URI: https://example.com
Author: Lekiam Motorsport
Author URI: https://example.com
Description: Modernes, dunkles SimRacing-Theme (iRacing & LMU) mit Twitch-Sektion, Sponsor-Marquee und geschütztem Stintplan.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lekiam-motorsport
Tags: custom-background, custom-logo, one-column, two-columns, responsive-layout
*/

:root{
  --bg:#0B0D10;
  --card:rgba(255,255,255,.04);
  --stroke:rgba(255,255,255,.08);
  --accent:#B7F10A;
  --text:#E8EDF2;
  --muted:rgba(232,237,242,.75);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(183,241,10,.10), transparent 60%),
              radial-gradient(900px 500px at 80% 30%, rgba(183,241,10,.08), transparent 60%),
              linear-gradient(180deg, #07080A 0%, var(--bg) 60%);
  color:var(--text);
}

a{color:var(--accent); text-decoration:none}
a:hover{opacity:.9}

.container{max-width:1200px; margin:0 auto; padding:0 20px}
.section{padding:64px 0}
.grid{display:grid; gap:20px}
.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:18px;
  backdrop-filter: blur(6px);
}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,13,16,.70);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:12px; min-width:220px}
.brand img{height:40px; width:auto; display:block}
.brand span{font-weight:800; letter-spacing:.02em}

.nav a{color:var(--text); opacity:.9; margin-left:14px; font-weight:650}
.nav a:hover{opacity:1}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  font-weight:850;
  letter-spacing:.02em;
  border:1px solid rgba(183,241,10,.35);
  color:var(--text);
  background:transparent;
}
.btn--primary{
  background:var(--accent);
  color:#0B0D10;
  border-color:transparent;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0px)}

.hero{
  padding:86px 0 54px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, transparent 100%),
    radial-gradient(800px 400px at 30% 20%, rgba(183,241,10,.12), transparent 60%);
}
.hero h1{
  font-size: clamp(36px, 5vw, 64px);
  margin:0 0 10px 0;
  line-height:1.02;
  letter-spacing:.02em;
}
.hero p{margin:0 0 22px 0; color:var(--muted); font-size: clamp(16px, 2vw, 20px)}
.hero .cta{display:flex; gap:12px; flex-wrap:wrap}

.twitch-wrap{grid-template-columns:2fr 1fr}
.embed{position:relative; padding-top:56.25%; border-radius:18px; overflow:hidden; border:1px solid var(--stroke)}
.embed iframe{position:absolute; inset:0; width:100%; height:100%; border:0}

.kpis{grid-template-columns:repeat(3, 1fr)}
.kpi h3{margin:0 0 8px 0}
.kpi p{margin:0; color:var(--muted)}

.marquee{
  overflow:hidden;
  border:1px solid var(--stroke);
  border-radius:18px;
  background:rgba(0,0,0,.25);
}
.marquee-track{
  display:flex;
  width:max-content;
  animation: marquee 24s linear infinite;
}
.marquee:hover .marquee-track{animation-play-state: paused}
.sponsor{
  text-decoration:none;
  color:rgba(232,237,242,.80);

  display:flex; align-items:center; justify-content:center;
  min-width:180px;
  padding:18px 22px;
  font-weight:900;
  color:rgba(232,237,242,.80);
  text-transform:uppercase;
  letter-spacing:.08em;
  border-right:1px solid rgba(255,255,255,.06);
}
.sponsor img{height:42px; width:auto; opacity:.85; filter: grayscale(1) contrast(1.2)}
.sponsor:hover img{filter:none; opacity:1}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.team-grid{grid-template-columns:repeat(4, 1fr)}
.driver{padding:14px}
.driver .name{font-weight:900; margin-top:10px}
.driver .role{color:var(--muted); font-size:14px}

.site-footer{
  padding:26px 0;
  border-top:1px solid rgba(255,255,255,.06);
  color:rgba(232,237,242,.70);
  font-size:14px;
}

.page-content h2{margin-top:0}
.notice{
  display:flex; gap:10px; align-items:flex-start;
  background:rgba(183,241,10,.08);
  border:1px solid rgba(183,241,10,.22);
  color:rgba(232,237,242,.95);
  padding:14px 16px;
  border-radius:16px;
}
.notice strong{color:var(--accent)}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:16px;
  border:1px solid var(--stroke);
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.table th{text-align:left; color:rgba(232,237,242,.85); font-size:13px; text-transform:uppercase; letter-spacing:.08em}
.table tr:last-child td{border-bottom:none}
.table tr.is-current{background:rgba(183,241,10,.10)}
.table tr.is-next{background:rgba(255,255,255,.03)}

@media (max-width: 980px){
  .twitch-wrap{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr}
  .team-grid{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width: 520px){
  .team-grid{grid-template-columns:1fr}
  .brand span{display:none}
}


.header-auth{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
@media (max-width: 980px){.header-auth{display:none}}

@media (max-width: 980px){ .page-content .grid{grid-template-columns:1fr !important;} }


.lekiam-input, .card input[type=text], .card input[type=email], .card input[type=password]{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
.lekiam-input:focus, .card input:focus{border-color:rgba(183,241,10,.45); box-shadow:0 0 0 3px rgba(183,241,10,.12);}
.card label{display:inline-block;margin-bottom:6px;}
.card .login-remember{margin-top:10px;}
.card .login-submit{margin-top:14px;}
.card #wp-submit{cursor:pointer;}
