/* Rhydarters Dartsverein – Grundlayout
   Farben aus dem Logo: Schwarz (Board), Creme (Mitte), Rot (Dart/Dächer), Blau (Rhein), Gold (Ring) */
:root {
  --ink: #141210;
  --ink-2: #2a2622;
  --cream: #fffbe1;
  --paper: #fbf6e6;
  --line: #e6dcc0;
  --red: #b52624;
  --red-dark: #8f1d1b;
  --blue: #237fc0;
  --blue-dark: #195f91;
  --gold: #c9a24a;
  --muted: #6b6358;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 18, 16, .06), 0 8px 24px rgba(20, 18, 16, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hidden { display: none !important; }

/* ---------- Kopfzeile ---------- */
.site-header {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--cream); text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand span { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a {
  color: var(--cream);
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: .95rem;
}
.nav a:hover { background: rgba(255, 251, 225, .1); color: #fff; }
.nav a[aria-current="page"] { background: var(--red); color: #fff; }
.nav a.nav-login { border: 1px solid var(--gold); margin-left: .3rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 251, 225, .4);
  color: var(--cream);
  border-radius: 8px;
  padding: .4rem .7rem;
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; padding: .5rem 1.25rem 1rem; border-bottom: 4px solid var(--gold); }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .6rem; }
  .nav a.nav-login { margin: .4rem 0 0; text-align: center; }
}

/* ---------- Startseite ---------- */
.hero {
  background:
    radial-gradient(circle at 50% 38%, rgba(201, 162, 74, .25), transparent 55%),
    var(--ink);
  color: var(--cream);
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--cream) 40px 80px);
  opacity: .9;
}
.hero-logo {
  width: min(420px, 78vw);
  margin: 0 auto 1.8rem;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55));
}
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 640px; margin: 0 auto 1.6rem; color: #f1ead0; }
.actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.3rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--cream); border-block: 1px solid var(--line); }
.page-head { background: var(--ink); color: var(--cream); padding: 2.4rem 0 2rem; border-bottom: 4px solid var(--red); }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { margin: .4rem 0 0; color: #e8e0c4; }
.eyebrow { font: 600 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .4rem; display: block; }

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .3rem; }
.card-accent { border-top: 5px solid var(--red); }
.card-blue { border-top: 5px solid var(--blue); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.fact { text-align: center; padding: 1.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.fact b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--red); line-height: 1.1; }
.fact span { color: var(--muted); font-size: .95rem; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 1rem; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: start; }
.news-date {
  font-family: var(--serif);
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  padding: .6rem .4rem;
  line-height: 1.15;
}
.news-date b { display: block; font-size: 1.7rem; }
.news-date span { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.news-item h3 { margin: .1rem 0 .3rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: .15rem .55rem; border-radius: 999px; background: #e8f1f9; color: var(--blue-dark); margin-bottom: .3rem; }
.tag-red { background: #f8e4e3; color: var(--red-dark); }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; } .news-date { display: inline-block; padding: .3rem .8rem; } .news-date b { display: inline; font-size: 1.1rem; margin-right: .3rem; } }

/* ---------- Termine ---------- */
.termine { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.termine th, .termine td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.termine th { background: var(--ink); color: var(--cream); font-weight: 600; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; }
.termine tr:last-child td { border-bottom: 0; }
.termine tr.is-next td { background: #fff6dc; }
.termine td.when { white-space: nowrap; font-weight: 600; }
.termine .typ { font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) {
  .termine thead { display: none; }
  .termine tr { display: block; border-bottom: 1px solid var(--line); padding: .6rem 0; }
  .termine td { display: block; border: 0; padding: .15rem 1rem; }
}
.next-box { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.next-box .big { font-family: var(--serif); font-size: 1.6rem; }

/* ---------- Sponsoren ---------- */
.sponsor { display: flex; flex-direction: column; gap: .4rem; }
.sponsor .name { font-family: var(--serif); font-size: 1.35rem; }

/* ---------- Formulare ---------- */
form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: .7rem .85rem;
  border: 1.5px solid #cfc4a6;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(35, 127, 192, .25); border-color: var(--blue); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; }
.msg-ok { background: #e6f4ea; color: #1d5b2e; border: 1px solid #b7dfc2; }
.msg-err { background: #fbe9e8; color: var(--red-dark); border: 1px solid #f0c2bf; }
.msg-info { background: #e8f1f9; color: var(--blue-dark); border: 1px solid #c3dbef; }
.auth-card { max-width: 460px; margin: 0 auto; }
.divider { text-align: center; color: var(--muted); margin: 1.4rem 0; position: relative; font-size: .9rem; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 38%; border-top: 1px solid var(--line); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* ---------- Tabellen (Verwaltung) ---------- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
table.list th, table.list td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
table.list th { background: var(--cream); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
table.list button { font-size: .85rem; padding: .3rem .6rem; border-radius: 8px; border: 1px solid #cfc4a6; background: #fff; cursor: pointer; }
table.list button:hover { border-color: var(--ink); }
table.list button.danger { color: var(--red-dark); }
.status { font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; background: #eee; }
.status.ok { background: #e6f4ea; color: #1d5b2e; }
.status.wait { background: #fff2cc; color: #7a5a00; }

/* ---------- Fusszeile ---------- */
.site-footer { background: var(--ink); color: #d9d0b4; padding: 2.4rem 0 1.6rem; border-top: 4px solid var(--gold); font-size: .95rem; }
.site-footer a { color: var(--cream); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 1.6rem; }
.site-footer h4 { font-family: var(--serif); color: #fff; margin: 0 0 .5rem; font-size: 1.05rem; letter-spacing: .05em; }
.site-footer .bottom { border-top: 1px solid rgba(255, 251, 225, .15); padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

.download {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink);
}
.download:hover { border-color: var(--red); color: var(--ink); }
.download .icon { width: 46px; height: 56px; border-radius: 6px; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 .8rem var(--sans); flex: none; }
.download b { display: block; }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.actions-left { justify-content: flex-start; }
.hero-logo-sm { width: min(200px, 50vw); }
.news-item p:last-child { margin-bottom: 0; }
.news-list + p { margin-top: 1rem; }
