/* Baukasten „Bau dir deine Seite“ (Paket A + B1 17.11.2026, Ebenen und Farbwelten 18.11.2026). Glas-CI, keine neuen Grundformen. */

.bk { display: grid; gap: clamp(26px, 4vw, 40px); padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-lg); }
.bk__schritt { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.bk__frage { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; font-size: clamp(19px, 2.4vw, 23px); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.bk__nr { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; font-weight: 800; color: var(--on-primary, #06101f); background: var(--gradient-primary); }
.bk__hilfe { margin: 0; font-size: 14px; color: var(--ink-muted); }

/* Branche: drei Wahl-Karten */
.bk__branchen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bk-wahl { position: relative; display: block; cursor: pointer; }
.bk-wahl__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-wahl__karte { display: grid; gap: 6px; height: 100%; padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); background: rgba(238, 242, 251, .03); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.bk-wahl__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 11px; color: var(--primary); background: rgba(94, 230, 214, .10); border: 1px solid rgba(94, 230, 214, .25); }
.bk-wahl__titel { font-weight: 700; font-size: 17px; color: var(--ink); }
.bk-wahl__zeile { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.bk-wahl:hover .bk-wahl__karte { border-color: rgba(238, 242, 251, .28); }
.bk-wahl__input:checked + .bk-wahl__karte { border-color: rgba(94, 230, 214, .7); background: linear-gradient(160deg, rgba(94, 230, 214, .12), rgba(91, 140, 255, .08)); box-shadow: 0 0 0 1px rgba(94, 230, 214, .35), 0 0 30px rgba(20, 184, 198, .12); }
.bk-wahl__input:focus-visible + .bk-wahl__karte { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Name */
.bk__feld { width: 100%; max-width: 520px; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); background: rgba(10, 16, 34, .55); color: var(--ink); font: inherit; font-size: 17px; }
.bk__feld::placeholder { color: rgba(169, 180, 207, .6); }
.bk__feld:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: transparent; }


/* Abschluss des Formulars */
.bk__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 24px; }
.bk__los { min-width: 220px; justify-content: center; }
.bk__versprechen { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-muted); }
.bk__versprechen li::before { content: "✓"; margin-right: 6px; color: var(--primary); font-weight: 700; }

/* Drei Schritte (Was du bekommst / Wie geht es weiter) – nummerierte Linie statt Karten */
.bk-schritte { counter-reset: bk; display: grid; align-content: start; align-self: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.bk-schritte li { counter-increment: bk; position: relative; display: grid; align-content: start; gap: 4px; min-height: 34px; padding: 5px 0 26px 52px; }
.bk-schritte li::before { content: counter(bk); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(94, 230, 214, .55); color: var(--primary); font-weight: 700; font-size: 15px; background: rgba(10, 16, 34, .6); }
.bk-schritte li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 1px; background: linear-gradient(180deg, rgba(94, 230, 214, .45), transparent); }
.bk-schritte li:last-child { padding-bottom: 0; }
.bk-schritte li:last-child::after { display: none; }
.bk-schritte strong { color: var(--ink); font-size: 17px; }
.bk-schritte span { color: var(--ink-muted); font-size: 15.5px; line-height: 1.55; }


@media (max-width: 760px) {
    .bk__branchen { grid-template-columns: minmax(0, 1fr); }
    .bk-wahl__karte { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 2px; }
    .bk-wahl__icon { grid-row: span 2; margin: 0; }
    .bk__los { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bk-wahl__karte { transition: none; } }


/* ---------- Paket B1 (17.11.2026): Beispiele, Farbmixer, Funktionen ---------- */

/* Beispiele je Branche: nur die Gruppe der gewählten Branche ist sichtbar (CSS :has, kein JavaScript nötig) */
.bk-arten { display: none; gap: 10px; }
.bk-arten__titel { margin: 0; font-size: 14px; color: var(--ink-muted); }
.bk-arten__liste { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-arten__leer { margin: 0; }
.bk:has(input[name=b][value=studio]:checked) .bk-arten--studio { display: grid; }
.bk:has(input[name=b][value=handwerk]:checked) .bk-arten--handwerk { display: grid; }
.bk:has(input[name=b][value=reitstall]:checked) .bk-arten--reitstall { display: grid; }
.bk:has(input[name=b]:checked) .bk-arten__leer { display: none; }

.bk-chip { position: relative; cursor: pointer; }
.bk-chip__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-chip span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--glass-border); font-size: 14.5px; color: var(--ink-muted); transition: border-color .2s ease, background .2s ease, color .2s ease; }
.bk-chip:hover span { border-color: rgba(238, 242, 251, .3); color: var(--ink); }
.bk-chip__input:checked + span { color: var(--on-primary); background: var(--gradient-primary); border-color: transparent; font-weight: 600; }
.bk-chip__input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.bk-farbwahl { display: grid; gap: 16px; }

.bk-mixer { display: none; gap: 12px; padding: 16px 18px; border-radius: var(--radius-md); border: 1px dashed rgba(238, 242, 251, .16); background: rgba(10, 16, 34, .35); }
.bk:has(input[name=f][value=eigene]:checked) .bk-mixer { display: grid; }
.bk-mixer__reihe { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; }
.bk-mixer__titel { margin: 0; font-size: 14.5px; color: var(--ink-muted); }
.bk-mixer__punkte { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-punkt { position: relative; cursor: pointer; }
.bk-punkt__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-punkt__farbe { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .15s ease, box-shadow .15s ease; }
.bk-punkt:hover .bk-punkt__farbe { transform: scale(1.08); }
.bk-punkt__input:checked + .bk-punkt__farbe { box-shadow: 0 0 0 2px var(--ground, #0a1022), 0 0 0 4px #eef2fb; }
.bk-punkt__input:focus-visible + .bk-punkt__farbe { outline: 2px solid var(--focus); outline-offset: 4px; }

.bk-c--tuerkis { background: #5ee6d6; }
.bk-c--himmel { background: #8fd3ff; }
.bk-c--blau { background: #6fa8ff; }
.bk-c--gruen { background: #8fe3a1; }
.bk-c--gold { background: #f5d27a; }
.bk-c--sand { background: #e9c99b; }
.bk-c--koralle { background: #ff9e8a; }
.bk-c--rose { background: #f4a9cc; }

/* Funktionen per Häkchen */
.bk-funktionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bk-funktionen__gruppe { display: grid; align-content: start; gap: 8px; padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); background: rgba(238, 242, 251, .025); }
.bk-funktionen__titel { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 4px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.bk-funktionen__titel small { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.bk-haken { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.bk-haken:hover { background: rgba(238, 242, 251, .04); }
.bk-haken__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-haken__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid rgba(238, 242, 251, .35); transition: background .15s ease, border-color .15s ease; }
.bk-haken__input:checked + .bk-haken__box { border-color: transparent; background: var(--gradient-primary); }
.bk-haken__input:checked + .bk-haken__box::after { content: "✓"; font-size: 14px; font-weight: 800; color: var(--on-primary); }
.bk-haken__input:focus-visible + .bk-haken__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.bk-haken__text { display: grid; gap: 1px; }
.bk-haken__text b { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.bk-haken__text small { font-size: 13.5px; color: var(--ink-muted); }

@media (max-width: 760px) {
    .bk-funktionen { grid-template-columns: minmax(0, 1fr); }
    .bk-mixer__reihe { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}


/* ---------- Farbwelten (18.11.2026): Kacheln als Mini-Seite, gruppiert Hell / Dunkel ---------- */
.bk-welten { display: grid; gap: 10px; }
.bk-welten__titel { margin: 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bk-welten__liste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bk-welt { position: relative; display: block; cursor: pointer; }
.bk-welt__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-welt .welt__seite { transition: box-shadow .2s ease, transform .2s ease; }
.bk-welt:hover .welt__seite { transform: translateY(-2px); }
.bk-welt__input:checked + .welt .welt__seite { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--primary), 0 10px 30px rgba(20, 184, 198, .18); }
.bk-welt__input:checked + .welt .welt__seite::after { content: "✓"; position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 800; color: var(--on-primary); background: var(--primary); }
.bk-welt__input:checked + .welt .welt__name { color: var(--ink); }
.bk-welt__input:focus-visible + .welt .welt__seite { outline: 2px solid var(--focus); outline-offset: 5px; }
.welt__seite--mix { background: conic-gradient(from 200deg, #5ee6d6, #6fa8ff, #f4a9cc, #ff9e8a, #f5d27a, #8fe3a1, #5ee6d6); border-color: var(--glass-border); }
.welt__seite--mix::before { display: none; }
.bk-mixer { margin-top: 4px; }
.bk-name { display: grid; gap: 8px; padding-top: 6px; }
.bk-name__label { font-weight: 700; font-size: 17px; color: var(--ink); }
.bk-name__label span { margin-left: 6px; font-weight: 400; font-size: 14px; color: var(--ink-muted); }

/* ---------- Ebenen (18.11.2026): nur mit JavaScript (Klasse .bk--ebenen), sonst alles untereinander ---------- */
.bk-kopf { display: grid; gap: 12px; }
.bk-kopf[hidden] { display: none; }
.bk-kopf__zeile { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bk-kopf__zeile [data-bk-stand] { color: var(--ink); }
.bk-kopf__balken { height: 6px; border-radius: 3px; background: rgba(238, 242, 251, .12); overflow: hidden; }
.bk-kopf__balken i { display: block; width: 25%; height: 100%; border-radius: 3px; background: var(--gradient-primary); transition: width .35s ease; }
.bk-spur { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bk-spur:empty { display: none; }
.bk-spur__pille { display: grid; gap: 0; padding: 6px 14px 7px; border-radius: 14px; border: 1px solid var(--glass-border); background: rgba(238, 242, 251, .04); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.bk-spur__pille small { font-size: 11.5px; line-height: 16px; color: var(--ink-muted); }
.bk-spur__pille span { font-size: 14px; line-height: 20px; font-weight: 600; }
.bk-spur__pille:hover { border-color: rgba(238, 242, 251, .4); }
.bk-spur__pille.is-aktiv { border-color: rgba(94, 230, 214, .6); background: rgba(94, 230, 214, .08); cursor: default; }
.bk-spur__pille.is-aktiv span { color: var(--primary); font-weight: 500; }
.bk-spur__pille:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.bk--ebenen .bk__schritt { display: none; }
.bk--ebenen .bk__schritt.is-aktiv { display: grid; }
.bk--ebenen .bk__nr { display: none; }
.bk--ebenen .bk__frage { font-size: clamp(22px, 3vw, 28px); outline: none; }
.bk--ebenen .bk-arten__leer { display: none; }
.bk-rein--vor { animation: bk-vor .32s cubic-bezier(.2, .7, .2, 1); }
.bk-rein--zurueck { animation: bk-zurueck .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes bk-vor { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes bk-zurueck { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.bk__fuss { justify-content: flex-start; }
.bk--ebenen .bk__fuss { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 16px; }
.bk--ebenen .bk__zurueck { grid-column: 1; }
.bk--ebenen .bk__weiter, .bk--ebenen .bk__los { grid-column: 3; min-width: 180px; }
.bk--ebenen .bk__abkuerzung { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
.bk--ebenen .bk__versprechen { grid-column: 1 / -1; }
.bk--ebenen.bk--erster .bk__versprechen { grid-row: 1; grid-column: 1 / -1; }
.bk__zurueck[hidden], .bk__weiter[hidden], .bk__los[hidden], .bk__abkuerzung[hidden] { display: none; }
.bk__abkuerzung { padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bk__abkuerzung:hover { color: var(--ink); }

@media (max-width: 960px) {
    .bk-welten__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .bk-welten__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bk--ebenen .bk__fuss { grid-template-columns: auto 1fr; }
    .bk--ebenen .bk__weiter, .bk--ebenen .bk__los { grid-column: 2; min-width: 0; width: 100%; }
    .bk--ebenen.bk--erster .bk__fuss { display: none; }
    .bk--ebenen .bk__abkuerzung { justify-self: center; }
    .bk--ebenen .bk__versprechen { display: none; }
    .bk-chip span { padding: 12px 18px; font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .bk-rein--vor, .bk-rein--zurueck { animation: none; }
    .bk-kopf__balken i, .bk-welt .welt__seite { transition: none; }
}
.bk-name { padding-top: 0; }
.bk-name__label { margin: 8px 0 0; }
.bk__weiter, .bk__los { white-space: nowrap; }
@media (max-width: 760px) { .bk--ebenen .bk__weiter, .bk--ebenen .bk__los { padding-inline: 16px; } }

/* Designrichtungen (18.11.2026): Kacheln als Mini-Seite in der jeweiligen Richtung (assets/css/stile.css) */
.bk-richtungen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bk-richtung .richtung__seite { transition: box-shadow .2s ease, transform .2s ease; }
.bk-richtung:hover .richtung__seite { transform: translateY(-2px); }
.bk-welt__input:checked + .richtung .richtung__seite { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--primary), 0 10px 30px rgba(20, 184, 198, .18); }
.bk-welt__input:checked + .richtung .richtung__seite::after { content: "✓"; position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 800; color: var(--on-primary); background: var(--primary); }
.bk-welt__input:checked + .richtung .richtung__name { color: var(--ink); }
.bk-welt__input:focus-visible + .richtung .richtung__seite { outline: 2px solid var(--focus); outline-offset: 5px; }
@media (max-width: 760px) { .bk-richtungen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .bk-richtung .richtung__seite { transition: none; } }
