/*
Theme Name: Traktor Racing Fahrer-Dashboard
Theme URI: https://traktorrennen-live-dashboard.p-filzwieser.chatgpt.site
Author: FIPE
Description: Responsives WordPress-Dashboard im Design des Traktor Racing Fahrer-Dashboards.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: traktor-racing
*/

:root {
  --tr-bg: #f3f5f2;
  --tr-panel: #ffffff;
  --tr-ink: #101713;
  --tr-muted: #8d9790;
  --tr-line: #dfe5e0;
  --tr-sidebar: #0d1913;
  --tr-green: #14583f;
  --tr-lime: #caff2f;
  --tr-positive: #62b879;
  --tr-negative: #d66b62;
  --tr-radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tr-bg);
  color: var(--tr-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.tr-app { min-height: 100vh; padding-left: 244px; }
.tr-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 244px;
  display: flex; flex-direction: column; padding: 27px 18px 20px;
  color: #f7faf7; background: var(--tr-sidebar);
}
.tr-brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 31px; }
.tr-brand-mark {
  display: grid; place-items: center; width: 46px; height: 43px;
  border-radius: 9px 9px 9px 5px; color: #132017; background: var(--tr-lime);
  font-size: 15px; font-style: italic; font-weight: 900; transform: skew(-6deg);
}
.tr-brand-name { font-size: 16px; font-weight: 850; letter-spacing: .14em; }
.tr-brand-sub { display: block; margin-top: 2px; color: #8c9891; font-size: 9px; letter-spacing: .26em; }
.tr-nav { display: grid; gap: 7px; }
.tr-nav a {
  display: flex; align-items: center; gap: 15px; min-height: 47px; padding: 0 15px;
  border-radius: 10px; color: #8e9a93; font-size: 15px; font-weight: 700;
}
.tr-nav a:hover, .tr-nav a:focus-visible { color: #fff; background: #17261e; outline: none; }
.tr-nav a.is-active { color: #162018; background: var(--tr-lime); }
.tr-nav-icon { width: 16px; text-align: center; font-size: 16px; }
.tr-sidebar-bottom { margin-top: auto; }
.tr-profile { display: flex; align-items: center; gap: 10px; padding: 17px 4px 0; border-top: 1px solid #233129; }
.tr-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #255842; color: var(--tr-lime); font-size: 12px; font-weight: 800; }
.tr-profile strong { display: block; font-size: 13px; }
.tr-profile small { color: #758078; font-size: 10px; }
.tr-signout { margin-left: auto; color: #849087; }

.tr-mobile-bar { display: none; }
.tr-topbar {
  display: flex; align-items: center; justify-content: space-between; min-height: 95px;
  padding: 20px 33px; background: #fff; border-bottom: 1px solid #e2e6e3;
}
.tr-eyebrow { margin: 0 0 6px; color: #879089; font-size: 9px; font-weight: 850; letter-spacing: .24em; text-transform: uppercase; }
.tr-topbar h1 { margin: 0; font-size: 25px; font-weight: 500; letter-spacing: -.035em; }
.tr-next { display: flex; align-items: center; gap: 20px; text-align: right; }
.tr-next strong { display: block; font-size: 14px; }
.tr-next small { color: #879089; font-size: 10px; }
.tr-notification { position: relative; display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid var(--tr-line); border-radius: 50%; }
.tr-notification::after { content: "2"; position: absolute; top: -4px; right: -2px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: #fff; background: #e25c54; font-size: 8px; font-weight: 800; }

.tr-main { padding: 22px 30px 34px; }
.tr-status {
  display: flex; align-items: center; min-height: 50px; padding: 0 17px; margin-bottom: 16px;
  border: 1px solid #d7ebce; border-radius: 11px; background: #eaf7e5; color: #789071; font-size: 11px;
}
.tr-status strong { margin-right: 12px; color: #39745b; font-size: 11px; letter-spacing: .16em; }
.tr-live-dot { width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: #94d7a4; box-shadow: 0 0 0 5px rgba(148,215,164,.14); }
.tr-status-time { margin-left: auto; color: #92a08f; }

.tr-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr); gap: 16px; }
.tr-card { overflow: hidden; border: 1px solid var(--tr-line); border-radius: var(--tr-radius); background: var(--tr-panel); box-shadow: 0 1px 2px rgba(18,38,26,.02); }
.tr-card-head { display: flex; align-items: center; justify-content: space-between; min-height: 75px; padding: 14px 19px; border-bottom: 1px solid var(--tr-line); }
.tr-card-head h2 { margin: 5px 0 0; font-size: 17px; font-weight: 500; }
.tr-card-head a { color: #557666; font-size: 10px; font-weight: 800; }
.tr-label { color: #8d9791; font-size: 8px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }

.tr-map { position: relative; min-height: 325px; overflow: hidden; background: #e4eae2; }
.tr-map::before, .tr-map::after { content: ""; position: absolute; inset: 0; }
.tr-map::before {
  background:
    linear-gradient(78deg, transparent 0 35%, rgba(255,255,255,.85) 35.2% 35.7%, transparent 35.9%),
    linear-gradient(20deg, transparent 0 47%, rgba(255,255,255,.82) 47.2% 47.8%, transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(94,118,101,.08) 48px 49px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(94,118,101,.08) 48px 49px);
}
.tr-map::after { inset: 44px 94px 46px 165px; border: 8px solid #687d70; border-radius: 48% 42% 51% 45%; transform: rotate(-10deg); box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.tr-map-badges { position: absolute; z-index: 2; top: 14px; left: 16px; display: flex; gap: 8px; }
.tr-badge { padding: 8px 10px; border-radius: 4px; background: #fff; font-size: 8px; font-weight: 800; box-shadow: 0 1px 5px rgba(18,30,22,.08); }
.tr-map-pin { position: absolute; z-index: 3; top: 47%; left: 58%; display: grid; place-items: center; width: 31px; height: 31px; border: 4px solid #fff; border-radius: 50%; background: var(--tr-lime); box-shadow: 0 0 0 13px rgba(202,255,47,.22); transform: rotate(-30deg); font-size: 13px; }
.tr-map-town { position: absolute; z-index: 2; left: 10%; top: 54%; color: #96a197; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.tr-map-credit { position: absolute; z-index: 2; right: 14px; bottom: 10px; padding: 5px 8px; background: rgba(255,255,255,.84); color: #88928b; font-size: 6px; }

.tr-gauge-wrap { display: grid; place-items: center; min-height: 325px; padding: 20px; }
.tr-gauge { position: relative; width: 230px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 225deg, var(--tr-lime) 0 56%, #dfe5e1 56% 75%, transparent 75% 100%); }
.tr-gauge::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.tr-gauge-value { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; text-align: center; font-size: 60px; font-weight: 850; letter-spacing: -.07em; }
.tr-gauge-value small { margin-top: -8px; color: #939b95; font-size: 10px; font-weight: 500; letter-spacing: normal; }
.tr-gauge-scale { position: absolute; z-index: 3; inset: 0; color: #707a73; font-size: 9px; font-weight: 700; }
.tr-gauge-scale span { position: absolute; }
.tr-gauge-scale span:nth-child(1) { left: 15px; bottom: 50px; }
.tr-gauge-scale span:nth-child(2) { left: 27px; top: 83px; }
.tr-gauge-scale span:nth-child(3) { left: 49%; top: 20px; }
.tr-gauge-scale span:nth-child(4) { right: 25px; top: 84px; }
.tr-gauge-scale span:nth-child(5) { right: 14px; bottom: 49px; }
.tr-telemetry-foot { display: flex; justify-content: space-between; margin-top: 12px; padding: 13px 4px 0; width: 100%; border-top: 1px solid var(--tr-line); color: #859088; font-size: 8px; font-weight: 800; }

.tr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.tr-stat { position: relative; min-height: 148px; padding: 25px 18px 15px; overflow: hidden; }
.tr-stat-primary { color: #fff; background: var(--tr-green); border-color: var(--tr-green); }
.tr-stat-primary::after { content: "03"; position: absolute; right: 10px; bottom: -22px; color: rgba(255,255,255,.025); font-size: 112px; font-weight: 900; }
.tr-stat-value { margin-top: 10px; font-size: 38px; font-weight: 850; letter-spacing: -.045em; line-height: 1; }
.tr-stat-value small { color: #909a93; font-size: 13px; font-weight: 700; }
.tr-stat-primary .tr-stat-value small { color: #7da28f; }
.tr-stat-foot { margin-top: 13px; color: #87918a; font-size: 8px; }
.tr-stat-primary .tr-stat-foot { color: #92b5a3; }
.tr-progress { height: 4px; margin-top: 17px; background: #e5e7e5; }
.tr-progress span { display: block; width: 75%; height: 100%; background: var(--tr-lime); }
.tr-time { font-size: 29px; }
.tr-best { color: var(--tr-positive); font-size: 8px; font-weight: 800; }
.tr-gap-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.tr-gap { font-size: 16px; font-weight: 800; }
.tr-gap.is-negative { color: var(--tr-negative); }
.tr-gap.is-positive { color: #579969; }
.tr-gap small { display: block; margin-bottom: 7px; color: #a1a8a3; font-size: 7px; font-weight: 500; }

.tr-content { margin-top: 16px; padding: 22px; }
.tr-content h2, .tr-content h3 { margin-top: 0; }
.tr-content img { max-width: 100%; height: auto; }

.tr-landing { min-height: 100vh; color: #fff; background: var(--tr-sidebar); }
.tr-landing-head { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: auto; padding: 28px 30px; }
.tr-landing-head .tr-brand { margin: 0; }
.tr-button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 0 22px; border: 0; border-radius: 9px; color: #142017; background: var(--tr-lime); font-size: 13px; font-weight: 800; cursor: pointer; }
.tr-button-dark { color: #fff; background: #1b2a22; border: 1px solid #2b3b32; }
.tr-text-link { color: #9dac9f; font-size: 12px; font-weight: 700; }
.tr-hero { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; max-width: 1180px; min-height: 490px; margin: auto; padding: 55px 30px 70px; }
.tr-hero h1 { margin: 12px 0 22px; max-width: 760px; font-size: clamp(55px, 8vw, 105px); line-height: .9; letter-spacing: -.075em; }
.tr-hero h1 em { color: var(--tr-lime); font-style: normal; }
.tr-hero p:not(.tr-eyebrow) { max-width: 570px; color: #9dac9f; font-size: 17px; line-height: 1.65; }
.tr-hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 33px; }
.tr-hero-number { color: var(--tr-lime); font-size: clamp(150px, 21vw, 310px); font-weight: 900; line-height: .7; letter-spacing: -.12em; opacity: .09; }
.tr-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: auto; padding: 0 30px 45px; }
.tr-feature-grid a { display: flex; flex-direction: column; min-height: 150px; padding: 24px; border: 1px solid #26362d; border-right: 0; }
.tr-feature-grid a:last-child { border-right: 1px solid #26362d; }
.tr-feature-grid a:hover { background: #15251c; }
.tr-feature-grid span { color: var(--tr-lime); font-size: 9px; font-weight: 800; }
.tr-feature-grid strong { margin: 30px 0 8px; font-size: 17px; }
.tr-feature-grid small { color: #79877e; line-height: 1.5; }
.tr-feature-grid a.is-locked { position: relative; opacity: .58; }
.tr-feature-grid a.is-locked::after { content: "GESPERRT · LOGIN ERFORDERLICH"; position: absolute; top: 22px; right: 20px; color: #9dac9f; font-size: 7px; font-weight: 850; letter-spacing: .1em; }
.tr-feature-grid a.is-locked:hover { opacity: .78; }

.tr-login-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.tr-login-brand { display: flex; flex-direction: column; justify-content: space-between; padding: 38px clamp(35px, 7vw, 100px) 80px; color: #fff; background: var(--tr-sidebar); }
.tr-login-brand .tr-brand { margin: 0; }
.tr-login-brand h1 { margin: 13px 0 22px; font-size: clamp(48px, 6vw, 78px); line-height: .94; letter-spacing: -.06em; }
.tr-login-brand p:not(.tr-eyebrow) { max-width: 500px; color: #92a096; line-height: 1.7; }
.tr-login-panel { position: relative; display: grid; place-items: center; padding: 70px 30px; background: #f3f5f2; }
.tr-login-back { position: absolute; top: 34px; left: 36px; color: #68756c; font-size: 12px; font-weight: 700; }
.tr-login-box { width: min(410px, 100%); }
.tr-login-box h2 { margin: 8px 0 10px; font-size: 38px; letter-spacing: -.045em; }
.tr-login-box > p { color: #78837c; line-height: 1.6; }
.tr-login-box label { display: block; margin: 17px 0 7px; color: #455249; font-size: 11px; font-weight: 800; }
.tr-login-box input[type="text"], .tr-login-box input[type="password"] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d9dfdb; border-radius: 8px; background: #fff; }
.tr-login-box .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tr-login-box .login-submit { margin: 24px 0 18px; }
.tr-login-box input[type="submit"] { width: 100%; min-height: 49px; border: 0; border-radius: 8px; background: var(--tr-lime); color: #122018; font-weight: 850; cursor: pointer; }
.tr-login-box > .tr-button { margin: 22px 0; }
.tr-login-box > .tr-text-link { display: block; }

.tr-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 15px; }
.tr-mini-metric { padding: 22px; }
.tr-mini-metric strong { display: block; margin: 11px 0 4px; font-size: 28px; letter-spacing: -.04em; }
.tr-mini-metric strong small { color: var(--tr-muted); font-size: 12px; }
.tr-mini-metric > small { color: var(--tr-muted); font-size: 9px; }
.tr-table-card { overflow: hidden; }
.tr-table-scroll { overflow-x: auto; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tr-table th { padding: 14px 20px; color: #8d9791; background: #f8faf8; text-align: left; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.tr-table td { padding: 18px 20px; border-top: 1px solid var(--tr-line); color: #67736b; }
.tr-table .tr-lap-time { color: var(--tr-ink); font-weight: 800; }
.tr-table tr.is-driver td { color: #173829; background: #eff8e8; font-weight: 750; }
.tr-table tr.is-driver td:first-child { box-shadow: inset 4px 0 var(--tr-lime); }

.tr-live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 15px; }
.tr-map-large { min-height: 590px; }
.tr-map-large::after { inset: 85px 18% 75px 25%; border-width: 11px; }
.tr-map-details { display: grid; gap: 13px; align-content: start; }
.tr-map-note { padding: 22px; color: #738078; font-size: 11px; line-height: 1.6; }
.tr-result-hero { display: flex; align-items: center; justify-content: space-between; min-height: 180px; margin-bottom: 15px; padding: 28px 36px; border-radius: var(--tr-radius); color: #fff; background: var(--tr-green); }
.tr-result-hero h2 { margin: 6px 0; font-size: 35px; letter-spacing: -.04em; }
.tr-result-hero > div > p:last-child { color: #9cbcac; font-size: 11px; }
.tr-result-rank { display: grid; text-align: center; }
.tr-result-rank span, .tr-result-rank small { color: #9cbcac; font-size: 9px; }
.tr-result-rank strong { color: var(--tr-lime); font-size: 72px; line-height: 1; }

@media (max-width: 1000px) {
  .tr-dashboard-grid { grid-template-columns: 1fr; }
  .tr-stats { grid-template-columns: repeat(2, 1fr); }
  .tr-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tr-feature-grid a:nth-child(2) { border-right: 1px solid #26362d; }
  .tr-live-layout { grid-template-columns: 1fr; }
  .tr-map-details { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .tr-app { padding-left: 0; padding-bottom: 72px; }
  .tr-sidebar { display: none; }
  .tr-topbar { min-height: 78px; padding: 16px 18px; }
  .tr-next > div { display: none; }
  .tr-main { padding: 14px; }
  .tr-status { align-items: flex-start; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .tr-status-time { width: 100%; margin-left: 19px; }
  .tr-mobile-bar { position: fixed; z-index: 30; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 66px; padding: 8px; background: var(--tr-sidebar); }
  .tr-mobile-bar a { display: grid; place-items: center; gap: 2px; color: #8d9891; font-size: 10px; }
  .tr-mobile-bar a.is-active { color: var(--tr-lime); }
  .tr-map { min-height: 280px; }
  .tr-map::after { inset: 54px 45px 52px 75px; }
  .tr-stats { grid-template-columns: 1fr; }
  .tr-landing-head { padding: 20px; }
  .tr-hero { grid-template-columns: 1fr; min-height: 440px; padding: 45px 20px; }
  .tr-hero-number { display: none; }
  .tr-feature-grid { grid-template-columns: 1fr; padding: 0 20px 30px; }
  .tr-feature-grid a, .tr-feature-grid a:nth-child(2) { border-right: 1px solid #26362d; }
  .tr-login-page { grid-template-columns: 1fr; }
  .tr-login-brand { min-height: 330px; padding: 25px 25px 45px; }
  .tr-login-panel { min-height: 620px; padding: 90px 25px 50px; }
  .tr-metric-row, .tr-map-details { grid-template-columns: 1fr; }
  .tr-map-large { min-height: 410px; }
  .tr-result-hero { align-items: flex-start; padding: 25px; }
}
@media (max-width: 430px) {
  .tr-topbar h1 { font-size: 21px; }
  .tr-card-head { min-height: 67px; padding: 12px 14px; }
  .tr-map { min-height: 240px; }
  .tr-gauge { width: 205px; }
  .tr-stat { min-height: 130px; }
}
