﻿/* cookies.css */

/* Hintergrund-Overlay */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none; /* erst sichtbar bei Bedarf */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Pop-up-Inhalt */
.cookie-content {
  /*background: #2a1b10;*/
  /*color: #f5e1c8;*/
  background: white;
  color: red;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  text-align: left;
  font-family: "Segoe UI", sans-serif;
}

.cookie-content h2 {
  color: #e0b089;
  margin-top: 0;
}

.cookie-content p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-content a {
  color: #e0b089;
  text-decoration: underline;
}

/* Buttons */
.cookie-buttons {
  text-align: right;
  margin-top: 1.5rem;
}

.cookie-buttons button {
  background: #e0b089;
  border: none;
  color: #2a1b10;
  padding: 0.6rem 1.2rem;
  margin-left: 0.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.cookie-buttons button:hover {
  background: #f1c89b;
}

/* Checkboxen */
#cookie-form label {
  display: block;
  margin-top: 0.5rem;
}
/* cookies.css – Banner unten rechts */

/* Container */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  /*background: #2a1b10;*/
  background: white;
  color: #f5e1c8;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  font-family: "Segoe UI", sans-serif;
  display: none;
  flex-direction: column;
  z-index: 9999;
}

/* Überschrift */
.cookie-banner h2 {
  color: #e0b089;
  font-size: 1.2rem;
  margin-top: 0;
}

/* Text */
.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Checkboxen */
.cookie-banner label {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* Buttons */
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 1rem;
}

.cookie-buttons button {
  background: #e0b089;
  border: none;
  color: #2a1b10;
  padding: 0.5rem 0.8rem;
  margin: 0.2rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.85rem;
}

.cookie-buttons button:hover {
  background: #f1c89b;
}

/* Responsives Verhalten */
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
  }
}
/* Animationseffekt */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sichtbar mit Animation */
.cookie-banner.show {
  display: flex;
  animation: slideIn 0.6s ease-out forwards;
}

/* ⚙️ Zahnrad-Button */
.cookie-settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #2a1b10;
  color: #f5e1c8;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  z-index: 9998;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out 1.5s forwards;
}

.cookie-settings-btn:hover {
  background: #3a281a;
  transform: rotate(30deg);
}

/* Tooltip-Blase */
.cookie-settings-btn .tooltip {
  position: absolute;
  bottom: 55px;
  left: 110%;
  transform: translateX(-50%);
  background: #2a1b10;
  color: #f5e1c8;
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Pfeil unter Tooltip */
.cookie-settings-btn .tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #2a1b10 transparent transparent transparent;
}

/* Tooltip beim Hover einblenden */
.cookie-settings-btn:hover .tooltip {
  opacity: 1;
}

/* Sanftes Einblenden */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

