/* Bootstrap-3-Lookalike, an die Optik der echten Roth-Seite angelehnt.
   Selbst enthalten (kein CDN) -> läuft offline. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  background: #fff;
}

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }

a { color: #337ab7; text-decoration: none; }
a:hover { color: #23527c; text-decoration: underline; }

/* ---------- Navbar ---------- */
.navbar { background: #2e2d2c; min-height: 50px; margin-bottom: 20px; }
.navbar .container { display: flex; align-items: center; flex-wrap: wrap; min-height: 50px; }
.navbar-brand {
  color: #f0f0f0; display: flex; flex-direction: column;
  line-height: 1.1; padding: 6px 0; margin-right: 30px;
}
.navbar-brand:hover { text-decoration: none; color: #fff; }
.brand-main { font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.brand-sub  { font-size: 11px; color: #b5b5b5; letter-spacing: 2px; }
.nav-links { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-links li a {
  color: #cfcfcf; padding: 15px; display: block;
  font-size: 13px; letter-spacing: .5px;
}
.nav-links li a:hover { color: #fff; background: #1d1c1b; text-decoration: none; }
.nav-lang { margin-left: auto; color: #cfcfcf; font-size: 13px; }

/* ---------- Layout ---------- */
.content { min-height: 60vh; padding-bottom: 40px; }
h1 { font-size: 26px; font-weight: 500; margin: 10px 0 20px; }
h2 { font-size: 20px; font-weight: 500; margin: 0 0 10px; }
h2 small { color: #777; font-size: 65%; }
ul { padding-left: 20px; }
li { margin-bottom: 4px; }

/* ---------- Panels ---------- */
.panel {
  background: #fff; border: 1px solid #ddd; border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,.05); margin-bottom: 20px;
}
.panel-body { padding: 20px; }

/* ---------- Grid (3 Karten) ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col { flex: 1 1 30%; padding: 0 10px; min-width: 260px; }
.col .panel { text-align: center; }
.race-date { color: #777; margin: 15px 0 0; font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 8px 16px; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer; font-size: 14px;
}
.btn-primary { background: #2e2d2c; color: #f0f0f0; border-color: #2e2d2c; }
.btn-primary:hover { background: #000; color: #fff; text-decoration: none; }

/* ---------- Formular ---------- */
.form-group { margin-bottom: 15px; max-width: 480px; }
label { display: inline-block; margin-bottom: 5px; font-weight: 700; }
.form-control {
  display: block; width: 100%; max-width: 480px; padding: 8px 12px;
  font-size: 14px; line-height: 1.42; color: #555; background: #fff;
  border: 1px solid #ccc; border-radius: 4px;
}
.form-control:focus {
  border-color: #66afe9; outline: 0;
  box-shadow: 0 0 6px rgba(102,175,233,.5);
}

/* Datum als drei Dropdowns */
.date-selects { display: flex; gap: 10px; max-width: 480px; }
.date-selects .form-control { flex: 1; }

/* Honeypot: für Menschen unsichtbar, im DOM aber vorhanden */
.hp-field {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; opacity: 0;
}

/* ---------- Reload / Countdown ---------- */
.reload-link { font-size: 16px; font-weight: 700; }
.opens-at { font-size: 18px; margin: 20px 0; }
.stopwatch {
  font-size: 24px; font-weight: 700; margin-bottom: 20px;
  font-variant-numeric: tabular-nums; color: #2e2d2c;
}

/* ---------- Alerts ---------- */
.alert { padding: 12px 15px; border-radius: 4px; margin-bottom: 20px; }
.alert-danger { background: #f2dede; border: 1px solid #ebccd1; color: #a94442; }

/* ---------- Tabelle (Leaderboard) ---------- */
.table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.table th, .table td { padding: 8px; border-top: 1px solid #ddd; text-align: left; }
.table thead th { border-bottom: 2px solid #ddd; }
.table tbody tr:nth-child(odd) { background: #f9f9f9; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid #e5e5e5; padding: 20px 0;
  color: #777; font-size: 13px; margin-top: 30px;
}
.footer a { color: #777; }

.hidden { display: none; }
