/* =============================================
   REIFEN CHRIS — cookies.css
   DSGVO-konformes Cookie-Banner
   ============================================= */

/* ---- OVERLAY ---- */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.cookie-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ---- BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #111;
  border-top: 2px solid var(--red, #d42b23);
  padding: 2rem 0;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
}
.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: center;
}

/* ---- TEXT ---- */
.cookie-text {}
.cookie-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4f2ee;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cookie-title .cookie-icon { font-size: 1.2rem; }

.cookie-desc {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.7;
  max-width: 680px;
}
.cookie-desc a {
  color: #d42b23;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-desc a:hover { color: #f4f2ee; }

/* ---- TOGGLES ---- */
.cookie-options {
  grid-column: 1 / -1;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid #222;
  border-radius: 6px;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 200px;
}

.cookie-option-info { flex: 1; }
.cookie-option-name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4f2ee;
  margin-bottom: 0.2rem;
}
.cookie-option-desc {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-slider {
  display: block;
  width: 44px;
  height: 24px;
  background: #2a2a2a;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #333;
  position: relative;
}
.cookie-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #555;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #d42b23;
  border-color: #d42b23;
}
.cookie-toggle input:checked + .cookie-toggle-slider::after {
  transform: translateX(20px);
  background: #fff;
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- BUTTONS ---- */
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  min-width: 180px;
}

.cookie-btn--accept {
  background: #d42b23;
  color: #fff;
  border-color: #d42b23;
}
.cookie-btn--accept:hover {
  background: #b02020;
  border-color: #b02020;
  transform: translateY(-1px);
}

.cookie-btn--custom {
  background: transparent;
  color: #f4f2ee;
  border-color: #2a2a2a;
}
.cookie-btn--custom:hover {
  border-color: #d42b23;
  color: #d42b23;
}

.cookie-btn--decline {
  background: transparent;
  color: #555;
  border-color: transparent;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  min-width: auto;
}
.cookie-btn--decline:hover { color: #f4f2ee; }

/* ---- COOKIE SETTINGS LINK (Footer) ---- */
.cookie-settings-link {
  cursor: pointer;
  color: #555;
  font-size: 0.85rem;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-settings-link:hover { color: #d42b23; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .cookie-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cookie-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cookie-btn { min-width: auto; flex: 1; }
}

@media (max-width: 600px) {
  .cookie-inner { padding: 0 1.25rem; }
  .cookie-options { gap: 1rem; }
  .cookie-option { min-width: 100%; }
  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; }
}
