/* =========================================================
   FLG STRAUBING - GRUNDDESIGN
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #172536;
  background: #ffffff;
}

a {
  color: inherit;
}


/* =========================================================
   KOPFZEILE
   ========================================================= */

.topbar {
  min-height: 88px;
  padding: 12px 5%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  background: rgba(255, 255, 255, 0.97);

  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.vereinslogo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
}

.brand p {
  margin: 3px 0 0;

  color: #687887;
  font-size: 13px;
}


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

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 6px;
}

nav a {
  padding: 9px 10px;

  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  border-radius: 6px;

  transition: 0.2s;
}

nav a:hover {
  background: #edf5f9;
  color: #126b9d;
}

nav .intern {
  margin-left: 5px;

  padding: 10px 15px;

  background: #172536;
  color: white;
}

nav .intern:hover {
  background: #2b4b62;
  color: white;
}


/* =========================================================
   GROSSER STARTBEREICH
   ========================================================= */

.hero {
  min-height: 560px;
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;

  padding: 80px 8%;

  background: #4f9bc6;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  opacity: 0;

  animation: heroFade 36s infinite;
}

.slide1 {
  background-image: url("../bilder/start/start1.jpg");
  animation-delay: 0s;
}

.slide2 {
  background-image: url("../bilder/start/start2.jpg");
  animation-delay: 9s;
}

.slide3 {
  background-image: url("../bilder/start/start3.jpg");
  animation-delay: 18s;
}

.slide4 {
  background-image: url("../bilder/start/start4.jpg");
  animation-delay: 27s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    90deg,
    rgba(5, 28, 45, 0.88) 0%,
    rgba(9, 56, 85, 0.67) 48%,
    rgba(5, 28, 45, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 760px;

  color: white;
}

@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}
  
hero-content {
  width: 100%;
  max-width: 760px;

  color: white;
}

.eyebrow {
  margin: 0 0 10px;

  text-transform: uppercase;

  letter-spacing: 2px;

  font-size: 13px;
  font-weight: bold;
}

.eyebrow.dark {
  color: #1674a7;
}

.hero h2 {
  margin: 0 0 22px;

  font-size: clamp(42px, 6vw, 72px);

  line-height: 1.02;
  letter-spacing: -1px;
}

.intro {
  max-width: 670px;

  margin: 0;

  font-size: 18px;
  line-height: 1.65;
}


/* =========================================================
   BUTTONS IM STARTBEREICH
   ========================================================= */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 30px;
}

.button {
  display: inline-block;

  padding: 13px 20px;

  border-radius: 7px;

  text-decoration: none;

  font-size: 15px;
  font-weight: bold;

  transition: 0.2s;
}

.button.primary {
  background: #f0b322;
  color: #172536;
}

.button.primary:hover {
  background: #ffc53c;
  transform: translateY(-1px);
}

.button.secondary {
  border: 2px solid rgba(255, 255, 255, 0.9);

  color: white;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   INHALTSBEREICHE
   ========================================================= */

.content-section {
  padding: 75px 8%;
}

.content-section.light {
  background: #ffffff;
}

.content-section.soft {
  background: #f3f7fa;
}

.content-inner {
  max-width: 950px;

  margin: 0 auto;

  text-align: center;
}

.content-inner h2 {
  margin: 8px 0 18px;

  font-size: 36px;
}

.content-inner p:not(.eyebrow) {
  max-width: 780px;

  margin: 0 auto;

  color: #5b6d79;

  font-size: 17px;
  line-height: 1.7;
}


/* =========================================================
   FUSSZEILE
   ========================================================= */

footer {
  min-height: 90px;

  padding: 25px 6%;

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

  background: #142532;
  color: #d7e1e8;

  font-size: 14px;
}

footer a {
  margin-left: 20px;

  text-decoration: none;
}

footer a:hover {
  color: white;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .topbar {
    position: relative;

    flex-direction: column;
    align-items: flex-start;

    gap: 10px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 500px;
  }
}


/* =========================================================
   HANDY
   ========================================================= */

@media (max-width: 650px) {

  .topbar {
    padding: 12px 20px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .logo-placeholder {
    width: 48px;
    height: 48px;
  }

  nav {
    gap: 2px;
  }

  nav a {
    padding: 7px 6px;

    font-size: 12px;
  }

  nav .intern {
    padding: 8px 10px;
  }

  .hero {
    min-height: 500px;

    padding: 65px 25px;
  }

  .hero h2 {
    font-size: 43px;
  }

  .intro {
    font-size: 16px;
  }

  .content-section {
    padding: 55px 25px;
  }

  .content-inner h2 {
    font-size: 29px;
  }

  .content-inner p:not(.eyebrow) {
    font-size: 16px;
  }

  footer {
    flex-direction: column;

    gap: 16px;

    text-align: center;
  }

  footer a {
    margin: 0 8px;
  }
}

/* =========================================================
   FLUGGELAENDE - WARMERES DESIGN
   ========================================================= */

.page-hero {
  position: relative;
  padding: 110px 8%;
  color: white;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(26, 44, 55, 0.88),
      rgba(41, 93, 115, 0.58),
      rgba(255, 255, 255, 0.08)
    ),
    url("../bilder/start/start2.jpg");

  background-size: cover;
  background-position: center;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0 auto;
}

.page-hero h2 {
  margin: 8px 0 18px;
  font-size: clamp(40px, 5vw, 62px);
}

.page-hero p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.65;
}

.content-section.soft {
  background: #f7f3ec;
}

.info-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.info-box {
  background: #fffdf8;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid #eee6d8;
  box-shadow: 0 6px 22px rgba(49, 65, 74, 0.08);
}

.info-box h3 {
  margin-top: 0;
  color: #2f708d;
  font-size: 21px;
}

.page-button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 7px;
  background: #f0b322;
  color: #172536;
  text-decoration: none;
  font-weight: bold;
}

.page-button:hover {
  background: #ffc53c;
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 60px 25px;
  }
}
/* =========================================================
   VERANSTALTUNGEN
   ========================================================= */

.event-hero {
  padding: 110px 8%;
  color: white;

  background:
    linear-gradient(
      90deg,
      rgba(22, 42, 53, 0.88),
      rgba(47, 105, 128, 0.55),
      rgba(255, 255, 255, 0.08)
    ),
    url("../bilder/start/start3.jpg");

  background-size: cover;
  background-position: center;
}

.event-list {
  max-width: 950px;
  margin: 40px auto 0;
  display: grid;
  gap: 18px;
}

.event-card {
  display: grid;
  grid-template-columns: 230px 1fr;

  overflow: hidden;

  background: #fffdf8;

  border: 1px solid #eee5d6;
  border-radius: 14px;

  box-shadow: 0 6px 22px rgba(40, 55, 65, 0.08);
}

.event-date {
  display: flex;
  align-items: center;

  padding: 25px;

  background: #2f708d;
  color: white;

  font-weight: bold;
  line-height: 1.5;
}

.event-content {
  padding: 24px 28px;
  text-align: left;
}

.event-content h3 {
  margin: 0 0 10px;

  font-size: 23px;
  color: #233b4a;
}

.event-content p {
  margin: 0 0 16px !important;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;

  color: #61727e;

  font-size: 14px;
  font-weight: bold;
}

.event-empty {
  padding: 40px;

  background: #f7f3ec;

  border-radius: 12px;

  text-align: center;
}

@media (max-width: 700px) {

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-date {
    padding: 16px 22px;
  }

  .event-hero {
    padding: 65px 25px;
  }
}
/* =========================================================
   FIX STARTSEITEN-BUTTONS
   ========================================================= */

.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;
  min-width: 0;

  padding: 13px 20px;

  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;

  border-radius: 7px;
}

.hero-buttons .button.primary {
  background: #f0b322;
  color: #172536;
  border: 2px solid #f0b322;
}

.hero-buttons .button.secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.hero-buttons .button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* =========================================================
   GALERIE
   ========================================================= */

.gallery-list {
  max-width: 1100px;
  margin: 40px auto 0;
}

.gallery-album {
  background: #fffdf8;
  border: 1px solid #eee5d6;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 6px 22px rgba(40, 55, 65, 0.08);
}

.gallery-album-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.gallery-album-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.gallery-count {
  background: #eaf2f5;
  color: #2f708d;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}

.gallery-grid-public {
  display: grid;
  grid-template-columns: repeat(4, 220px);
  gap: 15px;
  justify-content: center;
}

.gallery-photo {
  display: block;
  width: 220px;
  height: 165px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #dfe7eb;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gallery-photo img {
  display: block;
  width: 220px;
  height: 165px;
  object-fit: cover;
}

.gallery-photo span {
  display: block;
  padding: 7px 9px;
  background: #173244;
  color: white;
  font-size: 13px;
}

.gallery-empty {
  padding: 45px 25px;
  text-align: center;
  background: #f7f3ec;
  border-radius: 12px;
}


/* =========================================================
   GALERIE LIGHTBOX
   ========================================================= */

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(7, 18, 26, 0.92);
}

.lightbox-inner {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner > img {
  display: block;

  width: 500px;
  max-width: 80vw;
  max-height: 70vh;
  height: auto;

  object-fit: contain;

  border-radius: 10px;

  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;

  top: -18px;
  right: -18px;

  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 50%;

  background: white;
  color: #173244;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}

.lightbox-title {
  margin-top: 12px;

  color: white;

  font-size: 16px;
  font-weight: bold;
  text-align: center;
}


/* =========================================================
   GALERIE RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .gallery-grid-public {
    grid-template-columns: repeat(3, 220px);
  }
}

@media (max-width: 780px) {
  .gallery-grid-public {
    grid-template-columns: repeat(2, 220px);
  }
}

@media (max-width: 520px) {
  .gallery-grid-public {
    grid-template-columns: 220px;
  }

  .gallery-album-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-inner > img {
    width: auto;
    max-width: 88vw;
    max-height: 65vh;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 60px;

  border: 0;
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.9);
  color: #173244;

  font-size: 40px;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: #ffffff;
}

@media (max-width: 700px) {
  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 52px;
    font-size: 34px;
  }
}
