body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9; /* Helles Grau für den Hintergrund */
    color: #333; /* Dunkles Grau für den Text */
    margin: 0;
    padding: 20px;
}

header {
    position: relative;

    /* nur das Bild, kein Verlauf mehr */
    background: url("faonsa-Bild_heater2_passat.png") center 30% no-repeat;
    background-size: cover;

    /* nimmt genau die Höhe des sichtbaren Bildschirms ein */
    height: 200vh;

    color: #fff;
    padding: 40px 5vw 20px 5vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* gleichmäßige, leichte Abdunklung über dem ganzen Bild */
header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);  /* Helligkeit: 0.2 heller, 0.4 dunkler */
    z-index: 0;
}

/* alles im Header (Text, Logo) über dem Overlay */
header > * {
    position: relative;
    z-index: 1;
}

h2 {
    color: #4c6b3b; /* Olivgrün für die Überschriften */
    margin-top: 20px;
}

section {
    border: 1px solid #ccc; /* Helles Grau für die Rahmen */
    border-radius: 5px; /* Abgerundete Ecken */
    padding: 15px;
    margin-top: 20px;
    background-color: white; /* Weißer Hintergrund für die Abschnitte */
}

button {
    background-color: #4c6b3b; /* Olivgrün für die Buttons */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
}

button:disabled {
    background-color: #ccc; /* Graue Farbe für inaktive Buttons */
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #3a4f2b; /* Dunkleres Olivgrün beim Hover */
}

footer {
    text-align: center;
    margin-top: 20px;
}

/* Logo im Hero-Bereich nach unten */
header {
    position: relative; /* WICHTIG für absolute Positionierung */
}

.logo-container {
    position: absolute;
    bottom: 5%;      /* → logo tiefer = Wert kleiner (z. B. 3% oder 1%) */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: none;
}

.logo {
    width: 160px;    /* feste Größe damit es klar definiert ist */
    height: auto;
}

/* Spezielle Anpassung für kleinere Bildschirme */
@media (max-width: 480px) {
    .logo {
        max-width: 80%;  /* Auf sehr kleinen Bildschirmen 80% der Breite */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .logo {
        max-width: 60%;  /* Auf mittleren Bildschirmen 60% der Breite */
    }
}

@media (min-width: 769px) {
    .logo {
        max-width: 40%;  /* Auf größeren Bildschirmen 40% der Breite */
    }
}

/* Neuer CSS-Code für das Cookie-Banner und Modal */
#cookieConsent {
    background-color: rgba(20, 20, 20, 0.8);
    min-height: auto;
    font-size: 18px;
    color: #ccc;
    line-height: 1.5;
    padding: 20px;
    z-index: 9999;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#cookieConsent p { margin-bottom: 10px; text-align: left; width: 100%; }
#cookieConsent a { color: #4B8EE7; }

.button-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

#acceptCookies, #declineCookies, #settingsCookies {
    background-color: #4B8EE7;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    z-index: 10000;
    max-width: 95%;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-content { position: relative; width: 90%; }
.close { position: absolute; top: 13px; right: 13px; font-size: 24px; cursor: pointer; }

@media (max-width: 768px) {
    .modal { max-width: calc(100% - 40px); width: calc(100% - 40px); }
    .modal-content { width: calc(100% - 40px); }
}
/* Logo bleibt zentriert */
header .logo-container {
  width: 100%;
  text-align: center;
  align-self: center; /* hebt flex-start nur fürs Logo auf */
}
.intro-text {
  font-size: 1rem;
  color: #222;
  background-color: #f7f7f7;
  border-left: 4px solid #4c6b3b;
  padding: 12px 18px;
  margin: 5px 0 20px 0; /* zentriert + etwas mehr unten */
  line-height: 1.6;
  width: 85%;           /* etwas breiter als vorher */
  max-width: 960px;    /* aber nicht zu breit auf großen Bildschirmen */
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  header {
    height: 75vh;              /* auf Handy etwas kleiner, damit du mehr siehst */
    background-position: center 35%;
    padding: 20px 4vw 10px 4vw;
  }

  .logo-container {
    bottom: 10%;               /* Logo etwas höher, damit es nicht hinter Bannern hängt */
  }

  #cookieConsent {
    font-size: 14px;           /* kleineres Cookie-Banner */
    padding: 12px;
  }
}