/* === Cookie Banner Grundlayout === */
#cookie-banner {
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #0c7500;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 10px;
  padding: 16px 20px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #a5a5a5;
  box-sizing: border-box;
  width: 95%;
  max-width: 1200px;
}


#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(2px);
  z-index: 9998; /* knapp unter dem Banner */
  opacity: 0;
  pointer-events: none;
}


.cookie-banner-image {
  width: 260px;
  flex: 0 0 260px;   /* Bild bekommt feste Breite und schrumpft nicht weg */
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.cookie-banner-image svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Inhalt */
.cookie-banner-content {
  flex: 1;           /* nimmt den restlichen Platz ein */
  width: auto;       /* nicht mehr 100% */
  max-width: none;   /* Begrenzung weg */
  margin: 0;         /* zentrierung raus */
}

/* Headline */
.cookie-banner-headline {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
}

/* Text */
.cookie-banner-text {
  color: #a5a5a5;
  margin: 0;
  line-height: 1.5;
}

/* Button-Row */
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;      /* ✅ NEU: Buttons nebeneinander */
  align-items: center;      /* statt stretch */
  gap: 12px;                /* Abstand zwischen Buttons */
  margin-top: 18px;
}

/* Basis für Buttons */
.cookie-btn {
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  margin: 0rem auto;
}

/* Primary: Allow cookies – grün und prominent */
.cookie-accept {
  background: #0c7500;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  font: 1em sans-serif;
}

.cookie-accept:hover {
  background: #22b55f;
}

/* Textblock */
.cookie-banner-content-text {
  flex: 1;               /* nimmt soviel Platz wie möglich ein */
  min-width: 200px;
}

/* Buttons + Links rechts */
.cookie-banner-content-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
  min-width: 220px;
}

/* Dezent: Continue without cookies */
.cookie-deny {
  background: transparent;
  color: #0c7500;
  padding-inline: 0;
  border-radius: 0;
  box-shadow: none;
}

/* kleines Check-Icon im Allow-Button */
.cookie-btn-icon {
  font-size: 16px;
}

/* Linkszeile unten: Impressum / Privacy */
/* rechtsbündig unter die Buttons */
.cookie-banner-links {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;  
  margin-top: 14px;
  font-size: 12px;
  color: #555;
}

.cookie-banner-links a {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-links-separator {
  margin: 0 6px;
}

/* Toggle-Button (floating Cookie-Icon) */
#cookie-toggle {
  position: fixed;
  bottom: 20px;
  left: 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #000000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  color: #fff;
  text-align: center;
  line-height: 44px;
}

/* Cookies verschwinden sanft, wenn Eduard sie frisst */
.cookie.eaten {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

/* === Responsive === */
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;  /* wieder untereinander */
    gap: 16px;
  }

  .cookie-banner-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .cookie-touch-controls {
    flex-direction: row;   /* horizontal ist „leichter“ auf Handy */
    justify-content: center;
  }

  .cookie-banner-headline {
    font-size: 1.2rem;
  }

  .cookie-banner-text {
    font-size: 0.9rem;
  }

  .cookie-btn {
    padding: 8px 16px;
  }

  .cookie-banner-content-actions {
    width: 100%;
    align-items: flex-start;
  }
}

/* === Touch Controls für Cookie-Game === */
/* ✅ WICHTIG: von #cookie-touch-controls auf .cookie-touch-controls geändert,
   damit es zu deinem HTML <div class="cookie-touch-controls"> passt */
.cookie-touch-controls {
  display: flex;
  flex-direction: column;       /* Desktop: Buttons untereinander */
  justify-content: center;      /* zentriert innerhalb des Banners */
  align-items: center;
  gap: 0.5rem;                  /* Abstand zwischen Buttons */
  margin-top: 0.75rem;
  user-select: none;
}

.touch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #a5a5a5;
  border-radius: 5px;
  width: 2rem;
  height: 2rem;
  box-shadow: none;
  background: #000000;
  font-size: 1rem;
  line-height: 1;
  touch-action: none;
  margin: 0;
  color: #a5a5a5;
}

.touch-btn:hover {
  border-color: #0c7500;
  color: #0c7500;
}

@media screen and (max-width: 600px) {
  .cookie-touch-controls {
    flex-direction: row;    /* Handy: Buttons nebeneinander */

  }
  
}
