/* ==============================
   HPS - Cookie-Richtlinie Styles
   ============================== */

body {
  font-family: Helvetica, Arial, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

/* === Hauptüberschrift === */
.cookie-heading {
  font-size: 3.2em;
  font-weight: bold;
  color: #de800e;
  text-align: left;
  margin: 10vw 5vw 0vw 15vw; /* oben, rechts, unten, links */
}

/* === Unterüberschriften === */
.cookie-subheading {
  font-size: 2em;
  font-weight: bold;
  text-align: left;
  color: #555;
  margin: 2vw 5vw 1vw 15vw;
}

/* === Allgemeine Sektionen === */
.cookie-section {
  margin: 1.5vw 5vw 2.5vw 15vw;
  max-width: 70vw;
}

/* H3 in Sektionen */
.cookie-section > h3 {
  margin: 0 0 0.8vw 0;
  font-size: 1.6em;
  color: #555;
}

/* Textabsätze */
.cookie-text {
  font-size: 1.1em;
  color: #333;
  line-height: 1.8;
  margin: 0;
}

/* === Listen === */
.cookie-list {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0.8em 0 0 0;
}

.cookie-list li {
  margin-bottom: 0.6em;
  line-height: 1.7;
}

/* === Links === */
.cookie-section a:not(:where([data-link])) {
  color: #de800e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.cookie-section a:not(:where([data-link])):hover {
  color: #af6005;
  text-decoration: underline;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .cookie-heading {
    font-size: 2.4em;
    margin: 14vw 5vw 2vw 8vw;
  }

  .cookie-subheading {
    font-size: 1.5em;
    margin-left: 8vw;
  }

  .cookie-section {
    margin-left: 8vw;
    margin-right: 5vw;
  }
}

/* === Cookie Verwaltung Box === */
.cookie-manage-box {
  background: #f9f9f9;
  border: 0.1em solid #ddd;
  border-radius: 0.8em;
  padding: 1.5em 2em;
  margin: 1.5em 5vw 2.5em 0vw;
  max-width: 45vw;
}

.cookie-manage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.8em 0;
  font-size: 1.05em;
  color: #333;
}

.cookie-manage-row span {
  font-weight: 500;
}

.cookie-manage-row .always-active {
  color: #4caf50;
  font-weight: 600;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 2.8em;
  height: 1.4em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 1em;
  transition: background-color 0.3s ease;
}

.slider::before {
  content: "";
  position: absolute;
  height: 1em; width: 1em;
  left: 0.2em; bottom: 0.2em;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider::before {
  transform: translateX(1.4em);
}

/* Buttons */
.cookie-manage-box .cookie-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1em;
  margin-top: 1.5em;
}

.cookie-manage-box button {
  padding: 0.6em 1.3em;
  border: none;
  border-radius: 0.5em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#manage-save {
  background: #4caf50;
  color: white;
}

#manage-save:hover {
  background: #43a047;
}

#manage-reset {
  background: #ccc;
  color: #000;
}

#manage-reset:hover {
  background: #b3b3b3;
}

.cookie-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1em;
  padding: 1.2em 2em;
  border-radius: 0.8em;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  text-align: center;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-popup.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-popup p {
  margin: 0;
  line-height: 1.4;
}

/* Button wie ein normaler Link aussehen lassen */
.cookie-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;

  color: #de800e;
  font-size: inherit;
  font-family: inherit;
  font-weight: 500;

  cursor: pointer;
  text-decoration: none;

  display: inline-block;       /* wichtig für scale */
  transition: 
      color 0.25s ease,
      text-decoration 0.25s ease,
      transform 0.15s ease;    /* smooth scaling */
}

/* Hover → Farbe + leicht größer */
.cookie-link-btn:hover {
  color: #af6005;
  transform: scale(1.06);      /* vorher 1.045 – jetzt sichtbarer */
}

/* Klick → leicht kleiner für „Tap-Feedback“ */
.cookie-link-btn:active {
  transform: scale(0.95);
}


/* ==========================================================
   MOBILE – Cookie-Richtlinie (max-width: 600px)
   ========================================================== */
@media (max-width: 600px) {

  body {
    font-size: 4vw;
    line-height: 1.6;
  }

  /* Hauptüberschrift */
  .cookie-heading {
    font-size: 7vw;
    margin: 12vw 5vw 4vw 5vw !important;
    text-align: left;
  }

  /* Unterüberschrift */
  .cookie-subheading {
    font-size: 5.5vw;
    margin: 6vw 5vw 3vw 5vw !important;
    text-align: left;
  }

  /* Sektionen */
  .cookie-section {
    margin: 4vw 5vw 8vw 5vw !important;
    max-width: 100% !important;
  }

  /* H3 */
  .cookie-section > h3 {
    font-size: 5vw;
    margin-bottom: 3vw;
  }

  /* Text */
  .cookie-text {
    font-size: 4vw;
    line-height: 1.7;
  }

  /* Listen */
  .cookie-list {
    padding-left: 1.4em;
    margin: 4vw 0;
  }

  .cookie-list li {
    font-size: 4vw;
    margin-bottom: 3vw;
  }

  /* Links */
  .cookie-section a:not(:where([data-link])) {
    font-size: 4vw;
  }

  /* ============================
     Cookie-Verwaltung Box
     ============================ */

  .cookie-manage-box {
    max-width: 90vw;
    width: 90%;
    margin: 6vw auto 10vw auto !important;
    padding: 4vw 5vw;
    border-radius: 3vw;
    font-size: 4vw;
  }

  .cookie-manage-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 4vw;
    margin: 4vw 0;
  }

  .cookie-manage-row span {
    font-size: 4vw;
  }

  /* Switch-Größe mobil */
  .switch {
    width: 12vw;
    height: 6vw;
    position: relative;
  }

    /* Hinterer Balken */
  .slider {
    border-radius: 6vw;
  }


  /* Runder Button */
  .slider::before {
    content: "";
    position: absolute;
    width: 4.8vw;
    height: 4.8vw;

    top: 50%;
    left: 0.6vw;

    /* EXAKT mittig ausrichten */
    transform: translateY(-50%);

    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
  }

  /* Wenn aktiviert */
  input:checked + .slider {
    background-color: #4caf50;
  }

  input:checked + .slider::before {

    /* Punkt nach rechts schieben – perfekt mittig */
    transform: translate(5.6vw, -50%);
  }

  /* Buttons */
  .cookie-manage-box .cookie-buttons {
    flex-direction: column;
    gap: 3vw;
    margin-top: 6vw;
  }

  .cookie-manage-box button {
    width: 100%;
    padding: 3vw 0;
    font-size: 4vw;
    border-radius: 2vw;
  }

  /* Popup */
  .cookie-popup {
    font-size: 4vw;
    padding: 4vw 6vw;
    border-radius: 3vw;
  }
}
