/* ======================================================
   RESET & VARIABLEN
====================================================== */

:root {
  --primary: #2f4f3f;
  --secondary: #a67c52;
  --light: #f7f7f5;
  --text: #333;
  --hero-h1: #74c79d;

  --max-width: 1100px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

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

html {
  scroll-behavior: smooth;
}

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

/* ======================================================
   BASIS LAYOUT
====================================================== */

main {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
}

.section h2,
.section h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

p {
  line-height: 1.6;
}

strong a {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  text-decoration: none;
}

.section p {
  margin-bottom: 20px;
}

.section .grid {
  margin-top: 10px;
}

.section--grid .grid {
  margin-top: 20px;
}

/* ======================================================
   HEADER
====================================================== */

header {
  background: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 18px 20px;
}

.header-content {
  max-width: var(--max-width);
  margin: auto;
}

.logo {
  height: 70px;
  transition: height .3s ease;
}

/* ======================================================
   NAVIGATION
====================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
  transition: box-shadow .3s ease;
}

.nav.scrolled {
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
}

.nav-inner {
  max-width: var(--max-width);
  margin: auto;
  padding: 16px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  position: relative;
}

/* Hover Linie */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* ======================================================
   HERO (Startbild)
====================================================== */

.hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 12s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--hero-h1);
  text-align: center;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* ======================================================
   GRID SYSTEM
====================================================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Responsive */
@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

}

.item img {
  max-height: 120px;
  object-fit: contain;
}

/* ======================================================
   STANDARD CARDS (für alle Seiten)
====================================================== */

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: 20px;          /* ← DAS FEHLT */
  overflow: hidden;
  transition: .25s;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;

  border-radius: 12px;
  margin-bottom: 14px;   /* Abstand unter Bild */
}

.card h3 {
  margin-bottom: 8px;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Alternative Info-Karten (grün, Zahlen) */
.card--alt {
  background: var(--primary);
  color: white;

  border-radius: var(--radius);
  padding: 20px;
  text-align: center;

  box-shadow: var(--shadow);
  transition: .25s;
}

.card--alt:hover {
  transform: translateY(-6px);
}

.card--alt strong {
  font-size: 30px;
  color: var(--secondary);
  font-weight: 700;
}

/* ==============================
   Nav-Karten – kompakt & flach
============================== */

.nav-card {
  padding: 10px 14px;        
  min-height: 120px;          
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* kein doppeltes Padding */
.nav-card .card-content {
  padding: 0;
}

/* Text enger */
.nav-card h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.nav-card p {
  font-size: 14px;
  line-height: 1.3;
}

/* ======================================================
  SECTION LAYOUTS
====================================================== */

.section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.section-inner img {
  width: 100%;
  border-radius: 12px;
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* ======================================================
  Vereine
====================================================== */

.item {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem;
  height: 100%;
}

.item img {
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
  margin-top: 1rem;
  transition: transform 0.3s ease;
}

.item:hover img {
  transform: scale(1.05);
}

.item h3 {
  font-size: 1.1rem;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.item:not(:has(a)) {
  opacity: 0.85;
  background: #f7f7f7;
}

.item--nolink {
  opacity: 0.85;
  background: #f7f7f7;
}

.item--nolink:hover {
  transform: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor: default;
}

/* ======================================================
   SPORT & SPIELPLÄTZE (nur diese Seite)
====================================================== */

/* Grid Layout */
.sport-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Karten */
.sport-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: .25s;
}

.sport-card:hover {
  transform: translateY(-6px);
}

.sport-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin: 12px 0 16px;
}

/* ======================================================
   Nutzliches
====================================================== */

.useful-links h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.link-card {
  background: #f6f8f6;
  border-radius: 14px;
  padding: 2rem 1.5rem 1.7rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(47,79,63,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(47,79,63,0.25);
}

.link-card h3 {
  margin: 0.5rem 0 0.6rem;
  color: #2f4f3f;
}

.link-card p {
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
}

.icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #2f4f3f;
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #2f4f3f;
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
    Button
========================================= */

.btn-home {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;

  background: var(--primary);
  color: white;

  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;

  transition: .2s;
}

.btn-home:hover {
  transform: translateY(-2px);
  opacity: .9;
}

/* ======================================================
   Image Gallery
====================================================== */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.image-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.03);
}

/* ======================================================
   BÜCHERZELLE
====================================================== */

/* Bild links | Text rechts */
.bz-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.bz-mainimg img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.bz-text p {
  margin-bottom: 1rem;
}

/* Pressebilder IMMER untereinander */
.bz-gallery {
  margin-top: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.bz-gallery figure {
  margin-bottom: 2rem;
}

.bz-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Mobile */
@media (max-width: 900px) {
  .bz-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
  FOOTER
====================================================== */

footer {
  background: var(--primary);
  color: white;
  padding: 20px;
  text-align: center;
}

/* ======================================================
   SUBMENU (Dropdown)
====================================================== */

.has-submenu {
  position: relative;
}

/* versteckt */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;

  background: white;
  min-width: 200px;

  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .2s;
}

.submenu li a {
  display: block;
  padding: 10px 14px;
  color: var(--primary);
  text-decoration: none;
}

.submenu li a:hover {
  background: #f2f2f2;
}

/* Desktop Hover */
.has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==============================
   Mobile Verhalten
============================== */

@media (max-width: 900px) {

  .submenu {
    position: static;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
    padding-left: 10px;
  }

  .has-submenu.open .submenu {
    display: block;
  }
}

.has-submenu > a {
  display: flex;
  justify-content: space-between;
}


/* ======================================================
   RESPONSIVE (alles gesammelt)
====================================================== */

@media (max-width: 900px) {

  /* Grid */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Section Layout */
  .section-inner {
    grid-template-columns: 1fr;
  }

  /* Burger sichtbar */
  .menu-toggle {
    display: block;
  }

  /* NAV */
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;

    background: white;
    flex-direction: column;
    padding: 25px;

    transform: translateY(-120%);
    opacity: 0;
    transition: .3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  /* SUBMENU mobil */
  .submenu {
    position: static;
    box-shadow: none;
    display: none;
    padding-left: 12px;
    opacity: 1;
    transform: none;
  }

  .has-submenu.open .submenu {
    display: block;
  }

  .has-submenu > a {
    display: flex;
    justify-content: space-between;
  }
}