/* ============================================================
   ELANI LOGOPÄDIE — consent.css
   Cookie-Banner ohne Dark Patterns:
   - Alle Schaltflächen gleichwertig sichtbar
   - Kein vorausgefülltes Häkchen
   - Ablehnen-Button gleich prominent wie Akzeptieren
   ============================================================ */

/* ── Banner ──────────────────────────────────────────── */
#consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99999;
  background: #fff;
  border-top: 3px solid #426A5A;
  box-shadow: 0 -4px 32px rgba(30,51,40,.18);
  transform: translateY(110%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
#consent-banner.show { transform: translateY(0); }

.cb-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2rem);
}

/* ── Text ──────────────────────────────────────────────── */
.cb-text { margin-bottom: 1.1rem; }
.cb-text strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #2e4d3f;
  margin-bottom: .5rem;
}
.cb-text p {
  font-size: .87rem;
  color: #3d5a4e;
  line-height: 1.6;
  margin-bottom: .3rem;
}
.cb-text a { color: #426A5A; text-decoration: underline; }
.cb-text a:hover { color: #EF6F6C; }

/* ── Einstellungen-Panel ───────────────────────────────── */
#consent-settings {
  border: 1.5px solid rgba(66,106,90,.15);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.1rem;
  background: #FDF8F2;
}
.cb-category {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(66,106,90,.1);
}
.cb-category:last-child { border-bottom: none; padding-bottom: 0; }
.cb-cat-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.cb-cat-hd strong { font-size: .9rem; color: #2e4d3f; }
.cb-cat-desc { font-size: .8rem; color: #5a7a6e; margin-top: .25rem; line-height: 1.5; }
.cb-always {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  background: #daeede;
  color: #426A5A;
  border-radius: 50px;
  padding: .18rem .6rem;
  margin-left: .5rem;
  white-space: nowrap;
}

/* Toggle-Switch (keine vorausgefüllten Häkchen) */
.cb-toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 24px;
  cursor: pointer;
  margin-top: .15rem;
}
.cb-toggle input {
  opacity: 0; width: 0; height: 0; position: absolute;
}
.cb-slider {
  position: absolute; inset: 0;
  background: #c8d8d2;
  border-radius: 24px;
  transition: background .25s;
}
.cb-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.cb-toggle input:checked + .cb-slider { background: #426A5A; }
.cb-toggle input:checked + .cb-slider::before { transform: translateX(20px); }
.cb-toggle input:focus-visible + .cb-slider {
  outline: 2px solid #426A5A;
  outline-offset: 2px;
}

/* ── Schaltflächen — KEIN Dark Pattern ────────────────────
   Beide Buttons gleichwertig sichtbar.
   Primär-Button hebt sich durch Farbe ab (nicht durch Größe).
   ──────────────────────────────────────────────────────── */
.cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: .75rem;
}
.cb-btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: .72rem 1.1rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .22s, color .22s, border-color .22s, transform .15s;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
/* Ablehnen = secondary — gleichwertig sichtbar, kein grauer Unscheinbar-Button */
.cb-btn-secondary {
  background: #fff;
  color: #426A5A;
  border-color: #426A5A;
}
.cb-btn-secondary:hover {
  background: #daeede;
  transform: translateY(-1px);
}
/* Akzeptieren = primary — gleichwertige Größe, nur Farbunterschied */
.cb-btn-primary {
  background: #426A5A;
  color: #fff;
  border-color: #426A5A;
}
.cb-btn-primary:hover {
  background: #2e4d3f;
  transform: translateY(-1px);
}

/* ── Rechtlicher Hinweis ───────────────────────────────── */
.cb-legal {
  font-size: .75rem;
  color: #7a9b8e;
  margin: 0;
  line-height: 1.5;
}

/* ── Google Maps Placeholder ───────────────────────────── */
.maps-placeholder {
  border-radius: 14px;
  overflow: hidden;
  background: #daeede;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 2rem 1.5rem;
  text-align: center;
  min-height: 200px;
  box-shadow: 0 2px 16px rgba(66,106,90,.10);
}
.maps-placeholder p {
  font-size: .85rem;
  color: #426A5A;
  margin: 0;
  max-width: 320px;
  line-height: 1.5;
}
.maps-placeholder .mp-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.maps-placeholder .mp-btn {
  display: inline-block;
  background: #426A5A;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .55rem 1.2rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .22s;
  font-family: inherit;
}
.maps-placeholder .mp-btn:hover { background: #2e4d3f; }
.maps-placeholder .mp-note {
  font-size: .74rem;
  color: #7a9b8e;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .cb-actions { flex-direction: column; }
  .cb-btn { min-width: unset; width: 100%; }
  /* Reihenfolge: Ablehnen OBEN (gleichwertige Prominenz) */
  #btn-consent-reject  { order: 1; }
  #btn-consent-settings{ order: 2; }
  #btn-consent-save    { order: 3; }
  #btn-consent-accept  { order: 4; }
}
