/* =============================== */
/* RS Cookie Banner - Komplett CSS */
/* =============================== */

/* =============================== */
/* Abschnitt: Grundstruktur Banner - alle Ansichten */
/* =============================== */
#rs-cookie-banner {
  position: fixed;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  max-width: 95%;
  padding: 20px 30px 0 30px;
  border-radius: 10px;
  color: #fff;
  z-index: 99999;
  text-align: center;
  font-family: sans-serif;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

/* =============================== */
/* Abschnitt: Headline - alle Ansichten */
/* =============================== */
#rs-cookie-banner .rs-cookie-headline {
  font-size: 2.3vw; /* Desktop-Grundwert */
  font-weight: normal;
  color: #fff;
  margin-bottom: 10px;
}

/* =============================== */
/* Abschnitt: Sprachbuttons - alle Ansichten */
/* =============================== */
#rs-cookie-banner .rs-cookie-languages {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

#rs-cookie-banner .rs-cookie-languages button {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 12px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#rs-cookie-banner .rs-cookie-languages button.active,
#rs-cookie-banner .rs-cookie-languages button:hover {
  background-color: #fff;
  color: #000;
}

/* =============================== */
/* Abschnitt: Textbox - alle Ansichten */
/* =============================== */
#rs-cookie-banner .rs-cookie-text {
  font-size: 14px;  /* Desktop-Grundwert */
  line-height: 1.3;
  color: #000;
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
  max-height: 6em;
  overflow-y: auto;
  margin-bottom: 18px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

/* =============================== */
/* Abschnitt: Buttons Container - alle Ansichten */
/* =============================== */
#rs-cookie-banner .rs-cookie-buttons {
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#rs-cookie-banner .rs-cookie-buttons button {
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  font-weight: normal;
  cursor: pointer;
  background-color: #98e700; /* Akzeptieren / Ablehnen grün */
  color: #000;
  transition: background-color 0.3s ease;
}

#rs-cookie-banner .rs-cookie-buttons button:hover {
  background-color: #85c200;
}

/* =============================== */
/* Abschnitt: Footer - alle Ansichten */
/* =============================== */
#rs-cookie-banner .rs-cookie-footer {
  font-size: 11px; /* Desktop-Grundwert */
  opacity: 0.7;
  color: #fff;
  text-align: center;
  margin-top: auto;
  padding-bottom: 0;
}

/* =============================== */
/* Abschnitt: Tablet Anpassungen (768px - 1023px) */
/* =============================== */
@media (min-width: 768px) and (max-width: 1023px) {
  #rs-cookie-banner .rs-cookie-headline {
    font-size: 5vw;
  }

  #rs-cookie-banner .rs-cookie-text {
    font-size: 14px;
    line-height: 1.3;
    border-radius: 8px;
  }

  #rs-cookie-banner .rs-cookie-languages button {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  #rs-cookie-banner .rs-cookie-buttons button {
    font-size: 16px;
  }

  #rs-cookie-banner .rs-cookie-footer {
    font-size: 10px;
  }
}

/* =============================== */
/* Abschnitt: Mobile Anpassungen (max 767px) */
/* =============================== */
@media (max-width: 767px) {
  #rs-cookie-banner {
    max-width: 90%;
    padding: 15px 20px 0 20px;
  }

  #rs-cookie-banner .rs-cookie-headline {
    font-size: 7vw;
  }

  #rs-cookie-banner .rs-cookie-languages button {
    width: 24px;
    height: 24px;
    font-size: 7px;
  }

  #rs-cookie-banner .rs-cookie-text {
    font-size: 11px; /* Mobile angepasst */
    line-height: 1.2;
    border-radius: 4px;
  }

  #rs-cookie-banner .rs-cookie-buttons button {
    font-size: 14px;
    padding: 6px 16px;
  }

  #rs-cookie-banner .rs-cookie-footer {
    font-size: 9px; /* Footer Schriftgröße auf Handy */
  }
}
