/* Webbaukasten – Highlights (Liste, Buttons, bewegte Buttons) */
.wbk-hl { --hl-p: var(--wp--preset--color--primary, #1f5f8b); --hl-a: var(--wp--preset--color--accent, var(--hl-p)); --hl-t: var(--wp--preset--color--contrast, #1d2327); --hl-b: var(--wp--preset--color--base, #fff); --hl-r: var(--wbk-radius, 12px); margin: 0 auto; }
.wbk-hl [hidden] { display: none !important; }
.wbk-hl-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; }
.wbk-hl-f { font: inherit; font-size: .92rem; padding: .45em 1em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--hl-t) 18%, transparent); background: var(--hl-b); color: var(--hl-t); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.wbk-hl-f:hover, .wbk-hl-f:focus-visible { border-color: var(--hl-p); }
.wbk-hl-f.is-on { background: var(--hl-p); border-color: var(--hl-p); color: #fff; }
.wbk-hl-f:focus-visible { outline: 2px solid var(--hl-p); outline-offset: 2px; }
.wbk-hl-count { text-align: center; margin: 0 0 14px; font-size: .9rem; opacity: .75; }
.wbk-hl-group { margin: 0 0 22px; }
.wbk-hl .wbk-hl-h { font-weight: 700; color: var(--hl-t); position: static; float: none; font-size: 1.05rem; line-height: 1.3; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wbk-hl--buttons .wbk-hl-h, .wbk-hl--bewegt .wbk-hl-h { justify-content: center; text-align: center; }
.wbk-hl .wbk-hl-h small { position: static; vertical-align: middle; line-height: 1.4; font-size: .78rem; font-weight: 600; padding: .1em .55em; border-radius: 999px; background: color-mix(in srgb, var(--hl-p) 12%, var(--hl-b)); color: var(--hl-p); }
.wbk-hl-list { list-style: none; margin: 0; padding: 0; }
.wbk-hl-i a { color: inherit; text-decoration: none; }

/* Liste: klassisch, mehrspaltig */
.wbk-hl--liste .wbk-hl-list { columns: 3 220px; column-gap: 28px; }
.wbk-hl--liste .wbk-hl-i { break-inside: avoid; position: relative; padding: 6px 0 6px 22px; border-bottom: 1px solid color-mix(in srgb, var(--hl-t) 8%, transparent); line-height: 1.35; }
.wbk-hl--liste .wbk-hl-i::before { content: ""; position: absolute; left: 4px; top: .95em; width: 8px; height: 8px; border-radius: 50%; background: var(--hl-p); }
.wbk-hl--liste .wbk-hl-i.is-sub { padding-left: 38px; font-size: .92em; opacity: .9; }
.wbk-hl--liste .wbk-hl-i.is-sub::before { left: 22px; width: 6px; height: 6px; background: transparent; border: 2px solid var(--hl-p); }
.wbk-hl--liste .wbk-hl-i a:hover, .wbk-hl--liste .wbk-hl-i a:focus-visible { color: var(--hl-p); text-decoration: underline; text-underline-offset: 3px; }

/* Buttons: Wortwolke */
.wbk-hl--buttons .wbk-hl-list, .wbk-hl--bewegt .wbk-hl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wbk-hl--buttons .wbk-hl-i, .wbk-hl--bewegt .wbk-hl-i { --mx: 0px; --my: 0px; font-size: calc(1rem * var(--s, 1)); }
.wbk-hl--buttons .wbk-hl-i > *, .wbk-hl--bewegt .wbk-hl-i > * { display: inline-flex; align-items: center; padding: .5em 1.05em; border-radius: 999px; background: color-mix(in srgb, var(--hl-p) 9%, var(--hl-b)); border: 1px solid color-mix(in srgb, var(--hl-p) 22%, transparent); color: var(--hl-t); line-height: 1.2; transition: background .2s, color .2s, box-shadow .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.wbk-hl--buttons .wbk-hl-i:nth-child(3n) > *, .wbk-hl--bewegt .wbk-hl-i:nth-child(3n) > * { background: color-mix(in srgb, var(--hl-a) 12%, var(--hl-b)); border-color: color-mix(in srgb, var(--hl-a) 28%, transparent); }
.wbk-hl--buttons .wbk-hl-i:nth-child(5n) > *, .wbk-hl--bewegt .wbk-hl-i:nth-child(5n) > * { background: var(--hl-b); }
.wbk-hl--buttons .wbk-hl-i.is-sub > *, .wbk-hl--bewegt .wbk-hl-i.is-sub > * { font-size: .9em; border-style: dashed; }
.wbk-hl--buttons .wbk-hl-i > a:hover, .wbk-hl--buttons .wbk-hl-i > a:focus-visible, .wbk-hl--bewegt .wbk-hl-i > a:hover, .wbk-hl--bewegt .wbk-hl-i > a:focus-visible { background: var(--hl-p); border-color: var(--hl-p); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--hl-p) 30%, transparent); }
.wbk-hl--buttons .wbk-hl-i > *:hover { transform: translateY(-2px); }
.wbk-hl-i a:focus-visible { outline: 2px solid var(--hl-p); outline-offset: 2px; }

/* Bewegte Buttons: schweben und weichen der Maus aus */
.wbk-hl--bewegt .wbk-hl-i { animation: wbk-hl-float 5.2s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -0.61s); }
.wbk-hl--bewegt .wbk-hl-i:nth-child(3n+1) { animation-duration: 6.4s; }
.wbk-hl--bewegt .wbk-hl-i:nth-child(4n+2) { animation-duration: 7.3s; animation-direction: alternate-reverse; }
.wbk-hl--bewegt .wbk-hl-i > * { transform: translate(var(--mx), var(--my)); }
.wbk-hl--bewegt .wbk-hl-i:hover { z-index: 2; position: relative; }
.wbk-hl--bewegt .wbk-hl-i:hover > * { transform: translate(var(--mx), var(--my)) scale(1.08); }
@keyframes wbk-hl-float { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(3px, -6px) rotate(.6deg); } 100% { transform: translate(-3px, 4px) rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .wbk-hl--bewegt .wbk-hl-i { animation: none; } .wbk-hl-i > * { transition: none !important; transform: none !important; } }
@media (max-width: 600px) { .wbk-hl--buttons .wbk-hl-list, .wbk-hl--bewegt .wbk-hl-list { gap: 8px; } .wbk-hl--buttons .wbk-hl-i, .wbk-hl--bewegt .wbk-hl-i { font-size: .93rem; } .wbk-hl-filter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .wbk-hl-f { flex: 0 0 auto; } }

/* Content-Aufbau */
.wbk-hl-admin .wbk-hl-cat { max-height: 420px; overflow: auto; border: 1px solid #dcdcde; border-radius: 8px; padding: 6px 10px; background: #fff; margin: 6px 0 10px; }
.wbk-hl-catg summary { cursor: pointer; padding: 6px 0; }
.wbk-hl-chks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; padding: 0 0 8px; }
.wbk-hl-chks label { font-size: 13px; }
.wbk-hl-chks label.is-sub { padding-left: 18px; color: #50575e; }
.wbk-hl-layouts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.wbk-hl-layouts label { display: flex; gap: 8px; align-items: flex-start; border: 1px solid #dcdcde; border-radius: 10px; padding: 10px 12px; background: #fff; cursor: pointer; }
.wbk-hl-layouts span { display: flex; flex-direction: column; }
.wbk-hl-layouts small { color: #50575e; }
.wbk-hl-rows input[type=text], .wbk-hl-rows input[type=url], .wbk-hl-rows select { width: 100%; min-width: 120px; }
.wbk-hl-rows td { vertical-align: top; }
.wbk-hl-act { white-space: nowrap; }
.wbk-hl-pick { border: 1px solid #dcdcde; border-radius: 8px; padding: 8px 12px; background: #fff; margin: 0 0 10px; }
.wbk-hl-pgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; max-height: 260px; overflow: auto; }
.wbk-hl-on { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: #f6f7f7; border-radius: 8px; margin: 0 0 12px; }
.wbk-hl-onrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 782px) { .wbk-hl-rows thead { display: none; } .wbk-hl-rows tr { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid #eee; } }
