/* Hinweisleiste – liest die Template-Tokens (--ui-*) mit Rückfall */
.basis-hinweis {
  --_bg: var(--ui-color-accent, #2563eb);
  --_fg: var(--ui-color-on-accent, #fff);
  background: var(--_bg);
  color: var(--_fg);
  font-size: .95rem;
  line-height: 1.45;
}

.basis-hinweis[hidden] { display: none; }

.basis-hinweis--info {
  --_bg: color-mix(in srgb, var(--ui-color-info, #2563eb) 14%, var(--ui-color-bg, #fff));
  --_fg: var(--ui-color-heading, #1f2328);
}

.basis-hinweis--warning {
  --_bg: color-mix(in srgb, var(--ui-color-warning, #d97706) 22%, var(--ui-color-bg, #fff));
  --_fg: var(--ui-color-heading, #1f2328);
}

.basis-hinweis--dark {
  --_bg: var(--ui-color-heading, #1f2328);
  --_fg: var(--ui-color-bg, #fff);
}

.basis-hinweis__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: var(--ui-container, 1320px);
  margin-inline: auto;
  padding: .55rem var(--ui-gutter, 1rem);
}

.basis-hinweis__text {
  flex: 1;
  text-align: center;
}

.basis-hinweis__text > :first-child { margin-top: 0; }
.basis-hinweis__text > :last-child { margin-bottom: 0; }
.basis-hinweis__text p { display: inline; margin: 0; }

.basis-hinweis a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.basis-hinweis__link { margin-inline-start: .5rem; white-space: nowrap; }

.basis-hinweis__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.basis-hinweis__close svg { width: 1.1rem; height: 1.1rem; }

.basis-hinweis__close:hover { background: color-mix(in srgb, currentColor 15%, transparent); }

.basis-hinweis__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 599px) {
  .basis-hinweis { font-size: .875rem; }
  .basis-hinweis__text { text-align: start; }
}
