/* MarkenTal Cookie-Consent — DSGVO / TTDSG konform, Google Consent Mode v2 */
#mt-consent-banner,
#mt-consent-modal {
  --ink: #000000;
  --paper: #ffffff;
  --line: #e4e4e7;
  --muted: #656565;
  --charcoal: #27272a;
  --soft: #f5f5f5;
  --blue: #1796c9;
  font-family: "DM Sans", Arial, sans-serif;
}

/* ---------- Banner ---------- */
#mt-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  padding: 20px 24px;
  display: none;
}

#mt-consent-banner.mt-visible {
  display: block;
}

.mt-consent-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.mt-consent-text {
  flex: 1 1 420px;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.mt-consent-text strong {
  color: var(--ink);
}

.mt-consent-text a {
  color: var(--blue);
  text-decoration: underline;
}

.mt-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.mt-btn {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.mt-btn:hover {
  opacity: 0.85;
}

.mt-btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.mt-btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.mt-btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  text-decoration: underline;
  padding: 11px 4px;
}

/* ---------- Modal (Einstellungen) ---------- */
#mt-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#mt-consent-modal.mt-visible {
  display: flex;
}

.mt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 27, 0.55);
}

.mt-modal-card {
  position: relative;
  background: var(--paper);
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.mt-modal-card h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--ink);
}

.mt-modal-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0 0 24px;
}

.mt-category {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.mt-category:last-of-type {
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.mt-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mt-category-head strong {
  font-size: 15px;
  color: var(--ink);
}

.mt-category p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 0;
}

.mt-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
}

.mt-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mt-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mt-toggle-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mt-toggle input:checked + .mt-toggle-track {
  background: var(--blue);
}

.mt-toggle input:checked + .mt-toggle-track::before {
  transform: translateX(18px);
}

.mt-toggle input:disabled + .mt-toggle-track {
  background: var(--charcoal);
  opacity: 0.35;
  cursor: not-allowed;
}

.mt-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .mt-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .mt-consent-actions {
    justify-content: stretch;
  }
  .mt-consent-actions .mt-btn {
    flex: 1 1 auto;
  }
  .mt-modal-card {
    padding: 24px;
  }
}
