/* hanseat-cookie — Cookie Consent Banner */

.hc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 0 16px 16px;
  pointer-events: none;
}
.hc-banner[hidden] { display: none; }

.hc-banner-inner {
  max-width: 780px;
  margin: 0 auto;
  background: #fdfaf5;
  border: 1px solid rgba(30,58,95,.14);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 32px rgba(26,22,18,.12);
  pointer-events: all;
  overflow: hidden;
}

/* ── Kompakt-Ansicht ─────────────────────────── */
.hc-compact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.hc-banner-head { flex: 1; min-width: 200px; }

.hc-banner-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1a1612);
  margin: 0 0 4px;
}

.hc-banner-text {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted, #8a7f72);
  margin: 0;
}
.hc-banner-text a { color: var(--ink, #1a1612); }

/* ── Detail-Ansicht ──────────────────────────── */
.hc-details {
  padding: 24px;
}
.hc-details[hidden] { display: none; }
.hc-details > .hc-banner-title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(30,58,95,.1);
}

/* ── Kategorien ──────────────────────────────── */
.hc-categories { display: flex; flex-direction: column; gap: 0; }

.hc-cat {
  padding: 14px 0;
  border-bottom: 1px solid rgba(30,58,95,.07);
}
.hc-cat:last-child { border-bottom: none; }

.hc-cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hc-cat-name {
  font-family: var(--font-display, Georgia, serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1a1612);
  display: block;
  margin-bottom: 3px;
}

.hc-cat-desc {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted, #8a7f72);
  margin: 0;
}

/* ── Toggle-Switch ───────────────────────────── */
.hc-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.hc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.hc-toggle-track {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background: rgba(30,58,95,.15);
  border-radius: 11px;
  transition: background 200ms;
  flex-shrink: 0;
}
.hc-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform 200ms;
}

.hc-toggle input:checked ~ .hc-toggle-track {
  background: var(--ink, #1e3a5f);
}
.hc-toggle input:checked ~ .hc-toggle-track::after {
  transform: translateX(18px);
}

.hc-toggle--required .hc-toggle-track {
  background: var(--seal, #c8362d) !important;
  opacity: .5;
}

.hc-req-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted, #8a7f72);
  text-transform: uppercase;
}

/* ── Buttons ─────────────────────────────────── */
.hc-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.hc-btn {
  padding: 9px 18px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}

.hc-btn--primary {
  background: var(--ink, #1e3a5f);
  color: var(--paper, #f1ebe0);
}
.hc-btn--primary:hover { background: #162d4a; }

.hc-btn--secondary {
  background: transparent;
  color: var(--ink, #1e3a5f);
  border: 1px solid rgba(30,58,95,.25);
}
.hc-btn--secondary:hover { border-color: var(--ink, #1e3a5f); }

/* ── Reopen-Button ───────────────────────────── */
.hc-reopen-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9997;
  width: 38px; height: 38px;
  background: var(--ink, #1e3a5f);
  color: var(--paper, #f1ebe0);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(30,58,95,.25);
  transition: background 150ms, transform 150ms;
}
.hc-reopen-btn--visible { display: flex; }
.hc-reopen-btn:hover { background: #162d4a; transform: scale(1.05); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
  .hc-compact { flex-direction: column; align-items: stretch; }
  .hc-banner-actions { justify-content: stretch; }
  .hc-btn { flex: 1; text-align: center; }
}
