:root {
  /* Globale Variablen */
  --r-font-family: "Roboto", Arial, sans-serif;
  --r-header-font-size: clamp(2rem, 5vw, 3.2rem);
  --r-color-gray: #404040;
  --r-color-green: #139c1b;
  --r-bg-dark: #16242c;
  --r-box-bg: #1e323d;
  --r-highlight: #4ade80;
  --r-tractor-shift: 12vw;
}


html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden; /* Verhindert horizontales Scrollen auf Mobilgeräten */
  color: white;
}

/* Bilder grundsätzlich responsive */
img {
  max-width: 100%;
  display: block;
}


#background-img{
	background-image: url("Gallerie/grass.png");
	position: absolute;
    inset: 0;
	background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.1);
	z-index: -1;
}


/* =========================
   HEADER / HERO-BEREICH
   ========================= */

.header-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
 /* background-image: url("Gallerie/grass.png"); */
  min-height: 400px;
  padding: 40px 20px 90px;
  font-family: "Audiowide", sans-serif;
  text-align: center;
}

#banner-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  margin: 0;
  flex-wrap: wrap; /* Bei wenig Platz dürfen die Elemente umbrechen */
}

.header-banner h1 {
  color: white;
  font-size: var(--r-header-font-size);
  line-height: 1.2;
}

#banner-text {
  display: inline-block;
  margin: 0;
  padding: 0 8px;
  word-break: break-word;
}

/* Gemeinsames Styling beider Traktor-Icons */
.tractor-icon {
  width: clamp(40px, 7vw, 90px);
  height: clamp(40px, 7vw, 90px);
  filter: invert(100%) brightness(200%);
  transition: transform 1.5s ease-out;
}

/* Linkes Icon spiegeln */
#left-icon {
  transform: scaleX(-1);
}

/* Klassen, die per JavaScript gesetzt werden */
#left-icon.drive-left {
  transform: translateX(calc(-1 * var(--r-tractor-shift))) scaleX(-1);
}

#right-icon.drive-right {
  transform: translateX(var(--r-tractor-shift));
}

/* Button im Header */
#pull-btn {
  border: none;
  text-decoration: none;
  padding: 12px 24px;
  margin: 24px 0;
  border-radius: 6px;
  font-family: var(--r-font-family);
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

#pull-btn:hover {
  color: green;
  box-shadow: 3px 5px 5px rgba(0, 0, 0, 0.3);
}

.sub-header-banner {
  color: white;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 900px;
  padding: 0 20px;
}

/* Dekorative Ecken oben links / rechts */
.corner {
  position: absolute;
  top: 0;
  width: clamp(40px, 8vw, 100px);
  height: clamp(40px, 8vw, 100px);
}

.corner.left {
  left: 0;
  background: var(--r-bg-dark);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner.right {
  right: 0;
  background: var(--r-bg-dark);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Social-Media-Icons im Header */
.socials {
  display: flex;
  gap: 16px;
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.social-icons {
  width: 30px;
  height: 30px;
  filter: invert(100%) brightness(200%);
  transition: transform 0.2s ease;
}

.social-icons:hover {
  transform: scale(1.08);
}

/* =========================
   CAROUSEL / SLIDER
   ========================= */

.carousel-container {
  position: relative;
  width: min(92%, 1200px);
  overflow: hidden;
  margin: 30px auto;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  user-select: none;
  position: relative; /* Wichtig für die absolut positionierte Beschreibung */
}

.slide img {
  width: 100%;
  height: clamp(260px, 50vw, 450px);
  object-fit: cover;
}

/* Textfläche am unteren Rand eines Bildes */
.carousel-description {
  position: absolute;
  left: 0;
  bottom: 8%;
  z-index: 2;
  color: white;
  background-color: rgba(0, 0, 0, 0.55);
  width: 100%;
  padding: 14px 16px;
}

.carousel-description p {
  text-align: center;
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* Pfeile rechts und links */
.carousel-btn {
  z-index: 3;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: clamp(28px, 4vw, 40px);
  background: none;
  border: none;
  text-shadow: 3px 5px 5px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 8px 12px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Dots des Carousels */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 4;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dots button.active {
  background: white;
  transform: scale(1.2);
}

/* =========================
   ABSCHNITTSÜBERSCHRIFT
   ========================= */

#border-top,
#border-bottom {
  border: 1px solid #ccc;
  width: min(92%, 1200px);
}

#border-top {
  margin-top: 100px;
}

#border-bottom {
  margin-bottom: 100px;
}

.header-container {
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.section-title {
  color: white;
  text-align: center;
  /* border-bottom: 2px solid var(--r-highlight); */
  display: inline-block;
  margin: 0;
  padding-bottom: 8px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

/* =========================
   INFO-BOX
   ========================= */

.info-box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.info-box {
  position: relative;
  width: min(92%, 1200px);
  background: var(--r-box-bg);
  border-radius: 10px;
  overflow: hidden;
}

.info-text-wrap {
  filter: drop-shadow(-1px 6px 3px rgba(50, 50, 0, 0.5));
}

/* Grünes Label links oben in der Box */
.info-text {
  position: absolute;
  top: 18px;
  left: 0;
  background: var(--r-highlight);
  color: var(--r-highlight);
  user-select: none;
  font: bold clamp(1.2rem, 3vw, 2rem) system-ui;
  width: clamp(180px, 30vw, 300px);
  padding: 12px 22px;
  clip-path: polygon(0% 0%, 75% 0%, 80% 50%, 75% 100%, 0% 100%);
  z-index: 1;
  transition: width 0.5s ease, filter 0.5s ease;
}

.info-text:hover {
  width: clamp(230px, 40vw, 450px);
  filter: drop-shadow(-1px 6px 3px rgba(50, 50, 0, 0.5));
}

.info-box-content {
  padding: 110px 40px 40px;
  color: white;
  line-height: 1.7;
  font-size: 1rem;
}

.green-highlight {
  color: var(--r-highlight);
}

#highlighted {
  margin: 20px 0 0;
  padding: 20px;
  border-left: 3px solid var(--r-highlight);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

/* =========================
   TABLET-ANPASSUNGEN
   ========================= */

@media (max-width: 900px) {
  .header-banner {
    min-height: 360px;
    padding: 30px 20px 100px;
  }

  .info-box-content {
    padding: 100px 28px 30px;
  }

  #border-top {
    margin-top: 80px;
  }

  #border-bottom {
    margin-bottom: 80px;
  }
}

/* =========================
   MOBILE-ANPASSUNGEN
   ========================= */

@media (max-width: 768px) {
  :root {
    --r-tractor-shift: 18vw;
  }

  .header-banner {
    min-height: auto;
    padding: 30px 16px 85px;
  }

  #banner-header {
    flex-direction: column; /* Text und Icons untereinander */
    gap: 12px;
  }

  #banner-text {
    padding: 0;
  }

  .sub-header-banner {
    margin-top: 8px;
  }

  /* Socials mittig unten statt rechts unten */
  .socials {
    right: 50%;
    transform: translateX(50%);
    bottom: 16px;
  }

  .carousel-btn {
    font-size: 30px;
  }

  .carousel-description {
    padding: 12px;
  }
  


  .info-text {
    top: 14px;
    width: 220px;
    padding: 10px 20px;
  }

  .info-text:hover {
    width: 260px;
  }

  .info-box-content {
    padding: 90px 20px 24px;
  }

  #border-top {
    margin-top: 60px;
  }

  #border-bottom {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  /* Die Eck-Deko wird auf sehr kleinen Displays ausgeblendet */
  .corner {
    display: none;
  }

  .social-icons {
    width: 26px;
    height: 26px;
  }

  .carousel-container {
    width: 100%;
    border-radius: 0;
  }

  .carousel-description p {
    font-size: 0.95rem;
  }

  /* Label wird auf sehr kleinen Geräten weniger aggressiv positioniert */
  .info-text {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 220px;
    margin-top: 16px;
    margin-left: 0;
  }

  .info-box-content {
    padding: 24px 16px 20px;
  }

  #highlighted {
    padding: 16px;
  }
}



/* =========================
   SPONSOREN
   ========================= */

.sponsoren-container{
	margin-top: 5%;
	display: block;
}

.sponsoren-style{
	width: 100%;
	clip-path: polygon(50% 0%, 100% 0, 100% 65%, 0 100%, 0 0);
	background: white;
	height: 400px;
	margin-top: 5%;
	margin-bottom: 5%;
}

.sponsoren-carousel-container{
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 30px auto;
  margin-bottom: 30px auto;
  border-radius: 12px;
}


.sponsoren-carousel-track{
  margin-top: 5%;
  margin-left: 3%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}


.sponsoren-slide{	
    width: 400px;
    height: 150px;
    position: relative;   /* wichtig für absolute Kinder */
    overflow: hidden;     /* optional, falls etwas übersteht */
	padding: 20px;
}


.sponsoren-website{
	display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    text-align: center;
    justify-content: center;
    align-items: center;
    z-index: 2;
	color: white;
	background: rgba(0, 0, 0, 0.3); /* optional */

}



.sponsoren-img{
    width: 100%;
    height: 100%;
    object-fit: contain;   /* oder cover */
    display: block;

}