:root {
  --green-main: #185D35;
  --beige-main: #e8d6ba;
  --beige-light: #F9F2E6;
  --text-light: #ffffff;
  --text-dark: #000000;

  --maxwidth: 1100px;
  
  --font-text: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: Georgia, "Times New Roman", serif;  
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--beige-light);
  font-family: var(--font-text);
  overflow-wrap: break-word;
}

h1, h2, h3 {
  line-height: 1.25;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.9rem;
  color: var(--text-dark);
  font-family: var(--font-head);
}

h2 {
  font-size: 1.7rem;
}

p {
  margin-bottom: 1.4em;
  line-height: 1.5;
}

ul, ol {
  margin-inline-start: 0;
  padding-inline-start: 40px;
  padding-left: 20px;
  margin-left: 10px;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  font-size-adjust: 0.5;
}

.container {
  max-width: var(--maxwidth);
  width: 100%;
  margin: auto;
  background: var(--beige-main);
  padding: 1.5rem;
  border-radius: 8px;
}
 
.container-transparent {
  max-width: var(--maxwidth);
  margin: auto;
  background-color: transparent;
  padding: 0rem 1rem;
}

.leerzeile {
  height: 1.5rem;
  background-color: transparent;
  width: auto;
}

/* PANORAMA-KOPF*/
.hero-header {
  height: auto;	
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("bilder/panorama.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Vereinsleiste unter Panorama */
.club-bar {
  background: var(--beige-light);
  padding: 0.8rem 1rem;
}

.club-inner {
  max-width: var(--maxwidth);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.club-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.club-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-main);
}

/* NAVIGATION – zentriert unter Kopfbereich              */
header {
  background: var(--green-main);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  min-height: 3.2rem;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

header nav a:hover,
header nav a:focus {
  outline: 3px solid var(--text-light);
  outline-offset: 2px;
}

/* STARTBEREICH */
.hero {
  background: var(--beige-light);
  padding: 3rem 1rem 2rem;
  text-align: left;
}

/* TERMINE */
.termine-loading {
  min-height: 560px;
  contain: layout;
  background: linear-gradient(
    90deg,
    #f3f3f3 25%,
    #e6e6e6 37%,
    #f3f3f3 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.next-event {
  /*min-height: 327px;*/
  max-width: var(--maxwidth);
  margin: auto;
  align-items: center;
  background: var(--green-main);
  padding: 2rem;
  border-radius: 8px;
}

.next-event .event-box {
  margin: auto;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
}
  
.next-event h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

#next-event-text {
  min-height: 3.6em;
  contain: layout style;
}

#next-event-desc {
  min-height: 5em;
  contain: layout style;
}

/* STANDARD-SEKTIONEN */
section {
  padding: 3rem 1rem;
  background: var(--beige-light);
}

section h2 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

#verein, #aktivitaeten {
  padding: 0rem 1rem;
}

/* PARALLAX-STREIFEN */
.parallax-strip {
  height: 240px;
  background-image: url("bilder/feuer.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 800px) {
  .parallax-strip {
    background-attachment: scroll;
  }
}

/* GALERIE */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.gallery figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery figure:hover,
.gallery figure:focus {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.js-img,
.gallery img {
  aspect-ratio: 4 / 3;	
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.js-figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  background: white;
  min-height: 4.1rem;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
  border-radius: 6px;
}

/* FOOTER */
footer {
  background: var(--green-main);
  color: var(--text-light);
  margin-top: 3rem;
}

footer a {
  color: var(--text-light);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 30% 15% 15% 40%;
}

/* Smartphone Einstellungen */
@media (max-width: 600px) {
  body {
    font-size: 17px;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 1.7rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }

/* Einstellungen für die Vereinsleiste (Kleiner) */  
  .club-inner {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .club-logo {
    width: 90px;
    height: auto;
  }

  .club-title {
    font-size: 1.3rem;
    line-height: 1.2;
    margin: 0;
  }

/* Einstellungen für die Terminliste */
  .events {
    list-style: disc;
    padding-left: 1.2rem;
	min-height: 200px;
  }

  .events li {
    display: list-item;
    margin-bottom: 10px;
  }

  .event-sep {
    display: none;
  }

  .event-title,
  .event-map {
    display: block;
  }
  
/* Einstellungen für Next Event */
  #next-event-text strong {
    display: block;
  }

  #next-event-text .event-sep {
    display: none;
  }

  #next-event-text .event-title,
  #next-event-text .event-map {
    display: block;
    margin-top: 2px;
  }

/* Einstellungen für Gallery */  
  .gallery {
    grid-template-columns: 1fr;
  }
  
/* Einstellungen für Footer */ 
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }
}