/* Fünf eigenständige Mitterhof-Paletten in Grün- und Brauntönen. */
html[data-color-palette='waldgruen'] {
  --gt-deep: #234237;
  --gt-text-dark: #192f28;
  --gt-text: #405d51;
  --gt-accent: #4f6d45;
  --gt-surface: #dde8df;
  --gt-cream: #f4f1e8;
  --gt-on-deep-accent: #b9cdb0;
}

html[data-color-palette='moosgruen'] {
  --gt-deep: #374637;
  --gt-text-dark: #253126;
  --gt-text: #566453;
  --gt-accent: #785747;
  --gt-surface: #e1e5da;
  --gt-cream: #f5f0e5;
  --gt-on-deep-accent: #d0c0ae;
}

html[data-color-palette='dunkelbraun'] {
  --gt-deep: #4a352c;
  --gt-text-dark: #30221d;
  --gt-text: #654f45;
  --gt-accent: #9a5438;
  --gt-surface: #e7ded7;
  --gt-cream: #f8f1e9;
  --gt-on-deep-accent: #d6b49f;
}

html[data-color-palette='walnuss'] {
  --gt-deep: #554237;
  --gt-text-dark: #342921;
  --gt-text: #6b574b;
  --gt-accent: #7f6542;
  --gt-surface: #e8e0d5;
  --gt-cream: #f7f1e7;
  --gt-on-deep-accent: #dbc8a7;
}

html[data-color-palette='kastanie'] {
  --gt-deep: #4a3032;
  --gt-text-dark: #302022;
  --gt-text: #654a4b;
  --gt-accent: #7a5a48;
  --gt-surface: #e8ddda;
  --gt-cream: #f7efea;
  --gt-on-deep-accent: #d8beb4;
}

.editorial-section .editorial-kicker,
.editorial-section .editorial-action,
.combined-footer .combined-contact-item h3,
.combined-footer .combined-contact-item div > a {
  color: var(--gt-on-deep-accent);
}

.editorial-section .editorial-action {
  border-top-color: var(--gt-on-deep-accent);
}

.color-switcher {
  --color-switcher-bottom: 20px;
  position: fixed;
  left: 20px;
  bottom: var(--color-switcher-bottom);
  z-index: 1200;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Roboto', Arial, sans-serif;
}

.color-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--gt-deep) 22%, transparent);
  border-radius: 999px;
  background: var(--gt-cream-bright);
  color: var(--gt-text-dark);
  box-shadow: 0 8px 28px rgba(18, 31, 38, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.color-switcher-toggle:hover,
.color-switcher-toggle:focus-visible {
  background: var(--gt-cream);
  outline: 3px solid color-mix(in srgb, var(--gt-accent) 42%, transparent);
  outline-offset: 2px;
}

.color-switcher-toggle-swatch {
  display: inline-grid;
  grid-template-columns: repeat(3, 9px);
  gap: 2px;
}

.color-switcher-toggle-swatch span {
  width: 9px;
  height: 18px;
}

.color-switcher-toggle-swatch span:first-child {
  border-radius: 9px 0 0 9px;
  background: var(--gt-deep);
}

.color-switcher-toggle-swatch span:nth-child(2) {
  background: var(--gt-accent);
}

.color-switcher-toggle-swatch span:last-child {
  border-radius: 0 9px 9px 0;
  background: var(--gt-surface);
}

.color-switcher-panel {
  width: min(292px, calc(100vw - 40px));
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--gt-deep) 16%, transparent);
  border-radius: 14px;
  background: var(--gt-cream-bright);
  color: var(--gt-text-dark);
  box-shadow: 0 16px 42px rgba(18, 31, 38, 0.22);
}

.color-switcher-panel[hidden] {
  display: none;
}

.color-switcher-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.color-switcher-hint {
  margin: 0 0 12px;
  color: var(--gt-text);
  font-size: 0.78rem;
  line-height: 1.4;
}

.color-switcher-options {
  display: grid;
  gap: 7px;
}

.color-switcher-option {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--gt-deep) 14%, transparent);
  border-radius: 9px;
  background: transparent;
  color: var(--gt-text-dark);
  text-align: left;
  cursor: pointer;
}

.color-switcher-option:hover,
.color-switcher-option:focus-visible,
.color-switcher-option[aria-pressed='true'] {
  border-color: var(--gt-accent);
  background: color-mix(in srgb, var(--gt-surface) 72%, var(--gt-cream));
}

.color-switcher-option:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gt-accent) 38%, transparent);
  outline-offset: 1px;
}

.color-switcher-option[aria-pressed='true']::after {
  content: '✓';
  color: var(--gt-accent);
  font-size: 1rem;
  font-weight: 800;
}

.color-switcher-option-name {
  font-size: 0.83rem;
  font-weight: 700;
}

.color-switcher-swatches {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  overflow: hidden;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.color-switcher-swatches span {
  width: 16px;
  height: 22px;
}

.color-switcher-swatches span:first-child {
  background: var(--swatch-deep);
}

.color-switcher-swatches span:nth-child(2) {
  background: var(--swatch-accent);
}

.color-switcher-swatches span:last-child {
  background: var(--swatch-surface);
}

@media (max-width: 575.98px) {
  .color-switcher {
    left: 12px;
    bottom: var(--color-switcher-bottom);
  }

  .color-switcher-toggle {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .color-switcher-panel {
    width: min(280px, calc(100vw - 24px));
    max-height: min(430px, calc(100vh - var(--color-switcher-bottom) - 70px));
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .color-switcher-toggle,
  .color-switcher-option {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  }
}
