/* Gezielte Akzente aus der Dennis-Sontopski-CI.
   Flächen, Lesetexte und handgemalte Unterstriche bleiben eigenständig. */
:root {
  --turquoise: #1ea4b6;
  --red: #cc252f;
}

#gemeindeleben {
  --topic-accent: var(--turquoise);
  --topic-icon-ink: var(--navy);
}
#ortsentwicklung {
  --topic-accent: var(--blue);
  --topic-icon-ink: var(--white);
}
#tourismus-wirtschaft {
  --topic-accent: var(--yellow);
  --topic-icon-ink: var(--navy);
}
#infrastruktur {
  --topic-accent: var(--red);
  --topic-icon-ink: var(--white);
}
#mobilitaet {
  --topic-accent: var(--navy);
  --topic-icon-ink: var(--white);
}

#themen .topic,
#themen .topic[open],
#themen .topic:focus-within {
  border-left-color: var(--topic-accent, var(--blue));
}
#themen .topic-icon {
  background: var(--topic-accent, var(--blue));
  color: var(--topic-icon-ink, var(--white));
}
#themen .topic h3,
#themen .topic summary:hover h3,
#themen .topic summary:focus-visible h3 {
  color: var(--navy);
}

/* Kleine Farbflächen halten auch die roten Linien auf Navy klar lesbar. */
.help-grid > .help-card:nth-child(1) {
  --help-icon-background: var(--turquoise);
  --help-icon-ink: var(--navy);
}
.help-grid > .help-card:nth-child(2) {
  --help-icon-background: var(--yellow);
  --help-icon-ink: var(--navy);
}
.help-grid > .help-card:nth-child(3) {
  --help-icon-background: var(--red);
  --help-icon-ink: var(--white);
}
.help-card > .icon {
  width: 54px;
  height: 54px;
  padding: 10px;
  border-radius: 10px;
  background: var(--help-icon-background, var(--yellow));
  color: var(--help-icon-ink, var(--navy));
  stroke-width: 1.5;
}

@media (hover: hover) and (pointer: fine) {
  #themen .topic:hover {
    border-left-color: var(--topic-accent, var(--blue));
  }
}

@media print {
  #themen .topic-icon {
    background: transparent;
    color: var(--navy);
  }
}

@media (forced-colors: active) {
  #themen .topic-icon,
  .help-card > .icon {
    background: Canvas;
    color: CanvasText;
  }
}
