@charset "UTF-8";
/* @ondemand */
.kkh-button {
  --button-color: var(--kkh-text);
  --button-background: transparent;
  --button-border: var(--kkh-text);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  justify-content: space-between;
  gap: clamp(1.4rem, calc(1.4rem + (2 - 1.4) * 10 * ((100vw - 325px) / (1920 - 325))), 2rem);
  min-height: 44px;
  padding: clamp(1.1rem, calc(1.1rem + (2.5 - 1.1) * 10 * ((100vw - 325px) / (1920 - 325))), 2.5rem) clamp(1.4rem, calc(1.4rem + (4 - 1.4) * 10 * ((100vw - 325px) / (1920 - 325))), 4rem);
  border: 1px solid var(--button-border);
  border-radius: var(--kkh-radius);
  background: var(--button-background);
  color: var(--button-color);
  font-family: var(--kkh-font-sans);
  font-size: var(--fs-s-sm);
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.kkh-button:hover:not(:disabled, [aria-disabled=true]) {
  border-color: var(--kkh-rot);
  background-color: var(--kkh-rot);
  color: var(--kkh-weiss);
  --kkh-button-icon: var(--kkh-weiss);
}
.kkh-button:hover {
  text-decoration: none;
}
.kkh-button:hover:not(:disabled, [aria-disabled=true]) .kkh-button__icon {
  color: currentColor;
}
.kkh-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.kkh-button:disabled, .kkh-button[aria-disabled=true] {
  opacity: 0.45;
  pointer-events: none;
}

/*
 * Kleiner Kreis/Pfeil wie im Figma.
 * Am besten darin ein SVG mit currentColor verwenden.
 */
.kkh-button__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(1.3rem, calc(1.3rem + (2.4 - 1.3) * 10 * ((100vw - 325px) / (1920 - 325))), 2.4rem);
  height: clamp(1.3rem, calc(1.3rem + (2.4 - 1.3) * 10 * ((100vw - 325px) / (1920 - 325))), 2.4rem);
  color: currentColor;
}
.kkh-button__icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  mask: url("../../assets/icons/arrow-right.svg") center/contain no-repeat;
}
.kkh-button__icon svg {
  display: none;
}

/* Outline auf hellem Hintergrund */
.kkh-button--outline {
  --button-color: var(--kkh-text);
  --button-background: transparent;
  --button-border: var(--kkh-text);
}

.kkh-button--outline .kkh-button__icon,
.kkh-button--light .kkh-button__icon {
  color: var(--kkh-rot);
}

.kkh-button--anchor .kkh-button__icon {
  color: var(--kkh-text);
}
.kkh-button--anchor .kkh-button__icon::before {
  mask-image: url("../../assets/icons/arrow-down.svg");
}

.kkh-button--download .kkh-button__icon {
  width: clamp(1.1rem, calc(1.1rem + (2.1 - 1.1) * 10 * ((100vw - 325px) / (1920 - 325))), 2.1rem);
  height: auto;
  aspect-ratio: 21/23.34;
  color: var(--kkh-text);
}
.kkh-button--download .kkh-button__icon::before {
  mask-image: url("../../assets/icons/pdf-download.svg");
}

.kkh-button[href^=http]:not([href*=kardinal-koenig-haus]) .kkh-button__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--kkh-text);
  color: var(--kkh-creme);
}
.kkh-button[href^=http]:not([href*=kardinal-koenig-haus]) .kkh-button__icon::before {
  width: 72%;
  height: 72%;
  mask: url("../../assets/icons/arrow-pagination.svg") center/contain no-repeat;
  rotate: 45deg;
}

.kkh-button--dark {
  --button-color: var(--kkh-creme);
  --button-background: var(--kkh-text);
  --button-border: var(--kkh-text);
}
.kkh-button--dark .kkh-button__icon {
  color: var(--kkh-creme);
}

.kkh-button--outline-red {
  --button-color: var(--kkh-rot);
  --button-background: transparent;
  --button-border: var(--kkh-rot);
}

/* Primärer roter Button */
.kkh-button--filled {
  --button-color: var(--kkh-weiss);
  --button-background: var(--kkh-rot);
  --button-border: var(--kkh-rot);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.kkh-button--filled:hover:not(:disabled, [aria-disabled=true]) {
  border-color: var(--kkh-rot-dunkel);
  background-color: var(--kkh-rot-dunkel);
  color: var(--kkh-weiss);
  --kkh-button-icon: var(--kkh-weiss);
}
.kkh-button--filled .kkh-button__icon {
  color: var(--button-color);
}

/*
 * Im Design tauchen auch sehr dezente helle Buttons auf.
 */
.kkh-button--light {
  --button-color: var(--kkh-text);
  --button-background: var(--kkh-creme);
  --button-border: var(--kkh-creme);
}

/*
 * Kontextmodifier gehört auf die rote Section.
 */
.kkh-on-red .kkh-button--outline .kkh-button__icon {
  color: inherit;
}
.kkh-on-red .kkh-button--outline {
  --button-color: var(--kkh-creme);
  --button-background: transparent;
  --button-border: var(--kkh-creme);
}
.kkh-on-red .kkh-button--filled,
.kkh-on-red .kkh-button--light {
  --button-color: var(--kkh-text);
  --button-background: var(--kkh-creme);
  --button-border: var(--kkh-creme);
}
.kkh-on-red .kkh-button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.kkh-on-red .kkh-button:hover:not(:disabled, [aria-disabled=true]) {
  border-color: var(--kkh-rot-dunkel);
  background-color: var(--kkh-rot-dunkel);
  color: var(--kkh-weiss);
  --kkh-button-icon: var(--kkh-weiss);
}
