/* ─── CCM19 cookie banner in Marharian style ─────────────────────
   Overrides cloud.ccm19.de/app.css. Selectors start with
   ".ccm-root #ccm-widget" / "#ccm-control-panel" so they win
   against CCM19's own ".ccm-root .button…" rules without !important. */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

.ccm-root {
  --mh-bg: #f7f4f0;
  --mh-ink: #1a1815;
  --mh-text: #5a544d;
  --mh-muted: #888580;
  --mh-gold: #c9a96e;
  --mh-line: rgba(26, 24, 21, 0.14);
}

/* ── Panel ── */
.ccm-root #ccm-widget .ccm-modal-inner,
.ccm-root #ccm-control-panel .ccm-modal-inner {
  background: var(--mh-bg);
  color: var(--mh-ink);
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 -10px 40px rgba(26, 24, 21, 0.18);
}
@media screen and (max-width: 64em) {
  .ccm-root #ccm-widget .ccm-modal-inner { border-radius: 18px 18px 0 0; }
}
@media screen and (min-width: 64.0625em) {
  .ccm-root #ccm-widget .ccm-modal-inner,
  .ccm-root #ccm-control-panel .ccm-modal-inner { border-radius: 14px; }
}

/* ── Heading: script, like the hero accents on the site ── */
.ccm-root #ccm-widget .ccm-widget--title {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--mh-ink);
  margin-bottom: 16px;
}

/* ── Body text: light and airy ── */
.ccm-root #ccm-widget .ccm--p,
.ccm-root #ccm-control-panel .ccm--p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mh-text);
}
.ccm-root #ccm-widget .ccm--p a,
.ccm-root #ccm-control-panel .ccm--p a { color: var(--mh-ink); text-decoration: underline; text-decoration-color: var(--mh-gold); text-underline-offset: 3px; }

/* ── Language switch ── */
.ccm-root #ccm-widget .ccm-widget--language-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--mh-muted);
  background-color: transparent;
}

/* ── Buttons ──
   First layer shows only "Einstellungen" (outline) + "Alles akzeptieren"
   (filled) side by side. "Alles ablehnen" is hidden on purpose (owner's
   decision, 2026-11-07); rejecting is still possible via "Einstellungen". */
.ccm-root #ccm-widget .ccm-widget--buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ccm-root #ccm-widget .ccm-widget--buttons button,
.ccm-root #ccm-control-panel .ccm-modal--footer button.ccm--save-settings,
.ccm-root #ccm-control-panel .ccm-modal--footer button.ccm-modal--close {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
  text-transform: none;
  text-shadow: none;
  white-space: nowrap;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  border-radius: 6px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.ccm-root #ccm-widget .ccm-widget--buttons button.ccm--decline-cookies,
.ccm-root #ccm-widget .ccm-widget--buttons button.ccm--save-settings,
.ccm-root #ccm-control-panel .ccm-modal--footer button.ccm--save-settings {
  flex: 1 1 calc(50% - 5px) !important;
  max-width: none;
  background: var(--mh-ink);
  border: 1.5px solid var(--mh-ink);
  color: var(--mh-bg);
}
.ccm-root #ccm-widget .ccm-widget--buttons button.ccm--decline-cookies { display: none; }
.ccm-root #ccm-widget .ccm-widget--buttons button.ccm--save-settings { order: 2; }
.ccm-root #ccm-widget .ccm-widget--buttons button[data-ccm-modal],
.ccm-root #ccm-control-panel .ccm-modal--footer button.ccm-modal--close {
  order: 3;
  flex: 1 1 100% !important;
  max-width: none;
  background: transparent;
  border: 1.5px solid var(--mh-line);
  color: var(--mh-ink);
}
.ccm-root #ccm-widget .ccm-widget--buttons button[data-ccm-modal] {
  order: 1;
  flex: 1 1 calc(50% - 5px) !important;
}
.ccm-root #ccm-widget .ccm-widget--buttons button.ccm--decline-cookies:hover,
.ccm-root #ccm-widget .ccm-widget--buttons button.ccm--save-settings:hover,
.ccm-root #ccm-control-panel .ccm-modal--footer button.ccm--save-settings:hover {
  background: #34302b;
  border-color: #34302b;
  color: var(--mh-bg);
}
.ccm-root #ccm-widget .ccm-widget--buttons button[data-ccm-modal]:hover,
.ccm-root #ccm-control-panel .ccm-modal--footer button.ccm-modal--close:hover {
  background: transparent;
  border-color: var(--mh-gold);
  color: var(--mh-ink);
}
.ccm-root #ccm-widget .ccm-widget--buttons button:focus-visible,
.ccm-root #ccm-control-panel button:focus-visible {
  outline: 2px solid var(--mh-gold);
  outline-offset: 2px;
}

/* ── Footer links ── */
.ccm-root #ccm-widget .ccm-link-container,
.ccm-root #ccm-control-panel .ccm-link-container { font-family: 'DM Sans', sans-serif; font-size: 13px; }
.ccm-root #ccm-widget .ccm-link-container a:link,
.ccm-root #ccm-widget .ccm-link-container a:visited,
.ccm-root #ccm-control-panel .ccm-link-container a:link,
.ccm-root #ccm-control-panel .ccm-link-container a:visited { color: var(--mh-muted); }
.ccm-root #ccm-widget .ccm-link-container a:hover,
.ccm-root #ccm-control-panel .ccm-link-container a:hover { color: var(--mh-ink); }
.ccm-root #ccm-widget .ccm-powered-by,
.ccm-root #ccm-control-panel .ccm-powered-by { font-size: 12px; opacity: 0.6; }

/* ── "Einstellungen" panel ── */
.ccm-root #ccm-control-panel .ccm-modal--title {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  color: var(--mh-ink);
}
.ccm-root #ccm-control-panel .ccm-control-panel--purpose {
  border-color: var(--mh-line);
}
.ccm-root #ccm-control-panel .ccm-control-panel--purpose--name,
.ccm-root #ccm-control-panel .ccm-control-panel--purpose label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--mh-ink);
}
.ccm-root #ccm-control-panel .ccm-control-panel--purpose--description {
  color: var(--mh-text);
}
.ccm-root #ccm-control-panel .ccm-link-container-sub-footer {
  background: #efe9e1;
  border-top-color: var(--mh-line);
}
.ccm-root #ccm-control-panel button.ccm-info-button {
  color: var(--mh-muted);
  border-color: var(--mh-muted);
  background: transparent;
}
/* Switches in brand gold */
.ccm-root #ccm-control-panel input[type="checkbox"].ccm-checkbox-type--switch:checked + label::before { background-color: #e6d6b6; }
.ccm-root #ccm-control-panel input[type="checkbox"].ccm-checkbox-type--switch:checked + label::after { background-color: var(--mh-gold); }
.ccm-root #ccm-control-panel input[type="checkbox"].ccm-checkbox-type--switch[disabled]:checked + label::before,
.ccm-root #ccm-control-panel input[type="checkbox"].ccm-checkbox-type--switch[aria-disabled="true"]:checked + label::before { background-color: #ddd3c3; }
.ccm-root #ccm-control-panel input[type="checkbox"].ccm-checkbox-type--switch[disabled]:checked + label::after,
.ccm-root #ccm-control-panel input[type="checkbox"].ccm-checkbox-type--switch[aria-disabled="true"]:checked + label::after { background-color: #b39a6b; }
