.ashp_button {
  --ashp-bg: #a9c308;
  --ashp-bg-hover: #9bb406;
  --ashp-bg-active: #8ba205;
  --ashp-text: black;
  --ashp-border: rgba(28, 38, 0, 0.18);
  --ashp-focus: #5a7000;
  --ashp-disabled-bg: #dfe5c8;
  --ashp-disabled-text: #8a9070;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;

  min-width: 120px;
  min-height: 30px;
  max-width: 100%;
  padding: 0.6em 1.2em;
  margin-right: 10px;

  font: inherit;
  font-size: 100%;
  line-height: 1.2;
  color: var(--ashp-text);
  text-align: center;
  text-decoration: none;

  background: var(--ashp-bg);
  border: 1px solid var(--ashp-border);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(28, 38, 0, 0.12),
    0 2px 6px rgba(28, 38, 0, 0.08);

  cursor: pointer;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;

  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.ashp_button:hover {
  background: var(--ashp-bg-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(28, 38, 0, 0.14),
    0 4px 12px rgba(28, 38, 0, 0.1);
}


.ashp_button:active {
  background: var(--ashp-bg-active);
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(28, 38, 0, 0.2);
  filter: invert(100%);
}

.ashp_button:focus-visible {
  outline: 2px solid var(--ashp-focus);
  outline-offset: 2px;
}

.ashp_button:disabled,
.ashp_button[aria-disabled="true"] {
  background: var(--ashp-disabled-bg);
  color: var(--ashp-disabled-text);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.ashp_button:disabled .ashp_button_icon,
.ashp_button[aria-disabled="true"] .ashp_button_icon {
  opacity: 0.45;
  filter: grayscale(1);
}
.ashp_button[data-color="red"] {
  --ashp-bg: #c62828;
  --ashp-bg-hover: #b02222;
  --ashp-bg-active: #961c1c;
  --ashp-text: #ffebe5;
  --ashp-border: rgba(80, 0, 0, 0.25);
  --ashp-focus: #8e1b1b;
  --ashp-disabled-bg: #f1d6d4;
  --ashp-disabled-text: #a87f7c;
}

.ashp_button[data-color="red"]:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(80, 0, 0, 0.18),
    0 4px 12px rgba(80, 0, 0, 0.12);
}

.ashp_button[data-color="red"]:active {
  box-shadow: inset 0 1px 2px rgba(60, 0, 0, 0.3);
}
.ashp_button[data-color="red"] .ashp_button_icon
{
    filter: invert(100%);
}

.ashp_button_icon {
  flex: 0 0 auto;
  display: block;
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
  pointer-events: none;
}

.ashp_button_caption {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (hover: none) {
  .ashp_button:hover {
    background: var(--ashp-bg);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 1px 2px rgba(28, 38, 0, 0.12),
      0 2px 6px rgba(28, 38, 0, 0.08);
  }
}

@media (max-width: 480px) {
  .ashp_button {
    display: flex;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ashp_button {
    transition: none;
  }
}
.button_captionrow {
  --captionrow-button-width: 180px;

  display: flex;
  align-items: center;
  gap: 1em;
  
}
.button_captionrow > *
{
    align-self: flex-start;
}

.button_captionrow > .ashp_button {
  flex: 0 0 auto;
  min-width: var(--captionrow-button-width);
  margin: 0;
}

.button_captionrow_text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .button_captionrow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4em;
    margin-bottom: 20px;
  }

  .button_captionrow > .ashp_button {
    width: 100%;
    margin: 0;
  }

  .button_captionrow_text {
    
  }
}

.buttonrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.buttonrow > .ashp_button {
  flex: 0 1 auto;
  margin: 0;
}

.buttonrow_center { justify-content: center; }
.buttonrow_right  { justify-content: flex-end; }

@media (max-width: 480px) {
  .buttonrow {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .buttonrow > .ashp_button {
    width: 100%;
    margin: 0;
  }

  /* Variante: Buttons bleiben auch mobil nebeneinander, gleich breit */
  .buttonrow_compact {
    flex-direction: row;
  }

  .buttonrow_compact > .ashp_button {
    flex: 1 1 0;
    min-width: 0;
  }
}

.ashp_hintbutton {
  --hb-bg: #5aaee8;
  --hb-bg-hover: #3d97d6;
  --hb-focus: #2a6fb0;

  position: relative;
  top: -0.45em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.8em;
  height: 0.8em;
  margin: 0 0 0 0.15em;
  padding: 0;
  vertical-align: baseline;

  font-family: Georgia, "Times New Roman", serif;
  font-size: inherit;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: #fff;

  background: var(--hb-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.15s ease;
}

.ashp_hintbutton > span {
  font-size: 0.65em;
  pointer-events: none;
}

.ashp_hintbutton::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
}

.ashp_hintbutton:hover,
.ashp_hintbutton[aria-expanded="true"] {
  background: var(--hb-bg-hover);
}

.ashp_hintbutton:focus-visible {
  outline: 2px solid var(--hb-focus);
  outline-offset: 2px;
}

.ashp_hintpopover {
  position: absolute;
  z-index: 1000;
  max-width: min(320px, calc(100vw - 16px));
  box-sizing: border-box;
  padding: 0.6em 0.8em;
  font-size: 0.9rem;
  font-weight: normal;
  font-style: normal;
  line-height: 1.4;
  color: #1d3a52;
  background: #eaf5fd;
  border: 1px solid #b6dbf5;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

@media (hover: none) {
  .ashp_hintbutton:hover {
    background: var(--hb-bg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ashp_hintbutton { transition: none; }
}