/* Farben */
:root {
  --einhart-yellow: #e4e00f;
  --einhart-yellow-hover: #e4e00f;
  --einhart-black: #000000;
}

/* Buttons */
.btn-einhart {
  background-color: var(--einhart-yellow);
  color: var(--einhart-black);
  border-style: solid;
  transition: all 0.2s ease;
}


.btn-einhart:hover {
  filter: brightness(1.05);
  transform: scale(1.02);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}


/* Navigation */
.navbar-einhart {
  background: var(--einhart-yellow);
}

/* Brand */
.navbar-einhart .navbar-brand {
  color: var(--einhart-black);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.navbar-einhart .navbar-brand:hover {
  color: var(--einhart-black);
  opacity: 1;
  /* statt 0.7 */
}

.navbar-einhart .nav-item {
  padding: 0 1rem;
}

/* Links */
.navbar-einhart .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.7rem 0;
  color: var(--einhart-black);
  position: relative;
  transition: color 0.3s ease;
  width: fit-content;
}

.navbar-einhart .nav-link:hover {
  color: var(--einhart-black);
  opacity: 1;
  /* statt 0.7 */
}

/* Unterstreichung */
.navbar-einhart .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: var(--einhart-black);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-einhart .nav-link:hover::after {
  width: 100%;
}

/* Aktiver Link */
.navbar-einhart .nav-link.active {
  color: var(--einhart-black) !important;
  font-weight: 700;
}

.navbar-einhart .nav-link.active::after {
  width: 60%;
}

/* Mobile Menü */
.navbar-toggler {
  border: none;
  filter: invert(0%);
}

.navbar-toggler:focus {
  box-shadow: none;
}




/* Carousels */
#carouselExampleControls,
#carouselExampleControls2,
#carouselExampleControls3,
#carouselExampleControls4 {
  max-width: 600px;
  margin: 0 auto;
}

.carousel-item img {
  height: 400px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 200px;
  }
}


/*Footer*/
.footer-einhart {
  background: #000;
  color: #fff;
  font-size: 0.95rem;
}

.footer-einhart a {
  color: #e4e00f;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.footer-einhart a:hover {
  opacity: 1;
}

.footer-links {
  margin-top: 5px;
}

.footer-links .separator {
  color: #fff;
  margin: 0 8px;
}

.list-unstyled a:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top: 4px solid var(--einhart-yellow);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1050;
  padding: 1rem 0;
}

.cookie-banner p {
  margin: 0;
  color: #111;
}

.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.instagram-consent-box {
  max-width: 780px;
  margin: 0 auto;
}

.consent-card {
  border: 1px solid #dedede;
  border-radius: 16px;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
}

.accordion-body img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 6px;
  object-fit: contain;
  /* wichtig: NICHT cover */
}


.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
}


/* Bilder für Timeline*/
.gallery-wrapper {
  position: relative;
  display: block;
  cursor: pointer;
  pointer-events: auto;
}

.gallery-wrapper::after {
  content: "Galerie öffnen";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 6px;
  pointer-events: none;
}

.gallery-wrapper:hover::after {
  opacity: 1;
}


/*Termine Startseite*/
.termin-img {
  flex-shrink: 0;
  flex-grow: 0;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}




/* --- Timeline Mittelachse --- */
.timeline-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -40px;
  width: 4px;
  background: linear-gradient(to bottom, #cfd6e6, #e2e8f0);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* --- Jahres-Badge (ohne Punkt) --- */
.timeline-year {
  font-size: 1.4rem;
  font-weight: 700;
  background: #e4e00f;
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid #d0d7e2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: inline-block;
  z-index: 3;
  position: relative;
  word-break: break-word;
  /* bricht lange Wörter */
}

/* --- Layout --- */
.timeline-row {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
  /*Abstand Bilder und Badge*/
  gap: 30px;
}

.timeline-row.reverse {
  flex-direction: row-reverse;
  text-align: right;
}

/* --- Bilder --- */
.timeline-content img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.timeline-content img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* --- Responsive --- */
@media (max-width: 768px) {

  .timeline-row,
  .timeline-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .timeline-content img {
    max-width: 300px;
  }

  .timeline-row::before {
    display: none;
  }
}





/*Dropdown - Navigation - Aktuelles*/
.dropdown-menu-einhart {
  background-color: #e4e00f;
  border: none;
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  min-width: 180px;
}

.dropdown-menu-einhart .dropdown-item {
  color: #000000;
  padding: 10px 16px;
  font-weight: 500;
}

.dropdown-menu-einhart .dropdown-item:hover {
  background-color: #333333;
  color: #ffffff;
}

.navbar .dropdown-toggle::after {
  display: none;
}


/*Logo in der Navigation*/
.logo {
  height: 40px;
  /* Mobile Größe */
  width: auto;
}

@media (min-width: 992px) {

  /* Desktop ab Bootstrap LG */
  .logo {
    height: 60px;
    /* Desktop Größe */
  }
}


.termine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px); /* feste Breite */
  gap: 20px;
  margin: 30px 0;
  justify-content: center; /* ganze Grid-Spalten zentrieren */
}

.termin-card {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
  transition: transform 0.2s;
}

.termin-card:hover {
  transform: scale(1.03);
}

.termin-card strong {
  font-size: 1.2em;
}


/*Hintergrund Bild für die Startseite*/
.hero-start {
  background-image: url('../startseite/teaser.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
  text-align: center;
}

/* Dezentes Overlay */
.hero-start::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Transparenz anpassen */
  backdrop-filter: blur(5px);     /* optional: leichter Blur */
}

.hero-start > * {
  position: relative;
  z-index: 1;
}



/*Formatierung Hintergrundbilder für alle anderen Seiten*/
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
  text-align: center;
}

/* Dezentes Overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Transparenz anpassen */
  backdrop-filter: blur(2px);     /* optional: leichter Blur */
}

.hero > * {
  position: relative;
  z-index: 1;
}


/*Bilder für die Hero-Sektion je Seite*/
.hero-schlepperturnier {
  background-image: url('../schlepperturnier/turnier2023/schlepper_23\ \(4\).jpg');
}

.hero-auftritte {
  background-image: url('../auftritte/dorffest2025/dorffest_25_1.jpeg');
}

.hero-ritterball {
  background-image: url('../ritterball/ball2025/ritter_25\ \(14\).jpg');
}

.hero-fasnet {
  background-image: url('../fasnet/fasnet2025/fasnet_25\ \(35\).jpg');
}


.hero-about {
  background-image: url('../ueber-uns/geschichte/10-Jubiläum.jpg');
}

.hero-all {
  background-image: url('../startseite/teaser.jpg');
}


/*Datenschutz-Seite responsiv*/
@media (max-width: 768px) {
  .datenschutz-container {
    padding: 0 15px;
  }
}

