/* ============================================================================
   HOSTARO — Cookie-Consent (selbst gehostet, Werkstatt-Stil)
   Creme-Flaeche, Petrol-Ink, kraeftige Kanten, keine runden Ecken, kein Blur.
   Nutzt die bestehenden Tokens aus style.css (--surface = Kalk-Flaeche,
   --ink = Petrol-Ink, --brand = Marken-Gruen, --orange = Signal).
   ============================================================================ */

.cc-banner,
.cc-modal { font-family: var(--body); color: var(--ink); }

/* ----------------------------------------------------------------- BANNER -- */
.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;                       /* ueber Inhalt/Header, unter Intro (9999) */
  background: var(--surface);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -10px 30px rgba(17,48,42,.12);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.cc-banner.cc-show { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .cc-banner { transition: none; } }

.cc-banner__in {
  max-width: var(--col);
  margin-inline: auto;
  padding: clamp(18px, 2.4vw, 26px) var(--pad);
}

/* "Im Aufbau"-Hinweis: abgesetzt, dem Consent-Text untergeordnet, gut lesbar */
.cc-aufbau {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-2);
  border-left: 3px solid var(--orange);
  padding-left: 12px;
  margin-bottom: 16px;
}

.cc-banner__body {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
}
.cc-banner__text { flex: 1 1 auto; min-width: 0; }
.cc-banner__text p {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 6px;
  max-width: 56ch;
}
.cc-banner a, .cc-modal a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-title {
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.05;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink);
}

/* drei gleichwertige Aktionen */
.cc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
}
.cc-banner__actions .cc-btn { flex: 1 1 0; }

/* ------------------------------------------------------------------ BUTTON -- */
/* Alle Consent-Buttons identisch: gleiche Groesse, gleiches Gewicht.
   "Akzeptieren" und "Ablehnen" sind bewusst nicht unterscheidbar. */
.cc-btn {
  font-family: var(--body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  padding: 15px 22px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background .25s var(--ease-io), color .25s var(--ease-io);
}
@media (hover: hover) {
  .cc-btn:hover { background: var(--ink); color: var(--surface); }
}

/* ------------------------------------------------------------------- MODAL -- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;                      /* ueber allem, inkl. Intro */
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.cc-modal[hidden] { display: none; }
.cc-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(17,48,42,.55);       /* solider Scrim, kein Blur/Glas */
}
.cc-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 0 24px 60px rgba(17,48,42,.28);
  padding: clamp(24px, 3vw, 38px);
}
.cc-modal__lead {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 10px;
  margin-bottom: 22px;
}

/* Kategorien */
.cc-cats { display: flex; flex-direction: column; }
.cc-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.cc-cat:first-child { border-top: none; }
.cc-cat--locked { cursor: default; }
.cc-cat__txt { display: block; }
.cc-cat__name {
  display: block;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.cc-cat__name .cc-fixed {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-left: 10px;
}
.cc-cat__desc {
  display: block;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 42ch;
}

/* eckiger Werkstatt-Schalter */
.cc-cat__input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 54px; height: 28px;
  margin-top: 4px;
  border: 2px solid var(--ink);
  background: transparent;
  transition: background .2s var(--ease-io), border-color .2s;
}
.cc-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--ink);
  transition: transform .2s var(--ease-io), background .2s;
}
.cc-cat__input:checked ~ .cc-switch { background: var(--brand); border-color: var(--brand); }
.cc-cat__input:checked ~ .cc-switch::after { transform: translateX(26px); background: var(--surface); }
.cc-cat__input:disabled ~ .cc-switch { opacity: .5; }
.cc-cat__input:focus-visible ~ .cc-switch { outline: 3px solid var(--brand); outline-offset: 3px; }

.cc-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.cc-modal__actions .cc-btn { flex: 1 1 0; }
.cc-modal__foot { margin-top: 18px; font-size: .82rem; }

/* Footer-Auslöser */
.cc-prefs-link {
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.cc-prefs-link:hover { color: var(--brand); }

/* ------------------------------------------------------------------ MOBILE -- */
@media (max-width: 720px) {
  .cc-banner__body { flex-direction: column; align-items: stretch; }
  .cc-banner__actions { flex-direction: column; }
  .cc-banner__actions .cc-btn { width: 100%; padding: 16px 22px; }
  .cc-modal__actions { flex-direction: column; }
  .cc-modal__actions .cc-btn { width: 100%; padding: 16px 22px; }
}
