/*
 * Farbeschop-Werkzeuge (24.11.2026, neu 26.11.2026): Ideenautomat.
 * Laedt nur auf Seiten mit [fs_ideenwuerfel]. Der Farbmischer hat seit 26.11.2026 farbeschop-mischer.css.
 * Tokens wie in farbeschop-entwuerfe.css: Indigo, Ultramarin, 10px-Ecken, keine Pillen.
 */
.fsw {
	--fs-ink: var(--ds-black, #161b45);
	--fs-akzent: var(--ds-red, #2233ff);
	--fs-grund: #f2f2f2;
	--fs-linie: rgba(22, 27, 69, 0.14);
	--fs-leise: rgba(22, 27, 69, 0.62);
	--fs-r: var(--ds-btn-radius, 10px);
	--fs-r-klein: 6px;
	font-family: var(--ds-font);
	color: var(--fs-ink);
	margin: 0 0 48px;
}
.fsw [hidden] { display: none !important; }
.fsw button { font-family: inherit; }
.fsw .fs-btn { min-height: 44px; }
.fsw .fs-btn:disabled { opacity: 0.45; cursor: not-allowed; background: transparent; color: var(--fs-ink); }
.fsw .fs-btn--voll:disabled { background: var(--fs-ink); color: #fff; }

/* ---------- gemeinsame Teile ---------- */
.fsw-schritt { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 700; }
.fsw-schritt span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--fs-r-klein); background: var(--fs-ink); color: #fff; font-size: 0.85rem; }
.fsw-hinweis, .fsw-fussnote { font-size: 0.85rem; color: var(--fs-leise); margin: 10px 0 0; max-width: 70ch; }
.fsw-fussnote { margin-top: 22px; }
.fsw-status { min-height: 1.4em; margin: 10px 0 0; font-size: 0.95rem; }
.fsw-status a { font-weight: 700; color: var(--fs-akzent); }
.fsw-chip-knopf {
	min-height: 36px; padding: 0 14px; border: 2px solid var(--fs-linie); border-radius: var(--fs-r-klein);
	background: #fff; color: var(--fs-ink); font-size: 0.9rem; font-weight: 600; cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.fsw-chip-knopf:hover { border-color: var(--fs-ink); }
.fsw-chip-knopf.is-aktiv { background: var(--fs-ink); border-color: var(--fs-ink); color: #fff; }
.fsw-chip-knopf:focus-visible { outline: 3px solid var(--fs-akzent); outline-offset: 2px; }
.fsw-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.fsw-linie { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fs-leise); }
.fsw-linie select {
	min-height: 44px; padding: 0 38px 0 14px; border: 2px solid var(--fs-ink); border-radius: var(--fs-r);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23161b45' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	-webkit-appearance: none; appearance: none; color: var(--fs-ink); font: 600 1rem var(--ds-font); text-transform: none; letter-spacing: 0; max-width: 100%;
}

/* =====================================================================
 * Ideenautomat, zweite Fassung (26.11.2026)
 * Oben Auswahl (Stimmung, Womit), darunter der Automat mit drei Walzen:
 * Motiv, Dreh, Farben. Bewusst ohne Muenzen, Einsatz oder Gewinne.
 * ================================================================== */
.fsa { --gelb: #ffd400; --nacht: #0b0f2e; --glas: #fbfaf5; max-width: 1104px; margin-left: auto; margin-right: auto; }

/* Auswahl oben */
.fsa-wahl { display: grid; gap: 14px; margin-bottom: 22px; padding: clamp(14px, 2.4vw, 22px); border-radius: var(--fs-r); background: var(--fs-grund); }
.fsa-wahl__zeile { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
.fsa-wahl__titel { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fs-leise); }
.fsa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fsa-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
	border: 2px solid transparent; border-radius: var(--fs-r-klein); background: #fff; color: var(--fs-ink);
	font-size: 0.92rem; font-weight: 700; cursor: pointer; box-shadow: 0 1px 2px rgba(22, 27, 69, 0.08);
	transition: border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.1s;
}
.fsa-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fsa-chip:hover { border-color: var(--fs-ink); }
.fsa-chip:active { transform: translateY(1px); }
.fsa-chip.is-aktiv { background: var(--fs-ink); color: #fff; }
.fsa-chip:focus-visible { outline: 3px solid var(--fs-akzent); outline-offset: 2px; }

/* Gehaeuse */
.fsa-automat { position: relative; }
.fsa-gehaeuse {
	position: relative; padding: 0 clamp(14px, 3vw, 30px) clamp(18px, 3vw, 28px);
	border-radius: 22px 22px 14px 14px;
	background: linear-gradient(180deg, #252c6b 0%, var(--fs-ink) 40%, #10143a 100%);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), inset 0 -6px 0 rgba(0, 0, 0, 0.35), 0 30px 60px -34px rgba(11, 15, 46, 0.9);
	color: #fff;
}
/* Schild mit Lichterkette */
.fsa-schild {
	position: relative; margin: 0 auto 18px; padding: 16px 28px 14px; width: fit-content; max-width: 100%;
	border-radius: 0 0 14px 14px; background: var(--nacht);
	box-shadow: inset 0 0 0 2px rgba(255, 212, 0, 0.35);
	font-size: clamp(1.1rem, 2.6vw, 1.6rem); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
	color: var(--gelb); text-shadow: 0 0 12px rgba(255, 212, 0, 0.55);
}
.fsa-schild::before {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 6px;
	background: radial-gradient(circle, var(--gelb) 0 2.2px, transparent 3px) 0 0 / 16px 6px;
	opacity: 0.7;
}
.fsa-gehaeuse.is-dreht .fsa-schild::before { animation: fsa-lauflicht 0.4s linear infinite; opacity: 1; }
.fsa-gehaeuse.is-fertig .fsa-schild { animation: fsa-aufleuchten 1s ease-out; }
@keyframes fsa-lauflicht { to { background-position: 16px 0; } }
@keyframes fsa-aufleuchten { 30% { text-shadow: 0 0 26px var(--gelb); color: #fff6b0; } }

/* Anzeige mit Aufgabensatz */
.fsa-anzeige {
	position: relative; margin: 0 0 18px; padding: 16px 20px; min-height: 4.2em;
	display: flex; align-items: center;
	border-radius: 10px; background: var(--nacht);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), inset 0 8px 20px rgba(0, 0, 0, 0.6);
}
.fsa-anzeige__satz { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 700; line-height: 1.25; color: #fff; text-wrap: balance; }
.fsa-anzeige__satz.is-warten { color: rgba(255, 212, 0, 0.75); }
.fsa-anzeige__satz.is-warten::after { content: "…"; animation: fsa-blinken 0.7s steps(2) infinite; }
@keyframes fsa-blinken { 50% { opacity: 0; } }

/* Walzen */
.fsa-walzen {
	display: grid; grid-template-columns: 1.15fr 1.15fr 1fr; gap: 10px; padding: 10px;
	border-radius: 14px; background: #060920;
	box-shadow: inset 0 0 0 2px rgba(255, 212, 0, 0.25), inset 0 10px 24px rgba(0, 0, 0, 0.7);
}
.fsa-walze { --h: 74px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fsa-walze__kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 0; }
.fsa-walze__name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #a9aedb; }
.fsa-walze__neu { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--fs-r-klein); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background-color 0.15s; }
.fsa-walze__neu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s; }
.fsa-walze__neu:hover { background: rgba(255, 255, 255, 0.18); }
.fsa-walze__neu:hover svg { transform: rotate(160deg); }
.fsa-walze__fenster {
	position: relative; height: calc(var(--h) * 3); overflow: hidden; border-radius: 10px;
	background: linear-gradient(90deg, #d9d6c8, var(--glas) 18%, #fff 50%, var(--glas) 82%, #d9d6c8);
}
.fsa-walze__fenster::before {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
	background: linear-gradient(rgba(6, 9, 32, 0.78), rgba(6, 9, 32, 0) 30%, rgba(6, 9, 32, 0) 70%, rgba(6, 9, 32, 0.78));
}
.fsa-walze__fenster::after {
	content: ""; position: absolute; left: 0; right: 0; top: var(--h); height: var(--h); z-index: 3; pointer-events: none;
	box-shadow: inset 0 2px 0 var(--gelb), inset 0 -2px 0 var(--gelb);
}
.fsa-walze__band { position: relative; z-index: 1; display: flex; flex-direction: column; will-change: transform; }
.fsa-zeile { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: var(--h); padding: 0 12px; text-align: center; color: var(--fs-ink); }
.fsa-zeile__text { font-size: 1.02rem; font-weight: 800; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fsa-zeile__farben { display: flex; gap: 5px; }
.fsa-zeile__farben i { display: block; width: 28px; height: 28px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(22, 27, 69, 0.18); }
.fsa-zeile__name { font-size: 0.78rem; font-weight: 700; line-height: 1.1; }
.fsa-walze.is-dreht .fsa-walze__band { filter: blur(1.6px); }
.fsa-walze.is-stopp .fsa-walze__fenster { animation: fsa-ruck 0.35s ease-out; }
@keyframes fsa-ruck { 40% { transform: translateY(3px); } }

/* Halten: Taste wie am Automaten */
.fsa-walze__halten {
	display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
	border: 0; border-radius: 8px; background: #2a3070; color: #dfe2ff;
	font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35); transition: background-color 0.15s, transform 0.1s;
}
.fsa-walze__halten svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fsa-walze__halten .fsa-buegel { transition: transform 0.2s; transform-origin: 16px 11px; transform: rotate(18deg) translateY(-1px); }
.fsa-walze__halten:hover { background: #353c86; }
.fsa-walze__halten:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35); }
.fsa-walze.is-fest .fsa-walze__halten { background: var(--gelb); color: var(--fs-ink); }
.fsa-walze.is-fest .fsa-buegel { transform: none; }
.fsa-walze.is-fest .fsa-walze__fenster { box-shadow: 0 0 0 3px var(--gelb); }
.fsa-walze__neu:focus-visible, .fsa-walze__halten:focus-visible, .fsa-drehen:focus-visible, .fsa-hebel:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

/* Konsole mit grossem Knopf */
.fsa-konsole { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.fsa-drehen {
	flex: 1 1 260px; min-height: 60px; padding: 0 28px; border: 0; border-radius: 12px;
	background: var(--gelb); color: var(--fs-ink);
	font-size: 1.15rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
	box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.22), 0 10px 22px -10px rgba(255, 212, 0, 0.6);
	transition: transform 0.1s, box-shadow 0.1s, filter 0.15s;
}
.fsa-drehen:hover { filter: brightness(1.06); }
.fsa-drehen:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22); }
.fsa-konsole__klein { display: flex; flex-wrap: wrap; gap: 8px; }
.fsa-knopf {
	min-height: 44px; padding: 0 14px; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 8px;
	background: transparent; color: #fff; font-size: 0.9rem; font-weight: 700; cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}
.fsa-knopf:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.fsa-knopf:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

/* Hebel rechts (breite Bildschirme) */
.fsa-hebel { display: none; }
@media (min-width: 980px) {
	.fsa-automat { padding-right: 64px; }
	.fsa-hebel { display: block; position: absolute; top: 34%; right: 6px; width: 52px; height: 200px; padding: 0; border: 0; background: none; cursor: pointer; }
	.fsa-hebel::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 56px; border-radius: 0 10px 10px 0; background: linear-gradient(90deg, #10143a, #2a3070); }
	.fsa-hebel__stange { position: absolute; left: 18px; bottom: 36px; width: 10px; height: 140px; border-radius: 5px; background: linear-gradient(90deg, #8b90b5, #f1f2fa 45%, #8b90b5); transform-origin: 50% 100%; }
	.fsa-hebel__kugel { position: absolute; left: 3px; top: 0; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff2a0, var(--gelb) 50%, #c79a00); box-shadow: 0 6px 14px -4px rgba(11, 15, 46, 0.55); }
	.fsa-hebel:hover .fsa-hebel__kugel { filter: brightness(1.08); }
	.fsa-hebel.is-gezogen .fsa-hebel__stange { animation: fsa-stange 0.75s cubic-bezier(0.3, 0, 0.3, 1); }
	.fsa-hebel.is-gezogen .fsa-hebel__kugel { animation: fsa-kugel 0.75s cubic-bezier(0.3, 0, 0.3, 1); }
}
@keyframes fsa-stange { 40% { transform: scaleY(0.22); } }
@keyframes fsa-kugel { 40% { transform: translateY(110px); } }

/* Unter dem Automaten: Shop und Uhr */
.fsa-unten { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 14px; margin-top: 16px; }
.fsa-shop, .fsa-uhr { padding: 16px 18px; border-radius: var(--fs-r); background: var(--fs-grund); }
.fsa-shop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fsa-shop__womit { margin: 0; flex: 1 1 100%; font-size: 0.95rem; }
.fsa-shop__farben { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fsa-shop__farben li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: var(--fs-r-klein); background: #fff; font-size: 0.85rem; font-weight: 600; }
.fsa-shop__farben li::before { content: ""; width: 26px; height: 26px; border-radius: 5px; background: var(--f); box-shadow: inset 0 0 0 1px rgba(22, 27, 69, 0.15); }
.fsa-shop__link { font-weight: 700; color: var(--fs-akzent); text-decoration: underline; text-underline-offset: 3px; }
.fsa-uhr { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px; }
.fsa-uhr__anzeige { margin: 0; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.fsa-uhr .fsa-chips { justify-content: flex-end; }
.fsa-uhr .fsa-chip { min-height: 36px; padding: 0 10px; font-size: 0.85rem; }
.fsa-uhr__start { grid-column: 1 / -1; }
.fsa.is-laeuft .fsa-uhr__anzeige { color: var(--fs-akzent); }
.fsa.is-um .fsa-uhr { box-shadow: inset 0 0 0 2px var(--fs-akzent); }

.fsa-merkliste { margin-top: 14px; padding: 12px 16px; border-radius: var(--fs-r); background: var(--fs-grund); }
.fsa-merkliste summary { font-weight: 700; cursor: pointer; }
.fsa-merkliste ol { margin: 10px 0 0; padding-left: 1.2em; }
.fsa-merkliste li { padding: 4px 0; }
.fsa-merkliste li a { color: var(--fs-ink); }
.fsa-weg { margin-left: 8px; border: 0; background: none; color: var(--fs-leise); font-size: 1.1rem; cursor: pointer; }

/* Schmal */
@media (max-width: 760px) {
	.fsa-wahl__zeile { grid-template-columns: 1fr; gap: 6px; }
	.fsa-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.fsa-chip { flex: none; }
	.fsa-unten { grid-template-columns: 1fr; }
	.fsa-walzen { grid-template-columns: 1fr 1fr 0.9fr; gap: 6px; padding: 6px; }
	.fsa-walze { --h: 66px; }
	.fsa-zeile { padding: 0 6px; }
	.fsa-zeile__text { font-size: 0.82rem; -webkit-line-clamp: 3; }
	.fsa-zeile__farben i { width: 18px; height: 18px; border-radius: 4px; }
	.fsa-zeile__name { font-size: 0.68rem; }
	.fsa-walze__name { font-size: 0.62rem; letter-spacing: 0.06em; }
	.fsa-walze__neu { width: 28px; height: 28px; }
	.fsa-walze__halten span { display: none; }
	.fsa-konsole__klein { width: 100%; }
	.fsa-knopf { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.fsa *, .fsa *::before, .fsa *::after { animation: none !important; transition: none !important; }
	.fsa-walze.is-dreht .fsa-walze__band { filter: none; }
}
