/* Jassverein Oberfreiamt – zentrales Stylesheet */

:root {
  --bg: #f7f1e5;
  --karte: #fdfaf3;
  --linie: rgba(43, 33, 24, 0.1);
  --text: #2b2118;
  --text-2: #5a4632;
  --rost: #a3541f;
  --rost-dunkel: #8a4419;
  --gold: #e0b13e;
  --dunkel: #2b2118;
  --dunkel-text: #f2ead9;
  --radius: 8px;
  --mass: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Karla", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 21px; }

p { margin: 0 0 1em; }

a { color: var(--rost); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--mass);
  margin: 0 auto;
  padding: 0 24px;
}

/* Eyebrow: kleine Zeile über Titeln */
.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rost);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Navigation ---------- */

.kopf {
  border-bottom: 1px solid var(--linie);
  background: var(--bg);
}

.kopf .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: "Marcellus", Georgia, serif;
  font-size: 19px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marke:hover { text-decoration: none; }

.marke img {
  width: 44px;
  height: auto;
  mix-blend-mode: multiply;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--text-2);
  font-weight: 600;
  font-size: 15.5px;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.aktiv { color: var(--text); border-bottom: 2px solid var(--rost); padding-bottom: 3px; }

.nav .knopf { margin-left: 6px; }

/* Mobile-Navigation */
.nav-schalter {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-schalter { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--karte);
    border-bottom: 1px solid var(--linie);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 22px;
    gap: 16px;
    z-index: 20;
  }
  .nav.offen { display: flex; }
  .kopf { position: relative; }
  .nav .knopf { margin-left: 0; }
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15.5px;
  border: 2px solid var(--rost);
  background: var(--rost);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.knopf:hover { background: var(--rost-dunkel); border-color: var(--rost-dunkel); text-decoration: none; }

.knopf.linie {
  background: transparent;
  color: var(--rost);
}
.knopf.linie:hover { background: rgba(163, 84, 31, 0.08); }

.knopf.dunkel {
  background: var(--dunkel);
  border-color: var(--dunkel);
  color: var(--dunkel-text);
  border-radius: 999px;
  padding: 10px 20px;
}
.knopf.dunkel:hover { background: #3a2d20; border-color: #3a2d20; }

/* ---------- Sektionen ---------- */

.sektion { padding: 72px 0; }
.sektion.eng { padding: 48px 0; }

.sektion-kopf { max-width: 640px; margin-bottom: 36px; }

/* ---------- Hero (Startseite) ---------- */

.hero { padding: 72px 0 64px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero p.einstieg {
  font-size: 19px;
  color: var(--text-2);
  max-width: 46ch;
}

.hero .aktionen {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.logo-karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 44px 40px;
  transform: rotate(-1.5deg);
}
.logo-karte img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .logo-karte { max-width: 340px; transform: none; }
}

/* ---------- Karten (Termine etc.) ---------- */

.karten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) { .karten { grid-template-columns: 1fr; } }

.karte-el {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 26px 26px 24px;
}

.karte-el h3 { margin-bottom: 6px; }

.karte-el .details {
  color: var(--text-2);
  font-size: 15.5px;
  margin: 0;
}

/* ---------- Dunkle Sektion (Rangliste) ---------- */

.dunkel-sektion {
  background: var(--dunkel);
  color: var(--dunkel-text);
  padding: 72px 0;
}

.dunkel-sektion h2 { color: var(--dunkel-text); }
.dunkel-sektion .eyebrow { color: var(--gold); }
.dunkel-sektion p { color: rgba(242, 234, 217, 0.75); }
.dunkel-sektion a { color: var(--gold); }

.rang-liste {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 640px;
}

.rang-liste li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(242, 234, 217, 0.15);
}

.rang-liste .platz {
  font-family: "Marcellus", Georgia, serif;
  font-size: 34px;
  min-width: 44px;
  text-align: right;
  color: rgba(242, 234, 217, 0.55);
}

.rang-liste .name {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}

.rang-liste .punkte {
  font-size: 15.5px;
  color: rgba(242, 234, 217, 0.65);
  white-space: nowrap;
}

.rang-liste li.erster .platz { color: var(--gold); }
.rang-liste li.erster .name { color: var(--gold); }

/* Helle Ranglisten-Variante (Unterseite) */
.rang-block {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 28px 30px 18px;
  margin-bottom: 26px;
  max-width: 720px;
}

.rang-block .rang-liste { max-width: none; }
.rang-block .rang-liste li { border-bottom: 1px solid var(--linie); }
.rang-block .rang-liste li:last-child { border-bottom: 0; }
.rang-block .rang-liste .platz { color: rgba(43, 33, 24, 0.4); }
.rang-block .rang-liste .punkte { color: var(--text-2); }
.rang-block .rang-liste li.erster .platz,
.rang-block .rang-liste li.erster .name { color: var(--rost); }
.rang-block .rang-liste li.erster .platz::after { content: " ·"; color: var(--gold); }

/* ---------- Termin-Zeilen (Unterseite) ---------- */

.termin-liste { max-width: 720px; }

.termin-liste .karte-el { margin-bottom: 16px; }

/* ---------- Textseiten ---------- */

.text-spalte { max-width: 720px; }
.text-spalte h2 { margin-top: 1.6em; }
.text-spalte h2:first-of-type { margin-top: 0; }

/* ---------- Regeln ---------- */

.regeln h2 {
  margin-top: 2em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--linie);
}
.regeln h2:first-of-type { margin-top: 0; }

.regeln ul {
  padding-left: 22px;
  margin: 0 0 1.5em;
}
.regeln li { margin-bottom: 9px; }

.regeln table {
  border-collapse: collapse;
  margin: 0 0 1.5em;
}
.regeln td {
  padding: 7px 18px 7px 0;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.regeln td.mult {
  font-family: "Marcellus", Georgia, serif;
  font-size: 18px;
  white-space: nowrap;
}

/* ---------- Rätsel (Mitmachen) ---------- */

.raetsel {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 30px;
  max-width: 560px;
  margin-top: 30px;
}

.raetsel label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.raetsel .zeile {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.raetsel input[type="text"] {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid rgba(43, 33, 24, 0.25);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--text);
}
.raetsel input[type="text"]:focus {
  outline: 2px solid var(--rost);
  outline-offset: 1px;
  border-color: var(--rost);
}

.raetsel .hinweis {
  font-size: 15px;
  color: var(--text-2);
  margin: 12px 0 0;
}

.raetsel .fehler { color: var(--rost); font-weight: 700; }

.raetsel .adresse {
  font-size: 20px;
  font-weight: 700;
  margin: 14px 0 0;
}

/* ---------- Footer ---------- */

.fuss {
  background: var(--dunkel);
  color: rgba(242, 234, 217, 0.7);
  padding: 34px 0;
  font-size: 15px;
}

.fuss .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fuss a { color: rgba(242, 234, 217, 0.9); }

/* ---------- Kleinigkeiten ---------- */

.laden { color: var(--text-2); font-size: 15.5px; }
.dunkel-sektion .laden { color: rgba(242, 234, 217, 0.6); }

::selection { background: rgba(224, 177, 62, 0.4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
