/* Avigon: Cookie-Banner, gesperrte Inhalte, Cookie-Übersicht und Links zu den rechtlichen Seiten. Gilt für alle Designs. */
.avc, .avc-float {
  --avc-bg: #ffffff;
  --avc-ink: #14202a;
  --avc-muted: #5b6874;
  --avc-line: rgba(20, 32, 42, 0.12);
  --avc-accent: var(--avb-accent, #0f766e);
  --avc-on-accent: #ffffff;
  font-family: inherit;
}
.avc.avc-dark, .avc-float.avc-dark {
  --avc-bg: #0e141a;
  --avc-ink: #eef5f8;
  --avc-muted: #93a3ae;
  --avc-line: rgba(255, 255, 255, 0.12);
  --avc-on-accent: #04111a;
}
.avc { position: fixed; z-index: 2147483000; inset: auto 0 0 0; display: flex; justify-content: center; padding: 1rem; pointer-events: none; }
.avc-center { inset: 0; align-items: center; background: rgba(5, 10, 14, 0.45); pointer-events: auto; }
.avc-corner { inset: auto auto 0 0; justify-content: flex-start; }
.avc-box {
  pointer-events: auto; width: min(44rem, 100%); max-height: calc(100dvh - 2rem); overflow: auto;
  display: grid; gap: 0.7rem; padding: 1.25rem 1.3rem; border-radius: 18px;
  background: var(--avc-bg); color: var(--avc-ink); border: 1px solid var(--avc-line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28); animation: avc-in 0.35s cubic-bezier(.2, .8, .2, 1);
}
.avc-corner .avc-box { width: min(26rem, 100%); }
.avc-title { font-size: 1.08rem; }
.avc-text { margin: 0; line-height: 1.55; font-size: 0.93rem; color: var(--avc-muted); }
.avc-links { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0; font-size: 0.85rem; }
.avc-links a { color: var(--avc-accent); font-weight: 650; }
.avc-cats { display: grid; gap: 0.4rem; }
.avc-cats[hidden] { display: none; }
.avc-cat { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0.7rem; border-radius: 12px; border: 1px solid var(--avc-line); cursor: pointer; }
.avc-cat input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--avc-accent); flex: none; }
.avc-cat span { display: grid; gap: 0.15rem; }
.avc-cat em { font-style: normal; font-size: 0.82rem; color: var(--avc-muted); line-height: 1.45; }
.avc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.avc-btn {
  flex: 1 1 10rem; min-height: 44px; padding: 0.6rem 1rem; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer;
  border: 1px solid var(--avc-line); background: transparent; color: var(--avc-ink);
}
.avc-btn.avc-primary { background: var(--avc-accent); border-color: var(--avc-accent); color: var(--avc-on-accent); }
.avc-btn.avc-plain { flex: 0 1 auto; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.avc-btn:hover { filter: brightness(1.06); }
.avc-float {
  position: fixed; z-index: 2147482000; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--avc-bg); color: var(--avc-accent); border: 1px solid var(--avc-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
body:has(.app-nav) .avc-float { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
@keyframes avc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .avc { padding: 0.5rem; }
  .avc-box { padding: 1rem; }
  .avc-btn { flex-basis: 100%; }
}

/* Gesperrte Inhalte */
.consent-ph { position: relative; display: grid; place-items: center; min-height: 14rem; height: 100%; padding: 1rem; border-radius: 14px; background: color-mix(in srgb, currentColor 8%, transparent); }
.video-frame > .consent-ph { position: absolute; inset: 0; border-radius: 0; background: #11181e; color: #eef5f8; }
.consent-ph-box { display: grid; gap: 0.5rem; max-width: 30rem; text-align: center; }
.consent-ph-box p { margin: 0; font-size: 0.88rem; opacity: 0.8; line-height: 1.5; }
.consent-ph-box a { color: inherit; }
.consent-ph-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.consent-ph-actions button {
  min-height: 40px; padding: 0.5rem 0.9rem; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit;
}
.consent-ph-actions button + button { background: var(--avb-accent, #0f766e); border-color: transparent; color: #fff; }

/* Cookie-Übersicht */
.cookie-overview .wrap { display: grid; gap: 1rem; }
.cookie-overview h2 { margin: 0; }
.cookie-cats { display: grid; gap: 0.7rem; }
.cookie-cat { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 16px; padding: 0.2rem 1rem; }
.cookie-cat summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; cursor: pointer; }
.cookie-cat summary::-webkit-details-marker { display: none; }
.cookie-cat summary > span { display: grid; gap: 0.2rem; }
.cookie-cat summary em { font-style: normal; font-size: 0.88rem; opacity: 0.72; line-height: 1.45; }
.cookie-always { font-size: 0.8rem; font-weight: 700; white-space: nowrap; opacity: 0.7; }
.cookie-switch { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; flex: none; }
.cookie-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-switch span { width: 44px; height: 26px; border-radius: 99px; background: color-mix(in srgb, currentColor 22%, transparent); position: relative; transition: background 0.2s; }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.cookie-switch input:checked + span { background: var(--avb-accent, #0f766e); }
.cookie-switch input:checked + span::after { transform: translateX(18px); }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--avb-accent, #0f766e); outline-offset: 2px; }
.cookie-switch em { font-style: normal; font-size: 0.82rem; font-weight: 700; }
.cookie-service { display: grid; gap: 0.25rem; padding: 0.8rem 0; border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.cookie-service > span { font-size: 0.84rem; opacity: 0.7; }
.cookie-service p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.cookie-service a { font-size: 0.85rem; color: var(--avb-accent, #0f766e); }
.cookie-none { opacity: 0.7; font-size: 0.85rem !important; }
.cookie-table { overflow-x: auto; }
.cookie-table table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); vertical-align: top; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-status { margin: 0; font-weight: 700; color: var(--avb-accent, #0f766e); }
.cookie-note { margin: 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: color-mix(in srgb, #f5b428 18%, transparent); }

/* Links zu den rechtlichen Seiten */
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; padding: 1rem; font-size: 0.85rem; }
.legal-links a { color: inherit; opacity: 0.75; text-decoration: none; }
.legal-links a:hover { opacity: 1; text-decoration: underline; }
.ice-legal { display: grid; gap: inherit; }
.legal-text h2 { margin-top: 1.6rem; }
.legal-text h3 { margin-top: 1.2rem; }
