
* {
  padding: 0;
  margin: 0;
}
/* -------           Grundlegende Fonts & Farben        ---------- */
:root {
  --primary-color: #253F2D;
  --accent-color: #F19A3E;
  --bg-light: #FDFFFC;
  --bg-color: #FCEFEF;
}

@font-face {
  font-family: 'primary';
  src: url('InstrumentSerif-Regular.ttf') format('truetype');
  font-weight:400;
  font-style: normal;
}

@font-face {
  font-family: 'accent';
  src: url('GreatVibes-Regular.ttf') format('truetype');
  font-weight: lighter;
  font-style: normal;
}

  @font-face {
  font-family: 'other';
  src: url('SofiaSansExtraCondensed-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  color: var(--primary-color);
  background-color: var(--bg-color);
  font-family: 'primary', serif;
}





/* ------         HEADER         --------- */
body.page-start nav a[href="index.php"],
body.page-archiv nav a[href="archiv.php"],
body.page-trachtengruppe nav a[href="trachtengruppe.php"],
body.page-geschichte nav a[href="geschichte.php"],
body.page-seniorenkreis nav a[href="seniorenkreis.php"],
body.page-vorstand nav a[href="vorstand.php"]
 {
  background-color: var(--primary-color);;
  color: var(--accent-color);
  font-weight: bolder;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 30px 0;
  justify-content: center;
  display: flex;
  width: 100%; 
  background: transparent;
}

header nav {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px; /* Abstand zwischen Buttons */
}

header nav a {
  text-decoration: none;
  font-family: 'other', sans-serif;
  font-size: 18px;
  color: var(--primary-color);
  background-color: var(--bg-light);
  padding: 10px 20px;
  border-radius: 50px; /* Kapsel-Form */
  
}






/* ------         ALLGEMEINE SECTIONS         --------- */
section {
  padding-top: clamp( 4rem,7vw, 7rem) ;
  padding-bottom: clamp(4rem,7vw, 7rem);
  padding-left: 5vw;
  padding-right: 5vw;
  text-align: center;
  align-items: center;
}
.image-block img{
  width:80vw;
  max-width: 1000px;
}














/* ------------        H1         ------------- */
h1{
  font-size: clamp(4rem, 10vw, 10rem);
  margin-top: 50px;
  margin-bottom: 50px;
  
  line-height: clamp(4rem, 8vw, 8rem);
}
 h1 .accent-font{
  font-family: 'accent', serif;
  font-size: clamp(4rem, 13vw, 13rem);
}











/* ------------        H2         ------------- */
h2{
  font-size: clamp(2rem, 5vw, 5rem);
  margin: 50px 50px;
  line-height: 1;
}
h2 .accent-font{
  font-family: 'accent', serif;
  font-size: clamp(3rem, 7vw, 7rem);
}










/* ------------        PARAPGRAPH         ------------- */
.text-block{
  display: flex;
  flex-direction: column;
  align-items: inherit;
}

p {
  font-size: clamp(1.5rem, 2vw, 2rem);
  max-width: 1000px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.left{
  text-align: left;
  margin-left: 5vw;
  margin-right: 5vw;
  align-items:start;
}
.text-head{
  font-size: clamp(2rem, 3vw, 3rem);
}











/* ------------        ARROW-BUTTON         ------------- */
.arrow-link {
  display: inline-flex;             /* Text + Pfeil nebeneinander */
  align-items: center;
  gap: 1px;                         /* Abstand zwischen Text und Pfeil */
  text-decoration: none;            /* keine Unterstreichung */
  color: var(--primary-color);                    /* Textfarbe */
  font-size: clamp(1rem, 2vw, 2rem);
  font-family: 'other', sans-serif;
  background: none;                 /* kein Hintergrund */
  border: none;                     /* keine Umrandung */
  cursor: pointer;
  transition: color 0.3s ease;
}
.arrow-link:hover {
  color: var(--accent-color);
}
.arrow {
  transition: transform 0.3s ease;
}
.arrow-link:hover .arrow {
  transform: translateX(5px);
}





/* ------         SPEZIAL SECTIONS         --------- */
.hero {
  min-height: 80vh; /* 80% der Viewport-Höhe */
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100vh; /* ganze Bildschirmhöhe */
  background: url('pictures/IMG_9446.JPG') center 70%/cover no-repeat;
  display: flex;
  text-align: center;
  
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.3); /* 0.5 = 50% Abdunkelung */
  z-index: 1; /* unter Inhalt */
}
.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1{
  z-index: 2;
  color: var(--accent-color);
}
.zitat{
  padding-top: clamp( 7rem,9vw, 9rem) ;
  padding-bottom: clamp( 7rem,9vw, 9rem);
  background-color: var(--primary-color);
  color: var(--accent-color);
  border-radius: 20px;
}

.daten h2{
  padding-bottom: 50px;
}

.geschichte{
  padding-bottom: clamp( 10rem,12vw, 12rem);
}

#verbandsleben{
  display: flex;
  flex-direction:row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.verbandsleben {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 2rem; /* Abstand zwischen den Cards */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

}
.veranstaltungen{
  gap: 20px;
  flex-wrap: wrap;
  display: flex;
  flex-direction:column;
  justify-content: center;
  align-items: center;
}











/* ------------        CARDS         ------------- */
.card {
  position: relative;
  flex: 1 1 200px; /* minimale Breite 300px, wächst bei Platz */
  border-radius: 16px;
  overflow: hidden; /* damit die Rundung auch das Bild betrifft */
  aspect-ratio: 16 / 9; /* Querformat */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9); /* leicht abdunkeln für bessere Lesbarkeit */
  transition: filter 0.3s ease;
}

.card:hover img {
  filter: brightness(0.6);
}

.card-link {
  position: absolute;
  inset: 0; /* füllt die gesamte Karte */
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg-color);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.1); /* halbtransparentes Overlay */
}





/* ------------        KONTAKTSEITEN         ------------- */
.contact{
  background-color: var(--primary-color);
  color: var(--accent-color);
  overflow: hidden;
}
.contact a{
  color: var(--accent-color);
  margin-top: 30px;
  margin-bottom: 30px;
}
.contact-icons {
  display: flex;
  justify-content: center;
}
.contact-icons img {
  width: 10vw;
}
.contact-icons a{
  size: 10vw;
  transition: transform 0.3s ease, color 0.3s ease;
}
.contact-icons a:hover {
  transform: scale(1.1);
  color: var(--bg-light);
}










/* ------------        FOOTER         ------------- */
footer {
  background-color: var(--primary-color);
  color: var(--accent-color);
  text-align: center;
}
.footer-top {
  background-color: var(--accent-color);
  color: var(--primary-color);
  
}
.footer-bottom nav a{
  color: var(--accent-color);
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 8vw;
  padding-top: 50px;
  padding-bottom: 50px;
}
.social-icons a {
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-icons img {
  width: clamp( 4rem,6vw, 6rem);
}
.social-icons a:hover {
  transform: scale(1.1);
  color: var(--bg-light);
}
.footer-bottom nav{
  text-align: left;
  flex-direction: column; /* untereinander */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
  gap: 15px;
}























/* ------------        SCROLL GALLERY         ------------- */
.image-scroll-container {
  width: 100%;
  overflow-x: scroll;
   /* Horizontal scrollen erlauben */
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch; /* smooth scroll für iOS */
  scroll-behavior: smooth;
  padding: 5rem 0;
}
.image-track {
  display: flex;     /* inline-flex sorgt dafür, dass Track horizontal bleibt */
  padding-left: 5vw;
}
.image-track img {
  margin-left: -4vw;
  height: 25vw;
  flex-shrink: 0; /* verhindert, dass Bilder zusammengestaucht werden */
  display: inline-block;
}



/* ------------        EVENT         ------------- */
.image-view {
  display: flex;     /* inline-flex sorgt dafür, dass Track horizontal bleibt */
  padding-left: 5vw;
}
.image-view img {
  padding: 2vw;
  height: 20vw;
  flex-shrink: 0; /* verhindert, dass Bilder zusammengestaucht werden */
  display: inline-block;
}




/* ------------        OVERLAY         ------------- */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5); /* leichteres Abdunkeln */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#modal-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

#modal-overlay.active img {
  transform: scale(1);
}






/* ------------        ARCHIV JAHR         ------------- */
.year-list{
  display: flex;
  flex-direction: column;
}







/* ------------        MEDIA QUERIES         ------------- */
@media (max-width: 750px) {
  .verbandsleben {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .verbandsleben > div {
    width: 70%; /* Cards nehmen nur 70% der Containerbreite ein */
  }
}