/* Maintaler Lions Lotterie — eigenständiges Lions-Branding (kein Main-Appstudio-Design) */

:root {
  --lions-blau: #00338d;
  --lions-blau-dunkel: #002266;
  --lions-gelb: #ffc20e;
  --lions-gelb-hell: #ffe9a8;
  --text: #1a2233;
  --text-hell: #5a6478;
  --flaeche: #ffffff;
  --flaeche-alt: #f4f6fb;
  --rand: #dde3ef;
  --gruen: #1e7a3c;
  --radius: 12px;
  --schatten: 0 2px 10px rgba(0, 25, 80, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--flaeche);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--lions-blau); }

.wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Kopfbereich */
.seitenkopf {
  background: var(--lions-blau);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.kopf-inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.marke-text strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.25;
}

.marke-text span {
  display: block;
  font-size: 0.85rem;
  color: var(--lions-gelb);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hauptnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hauptnav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.hauptnav a:hover { background: rgba(255, 255, 255, 0.12); }

.hauptnav a.aktiv {
  background: var(--lions-gelb);
  color: var(--lions-blau-dunkel);
  font-weight: 600;
}

/* Held-Bereich */
.held {
  background: linear-gradient(160deg, var(--lions-blau) 0%, var(--lions-blau-dunkel) 100%);
  color: #fff;
  padding: 24px 0 88px;
  text-align: center;
}

.held .held-banner { margin-top: 0; }

.held-banner,
.seiten-banner {
  display: block;
  width: 100%;
  max-width: 1080px;
  margin: 24px auto 0;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center 30%;
}

.held-inhalt { padding-top: 48px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.held h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.held .untertitel {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #dce4f7;
  max-width: 640px;
  margin: 0 auto 32px;
}

.held .badge {
  display: inline-block;
  background: var(--lions-gelb);
  color: var(--lions-blau-dunkel);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
  font-size: 1rem;
}

.knopf {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.knopf-gelb {
  background: var(--lions-gelb);
  color: var(--lions-blau-dunkel);
}

.knopf-gelb:hover { background: #ffd449; }

.knopf-kontur {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  margin-left: 12px;
}

.knopf-kontur:hover { background: rgba(255, 255, 255, 0.1); }

/* Kennzahlen */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: -48px auto 0;
  max-width: 1080px;
  padding: 0 20px;
  position: relative;
}

.kennzahl {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  border: 1px solid var(--rand);
  padding: 24px 20px;
  text-align: center;
}

.kennzahl strong {
  display: block;
  font-size: 1.7rem;
  color: var(--lions-blau);
}

.kennzahl span { color: var(--text-hell); font-size: 0.95rem; }

/* Abschnitte */
.abschnitt { padding: 64px 0; }
.abschnitt.alt { background: var(--flaeche-alt); }

.abschnitt h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--lions-blau);
  margin-bottom: 8px;
}

.abschnitt .einleitung {
  color: var(--text-hell);
  max-width: 680px;
  margin-bottom: 32px;
}

/* Kartenraster */
.kartenraster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.karte {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--schatten);
}

.karte h3 { color: var(--lions-blau); margin-bottom: 8px; font-size: 1.1rem; }
.karte p { color: var(--text-hell); font-size: 0.95rem; }

.karte-daten {
  list-style: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rand);
  font-size: 0.85rem;
  color: var(--text-hell);
}

.karte-daten li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.karte-daten li::before {
  content: "•";
  color: var(--lions-gelb);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.karte .symbol {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.karte-bild {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
  display: block;
}

/* Karte ohne Bild: Symbol auf gleiche Hoehe bringen, damit die Reihe fluchtet */
.karte .symbol {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--flaeche-alt);
  border-radius: 8px;
  margin-bottom: 14px;
}

/* Schrittliste */
.schritte { counter-reset: schritt; display: grid; gap: 16px; max-width: 720px; }

.schritt {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.schritt::before {
  counter-increment: schritt;
  content: counter(schritt);
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lions-gelb);
  color: var(--lions-blau-dunkel);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tabellen (Vorverkaufsstellen, Gewinnzahlen) */
.tabellen-umbruch { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rand);
  font-size: 0.95rem;
}

th {
  background: var(--lions-blau);
  color: #fff;
  font-weight: 600;
}

tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--flaeche-alt); }

/* Hinweiskästen */
.hinweis {
  border-left: 4px solid var(--lions-gelb);
  background: var(--lions-gelb-hell);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.hinweis.blau {
  border-left-color: var(--lions-blau);
  background: #e8eefb;
}

/* Textseiten (Impressum, Datenschutz, Spielregeln) */
.textseite { max-width: 760px; }
.textseite h2 { margin-top: 40px; }
.textseite h3 { color: var(--lions-blau); margin: 24px 0 8px; }
.textseite p, .textseite li { margin-bottom: 10px; }
.textseite ul, .textseite ol { padding-left: 24px; }

/* Platzhalter-Markierung — vor Veröffentlichung ersetzen */
.platzhalter {
  background: #fff3f3;
  border: 1px dashed #d04b4b;
  color: #a03030;
  padding: 2px 6px;
  border-radius: 6px;
  font-style: italic;
}

/* Dezentes Emblem auf Textseiten */
.seiten-logo {
  float: right;
  width: 110px;
  height: auto;
  margin: 0 0 12px 20px;
}

/* Sponsoren */
.sponsoren { background: var(--flaeche-alt); text-align: center; }
.sponsoren .einleitung { margin-left: auto; margin-right: auto; max-width: 760px; }

.sponsoren-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text-hell);
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sponsor:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 25, 80, 0.14);
}

.sponsor img {
  max-height: 90px;
  width: auto;
  max-width: 100%;
}

.sponsor-wortmarke {
  height: 90px;
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #e2001a;
  letter-spacing: -0.01em;
}

.sponsoren-hinweis {
  text-align: center;
  color: var(--text-hell);
  font-size: 0.9rem;
  margin-top: 28px;
}

/* Fußbereich */
.seitenfuss {
  background: var(--lions-blau-dunkel);
  color: #c9d4ee;
  padding: 40px 0 24px;
  margin-top: 64px;
  font-size: 0.9rem;
}

.fuss-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.seitenfuss h4 { color: #fff; margin-bottom: 10px; font-size: 1rem; }
.seitenfuss a { color: var(--lions-gelb); text-decoration: none; }
.seitenfuss a:hover { text-decoration: underline; }
.seitenfuss ul { list-style: none; }
.seitenfuss li { margin-bottom: 6px; }

.fuss-zeile {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  text-align: center;
  color: #8fa0c8;
}

@media (max-width: 720px) {
  .kopf-inhalt { flex-direction: column; align-items: flex-start; }
  .held { padding: 0 0 72px; }
  .knopf-kontur { margin-left: 0; margin-top: 12px; }
}
