/*
 * ╔══════════════════════════════════════════════════════════════════════════════════════════╗
 * ║                                                                                          ║
 * ║  ████████╗██╗  ██╗███████╗████████╗ █████╗ ██████╗ ██╗   ██╗ ██████╗                   ║
 * ║     ██╔══╝██║  ██║██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██║   ██║██╔════╝                   ║
 * ║     ██║   ███████║█████╗     ██║   ███████║██████╔╝██║   ██║██║  ███╗                  ║
 * ║     ██║   ██╔══██║██╔══╝    ██║   ██╔══██║██╔══██╗██║   ██║██║   ██║                   ║
 * ║     ██║   ██║  ██║███████╗  ██║   ██║  ██║██████╔╝╚██████╔╝╚██████╔╝                   ║
 * ║     ╚═╝   ╚═╝  ╚═╝╚══════╝  ╚═╝   ╚═╝  ╚═╝╚═════╝  ╚═════╝  ╚═════╝                    ║
 * ║                                                                                          ║
 * ║                                      🐛  v1.8.23                                         ║
 * ║                                                                                          ║
 * ║                        CSS crafted with love, one bug at a time.                         ║
 * ║                                                                                           ║
 * ║                                                                                          ║
 * ╠══════════════════════════════════════════════════════════════════════════════════════════╣
 * ║                                                                                          ║
 * ║  © 2025 THETABUG WHITEHAT HACKER HARTHA — All rights reserved.                          ║
 * ║                                                                                          ║
 * ║  This stylesheet and its contents are the intellectual property of                       ║
 * ║  THETABUG WHITEHAT HACKER HARTHA. Unauthorized reproduction, distribution,              ║
 * ║  or modification of this code, in whole or in part, is strictly prohibited               ║
 * ║  without prior written permission from the author.                                       ║
 * ║                                                                                          ║
 * ║  Permitted use: Personal, educational, and authorized security research only.            ║
 * ║                                                                                          ║
 * ╚══════════════════════════════════════════════════════════════════════════════════════════╝
 *
 * Author:  THETABUG WHITEHAT HACKER HARTHA
 * Version: 1.8.23
 * License: All Rights Reserved
 */

:root {
  --cookie-farbe-wald-dunkel: #1a3a2a;
  --cookie-farbe-wald-mittel: #2d5a3d;
  --cookie-farbe-gold: #c8961a;
  --cookie-farbe-gold-hell: #e8b830;
  --cookie-flaeche: #ffffff;
  --cookie-flaeche-weich: #f7f3ea;
  --cookie-farbe-text: #223127;
  --cookie-farbe-text-dezent: #667466;
  --cookie-rahmenlinie: #ddd6c5;
  --cookie-schatten: 0 18px 50px rgba(0, 0, 0, 0.22);
  --cookie-radius: 14px;
  --cookie-z-index-banner: 9998;
  --cookie-z-index-dialog: 10000;
  --cookie-z-index-einstellungsbutton: 9997;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


.cookie-consent-hidden {
  display: none !important;
}

/* B-B-BBB-BBB-Bernd Banner */
.cookie-hinweisbanner {
  position: fixed;
  right: 18px;
  bottom: 90px;
  left: auto;
  transform: none;
  width: min(420px, calc(100% - 36px));
  max-width: calc(100% - 36px);
  background: rgba(17, 26, 20, 0.96);
  color: #fff;
  border: 1px solid rgba(232, 184, 48, 0.24);
  border-radius: var(--cookie-radius);
  box-shadow: var(--cookie-schatten);
  z-index: var(--cookie-z-index-banner);
  overflow: hidden;
  animation: cookieFadeUp 0.22s ease;
}

.cookie-hinweisbanner-innen {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 1rem;
}

.cookie-hinweisbanner-titel {
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  line-height: 1.2;
  margin: 0 2.1rem 0.45rem 0;
  color: #fff;
}

.cookie-hinweisbanner-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  font-size: 0.9rem;
}

.cookie-hinweisbanner-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.cookie-hinweisbanner-links a,
.cookie-hinweisbanner-links button {
  background: none;
  border: none;
  color: var(--cookie-farbe-gold-hell);
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
}

.cookie-hinweisbanner-links a:hover,
.cookie-hinweisbanner-links button:hover {
  text-decoration: underline;
}

.cookie-hinweisbanner-aktionen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.cookie-schaltflaeche {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 6px;
  padding: 0.9rem 1rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-schaltflaeche-primaer {
  background: var(--cookie-farbe-gold);
  color: #111a14;
}

.cookie-schaltflaeche-primaer:hover {
  background: var(--cookie-farbe-gold-hell);
}

.cookie-schaltflaeche-sekundaer {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-schaltflaeche-sekundaer:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cookie-schaltflaeche-dezent {
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cookie-schaltflaeche-dezent:hover {
  border-color: var(--cookie-farbe-gold);
  color: var(--cookie-farbe-gold-hell);
}

/* Floating B-B-B-BBBB-BERND-Button */
.cookie-einstellungen-floating-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--cookie-z-index-einstellungsbutton);
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--cookie-farbe-wald-dunkel);
  color: #fff;
  border: 1px solid rgba(232, 184, 48, 0.38);
  border-radius: 999px;
  padding: 0;
  font-family: "Source Sans 3", sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cookie-einstellungen-floating-button:hover {
  background: var(--cookie-farbe-wald-mittel);
  border-color: rgba(232, 184, 48, 0.62);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.cookie-einstellungen-floating-button-symbol {
  font-size: 1.55rem;
  line-height: 1;
}

.cookie-einstellungen-floating-button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cookie-hinweisbanner-minimieren {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-hinweisbanner-minimieren:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cookie-farbe-gold);
  color: var(--cookie-farbe-gold-hell);
}

.cookie-hinweisbanner-minimiert {
  display: none !important;
}

.cookie-hinweisbanner .cookie-schaltflaeche {
  padding: 0.72rem 0.82rem;
  font-size: 0.8rem;
}


/* Modal */
.cookie-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.44);
  z-index: var(--cookie-z-index-dialog);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: cookieFade 0.2s ease;
}

.cookie-dialog {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--cookie-flaeche);
  color: var(--cookie-farbe-text);
  border-radius: 16px;
  box-shadow: var(--cookie-schatten);
  border: 1px solid var(--cookie-rahmenlinie);
  animation: cookieFadeUp 0.24s ease;
}

.cookie-dialog-kopfbereich {
  position: relative;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--cookie-rahmenlinie);
}

.cookie-dialog-titel {
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--cookie-farbe-wald-dunkel);
  margin: 0 0 0.45rem;
}

.cookie-dialog-text {
  margin: 0;
  color: var(--cookie-farbe-text-dezent);
  line-height: 1.7;
}

.cookie-dialog-schliessen {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cookie-rahmenlinie);
  background: #fff;
  color: var(--cookie-farbe-wald-dunkel);
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-dialog-schliessen:hover {
  background: var(--cookie-flaeche-weich);
}

.cookie-dialog-inhalt {
  padding: 1rem 1.5rem 1.4rem;
}

.cookie-kategorie {
  border: 1px solid var(--cookie-rahmenlinie);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.cookie-kategorie:last-child {
  margin-bottom: 0;
}

.cookie-kategorie-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-kategorie-titel {
  font-weight: 700;
  color: var(--cookie-farbe-wald-dunkel);
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.cookie-kategorie-beschreibung {
  color: var(--cookie-farbe-text-dezent);
  font-size: 0.95rem;
  line-height: 1.65;
}

.cookie-schalter-rahmen {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.cookie-schalter-beschriftung {
  font-size: 0.84rem;
  color: var(--cookie-farbe-text-dezent);
  font-weight: 700;
}

.cookie-schalter {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-block;
}

.cookie-schalter input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-schieberegler {
  position: absolute;
  inset: 0;
  background: #c9c1b2;
  border-radius: 999px;
  transition: 0.2s ease;
}

.cookie-schieberegler::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.cookie-schalter input:checked + .cookie-schieberegler {
  background: var(--cookie-farbe-wald-mittel);
}

.cookie-schalter input:checked + .cookie-schieberegler::before {
  transform: translateX(24px);
}

.cookie-schalter input:disabled + .cookie-schieberegler {
  background: var(--cookie-farbe-gold);
  opacity: 0.95;
}

.cookie-dialog-fussbereich {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 1.5rem 1.4rem;
  border-top: 1px solid var(--cookie-rahmenlinie);
}

.cookie-dialog-aktionen {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@keyframes cookieFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cookieFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .cookie-hinweisbanner-innen {
    grid-template-columns: 1fr;
  }

  .cookie-dialog-fussbereich {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-dialog-aktionen {
    width: 100%;
    flex-direction: column;
  }

  .cookie-schaltflaeche {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .cookie-hinweisbanner {
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
    bottom: 10px;
  }

  .cookie-hinweisbanner-innen,
  .cookie-dialog-kopfbereich,
  .cookie-dialog-inhalt,
  .cookie-dialog-fussbereich {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cookie-kategorie-kopf {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-einstellungen-floating-button {
    right: 12px;
    bottom: 12px;
    padding: 0.78rem 0.9rem;
    max-width: calc(100% - 24px);
  }
}

/* =========================================
   V74 Cookie-Icon-Kompakt
   Nur UI: Consent-Logik, Texte, Kategorien und Speicherverhalten bleiben unverändert.
========================================= */

@media (max-width: 560px) {
  .cookie-hinweisbanner {
    right: 10px;
    bottom: 82px;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .cookie-hinweisbanner-innen {
    padding: 0.95rem;
  }

  .cookie-einstellungen-floating-button {
    right: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
  }

  .cookie-einstellungen-floating-button-symbol {
    font-size: 1.45rem;
  }
}
