/* Tarox-Webseite: dunkles Kupfer/Glut-Design passend zum Spiel-Login (v2, cleaner, 01.10.) */
:root {
  --bg: #0b0908;
  --glass: rgba(14, 11, 9, .72);
  --glass-strong: rgba(14, 11, 9, .86);
  --line: rgba(201, 135, 74, .35);
  --line-strong: rgba(201, 135, 74, .7);
  --copper: #c9874a;
  --copper-light: #f0c08a;
  --text: #ece3d8;
  --muted: #a49688;
  --ok: #8fd48a;
  --err: #ff8a7a;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.6 "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg) url("bg.jpg?v=2") center top / cover fixed no-repeat;
  display: flex;
  flex-direction: column;
}
a { color: var(--copper-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: .05em; color: var(--copper-light); font-weight: 600; }
h1 { font-size: 1.35rem; margin: 0 0 1rem; text-transform: uppercase; }
h2 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }

/* ---------------------------------------------------------------- Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: .55rem clamp(16px, 3vw, 32px);
  background: rgba(8, 6, 5, .78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 700 1.3rem Georgia, serif; letter-spacing: .28em; color: var(--copper-light); }
nav { display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; }
nav a, .link {
  color: var(--text); padding: .45rem .9rem; border-radius: 999px; background: none; border: 0;
  font: inherit; font-size: .95rem; cursor: pointer; transition: color .15s, background .15s;
}
nav a:hover, .link:hover { color: var(--copper-light); background: rgba(201, 135, 74, .12); text-decoration: none; }
nav a.on { color: #1a120b; background: linear-gradient(#f0c08a, #c9874a); }
.inline { display: inline; margin: 0; }

/* Sprachflaggen (aus dem Client) zwischen Logo und Navigation */
/* fest neben dem Logo, damit unterschiedlich lange Menuetexte die Flaggen nicht verschieben */
.flags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; justify-content: flex-start; margin-left: 1.5rem; margin-right: auto; }
.flags a { display: block; line-height: 0; border-radius: 6px; padding: 2px; opacity: .72; transition: opacity .15s, background .15s; box-shadow: 0 0 0 1px transparent; }
.flags a:hover { opacity: 1; background: rgba(201, 135, 74, .14); }
.flags a.on { opacity: 1; background: rgba(201, 135, 74, .28); box-shadow: 0 0 0 1px var(--line-strong); }
.flags img { width: 30px; height: auto; }

/* ---------------------------------------------------------------- Inhalt */
main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 1.5rem 16px 2.5rem; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 1rem; background: rgba(8, 6, 5, .8); border-top: 1px solid var(--line); }

.panel, .hero, .stat {
  background: var(--glass);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.panel { padding: 1.4rem 1.6rem; margin-bottom: 1.25rem; }

/* Startseite: Willkommensblock unter dem Querbalken des T */
.hero { text-align: center; margin: 32vh auto 1.5rem; max-width: 460px; padding: 1rem 1.2rem 1.1rem; background: var(--glass-strong); }
.hero h1 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin: 0 0 .7rem; letter-spacing: .08em; }
.hero p { margin: 0; color: var(--text); }
.cta { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 0; }
.hero .btn { padding: .5rem 1.1rem; font-size: .85rem; }

/* Live-Statistik: senkrechte Spalte am linken Rand */
.stats { position: fixed; left: clamp(12px, 2vw, 28px); top: 20vh; width: 180px; display: grid; gap: .3rem; z-index: 5; }
.stat { padding: .38rem .8rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.stat b { font: 700 1.15rem Georgia, serif; color: var(--copper-light); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; text-align: right; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .62rem 1.5rem; border-radius: 8px; cursor: pointer;
  font: 600 .9rem/1 "Segoe UI", Tahoma, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #1a120b; background: linear-gradient(180deg, #f3c995, #c9874a);
  border: 1px solid rgba(255, 220, 170, .5);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); box-shadow: 0 0 18px rgba(240, 160, 80, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn:active { transform: translateY(1px); }
.btn.ghost { color: var(--copper-light); background: rgba(10, 8, 6, .35); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: rgba(201, 135, 74, .14); }

/* ---------------------------------------------------------------- Formulare */
.form { display: grid; gap: .9rem; max-width: 380px; }
.form label { display: grid; gap: .35rem; color: var(--muted); font-size: .85rem; letter-spacing: .02em; }
.form input {
  padding: .6rem .8rem; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(6, 5, 4, .7); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.form input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(201, 135, 74, .2); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; margin-top: .3rem; }

.msg { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; backdrop-filter: blur(6px); }
.msg.ok { color: var(--ok); border-color: rgba(143, 212, 138, .45); background: rgba(30, 60, 30, .55); }
.msg.err { color: var(--err); border-color: rgba(255, 138, 122, .45); background: rgba(70, 25, 20, .55); }
.muted { color: var(--muted); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.4rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
code { color: var(--copper-light); font-size: 1.05rem; letter-spacing: .08em; }

/* ---------------------------------------------------------------- Tabellen */
.list { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.list th { text-align: left; color: var(--copper); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line-strong); padding: .5rem .6rem; }
.list td { padding: .5rem .6rem; border-bottom: 1px solid rgba(201, 135, 74, .14); }
.list tr:hover td { background: rgba(201, 135, 74, .07); }

.news { padding: .7rem 0; border-bottom: 1px solid rgba(201, 135, 74, .14); }
.news:last-child { border-bottom: 0; }
.news h2 { margin: 0; }
.news time { color: var(--muted); font-size: .82rem; }

/* ---------------------------------------------------------------- Schmale Bildschirme */
@media (max-width: 1100px) {
  .flags { gap: .15rem; }
  .flags img { width: 22px; }
}
@media (max-width: 1180px) {
  .stats { position: static; width: auto; max-width: 640px; margin: 0 auto 1.5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .stat { flex-direction: column; align-items: center; text-align: center; }
  .stat span { text-align: center; }
}
@media (max-width: 560px) {
  .flags { order: 3; flex-basis: 100%; }
  .flags img { width: 26px; }
  .brand span { font-size: 1.05rem; letter-spacing: .2em; }
  .panel { padding: 1rem; }
  .hero { margin-top: 14vh; }
  .list th:nth-child(4), .list td:nth-child(4) { display: none; }
}
.cta.mirrors { justify-content: flex-start; margin: .4rem 0 .8rem; }
.sha code { word-break: break-all; font-size: .8rem; }
