/* =========================
   Fonts
   ========================= */
@font-face {
  font-family: 'Satoshi';
  src: url("../assets/fonts/Satoshi-Regular.woff2") format('woff2'),
       url("../assets/fonts/Satoshi-Regular.woff")  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url("../assets/fonts/Satoshi-Bold.woff2") format('woff2'),
       url("../assets/fonts/Satoshi-Bold.woff")  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Typo-Quik-Demo';
  src: url("../assets/fonts/Typo-Quik-Demo.ttf.woff") format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =========================
   Root-Variablen
   ========================= */
:root{
  /* Header/Fuß */
  --header-height: 140px;       /* reine Header-Höhe (ohne Rand) */
  --header-border: 3px;         /* rote Linie am Header unten */
  --footer-height: 80px;        /* Footer-Höhe */

  /* Navi-Feinjustierung */
  --nav-nudge-y: 0px;         /* Vertikal: - nach oben, + nach unten */
  --nav-nudge-x: -200px;        /* Horizontal: - nach links, + nach rechts */

  /*Icon Größe*/
  --icon-size: 50px;

  /* Hero-Defaults (Fallback) */
  --hero-image: url('../assets/chor_hero.jpg');
  --hero-pos: center 35%;
  --hero-overlay: rgba(0,0,0,.30);
  --hero-minh: 38vh;
}

/* =========================
   Global
   ========================= */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  background-color: #ffffff;
  color: #000000;
  font-size: 18px;   /* statt Standard 16px */
  line-height: 1.6;  /* für bessere Lesbarkeit */
  padding-top: calc(var(--header-height) + var(--header-border));
}


h1, h2, nav, .btn {
  font-family: 'Typo-Quik-Demo', sans-serif;
}

/* =========================
   Header (fixiert)
   ========================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: var(--header-border) solid #e7302a; /* roter Balken */
  width: 100%;
}

.header-inner{
  display: flex;
  align-items: center; /* Logo mittig vertikal */
  justify-content: space-between;
  padding: 0.5rem 2rem;
}

.site-logo{
  max-height: 100px;  /* passt zu --header-height (140px inkl. Innenabständen) */
  height: auto;
  width: auto;
  display: block;
}

/* =========================
   Navbar
   ========================= */
.menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; padding: 1rem;
  cursor: pointer;
}

nav ul {
  list-style: none; 
  margin: 0; 
  padding: 0;
  display: flex; 
  flex-wrap: wrap; 
  gap: 1.5rem;

  /* frei verschiebbar über Variablen */
  position: relative;
  top: var(--nav-nudge-y);   /* vertikal justieren */
  left: var(--nav-nudge-x);  /* horizontal justieren */
  align-items: center;
}

nav ul li { padding: 0; }

nav ul li a, nav ul li button {
  text-decoration: none; background: none; border: none;
  color: #0087cc; font-weight: bold; cursor: pointer;
  font-size: 1.7rem; line-height: 1.2;
  padding: 0;
}

nav ul li a:hover,
nav ul li button:hover{ color: #e7302a; }

@media (max-width: 900px){
  nav ul{ top: 0; left: 0; } /* Auf Mobile kein Hochschieben */
}

/* ===== Burger-Menü mobil ===== */
.menu-toggle {
  display: none;
}

@media (max-width: 900px){
  .menu-toggle {
    display: inline-block;
    font-size: 1.8rem;
    padding: .5rem .75rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  header nav {
    position: absolute;
    top: calc(var(--header-height) - 10px); /* knapp unter dem Header-Inhalt */
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: var(--header-border) solid #e7302a;
    display: none; /* zu bis Toggle klick */
    z-index: 999;
  }
  header nav.open { display: block; }

  header nav ul {
    flex-direction: column;
    gap: 0;
    padding: .5rem 1rem 1rem;
  }
  header nav ul li a,
  header nav ul li button {
    display: block;
    padding: .75rem 0;
    font-size: 1.1rem;
  }

  /* Auf Mobil: Nudge zurücksetzen */
  nav ul { top: 0; left: 0; }
}


/* =========================
   Layout-Wrapper (3 Spalten)
   ========================= */
.layout-wrapper {
  display: grid;
  grid-template-areas: "left main right";
  grid-template-columns: 1fr 2.5fr 1.2fr;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  align-items: stretch;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

@media (max-width: 900px){
  .layout-wrapper {
    display: grid;
    grid-template-areas:
      "main"
      "right";      /* rechte Spalte folgt unter Main */
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
    min-height: auto;
  }

  .left-design { display: none; }   /* links bleibt leer/aus */
  .right-info  { display: block; }  /* rechts sichtbar, rutscht nach unten */

  /* Burger menu tweeks */
  nav ul { top: 0; left: 0; }
}


/* =========================
   Hero Section
   ========================= */
.hero {
  margin-top: 0;
  position: relative;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  background-size: cover;
  background-position: var(--hero-pos);
  background-repeat: no-repeat;
  min-height: var(--hero-minh);
  display: grid;
  place-items: center;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--hero-overlay);
  z-index: 0;
}

.hero .hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; margin-bottom: 0.5rem; }
.hero p  { font-size: 1.5rem; margin: 0 auto; max-width: 700px; }


/* =========================
   Hero-Bilder pro Seite (DW-kompatibel)
   Pfade relativ zu /css/style.css  →  ../assets/hero/…
   ========================= */

/* Startseite */
.page--home .hero {
  background-image: url("../assets/hero/home.jpg");
  --hero-pos: center 35%;
  --hero-overlay: rgba(0,0,0,.30);
}

/* Über uns */
.page--about .hero {
  background-image: url("../assets/hero/about.jpg");
  --hero-pos: center 10%;
  --hero-overlay: rgba(0,0,0,.30);
}

/* Konzerte */
.page--concerts .hero {
  background-image: url("../assets/hero/concerts.jpg");
  --hero-pos: center 25%;
  --hero-overlay: rgba(0,0,0,.30);
}

/* Media */
.page--media .hero {
  background-image: url("../assets/hero/media.jpg");
  --hero-pos: center 8%;
  --hero-overlay: rgba(0,0,0,.30);
}

/* Mitmachen */
.page--join .hero {
  background-image: url("../assets/hero/join.jpg");
  --hero-pos: center 45%;
  --hero-overlay: rgba(0,0,0,.30);
}

/* Kontakt */
.page--contact .hero {
  background-image: url("../assets/hero/contact.jpg");
  --hero-pos: center 30%;
  --hero-overlay: rgba(0,0,0,.30);
}


/* Teaser "Nächste Veranstaltungen" */
.home-upcoming .mini-list {
  display: grid;
  gap: 1rem;
  margin-top: .75rem;
}
.home-upcoming .mini-item {
  background: #fff;
  border-left: 6px solid #0087cc;
  border-radius: 8px;
  padding: .75rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.home-upcoming .mini-item h3 {
  margin: 0 0 .25rem 0;
  color: #e7302a;
  font-size: 1.05rem;
}
.home-upcoming .mini-item p {
  margin: .1rem 0;
  color: #333;
  font-size: .95rem;
}
.home-upcoming .more-link { margin-top: .5rem; }

/* =========================
   Seitenpanels (weiß + dezentes Overlay)
   ========================= */
.left-design {
  grid-area: left;
  background-color: transparent; /* oder weiß, wenn du den leeren Kasten sichtbar haben willst */
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}

.right-info {
  grid-area: right;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  padding: 1rem;
  position: relative; /* wichtig für ::before Overlay */
}

/* Overlay-Grafik für Panels */
.left-design::before {
	content: none;
}
.right-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/icons/sidepanel.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: saturate(0.7) brightness(0.95);
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  transform: scaleX(-1);
}
.left-design > *,
.right-info > *{
  position: relative;
  z-index: 1;
}
.right-info::before{
  transform: scaleX(-1);
  transform-origin: center;
}

.video-gallery {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}
.video-gallery p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}


/* =========================
   Icons (globale Größe & Verhalten)
   ========================= */
/* Base icon rules */
.icon,
img.icon,
.social-icons img.icon {
  width: var(--icon-size);
  height: var(--icon-size);
}

/* For <img class="icon"> ensure intrinsic svg/png scales correctly */
img.icon { object-fit: contain; display: inline-block; }

/* Optional hover */
.icon:hover,
img.icon:hover { transform: scale(1.08); transition: transform .15s ease; }


/* =========================
   Sections
   ========================= */
section { padding-bottom: 2rem; }
section h2 {
  color: #e7302a;
  border-left: 5px solid #0eaa8b;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}
.intro {
  background: #f3f3f3;
  padding: 1rem;
  border-radius: 8px;
}

/* =========================
   Zeitstrahl
   ========================= */
.timeline { text-align: center; margin-top: 2rem; }
.timeline .year {
  font-size: 2rem; font-weight: bold; position: relative; margin: 2rem 0 1rem;
}
.timeline .year::after,
.timeline .year::before {
  content: ""; display: block; width: 80%; height: 1px;
  background: #0eaa8b; margin: 0.5rem auto;
}
.timeline .day {
  display: flex; justify-content: center; align-items: flex-start;
  margin-bottom: 2rem;
}
.timeline .events {
  max-width: 45%; padding: 1rem; background: #f9f9f9;
  border-left: 4px solid #e7302a; border-radius: 8px; text-align: left;
  position: relative; box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.timeline .events img {
  max-width: 100%; border-radius: 8px; margin-top: 0.5rem;
}
.timeline .events .caption {
  font-style: italic; font-size: 0.9rem; margin-top: 0.3rem; color: #555;
}
.timeline .date { font-size: 0.9rem; margin-top: 0.5rem; color: #0087cc; }
.timeline .day img {
  width: 100%; max-width: 400px; border-radius: 8px; margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.timeline .day:nth-child(even) { flex-direction: row-reverse; }

/* =========================
   Zitate-Galerie
   ========================= */
.quotes-gallery {
  display: flex; overflow-x: auto; gap: 1rem; scroll-snap-type: x mandatory;
  padding: 1rem 0;
}
.quotes-gallery blockquote {
  flex: 0 0 80%; background: #ffffff; padding: 1rem;
  border-left: 4px solid #e7302a; scroll-snap-align: start; border-radius: 8px;
  font-style: italic; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.quotes-gallery::-webkit-scrollbar { height: 8px; }
.quotes-gallery::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* =========================
   Konzertlisten
   ========================= */
.concert-list {
  display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem;
}
.concert-entry {
  padding: 1rem; background: #ffffff; border-left: 6px solid #0087cc;
  border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  animation: fadeIn 0.6s ease-in-out both;
}
.concert-entry h3 { margin: 0 0 0.5rem 0; color: #e7302a; }
.concert-entry p  { margin: 0.2rem 0; color: #333; }

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================
   Footer
   ========================= */
footer {
  position: relative;               /* anchor for ::before */
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #fff;
  min-height: var(--footer-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;                 /* clip the ::before rounding if any */
}

/* Background image & filter live here */
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/footer/SUC_Back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* only image is filtered */
  filter: saturate(0.7) brightness(0.85);
  opacity: 0.9;

  z-index: 0;
}
footer > * { position: relative; z-index: 1; } /* keep text above */

footer a { color: #fff; text-decoration: underline; }
footer a:hover { color: #0eaa8b; }
.footer-links { margin-top: 0.5rem; display: flex; gap: 1rem; }


/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  .layout-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
    min-height: auto;
  }
  .left-design, .right-info { display: none; }
  .quotes-gallery { flex-direction: column; }
  .header-inner { flex-direction: column; }
}
