/* ============================================================
   COOKIE-CONSENT-BANNER – FITMITSUSE
   DSGVO-konform: blockiert alle nicht-essentiellen Skripte
   bis zur ausdrücklichen Zustimmung
   ============================================================ */

/* Overlay */
#cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9998;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
#cc-overlay.cc-visible {
  opacity: 1;
  pointer-events: all;
}

/* Banner */
#cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid #617701;
  box-shadow: 0 -4px 32px rgba(0,0,0,.12);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 60px);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  font-family: 'Inter', system-ui, sans-serif;
}
#cc-banner.cc-visible {
  transform: translateY(0);
}

.cc-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}

.cc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #F0F2DC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.cc-icon svg {
  width: 20px;
  height: 20px;
  color: #617701;
}

.cc-text {
  flex: 1;
  min-width: 240px;
}
.cc-text h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #141408;
  margin: 0 0 6px;
}
.cc-text p {
  font-size: .84rem;
  color: #484A35;
  line-height: 1.7;
  margin: 0;
}
.cc-text a {
  color: #617701;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-text a:hover {
  opacity: .75;
}

.cc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-top: 4px;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: .83rem;
  letter-spacing: .01em;
  border-radius: 100px;
  padding: 10px 22px;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.cc-btn-accept {
  background: #617701;
  color: #fff;
  box-shadow: 0 2px 10px rgba(97,119,1,.28);
}
.cc-btn-accept:hover {
  background: #4d6001;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(97,119,1,.38);
}
.cc-btn-essential {
  background: transparent;
  color: #484A35;
  border: 1.5px solid #BEC598;
}
.cc-btn-essential:hover {
  border-color: #617701;
  color: #617701;
}

@media (max-width: 600px) {
  .cc-inner {
    flex-direction: column;
  }
  .cc-actions {
    width: 100%;
  }
  .cc-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================================
   KOMBINIERTER FAB (Cookie + Barrierefreiheit)
   Ersetzt die beiden separaten schwebenden Icons
   ============================================================ */

#fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Aufklappbare Items */
#fab-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}

#fab-wrap.fab-open #fab-items {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}

/* Einzelne FAB-Items (beschriftete Pill-Buttons) */
.fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #617701;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 18px 10px 12px;
  cursor: pointer;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(97,119,1,.38);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.fab-item:hover,
.fab-item:focus-visible {
  background: #4d6001;
  transform: translateX(-3px);
  box-shadow: 0 4px 20px rgba(97,119,1,.5);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.fab-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Cookie-Item: erst nach Consent-Entscheidung sichtbar */
#fab-cookie {
  display: none;
}
#fab-cookie.fab-visible {
  display: flex;
}

/* Haupt-Toggle-Button */
#fab-toggle {
  width: 52px;
  height: 52px;
  background: #617701;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(97,119,1,.45);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  flex-shrink: 0;
}
#fab-toggle:hover,
#fab-toggle:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 4px 24px rgba(97,119,1,.6);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
#fab-toggle svg {
  width: 24px;
  height: 24px;
  color: #fff;
  pointer-events: none;
  transition: opacity .18s ease;
}
#fab-wrap.fab-open #fab-toggle {
  background: #484A35;
}
#fab-icon-open  { display: block; }
#fab-icon-close { display: none;  }
#fab-wrap.fab-open #fab-icon-open  { display: none;  }
#fab-wrap.fab-open #fab-icon-close { display: block; }

@media (max-width: 480px) {
  #fab-wrap {
    bottom: 16px;
    right: 16px;
  }
}
