/* LVL Hauptseite – Basis-Stylesheet, Layout analog rm27 / lvl.ch */

:root {
  --lvl-blau: #1386ec;
  --lvl-blau-dunkel: #0c76d4;
  --lvl-gelb: #ffcc00;
  --lvl-gelb-trenn: #ffba00;
  --lvl-text: #333;
  --lvl-text-grau: #666;
  --lvl-hg: #f3f3f3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "source-sans-pro", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--lvl-text);
  background: #fff;
  font-size: 17px;
  line-height: 1.6;
}

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

/* ---------- Kopfzeile: weisser Balken mit Schriftzug ---------- */
#banner {
  width: 100%;
  background: #fff;
}
#banner-inhalt {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Schmaler blauer Streifen (8px) */
#band-blau {
  width: 100%;
  height: 8px;
  background: var(--lvl-blau);
}

/* ---------- Menuband ---------- */
#navigation {
  position: relative;
  background: var(--lvl-gelb);
  width: 100%;
  
  margin: 0 auto;
  padding: 0;
}
#navigation ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}
#navigation > ul > li {
  position: relative;
  padding: 0 8px;
  border-right: 1px solid var(--lvl-gelb-trenn);
}
#navigation > ul > li:first-child { border-left: 1px solid var(--lvl-gelb-trenn); }
#navigation > ul > li > a {
  display: block;
  height: 47px;
  line-height: 47px;
  color: #777;
  font-size: 15px;
  font-style: italic;
  letter-spacing: .03em;
  padding: 0 8px;
  white-space: nowrap;
}
#navigation > ul > li > a:hover,
#navigation > ul > li > a.active { color: var(--lvl-text); text-decoration: none; }

/* Untermenü (blau) */
#navigation ul.dropdown {
  position: absolute;
  left: 0; top: 47px;
  min-width: 220px;
  display: block;
  padding: 13px 0 0 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s, transform .3s;
  z-index: 50;
  list-style: none;
}
#navigation li.has-sub:hover > ul.dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
#navigation ul.dropdown li { display: block; background: var(--lvl-blau); }
#navigation ul.dropdown li a {
  display: block;
  padding: 0 15px;
  color: #fff;
  font-size: 14px;
  line-height: 60px;
  text-align: left;
  white-space: nowrap;
  font-style: normal;
}
#navigation ul.dropdown li a:hover {
  background: var(--lvl-blau-dunkel);
  color: var(--lvl-gelb);
  text-decoration: none;
}

/* ---------- Hamburger-Button (Mobile) ---------- */
#burger {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 47px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--lvl-text-grau);
}
#burger .linien { display: inline-block; width: 24px; }
#burger .linien span {
  display: block; height: 3px;
  background: var(--lvl-text-grau);
  margin: 4px 0; border-radius: 2px;
}

/* ---------- Inhalt ---------- */
#content {
  max-width: 960px;
  margin: 30px auto 60px auto;
  padding: 0 16px;
}
#breadcrumb { color: #777; font-size: 14px; }
#content h1 { color: var(--lvl-text); margin: 0 0 20px 0; }
#content h2 {
  color: var(--lvl-blau);
  margin-top: 40px;
  border-bottom: 2px solid var(--lvl-gelb);
  padding-bottom: 8px;
}
#content .lead { font-size: 20px; }
.hint {
  background: var(--lvl-hg);
  border-left: 5px solid var(--lvl-gelb);
  padding: 14px 16px;
  margin: 24px 0;
  color: #555;
  font-size: 15px;
}
table { border-collapse: collapse; width: 100%; margin: 20px 0; }
th, td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
th { background: var(--lvl-blau); color: #fff; font-weight: normal; }
tr:nth-child(even) td { background: var(--lvl-hg); }

/* News-Karten (rm27-Karten-Stil) */
ul.cards {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
ul.cards li {
  border: 1px solid #eee;
  background: var(--lvl-hg);
  transition: border-color .2s;
}
ul.cards li:hover { border-color: var(--lvl-blau); }
ul.cards a {
  display: block;
  padding: 18px;
  height: 100%;
  color: var(--lvl-text);
}
ul.cards a:hover { text-decoration: none; }
ul.cards strong { display: block; color: var(--lvl-blau-dunkel); margin-bottom: 6px; font-size: 18px; }
ul.cards span { font-size: 15px; color: #555; display: block; }
ul.cards .badge {
  display: inline-block;
  background: var(--lvl-blau);
  color: #fff;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
a.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background: var(--lvl-blau);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}
a.btn:hover {
  background: var(--lvl-blau-dunkel);
  color: var(--lvl-gelb);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
}

/* ---------- Footer ---------- */
footer {
  background: var(--lvl-blau);
  color: #fff;
  margin-top: 40px;
}
#footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
footer h3 { color: #fff; font-size: 16px; margin: 0 0 8px 0; }
footer a { color: var(--lvl-gelb); }
footer a:hover { text-decoration: underline; }
.partner-link { color: var(--lvl-gelb); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  #banner-inhalt { padding: 14px 16px; }

  #burger { display: flex; }
  #navigation > ul { display: none; }
  #navigation.open > ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 8px;
  }
  #navigation > ul > li {
    width: 100%;
    text-align: left;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--lvl-gelb-trenn);
    padding: 0;
  }
  #navigation > ul > li > a {
    display: block;
    height: auto;
    line-height: 1.4;
    padding: 12px 16px;
  }
  #navigation ul.dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    padding: 0;
    min-width: 0;
  }
  #navigation li.has-sub.open > ul.dropdown { display: block; }
  #navigation li.has-sub > a::after { content: " ▾"; color: #999; }
  #navigation li.has-sub.open > a::after { content: " ▴"; }
  #navigation ul.dropdown li a {
    line-height: 1.4;
    height: auto;
    padding: 10px 16px 10px 32px;
  }
  #content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

#breadcrumb a { color: #777; }
#breadcrumb a:hover { color: var(--lvl-blau); text-decoration: underline; }

/* ---------- Foto-Slider (Startseite) ---------- */
@media (max-width: 800px) {
}

/* ---------- Slider (Startseite): volle Breite, fixes Verhaeltnis 3000/935 ---------- */
#slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3000 / 935;
  overflow: hidden;
  background: var(--lvl-hg);
}
#slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#slider img.aktiv { opacity: 1; z-index: 2; }

/* Slider auf Mobile ausblenden (wie Original-Site) */
@media (max-width: 800px) {
  #slider { display: none; }
}

/* ---------- Slider-Navigation (Vor/Zurueck) ---------- */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-nav:hover { background: rgba(0, 0, 0, .6); }
#slider-zurueck { left: 16px; }
#slider-vor { right: 16px; }

/* Pfeil-Zeichen mittig im Kreis ausrichten */
.slider-nav { line-height: 0; padding-bottom: 8px; }

/* ---------- Banner-Grafik ---------- */
#banner-marke {
  display: block;
  height: 60px;
  width: auto;
}
@media (max-width: 800px) {
  #banner-marke { height: 38px; }
}

/* ---------- Kategoriefarben ---------- */
ul.cards .badge-verein, article .badge-verein        { background: #3f9b33; }
ul.cards .badge-leistungssport, article .badge-leistungssport { background: var(--lvl-rot, #ec0404); }
ul.cards .badge-runners, article .badge-runners       { background: var(--lvl-blau, #1386ec); }
ul.cards .badge-nachwuchs, article .badge-nachwuchs     { background: var(--lvl-gelb, #ffcc00); color: #333; }
ul.cards .badge-laufgruppe, article .badge-laufgruppe    { background: #7a4a21; }

/* ---------- News-Filter (Kategorien) ---------- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px 0;
}
.news-filter a,
.news-filter span.aktiv {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--lvl-hg);
  color: var(--lvl-text);
  font-size: 15px;
  border: 1px solid #ddd;
}
.news-filter a:hover {
  background: var(--lvl-gelb);
  border-color: var(--lvl-gelb-trenn);
  text-decoration: none;
}
.news-filter a.aktiv,
.news-filter span.aktiv {
  background: var(--lvl-blau);
  border-color: var(--lvl-blau);
  color: #fff;
}

/* ---------- News-Seitenwechsel (Pager) ---------- */
.news-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}
.news-pager a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--lvl-hg);
  border: 1px solid #ddd;
  font-size: 15px;
}
.news-pager a:hover {
  background: var(--lvl-gelb);
  border-color: var(--lvl-gelb-trenn);
  text-decoration: none;
}
.news-pager span.aktiv {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--lvl-blau);
  border-color: var(--lvl-blau);
  color: #fff;
  font-size: 15px;
}

/* ---------- News-Kachel: Bild, Titel-/Textklemme ---------- */
ul.cards.news-cards .karte-bild {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
}
ul.cards.news-cards .karte-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
ul.cards.news-cards .karte-titel {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
ul.cards.news-cards .karte-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- News-Vollansicht (Beitrag) ---------- */
article.beitrag .beitrag-hauptbild {
  max-width: 480px;
  margin: 0 0 20px 0;
}
article.beitrag .beitrag-hauptbild img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
article.beitrag .beitrag-bild2 {
  float: left;
  max-width: 260px;
  width: 40%;
  height: auto;
  margin: 4px 20px 12px 0;
  border-radius: 4px;
}
article.beitrag::after {
  content: "";
  display: table;
  clear: both;
}
