/* RegioCars · Consent Manager
   Nuechtern, flaechig, keine Verlaeufe. Farben aus dem bestehenden System. */

.rc-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 20, 16, .45);
  inset: 0;
  align-items: flex-end;
}

.rc-consent__box {
  width: 100%;
  max-width: 640px;
  background: #fff;
  color: #0a1410;
  border: 1px solid #d9e2dd;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(10, 20, 16, .22);
  font-family: inherit;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.rc-consent__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.rc-consent__intro {
  margin: 0 0 18px;
  font-size: .9375rem;
  line-height: 1.55;
  color: #3d4a44;
}

.rc-consent__cats { margin: 0 0 18px; }

.rc-consent__cat {
  padding: 14px 0;
  border-top: 1px solid #e6ece9;
}
.rc-consent__cat:last-child { border-bottom: 1px solid #e6ece9; }

.rc-consent__catHead {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
}
.rc-consent__catHead input {
  width: 18px; height: 18px;
  accent-color: #0e5d3a;
  flex: none;
  cursor: pointer;
}
.rc-consent__catHead input:disabled { cursor: default; opacity: .6; }

.rc-consent__catDesc {
  margin: 6px 0 0 28px;
  font-size: .8125rem;
  line-height: 1.5;
  color: #55635c;
}

/* Beide Entscheidungs-Buttons bewusst identisch gestaltet: gleiche Groesse,
   gleiche Farbe, gleiches Gewicht. Nur die Beschriftung unterscheidet sie. */
.rc-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rc-consent__btn {
  flex: 1 1 160px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #0e5d3a;
  border-radius: 10px;
  background: #0e5d3a;
  color: #fff;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.rc-consent__btn:hover { background: #0b4a2e; }
.rc-consent__btn:focus-visible { outline: 3px solid #22c55e; outline-offset: 2px; }

.rc-consent__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e6ece9;
}

.rc-consent__link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .8125rem;
  color: #55635c;
  text-decoration: underline;
  cursor: pointer;
}
.rc-consent__link:hover { color: #0e5d3a; }

.rc-consent__footerLink {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (min-width: 640px) {
  .rc-consent { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-consent__btn { transition: none; }
}
