:root {
  --yellow: #fbc90a;
  --yellow-dark: #d1a000;
  --yellow-deep: #b8890a;
  --black: #1a1a1a;
  --black-soft: #252525;
  --grey-1: #333333;
  --grey-2: #6d6d6d;
  --grey-3: #c2c2c2;
  --grey-bg: #f4f4f4;
  --white: #fff;
  --max: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-1);
  background: var(--white);
}

a { color: var(--black); text-decoration: none; border-bottom: 1px solid var(--yellow); }
a:hover, a:focus { color: var(--yellow-deep); border-bottom-color: var(--yellow-dark); }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }

/* ============ HEADER / NAV (mobile first) ============ */
#site-header {
  background: var(--yellow);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
}
#site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; border: 0; }
.brand img { display: block; height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 15px;
  color: var(--black);
  font-weight: 900;
  letter-spacing: .2px;
}
.brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--black);
  opacity: .78;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 700;
}

/* Burger */
#nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--black);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
#nav-toggle span {
  display: block;
  position: relative;
  width: 20px; height: 2px;
  background: var(--yellow);
  transition: background .15s;
}
#nav-toggle span::before,
#nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--yellow);
  transition: transform .22s, top .22s;
}
#nav-toggle span::before { top: -6px; }
#nav-toggle span::after { top: 6px; }
#nav-toggle[aria-expanded="true"] span { background: transparent; }
#nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
#nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile: Panel von oben */
#main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--black);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
#main-nav.open { max-height: 80vh; overflow-y: auto; }
#main-nav ul { list-style: none; margin: 0; padding: 0; }
#main-nav li { border-bottom: 1px solid rgba(251,201,10,.16); }
#main-nav li:last-child { border-bottom: 0; }
#main-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  color: #f2f2f2;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  border: 0;
  transition: background .16s, color .16s, padding-left .16s;
}
#main-nav a:hover,
#main-nav a:focus,
#main-nav a.active {
  background: var(--yellow);
  color: var(--black);
  padding-left: 28px;
}
#main-nav a[target="_blank"] .ext {
  font-size: 11px;
  line-height: 1;
  opacity: .65;
  margin-left: 5px;
  display: inline-block;
  transform: translateY(-1px);
}

/* Desktop-Nav */
@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .brand img { height: 56px; }
  .brand-text strong { font-size: 18px; }
  .brand-text em { font-size: 11px; }
  #nav-toggle { display: none; }
  #main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    width: auto;
  }
  #main-nav ul { display: flex; align-items: center; gap: 2px; }
  #main-nav li { border: 0; }
  #main-nav a {
    padding: 10px 13px;
    color: var(--black);
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 3px;
    position: relative;
  }
  #main-nav a::after {
    content: '';
    position: absolute;
    left: 13px; right: 13px; bottom: 5px;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s;
  }
  #main-nav a:hover, #main-nav a:focus {
    background: transparent;
    color: var(--black);
    padding-left: 13px;
  }
  #main-nav a:hover::after, #main-nav a.active::after { transform: scaleX(1); }
  #main-nav a.active { background: transparent; color: var(--black); }
  /* externer Link: gestrichelte Unterstreichung + Pfeil */
  #main-nav a[target="_blank"] {
    border-bottom: 1px dashed rgba(26,26,26,.45);
    border-radius: 0;
    padding-bottom: 9px;
  }
  #main-nav a[target="_blank"] .ext {
    font-size: 10px;
    opacity: .7;
    margin-left: 4px;
  }
  #main-nav a[target="_blank"]::after { display: none; }
  #main-nav a[target="_blank"]:hover { border-bottom-color: var(--black); }
}

/* ============ HERO ============ */
.hero {
  background: var(--black);
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('/img/hero.jpg') center 35% / cover no-repeat;
  z-index: 0;
}
.hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20,20,20,.94) 0%, rgba(20,20,20,.86) 42%, rgba(20,20,20,.45) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--yellow);
  z-index: 2;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 54px; padding-bottom: 54px; }
.hero h1 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.5px;
  max-width: 15ch;
}
.hero h1::after {
  content: '';
  display: block;
  width: 54px; height: 4px;
  background: var(--yellow);
  margin-top: 18px;
}
.hero .lead {
  margin: 0;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.6;
  color: #dcdcdc;
}
.hero.small {
  min-height: 0;
  padding: 34px 0 30px;
  background: var(--black);
}
.hero.small .wrap { padding-top: 0; padding-bottom: 0; }
.hero.small h1 { font-size: 24px; margin: 0; max-width: none; }
.hero.small h1::after { display: none; }

@media (min-width: 700px) {
  .hero { min-height: 480px; }
  .hero .wrap { padding-top: 80px; padding-bottom: 80px; }
  .hero h1 { font-size: 52px; max-width: 16ch; }
  .hero .lead { font-size: 19px; }
  .hero.small { min-height: 0; padding: 46px 0 40px; }
  .hero.small h1 { font-size: 34px; }
}

/* ============ CONTENT ============ */
.page-body { padding: 34px 20px 46px; }
.page-body > * { max-width: 100%; }
.page-body h1, .page-body h2, .page-body h3, .page-body h4 {
  color: var(--black);
  line-height: 1.25;
  font-weight: 900;
}
.page-body h1 { font-size: 26px; margin: 0 0 .6em; }
.page-body h2 {
  font-size: 21px;
  margin: 2em 0 .6em;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}
.page-body h3 { font-size: 17px; margin: 1.6em 0 .5em; }
.page-body p { margin: 0 0 1.1em; }
.page-body ul, .page-body ol { padding-left: 22px; margin: 0 0 1.2em; }
.page-body li { margin-bottom: .45em; }
.page-body blockquote {
  border-left: 4px solid var(--yellow);
  background: var(--grey-bg);
  margin: 1.6em 0;
  padding: 16px 20px;
  font-family: 'PT Serif', Georgia, serif;
  font-style: italic;
  color: #444;
}
.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 14px;
}
.page-body th, .page-body td {
  padding: 10px 12px;
  border: 1px solid #dedede;
  text-align: left;
}
.page-body th { background: var(--black); color: var(--yellow); font-weight: 700; }
.page-body tr:nth-child(even) td { background: #fafafa; }
.page-body figure { margin: 1.6em 0; }
.page-body figure img { border: 1px solid #e2e2e2; }
.page-body figcaption { font-size: 13px; color: var(--grey-2); margin-top: 8px; }

/* Bild-Grid für Seiten */
.img-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.8em 0;
}
.img-grid img { width: 100%; display: block; border: 1px solid #e4e4e4; }
@media (min-width: 620px) {
  .img-grid.two { grid-template-columns: 1fr 1fr; }
}

/* Kontakt-Karten */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.8em 0;
}
.contact-card {
  background: var(--grey-bg);
  border-left: 4px solid var(--yellow);
  padding: 20px 22px;
}
.contact-card h3 {
  margin: 0 0 .6em;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--black);
}
.contact-card p { margin: 0 0 .4em; font-size: 15px; }
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Person-Karte (Förderverein) */
.person {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: var(--grey-bg);
  border-left: 4px solid var(--yellow);
  padding: 20px;
  margin: 1.8em 0;
  align-items: start;
}
.person img { width: 120px; border: 1px solid #ddd; }
.person strong { display: block; font-size: 16px; color: var(--black); }
.person em { font-style: normal; color: var(--grey-2); font-size: 14px; }
@media (min-width: 620px) {
  .person { grid-template-columns: 130px 1fr; }
}

@media (min-width: 700px) {
  .page-body { padding: 52px 24px 66px; }
  .page-body h1 { font-size: 32px; }
  .page-body h2 { font-size: 25px; }
  .page-body h3 { font-size: 19px; }
}

/* ============ AKTUELLES ============ */
.news {
  background: var(--grey-bg);
  padding: 38px 0 42px;
  border-top: 1px solid #e4e4e4;
}
.news h2 {
  font-size: 20px;
  color: var(--black);
  margin: 0 0 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--yellow);
}
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.news-item {
  background: #fff;
  border-left: 4px solid var(--yellow);
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.news-item.has-img {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
.news-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e6e6e6;
}
.news-item time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #8a6b00;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.news-item h3 {
  margin: 0 0 .5em;
  font-size: 18px;
  line-height: 1.3;
  color: var(--black);
  font-weight: 900;
}
.news-body > :first-child { margin-top: 0; }
.news-body > :last-child { margin-bottom: 0; }
.news-body p { margin: 0 0 .7em; font-size: 15px; }
.news-body a { font-weight: 700; }

@media (min-width: 620px) {
  .news-item.has-img { grid-template-columns: 200px 1fr; gap: 20px; }
}
@media (min-width: 900px) {
  .news { padding: 48px 0 54px; }
  .news h2 { font-size: 24px; }
  .news-list { gap: 20px; }
  .news-item { padding: 24px 28px; }
  .news-item.has-img { grid-template-columns: 240px 1fr; }
}

/* ============ SPONSOREN-CAROUSEL ============ */
.sponsors {
  background: var(--black);
  padding: 40px 0 46px;
  overflow: hidden;
}
.sponsors h2 {
  text-align: center;
  font-size: 20px;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.sponsors .sub {
  text-align: center;
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.sponsors .sub::after {
  content: '';
  display: block;
  width: 44px; height: 3px;
  background: var(--yellow);
  margin: 14px auto 0;
}

.carousel {
  position: relative;
  margin: 0 -6px;
  padding: 0 4px;
}
.carousel-track-wrap { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 14px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  padding: 4px 18px;
}
.carousel-item {
  position: relative;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 14px 20px;
  border: 1px solid #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  overflow: hidden;
}
.carousel-item:hover { border-color: var(--yellow); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.carousel-item img.logo {
  height: 62px;
  width: auto;
  max-width: 262px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
  opacity: .92;
  transition: filter .22s, opacity .22s, transform .22s;
}
.carousel-item:hover img.logo {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.03);
}
.carousel-item .sponsor-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-1);
  text-align: center;
  line-height: 1.3;
  padding: 0 2px;
  max-width: 180px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, transform .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.carousel-btn:hover { background: var(--yellow-dark); transform: translateY(-50%) scale(1.06); }
.carousel-btn.prev { left: -6px; }
.carousel-btn.next { right: -6px; }
.carousel-btn:disabled { opacity: .3; cursor: default; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 18px;
}
.carousel-dots button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.carousel-dots button::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background .2s, transform .2s;
}
.carousel-dots button.active::before { background: var(--yellow); transform: translate(-50%,-50%) scale(1.3); }

@media (max-width: 480px) {
  .carousel-item { height: 84px; padding: 12px 16px; }
  .carousel-item img.logo { height: 58px; max-width: 190px; }
  .carousel-btn { width: 34px; height: 34px; font-size: 16px; }
  .carousel-btn.prev { left: -4px; }
  .carousel-btn.next { right: -4px; }
}

@media (min-width: 700px) {
  .sponsors { padding: 54px 0 60px; }
  .sponsors h2 { font-size: 24px; }
  .carousel { margin: 0 -34px; padding: 0 34px; }
  .carousel-item { height: 104px; padding: 16px 20px; }
  .carousel-item img.logo { height: 76px; max-width: 290px; }
  .carousel-track { padding: 4px 0; }
  .carousel-btn.prev { left: -14px; }
  .carousel-btn.next { right: -14px; }
}

/* ============ FOOTER ============ */
#site-footer {
  background: var(--black-soft);
  color: #b4b4b4;
  font-size: 14px;
}
#site-footer .cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 36px 18px 28px;
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}
#site-footer h3 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}
#site-footer ul { list-style: none; margin: 0; padding: 0; }
#site-footer li { margin-bottom: 7px; }
#site-footer a { color: #ccc; border: 0; }
#site-footer a:hover { color: var(--yellow); }
.foot-note {
  border-top: 1px solid #3a3a3a;
  padding: 16px 18px;
  text-align: center;
  font-size: 13px;
  color: #9a9a9a;
}
@media (min-width: 700px) {
  #site-footer .cols {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 50px 24px 38px;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
  }
  #site-footer .foot-col { flex: 0 1 auto; }
  #site-footer .foot-col:first-child { max-width: 420px; }
  #site-footer .foot-col:last-child { text-align: left; }
}

/* ============ HILFSKLASSEN ============ */
.btn {
  display: inline-block;
  background: var(--black);
  color: var(--yellow) !important;
  padding: 11px 20px;
  border: 0;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 0 !important;
  transition: background .18s;
}
.btn:hover { background: var(--yellow-dark); color: var(--black) !important; }
