﻿html, body {
    overflow-x: hidden; /* Temporär hinzufügen */
}
html {
  font-size: 100%; /* ca. 16px */
  scroll-behavior: smooth;
  overflow-x: hidden; /* Beibehalten: Verhindert horizontalen Scrollbalken */
  width: 100%; /* Neu hinzufügen: Stellt sicher, dass html die volle, verfügbare Breite einnimmt */
}
:root {
    --color-primary: #83A14B;        /* Header/Footer */
    --color-bg-main: #F9F4E9;        /* Inhaltshintergrund, z. B. main */
    --color-accent: #D4563D;         /* CTA, Buttons, Highlights */
    --color-deep: #2D401F;           /* Textfarbe, Kontraste */
    --color-soft: #F9F4E9;           /* Sanfter Seitenhintergrund */
    
    --color-bg: var(--color-soft);   /* Seite: Grundhintergrund */
    --color-text: var(--color-deep);
    --color-button-bg: var(--color-accent);
    --color-button-text: #fff;
}

/* ===== RESET / BASIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%; /* Neu hinzufügen: Stellt sicher, dass body die volle, verfügbare Breite einnimmt */
    overflow-x: hidden; /* Auch hier sicherheitshalber */
}
/* ===== GRUNDLAYOUT ===== */
main {
    background-color: var(--color-bg-main);
    padding: 2rem 0;
}
body {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.main-header {
  /* background-color: #83A14B; */
  background: url('../images/bgpattern_jungle_sand_1011x400px.png') center center / cover no-repeat;
  height: 250px; /* Feste Höhe */
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-inner {
  text-align: center;
}

.header-logo {
  max-height: 200px;
  width: auto;
  height: auto;
}

header,
footer {
    background-color: var(--color-primary);
    color: #fff;
}

.main-footer {
  background-color: #83A14B;
  background: url('../images/bgpattern_jungle_sand_1011x400px.png') center center / cover no-repeat;
  color: #F9F4E8;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-inner.three-columns {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
  gap: 1rem;
}

.footer-col {
  flex: 1 1 300px;
}

.footer-col.left {
  text-align: left;
}

.footer-col.center {
  text-align: center;
}

.footer-col.right {
  text-align: right;
}

.footer-icon {
  height: 24px;
  width: 24px;
  filter: brightness(0) invert(1);
  margin: 0 0.5rem;
  transition: transform 0.2s ease;
}

.footer-icon:hover {
  transform: scale(1.2);
}

.legal-links a {
  color: #F9F4E8;
  text-decoration: none;
  margin: 0 0.3rem;
}

.legal-links a:hover {
  text-decoration: underline;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: auto;
    background: url('images/hero-bg.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem 2rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ===== Intro Section ====== */
.intro {
  width: 100vw; /* Beibehalten: Soll über die gesamte Viewport-Breite gehen */
  background: url('../images/bgpattern_jungle_sand_1440x570px.png') repeat;
  background-size: 400px;
  padding: 4rem 0;
  color: #2D401F;
  text-align: center; /* Beibehalten: Für Textzentrierung im Intro */
  position: relative; /* Wichtig für die korrekte Anwendung von left/transform */
  left: 50%;
  transform: translateX(-50%); /* Zieht das Element um die Hälfte seiner eigenen Breite zurück */
}
.intro .container {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2rem; 
  border-radius: 1rem;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2D401F;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2D401F;
}

.video-section-wrapper {
  background: url('../images/pattern-light-green_resize.png') repeat; /* Das Muster erneut anwenden */
  background-size: 400px;
  padding: 4rem 0; /* Passen Sie das Padding nach Bedarf an */
  width: 100vw; /* Stellt sicher, dass es die volle Breite einnimmt */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  text-align: center; /* Um den Video-Container zu zentrieren */
}
.video-pattern-bg {
  background: url('../images/pattern-light-green_resize.png') repeat;
  background-size: 400px;
  padding: 2rem 0;
  color: #2D401F;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw; 
}

.video-container {
  max-width: 800px;
  margin: 0 auto; /* Zentriert das Video innerhalb des grauen Bereichs */
  padding: 2rem; /* Optional: Innenabstand um das Video */
  border-radius: 1rem; /* Optional: Abgerundete Ecken */
}
/* ===== Signup Form ====== */
.signup {
    background-color: var(--color-bg-main);
    padding: 4rem 2rem;
    text-align: center;
}

.signup h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-deep);
}

.signup p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.signup-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.signup-form button {
    align-self: center;
    margin-top: 1rem;
}

.form-errors {
    background-color: #fce4e4;
    color: #b30000;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 6px;
    text-align: center;
}

.form-success {
    background-color: #e3f9e5;
    color: #2d6a4f;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 6px;
    text-align: center;
}

/* ===== Carousel ===== */
.carousel {
  background-size: contain; /* oder z. B. 400px 400px für gleichmäßige Kachelung */
  background-position: top left;
  padding: 0.5rem 0rem;
  text-align: center;
  overflow: hidden;
  position: relative;
  margin-top: 1rem;
}

.carousel-wrapper {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  max-height: 400px;
/*  object-fit: cover; */
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.carousel-item p {
  font-size: 1.2rem;
  color: #F9F4E9;
  margin: 0;
}

.carousel-controls {
  margin-top: 1rem;
}

.carousel-controls button {
  background-color: #83A14B;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background-color: #D4563D;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background-color: #b8422b;
}

/* ===== FOOTER ===== */
footer {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* ===== MEDIA QUERIES ===== */

/* Tablets */
@media (min-width: 600px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .btn-primary {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
  .hero {
    padding: 2rem 1rem 1rem;
  }
}


/* Desktop */
@media (min-width: 1024px) {
    main {
        padding: 4rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.6rem;
    }

    footer {
        font-size: 1rem;
    }
}
/* small Mobile Phones */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

