/* Farben & Grundwerte – hier zentral anpassbar */
:root {
  --blue: #0b3d91;
  --blue-light: #1e88e5;
  --orange: #f57c00;
  --text: #1c2430;
  --muted: #5b6676;
  --bg: #f5f7fa;
  --white: #fff;
  --radius: 14px;
  --marquee-speed: 35s; /* höher = langsamer */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid #e3e7ee; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--blue); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-small { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; opacity: .8; margin: 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .3em 0; line-height: 1.15; }
.hero h1 span { color: #ffcc80; }
.lead { max-width: 640px; margin: 0 auto 32px; font-size: 1.1rem; opacity: .95; }

/* Abschnitte */
.section { padding: 64px 0; }
h2 { text-align: center; font-size: 1.9rem; margin: 0; color: var(--blue); }
.muted { text-align: center; color: var(--muted); margin-top: 4px; }

/* Bilder */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { padding: 14px 18px; font-weight: 600; }

/* Sponsoren-Laufband */
.sponsors { background: var(--white); }
.marquee {
  display: flex;
  overflow: hidden;
  margin-top: 32px;
  /* weiches Ein-/Ausblenden an den Rändern */
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 48px;
  padding: 0 24px;
  margin: 0;
  list-style: none;
  animation: scroll var(--marquee-speed) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 80px; width: auto; }

@keyframes scroll {
  to { transform: translateX(-100%); }
}

/* Wer Animationen abgeschaltet hat, sieht ein normales Logo-Raster */
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; flex-shrink: 1; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* Footer */
.site-footer { background: var(--text); color: #c9d1dc; padding: 24px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: #c9d1dc; margin-left: 16px; }
.site-footer a:hover { color: var(--white); }

/* Unterseiten (Impressum, Datenschutz) */
.page { padding: 48px 16px; max-width: 760px; }
.page h1 { color: var(--blue); }

@media (max-width: 480px) {
  .hero { padding: 56px 0; }
  .brand { font-size: 1.1rem; }
  .marquee-track img { height: 60px; }
}
