/* Zentrale Designvariablen. Können im Customizer jederzeit überschrieben werden. */
:root {
  --ccw-difficulty-color: #495C6B;
  --ccw-difficulty-empty: #ffffff;
  --ccw-check-bg: #ffffff;
  --ccw-check-text: var(--ccw-difficulty-color);
  --ccw-check-border: var(--ccw-difficulty-color);
  --ccw-check-hover: #f3f6f8;
}

.ccw-widget {
  /* Hauptfarben folgen, wenn vorhanden, der globalen Astra/WordPress-Palette. */
  --ccw-ink: var(--ast-global-color-3, var(--wp--preset--color--contrast, #17191c));
  --ccw-paper: var(--ast-global-color-5, var(--wp--preset--color--base, #f7f6f2));
  --ccw-surface: var(--ast-global-color-5, var(--wp--preset--color--base, #ffffff));
  --ccw-line: var(--ast-border-color, #c8c8c8);
  --ccw-accent: var(--ast-global-color-0, var(--wp--preset--color--primary, #503039));
  --ccw-accent-text: var(--ast-global-color-5, var(--wp--preset--color--base, #ffffff));
  --ccw-muted: var(--ast-global-color-2, #4e5256);
  --ccw-good: #3d6d46;
  --ccw-bad: #9a3d45;
  max-width: 780px;
  margin: 32px auto;
  color: var(--ccw-ink);
  font: inherit;
}

.ccw-question {
  margin: 0 0 24px;
  font-size: var(--ccw-question-font-size, 24px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.ccw-answer {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  /* Zwischen echten Wörtern bleibt bewusst etwa 2/3 eines 48-px-Kästchens Platz. */
  column-gap: 32px !important;
  row-gap: 10px !important;
  margin: 0 0 25px !important;
}

/* Eine Lösung wird semantisch in Wort-/Bindestrichgruppen gegliedert.
   Der äußere Flex-Container darf nur zwischen diesen Gruppen umbrechen. */
.ccw-answer-group {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

.ccw-answer-run {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  max-width: 100% !important;
  gap: 8px !important;
}

.ccw-widget .ccw-answer-cell {
  display: inline-flex !important;
  flex: 0 0 var(--ccw-responsive-cell-size, 48px) !important;
  width: var(--ccw-responsive-cell-size, 48px) !important;
  min-width: var(--ccw-responsive-cell-size, 48px) !important;
  max-width: var(--ccw-responsive-cell-size, 48px) !important;
  height: calc(var(--ccw-responsive-cell-size, 48px) + 4px) !important;
  min-height: calc(var(--ccw-responsive-cell-size, 48px) + 4px) !important;
  max-height: calc(var(--ccw-responsive-cell-size, 48px) + 4px) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--ccw-line) !important;
  border-radius: 8px !important;
  background: var(--ccw-surface) !important;
  color: var(--ccw-ink) !important;
  text-align: center !important;
  font: inherit !important;
  font-size: var(--ccw-responsive-font-size, 23px) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  caret-color: transparent !important;
  box-shadow: none !important;
}

.ccw-widget .ccw-answer-cell:focus {
  outline: 2px solid var(--ccw-accent) !important;
  outline-offset: 2px;
}

/* Bindestriche gehören optisch enger zusammen als echte Wortgrenzen.
   Der negative rechte Rand neutralisiert einen Teil des normalen Gruppenabstands,
   sodass der Strich mittig zwischen den beiden Buchstabengruppen sitzt. */
.ccw-answer-group-hyphen {
  margin-right: -20px !important;
}

.ccw-separator-hyphen {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  flex: 0 0 12px;
  width: 12px;
  margin-left: 12px;
  text-align: center;
  font-weight: 800;
  line-height: 1;
}

.ccw-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

/* Der Prüfen-Button übernimmt vollständig die globalen Theme-/Astra-Buttonregeln. */
.ccw-check,
.ccw-reveal-letter,
.ccw-hint-toggle {
  cursor: pointer;
}

/* Nur Hinweis-Schalter bleiben typografisch Teil des Widgets. */
.ccw-hint-toggle {
  font: inherit;
}

.ccw-check:disabled,
.ccw-reveal-letter:disabled {
  opacity: .55;
  cursor: default;
}

.ccw-feedback {
  font-weight: 700;
}

.ccw-feedback:empty {
  min-height: 0;
  margin: 0;
}

.ccw-feedback:not(:empty) {
  margin: 20px 0 22px;
}

/* Nach einer korrekten Lösung steht die Erfolgsrückmeldung als eigener,
   ruhiger Abschlusskasten zwischen Aktionsbuttons und Fun & Facts. */
.ccw-feedback.ccw-feedback-correct:not(:empty) {
  margin: 24px 0 26px;
  padding: 16px 18px;
  border: 1px solid var(--ccw-line);
  border-radius: 10px;
  background: var(--ccw-surface);
}

.ccw-feedback-title {
  font-size: 1.22em;
  line-height: 1.25;
  font-weight: 800;
}

.ccw-feedback-stats,
.ccw-public-statistics {
  margin-top: 0.65em;
  font-size: .96em;
  line-height: 1.45;
  font-weight: 650;
}

.ccw-feedback-correct { color: var(--ccw-good); }
.ccw-feedback-wrong { color: var(--ccw-bad); }

.ccw-is-wrong .ccw-answer-cell {
  border-color: var(--ccw-bad) !important;
}

.ccw-is-correct .ccw-answer-cell {
  border-color: var(--ccw-good) !important;
  box-shadow: inset 0 0 0 1px var(--ccw-good) !important;
}

.ccw-hints {
  display: grid;
  gap: 8px;
}

.ccw-hint {
  border: 1px solid var(--ccw-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ccw-surface);
}

.ccw-hint-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 0;
  background: var(--ccw-surface);
  color: var(--ccw-ink);
  text-align: left;
  font-weight: 700;
}

/* Astra soll innerhalb der Hinweisbox keine zweite Button-Fläche zeichnen. */
.ccw-widget .ccw-hint-toggle,
.ccw-widget .ccw-hint-toggle:hover,
.ccw-widget .ccw-hint-toggle:focus {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
}

.ccw-chevron {
  transition: transform .18s ease;
}

.ccw-hint-toggle[aria-expanded="true"] .ccw-chevron {
  transform: rotate(180deg);
}

.ccw-hint-panel {
  padding: 0 14px 14px;
  color: var(--ccw-muted);
}

.ccw-hint-panel p:last-child,
.ccw-modal-content p:last-child {
  margin-bottom: 0;
}

.ccw-funfacts[hidden] {
  display: none !important;
}

.ccw-funfacts {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--ccw-line);
  border-left: 4px solid var(--ccw-good);
  border-radius: 10px;
  background: var(--ccw-surface);
  color: var(--ccw-ink);
}

.ccw-funfacts-title {
  /* Eine klare Leerzeile zwischen Feldtitel und eigentlichem F&F-Text. */
  margin-bottom: 1em;
  font-weight: 800;
}

.ccw-funfacts-content {
  color: var(--ccw-muted);
}

.ccw-funfacts-content p:last-child {
  margin-bottom: 0;
}

.ccw-funfacts-figure {
  margin: 18px 0 0;
  padding: 0;
  background: transparent !important;
  border: 0;
}

.ccw-funfacts-content + .ccw-funfacts-figure {
  margin-top: 18px;
}

.ccw-funfacts-title + .ccw-funfacts-figure {
  margin-top: 0;
}

.ccw-funfacts-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.ccw-funfacts-caption {
  margin: 6px 2px 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--ccw-muted);
  font-size: .78em;
  font-style: italic;
  line-height: 1.35;
}

/* Theme-Fallback: Bild und Bildhinweis bleiben Teil des Fun-&-Facts-Kastens.
   Keine Theme-Regel darf hier einen eigenen weißen Caption-/Figure-Balken erzeugen. */
.ccw-funfacts .ccw-funfacts-figure,
.ccw-funfacts .ccw-funfacts-caption {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
.ccw-funfacts .ccw-funfacts-figure::before,
.ccw-funfacts .ccw-funfacts-figure::after,
.ccw-funfacts .ccw-funfacts-caption::before,
.ccw-funfacts .ccw-funfacts-caption::after {
  content: none !important;
  display: none !important;
}

.ccw-empty {
  padding: 16px;
  border: 1px dashed #bbb;
  border-radius: 8px;
}

.ccw-editor {
  padding: 20px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #fff;
}

.ccw-editor h3,
.ccw-editor h4 {
  margin-top: 0;
}

.ccw-editor hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid #ddd;
}

/* Lange, untrennbare Lösungsgruppen dürfen bei sehr wenig Platz
   innerhalb des Wortes umbrechen, statt aus dem Widget herauszulaufen. */
.ccw-answer-group.is-ccw-overflow-group {
  flex: 1 1 100% !important;
  white-space: normal !important;
}

.ccw-answer-group.is-ccw-overflow-group .ccw-answer-run {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
}

@media (max-width: 600px) {
  .ccw-answer {
    /* 24 px liegen bei den mobilen Kästchengrößen (24–42 px)
       immer zwischen einem halben und einem ganzen Kästchen. */
    column-gap: 24px !important;
    row-gap: 8px !important;
  }

  .ccw-answer-run {
    gap: 4px !important;
  }

  .ccw-answer-group-hyphen {
    margin-right: -16px !important;
  }

  .ccw-separator-hyphen {
    margin-left: 8px;
  }

  .ccw-widget .ccw-answer-cell {
    flex-basis: var(--ccw-responsive-cell-size, 42px) !important;
    width: var(--ccw-responsive-cell-size, 42px) !important;
    min-width: var(--ccw-responsive-cell-size, 42px) !important;
    max-width: var(--ccw-responsive-cell-size, 42px) !important;
    height: calc(var(--ccw-responsive-cell-size, 42px) + 4px) !important;
    min-height: calc(var(--ccw-responsive-cell-size, 42px) + 4px) !important;
    max-height: calc(var(--ccw-responsive-cell-size, 42px) + 4px) !important;
    font-size: var(--ccw-responsive-font-size, 19px) !important;
  }

  /* Nur wenn selbst 24-px-Kästchen für eine einzelne untrennbare
     Buchstabengruppe nicht reichen, darf diese Gruppe als letzter
     Ausweg innerhalb des Wortes umbrechen. */
  .ccw-answer-group.is-ccw-overflow-group {
    flex: 1 1 100% !important;
    white-space: normal !important;
  }

  .ccw-answer-group.is-ccw-overflow-group .ccw-answer-run {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }
}

/* Schwierigkeit: eine Datenquelle, zwei Darstellungen (Widget + Archivkarte). */
.ccw-difficulty {
  --ccw-difficulty-active: var(--ccw-difficulty-color, #495C6B);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ccw-muted, var(--ast-global-color-2, currentColor));
  font-size: 0.88em;
  line-height: 1.2;
}

.ccw-difficulty-widget {
  margin: -18px 0 45px;
}

.ccw-difficulty-archive {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ast-border-color, rgba(0, 0, 0, 0.12));
}

.ccw-difficulty-label {
  font-weight: 650;
}

.ccw-difficulty-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ccw-difficulty-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: 1px solid var(--ccw-difficulty-active);
  border-radius: 50%;
  background: var(--ccw-difficulty-active);
  opacity: 1;
}

.ccw-difficulty-dot.is-empty {
  border: 1px solid var(--ccw-difficulty-active);
  background: var(--ccw-difficulty-empty, #ffffff);
  opacity: 1;
}

.ccw-difficulty-dot:not(:last-child) {
  margin-right: -3px;
}

/* Nur das echte Clue-des-Tages-Archiv: lange Clues auf drei Zeilen begrenzen. */
body.category-clue-des-tages .entry-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/*
 * Clue-des-Tages-Archiv: stabiles 3-Spalten-Raster.
 * Astra verteilt Archivkarten je nach Trefferzahl teilweise neu. Für die Spielen-
 * Übersicht sollen Karten jedoch immer dieselbe Breite behalten und links beginnen:
 * 3 Spalten Desktop, 2 Tablet, 1 Mobil.
 */
body.category-clue-des-tages #primary .site-main > .ast-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  justify-content: start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.category-clue-des-tages #primary .site-main > .ast-row::before,
body.category-clue-des-tages #primary .site-main > .ast-row::after {
  display: none !important;
  content: none !important;
}

body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post {
  float: none !important;
  display: flex !important;
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-post-format-,
body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-article-inner {
  width: 100% !important;
}


/*
 * v1.8.7 – Spielen: Die komplette Clue-Karte ist als Link erkennbar und anklickbar.
 * Der vorhandene Titel-Link spannt sich unsichtbar über die ganze Karte; so bleibt
 * die Semantik eines echten Links erhalten, ohne zusätzliches JavaScript.
 */
body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-post-format-,
body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-article-inner {
  position: relative;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.category-clue-des-tages .entry-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: pointer;
}

/* Dezenter, dauerhaft sichtbarer Hinweis – besonders wichtig auf Touch-Geräten. */
body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-post-format-::after,
body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-article-inner::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 5;
  color: #456D64;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1;
  pointer-events: none;
  transition: transform 180ms ease;
}

/* Genug Luft für den Pfeil neben der Schwierigkeitsanzeige. */
body.category-clue-des-tages .ccw-difficulty-archive {
  padding-right: 34px;
}

@media (hover: hover) and (pointer: fine) {
  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-post-format-:hover,
  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-article-inner:hover {
    transform: translateY(-3px) scale(1.006);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
  }

  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-post-format-:hover::after,
  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-article-inner:hover::after {
    transform: translateX(2px);
  }
}

/* Tastaturfokus hebt ebenfalls die ganze Karte hervor. */
body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-post-format-:focus-within,
body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-article-inner:focus-within {
  box-shadow: 0 0 0 2px #456D64, 0 8px 20px rgba(0, 0, 0, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-post-format-,
  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-article-inner,
  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-post-format-::after,
  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-article-inner::after {
    transition: none;
  }

  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-post-format-:hover,
  body.category-clue-des-tages #primary .site-main > .ast-row > .ast-article-post > .ast-article-inner:hover {
    transform: none;
  }
}

@media (max-width: 921px) {
  body.category-clue-des-tages #primary .site-main > .ast-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  body.category-clue-des-tages #primary .site-main > .ast-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Clever Cryptics: Karten-Karussell --------------------------------------- */
.ccc-carousel {
  /* Standardfarben folgen der globalen Astra-/WordPress-Palette.
     Einzelne Karten können zusätzlich direkt in Gutenberg überschrieben werden. */
  --ccc-surface: var(--ast-global-color-5, var(--wp--preset--color--base, #fffdf9));
  --ccc-ink: var(--ast-global-color-3, var(--wp--preset--color--contrast, currentColor));
  --ccc-accent: var(--ast-global-color-0, var(--wp--preset--color--primary, currentColor));
  width: 100%;
  color: var(--ccc-ink);
}


.ccc-jumpnav {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ccc-jumpnav::-webkit-scrollbar {
  display: none;
}

.ccc-jump {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 10px;
  border: 0 !important;
  border-radius: 5px;
  background: var(--ccc-nav-bg, transparent) !important;
  color: var(--ccc-nav-color, inherit) !important;
  box-shadow: none !important;
  font-family: var(--ccc-nav-font-family, inherit);
  font-size: var(--ccc-nav-font-size, 0.92em);
  font-weight: var(--ccc-nav-font-weight, 700);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  opacity: .72;
}

.ccc-jump:hover,
.ccc-jump:focus-visible,
.ccc-jump.is-active {
  background: var(--ccc-nav-active-bg, var(--ccc-surface)) !important;
  color: var(--ccc-nav-active-color, var(--ccc-nav-color, inherit)) !important;
  opacity: 1;
}

.ccc-jump.is-active {
  font-weight: var(--ccc-nav-active-font-weight, var(--ccc-nav-font-weight, 700));
}

.ccc-viewport {
  overflow: hidden;
}

.ccc-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: height .2s ease;
}

.ccc-track::-webkit-scrollbar {
  display: none;
}

.ccc-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 0;
  border-radius: 5px;
  background: var(--ccc-surface);
  color: inherit;
  box-shadow: none;
  scroll-snap-align: start;
}

.ccc-slide > :first-child {
  margin-top: 0;
}

/* Kartentitel klar vom folgenden Inhalt trennen. */
.ccc-slide > h1:first-child,
.ccc-slide > h2:first-child,
.ccc-slide > h3:first-child,
.ccc-slide > h4:first-child,
.ccc-slide > h5:first-child,
.ccc-slide > h6:first-child {
  margin-bottom: 32px;
}

.ccc-slide > :last-child {
  margin-bottom: 0;
}

.ccc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.ccc-arrow,
.ccc-dot {
  cursor: pointer;
}

.ccc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ccc-arrow-border, transparent) !important;
  border-radius: 5px;
  background: var(--ccc-arrow-bg, var(--ccc-surface)) !important;
  color: var(--ccc-arrow-color, var(--ccc-accent)) !important;
  box-shadow: none !important;
  font-size: 22px;
  line-height: 1;
}

.ccc-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.ccc-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  color: var(--ccc-counter-color, inherit);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  line-height: 1;
}

.ccc-carousel.is-single .ccc-controls {
  display: none;
}

.ccc-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--ccc-accent) !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
}

.ccc-dot.is-active {
  background: var(--ccc-accent) !important;
}

/* Editor: bewusst gestapelt, damit jede Karte unkompliziert bearbeitbar bleibt. */
.ccc-carousel-editor {
  padding: 16px;
  border: 1px dashed #b8b8b8;
}

.ccc-editor-note {
  margin-bottom: 14px;
  color: #666;
  font-size: 13px;
}

.ccc-carousel-editor .ccc-slide-editor {
  margin-bottom: 14px;
  border: 0;
  border-radius: 5px;
  background: var(--ccc-surface);
  color: inherit;
  box-shadow: none;
}

/* Im Editor denselben Abstand zwischen Kartentitel und erstem Inhalt zeigen. */
.ccc-carousel-editor .ccc-slide-editor > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block-heading:first-child {
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .ccc-jumpnav {
    margin-bottom: 12px;
  }

  .ccc-jump {
    padding: 7px 9px;
    font-size: var(--ccc-nav-font-size, 0.88em);
  }

  .ccc-slide {
    padding: 24px 20px;
  }

  .ccc-controls {
    margin-top: 14px;
  }
}

/* Beispielboxen und echte Clue-Widgets innerhalb des Karussells. */
.ccc-example-box {
  box-sizing: border-box;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--ast-border-color, rgba(0, 0, 0, 0.18));
  border-radius: 10px;
  color: inherit;
  box-shadow: none;
}

/* Neutraler Weiß-Standard. Eine in Gutenberg gesetzte Hintergrundfarbe
   hat weiterhin Vorrang. */
.ccc-example-box:not(.has-background) {
  background: var(--ccc-example-surface, #ffffff);
}

.ccc-example-box > :first-child {
  margin-top: 0;
}

.ccc-example-box > :last-child {
  margin-bottom: 0;
}

/* Zwei Beispielboxen in Gutenberg-Spalten sollen wie ein zusammengehöriges
   Kartenpaar wirken: Auf Desktop füllen sie jeweils die volle Spaltenhöhe und
   sind damit automatisch so hoch wie die höhere Box. */
.ccc-slide .wp-block-columns {
  align-items: stretch;
}

.ccc-slide .wp-block-columns > .wp-block-column {
  display: flex;
  flex-direction: column;
}

.ccc-slide .wp-block-columns > .wp-block-column > .ccc-example-box {
  flex: 1 1 auto;
}

/* Dasselbe Prinzip im Gutenberg-Editor sichtbar machen. */
.ccc-carousel-editor .wp-block-columns > .wp-block-column {
  display: flex;
  flex-direction: column;
}

.ccc-carousel-editor .wp-block-columns > .wp-block-column > .block-editor-inner-blocks,
.ccc-carousel-editor .wp-block-columns > .wp-block-column > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.ccc-carousel-editor .wp-block-columns > .wp-block-column [data-type="clever-cryptics/example-box"] {
  display: flex;
  flex: 1 1 auto;
}

.ccc-carousel-editor .wp-block-columns > .wp-block-column [data-type="clever-cryptics/example-box"] > .ccc-example-box {
  flex: 1 1 auto;
  width: 100%;
}

@media (max-width: 781px) {
  .ccc-slide .wp-block-columns > .wp-block-column {
    display: block;
  }

  .ccc-slide .wp-block-columns > .wp-block-column > .ccc-example-box {
    height: auto;
  }
}

/* Ein echtes Cryptic-Clue-Widget bekommt innerhalb eines weißen Slides wieder
   die beige Arbeitsfläche der Website. Die Variable --cc-site-background wird
   bereits im Website-CSS verwendet und bleibt dadurch zentral änderbar. */
.ccc-slide .ccw-widget {
  box-sizing: border-box;
  max-width: none;
  margin: 22px 0;
  padding: 36px clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px);
  border: 0;
  border-radius: 5px;
  background: var(--cc-site-background, var(--ast-global-color-4, #e2dfd8));
  box-shadow: none;
}

.ccc-slide .ccw-widget:last-child {
  margin-bottom: 0;
}

/* Nur Aktionsbuttons in Karussellkarten: auch sehr schmale Karten dürfen
   den Text umbrechen, ohne dass der Button über den verfügbaren Platz ragt. */
.ccc-slide .ccw-widget .ccw-actions > :is(.ccw-check, .ccw-reveal-letter) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Die Hinweisfelder im eingebetteten Widget bleiben bewusst weiß mit grauem Rand. */
.ccc-slide .ccw-widget .ccw-hint,
.ccc-slide .ccw-widget .ccw-help-guide,
.ccc-slide .ccw-widget .ccw-funfacts,
.ccc-slide .ccw-widget .ccw-answer-cell {
  --ccw-surface: #ffffff;
}


/* =========================================================
   v1.7.9 – Einzel-Clue-Widget: äußere Arbeitsfläche
   Diese Regel liegt bewusst im Plugin, damit sie unabhängig
   von der Ladereihenfolge des Customizer-CSS zuverlässig greift.
   ========================================================= */
.single-post .ccw-widget {
  background: #F1EFEA !important;
  padding: 32px 24px 24px !important;
  border-radius: 5px !important;
  box-sizing: border-box;
}

/* Die eigentlichen Eingabe- und Hinweisflächen bleiben weiß. */
.single-post .ccw-widget .ccw-answer-cell,
.single-post .ccw-widget .ccw-hint,
.single-post .ccw-widget .ccw-help-guide,
.single-post .ccw-widget .ccw-funfacts {
  --ccw-surface: #FFFFFF;
}


/* =========================================================
   v1.7.13 – Spielen: Kategorie-Beschreibung oberhalb der Clue-Karten
   ========================================================= */
body.category-clue-des-tages .ccw-archive-description {
  width: 100%;
  margin: 0 0 32px;
}

body.category-clue-des-tages .ccw-archive-description > :first-child {
  margin-top: 0;
}

body.category-clue-des-tages .ccw-archive-description > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  body.category-clue-des-tages .ccw-archive-description {
    margin-bottom: 24px;
  }
}


/* =========================================================
   v1.8.0 – gezielte Hinweise direkt im Clue
   ========================================================= */
.ccw-feedback-multiline {
  white-space: pre-line;
}

.ccw-help-area[hidden] {
  display: none !important;
}

.ccw-help-guide {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 55px 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ccw-ink);
  line-height: 1.45;
}

.ccw-help-icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1.2;
}

.ccw-letter-help {
  margin: 0;
}

.ccw-interactive-hints {
  display: grid;
  gap: 8px;
}

.ccw-interactive-hint {
  padding: 13px 14px 14px;
}

.ccw-interactive-hint-title {
  font-weight: 800;
  line-height: 1.4;
}

.ccw-interactive-hint-content {
  margin-top: 7px;
  color: var(--ccw-muted);
  line-height: 1.5;
  white-space: pre-line;
}

/* Der Clue sieht zunächst weiterhin wie normaler Text aus. Es gibt bewusst
   keinen Hover-Effekt, der vorab verraten könnte, wo Hinweise hinterlegt sind. */
.ccw-clue-interactive {
  cursor: pointer;
}

.ccw-question-interactive {
  white-space: pre-line;
}

.ccw-clue-segment {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ccw-hint-target,
.ccw-special-target {
  position: relative;
  padding: 0 .04em;
  margin: 0 -.04em;
  border-radius: 2px;
}

.ccw-hint-target:focus-visible,
.ccw-special-target:focus-visible {
  outline: 2px solid var(--ccw-difficulty-color, #495C6B);
  outline-offset: 2px;
}

.ccw-hint-target.is-ccw-definition,
.ccw-hint-target.is-ccw-indicator,
.ccw-hint-target.is-ccw-material,
.ccw-hint-target.ccw-multiple-hints {
  border-radius: 0;
}

.ccw-hint-target.is-ccw-definition {
  background: linear-gradient(to bottom, transparent 15%, var(--ccw-hint-definition, #DDECE6) 15% 100%);
}

.ccw-hint-target.is-ccw-indicator {
  background: linear-gradient(to bottom, transparent 15%, var(--ccw-hint-indicator, #FFF1A8) 15% 100%);
}

.ccw-hint-target.is-ccw-material {
  background: linear-gradient(to bottom, transparent 15%, var(--ccw-hint-material, #E7ECEF) 15% 100%);
}

/* Sonderzeichen und Enumeration sind Orientierungshilfen, keine gewerteten
   Texttipps. Nach dem Anklicken werden sie nur dezent neutral markiert. */
.ccw-special-target.is-ccw-special-seen {
  background: linear-gradient(to bottom, transparent 15%, var(--ccw-hint-special-seen, #E2E2E2) 15% 100%);
}



@media (max-width: 600px) {
  .ccw-help-guide {
    margin: 50px 0 22px;
  }

  .ccw-hint-target,
  .ccw-special-target {
    padding: 0 .05em;
    margin: 0 -.05em;
  }
}

/* =========================================================
   v1.8.10.16 – Schmierzettel für das Wordplay
   Bewusst vollständig innerhalb des Clue-Widgets gekapselt.
   ========================================================= */

.ccw-scribble-toggle {
  display: flex !important;
  width: 100% !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: -8px 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ccw-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
  line-height: 1.45 !important;
  text-align: left !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.ccw-scribble-toggle:hover,
.ccw-scribble-toggle:focus,
.ccw-scribble-toggle:active {
  background: transparent !important;
  color: var(--ccw-ink) !important;
  box-shadow: none !important;
}

.ccw-scribble-toggle:focus-visible {
  outline: 2px solid var(--ccw-difficulty-color, #495C6B) !important;
  outline-offset: 5px;
}

.ccw-scribble-toggle-icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1.2;
}

.ccw-help-normal {
  min-width: 0;
}

.ccw-scribble-open .ccw-help-normal {
  display: none !important;
}

.ccw-scribble[hidden] {
  display: none !important;
}

.ccw-scribble {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 24px 0 0;
  padding: 14px;
  border: 1px solid var(--ccw-line);
  border-radius: 10px;
  background: var(--ccw-surface, #ffffff);
  color: var(--ccw-ink);
  overflow: visible;
}

.ccw-scribble-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.ccw-scribble-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
}

.ccw-widget .ccw-scribble-close,
.ccw-widget .ccw-scribble-close:hover,
.ccw-widget .ccw-scribble-close:focus,
.ccw-widget .ccw-scribble-close:active {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ccw-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.ccw-widget .ccw-scribble-close:hover,
.ccw-widget .ccw-scribble-close:focus-visible {
  text-decoration: underline;
}

.ccw-widget .ccw-scribble-close:focus-visible {
  outline: 2px solid var(--ccw-difficulty-color, #495C6B) !important;
  outline-offset: 3px;
}

.ccw-widget .ccw-scribble-tool,
.ccw-widget .ccw-scribble-tool:hover,
.ccw-widget .ccw-scribble-tool:focus,
.ccw-widget .ccw-scribble-tool:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--ccw-line) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: var(--ccw-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.ccw-widget .ccw-scribble-keyboard {
  display: none !important;
}

.ccw-widget .ccw-scribble-tool:hover,
.ccw-widget .ccw-scribble-tool:focus-visible {
  background: #f3f4f3 !important;
}

.ccw-widget .ccw-scribble-tool:focus-visible {
  outline: 2px solid var(--ccw-difficulty-color, #495C6B) !important;
  outline-offset: 2px;
}

.ccw-widget .ccw-scribble-tool.is-active,
.ccw-widget .ccw-scribble-tool[aria-pressed="true"] {
  background: #e5e7e6 !important;
  border-color: #a5aaa8 !important;
}

.ccw-widget .ccw-scribble-tool:disabled {
  opacity: .32 !important;
  cursor: default !important;
}

.ccw-scribble-tool svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ccw-scribble-board {
  --ccw-scribble-base-tile-size: 40px;
  --ccw-scribble-tile-size: var(--ccw-scribble-base-tile-size);
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 290px;
  border: 0;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
  cursor: text;
  transition: box-shadow .15s ease, background-color .15s ease;
}

.ccw-scribble-board.is-ccw-drop-target {
  box-shadow: inset 0 0 0 2px var(--ccw-difficulty-color, #495C6B);
  background: #fafbfa;
}

.ccw-scribble-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88%, 430px);
  transform: translate(-50%, -50%);
  color: var(--ccw-muted);
  font-size: .93em;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

.ccw-scribble-empty[hidden] {
  display: none !important;
}

.ccw-scribble-empty-title {
  display: block;
  margin-bottom: 5px;
  color: var(--ccw-ink);
  font-size: 1.04em;
}

.ccw-scribble-empty span {
  display: block;
}

.ccw-scribble-input {
  position: absolute !important;
  left: 8px !important;
  top: 8px !important;
  bottom: auto !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  opacity: .001 !important;
  color: transparent !important;
  caret-color: transparent !important;
  background: transparent !important;
  font-size: 16px !important;
  pointer-events: none !important;
}

.ccw-scribble-tile,
.ccw-scribble-drag-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--ccw-scribble-tile-size, 44px);
  height: var(--ccw-scribble-tile-size, 44px);
  border: 1.5px solid #565b5a;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ccw-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  font-size: calc(var(--ccw-scribble-tile-size, 44px) * .52);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
}

.ccw-scribble-tile {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  touch-action: none;
  cursor: grab;
}

.ccw-scribble-tile.is-active {
  background: #e5e7e6;
  border-color: #4f5553;
}

.ccw-scribble-tile.is-dragging {
  z-index: 10;
  cursor: grabbing;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.ccw-scribble-tile.is-circle-placeholder,
.ccw-scribble-tile.is-insert-placeholder {
  color: transparent !important;
  background: #f7f8f7 !important;
  border-style: dashed !important;
  border-color: #8e9693 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.ccw-scribble-tile:focus-visible {
  outline: 2px solid var(--ccw-difficulty-color, #495C6B);
  outline-offset: 2px;
}

.ccw-scribble-drag-ghost {
  --ccw-scribble-tile-size: 40px;
  position: fixed;
  z-index: 999999;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: #e5e7e6;
  opacity: .94;
}

.ccw-scribble-open .ccw-answer-cell:not([readonly]) {
  touch-action: none;
}

.ccw-answer-cell.is-ccw-scribble-drop-target {
  border-color: var(--ccw-difficulty-color, #495C6B) !important;
  box-shadow: inset 0 0 0 1px var(--ccw-difficulty-color, #495C6B) !important;
  background: #f3f4f3 !important;
}

.ccw-answer-cell.is-ccw-scribble-source {
  opacity: .55;
}

@media (hover: none) and (pointer: coarse) {
  .ccw-widget .ccw-scribble-keyboard {
    display: inline-flex !important;
  }
}

@media (max-width: 600px) {
  .ccw-scribble-toggle {
    margin-top: -6px !important;
    margin-bottom: 22px !important;
  }

  .ccw-scribble {
    margin-top: 20px;
    padding: 10px;
  }

  .ccw-scribble-toolbar {
    align-items: flex-start;
    gap: 6px;
  }

  .ccw-widget .ccw-scribble-close,
  .ccw-widget .ccw-scribble-close:hover,
  .ccw-widget .ccw-scribble-close:focus,
  .ccw-widget .ccw-scribble-close:active {
    flex: 1 0 100% !important;
    min-height: 32px !important;
  }

  .ccw-scribble-tools {
    width: 100%;
    gap: 5px;
  }

  .ccw-widget .ccw-scribble-tool,
  .ccw-widget .ccw-scribble-tool:hover,
  .ccw-widget .ccw-scribble-tool:focus,
  .ccw-widget .ccw-scribble-tool:active {
    flex-basis: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 21px !important;
  }

  .ccw-scribble-board {
    --ccw-scribble-base-tile-size: 34px;
    --ccw-scribble-tile-size: var(--ccw-scribble-base-tile-size);
    min-height: 265px;
  }

  .ccw-scribble-drag-ghost {
    --ccw-scribble-tile-size: 34px;
  }
}

/* FREISTIL: echte Leerzeichen bewahren; Darstellung nur für diesen Block. */
.ccw-freestyle .ccw-question { white-space: break-spaces; overflow-wrap: anywhere; }
.ccw-freestyle-title { white-space: break-spaces; }
.ccw-freestyle .ccw-fragment-invisible,
.ccw-freestyle-title .ccw-fragment-invisible {
  color: transparent !important;
  text-shadow: none !important;
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* Only graphemes intersecting the native selection regain the clue's own color. */
.ccw-freestyle .ccw-fragment-invisible .ccw-invisible-grapheme.is-ccw-text-selected,
.ccw-freestyle-title .ccw-fragment-invisible .ccw-invisible-grapheme.is-ccw-text-selected {
  color: var(--ccw-selection-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}
.ccw-editor-whitespace-help { white-space: pre-wrap; line-height: 2.5; overflow-wrap: anywhere; }
.ccw-editor-whitespace-help .components-button { vertical-align: baseline; font-family: monospace; }
