/* Weihnachtskugel-Generator (Michael, 31.10.2026) – Aufbau wie der Vasengenerator: links Einstellungen, rechts große 3D-Vorschau, unten Ergebnis */
.wk-kopf p { max-width: 680px; margin-left: auto; margin-right: auto; }
.wk { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); grid-template-areas: "steuer rechts"; gap: 24px 28px; align-items: start; }
.wk-steuer { grid-area: steuer; display: flex; flex-direction: column; gap: 16px; }
.wk-rechts { grid-area: rechts; position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 12px; }   /* bleibt beim Scrollen stehen */

.wk-karte { padding: 18px 20px 16px; border-radius: 20px; background: #fbf3e4; border: 1px solid #e6cfa6; box-shadow: 0 4px 14px rgba(60, 35, 15, .06); }
.wk-karte h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 22px; letter-spacing: .5px; color: var(--ink, #3c2a1c); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wk-nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red, #7b1a12); color: #fdf1dc; font-size: 15px; }
.wk-klein { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: #6b5a47; letter-spacing: 0; }
.wk-unter { margin: 10px 0 6px; font-weight: 700; color: var(--ink, #3c2a1c); }
.wk-unter:first-of-type { margin-top: 0; }
.wk-unter small { font-weight: 600; color: #6b5a47; }
.wk-hilfe { margin: 8px 0 0; font-size: 13.5px; color: #6b5a47; }

.wk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-chip { min-height: 44px; padding: 0 14px; border: 1.5px solid #c9a67c; border-radius: 999px; background: #fffaf0; color: #2b2620; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.wk-chip:hover { border-color: #2b2620; transform: translateY(-1px); }
.wk-chip[aria-pressed="true"] { background: var(--red, #7b1a12); border-color: var(--red, #7b1a12); color: #fdf1dc; }
.wk-chip:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.wk-chip:focus-visible, .wk-schrift:focus-visible, .wk-ansicht button:focus-visible { outline: 2px solid var(--red, #7b1a12); outline-offset: 2px; }

.wk-feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-weight: 700; color: var(--ink, #3c2a1c); }
.wk-feld[hidden] { display: none; }
.wk-feld input, .wk-feld textarea { font: inherit; font-weight: 400; font-size: 17px; padding: 10px 12px; border: 1.5px solid var(--tan-input, #d6bd9a); border-radius: 12px; background: #fff; color: var(--ink, #3c2a1c); text-transform: none; letter-spacing: 0; resize: vertical; }
.wk-feld input:focus, .wk-feld textarea:focus { outline: none; border-color: var(--red, #7b1a12); box-shadow: 0 0 0 3px rgba(123, 26, 18, .12); }

.wk-schriften { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.wk-schrift { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 60px; padding: 8px 10px; border: 2px solid #e0c79f; border-radius: 14px; background: #fffaf0; color: var(--ink, #3c2a1c); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.wk-schrift b { font-size: 21px; font-weight: 400; line-height: 1.2; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wk-schrift span { font-size: 12px; color: #6b5a47; }
.wk-schrift[aria-pressed="true"] { border-color: var(--red, #7b1a12); background: #fff; box-shadow: 0 0 0 3px rgba(123, 26, 18, .12); }

.wk-regler { margin-bottom: 12px; }
.wk-regler-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wk-regler-kopf label { font-weight: 700; color: var(--ink, #3c2a1c); }
.wk-regler-kopf output { font-weight: 700; color: var(--red, #7b1a12); font-variant-numeric: tabular-nums; }
.wk input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 4px 0 0; background: transparent; cursor: pointer; --fuell: 0%; }
.wk input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--red, #7b1a12) var(--fuell), #e0c79f var(--fuell)); }
.wk input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: #e0c79f; }
.wk input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--red, #7b1a12); }
.wk input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fdf6e8; border: 3px solid var(--red, #7b1a12); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.wk input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fdf6e8; border: 3px solid var(--red, #7b1a12); }
.wk input[type="range"]:focus-visible { outline: 2px solid var(--red, #7b1a12); outline-offset: 2px; border-radius: 8px; }

.wk-haken { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--ink, #3c2a1c); cursor: pointer; flex-wrap: wrap; }
.wk-haken input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--red, #7b1a12); }
.wk-jahr { width: 92px; font: inherit; font-size: 16px; padding: 8px 10px; border: 1.5px solid var(--tan-input, #d6bd9a); border-radius: 10px; background: #fff; color: var(--ink, #3c2a1c); }
.wk-jahr:disabled { opacity: .5; }

.wk-farben { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 12px; margin-top: 12px; }
.wk-farben label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink, #3c2a1c); cursor: pointer; }
.wk-farben input[type="color"] { width: 40px; height: 34px; padding: 2px; border: 1.5px solid #c9a67c; border-radius: 10px; background: #fff; cursor: pointer; }

.wk-buehne-box { position: relative; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #fff7e6 0%, #f1dfc0 55%, #e3c9a4 100%); border: 1px solid #e0c79f; box-shadow: var(--shadow-media, 0 12px 26px rgba(60, 35, 15, .16)); }
.wk-buehne { display: block; width: 100%; height: min(calc(100vh - 120px), 640px); min-height: 380px; cursor: grab; touch-action: none; outline-offset: -4px; }
.wk-buehne:active { cursor: grabbing; }
.wk-ohne { margin: 18px; padding: 14px 16px; border-radius: 14px; background: #fbeed9; border: 1px solid #e6cfa6; color: #4a2f10; font-size: 15px; }
.wk-tipp { position: absolute; top: 12px; left: 0; right: 0; margin: 0; text-align: center; font-size: 13px; color: #7a6246; pointer-events: none; }
.wk-ansicht { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(253, 246, 232, .9); box-shadow: 0 2px 8px rgba(60, 35, 15, .15); }
.wk-ansicht button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink, #3c2a1c); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wk-ansicht button[aria-pressed="true"] { background: var(--red, #7b1a12); color: #fdf1dc; }
.wk-rechnet { position: absolute; top: 12px; right: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(43, 38, 32, .78); color: #fdf1dc; font-size: 13px; font-weight: 600; }
.wk-rechnet[hidden] { display: none; }

.wk-meldungen:empty { display: none; }
.wk-meldung { margin: 0 0 8px; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.4; }
.wk-meldung-fehler { background: #fde4df; border: 1px solid #e7a99c; color: #6d1a0e; }
.wk-meldung-hinweis { background: #fbeed9; border: 1px solid #e6cfa6; color: #4a2f10; }

.wk-leiste { padding: 16px 20px; border-radius: 20px; background: #f1dfc0; border: 1px solid #e0c79f; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wk-werte b { overflow-wrap: anywhere; }
.wk-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
.wk-werte div { display: flex; flex-direction: column; }
.wk-werte span { font-size: 12.5px; color: #6b5a47; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.wk-werte b { font-size: 17px; color: var(--ink, #3c2a1c); font-variant-numeric: tabular-nums; }
.wk-werte b.wk-ok { color: #2f6b2a; }
.wk-werte b.wk-nein { color: #9b2414; }
.wk-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.wk-knoepfe .btn { flex: 1 1 160px; text-align: center; }
.wk-knoepfe .btn[disabled] { opacity: .5; cursor: not-allowed; }
.wk-zurueck { background: #fff; color: var(--red, #7b1a12); border: 2px solid var(--red, #7b1a12); }
.wk-bericht { grid-column: 1 / -1; font-size: 14.5px; }
.wk-bericht summary { cursor: pointer; font-weight: 700; color: var(--red, #7b1a12); min-height: 32px; }
.wk-bericht ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.wk-bericht li { padding-left: 26px; position: relative; color: var(--ink, #3c2a1c); }
.wk-bericht li::before { content: '✓'; position: absolute; left: 4px; color: #2f6b2a; font-weight: 800; }
.wk-bericht li.wk-nein::before { content: '✗'; color: #9b2414; }
.wk-info { margin: 18px 0 0; padding: 0 0 0 18px; font-size: 14.5px; color: #4b3625; display: grid; gap: 6px; }

@media (max-width: 900px) {
  .wk { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rechts" "steuer"; }
  /* Handy: Vorschau oben fest, Einstellungen scrollen darunter durch */
  .wk-rechts { position: sticky; top: 0; z-index: 6; gap: 6px; margin-inline: calc(50% - 50vw); padding: 6px calc(50vw - 50%) 8px; background: var(--neu-creme, #faf6f1); box-shadow: 0 8px 14px -10px rgba(60, 35, 15, .35); }
  .wk-buehne { height: 38vh; min-height: 230px; max-height: 360px; }
  .wk-tipp { display: none; }
  .wk-meldung { margin-bottom: 4px; padding: 8px 12px; font-size: 13.5px; }
  .wk-leiste { grid-template-columns: 1fr; }
  .wk-werte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-knoepfe { justify-content: stretch; }
  .wk-knoepfe .btn { flex: 1 1 auto; }
  .wk-schriften { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .wk-chip, .wk-schrift { transition: none; } }

/* Bestellen (31.10.2026) */
.wk-formular { display: grid; gap: 12px; }
.wk-formular p { margin: 0; }
.wk-formular .wk-feld { margin-bottom: 0; }
.wk-anzahl { max-width: 110px; }
.wk-summe { font-weight: 700; color: var(--red, #7b1a12); }
.wk-zufrieden { align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fffaf0; font-weight: 600; font-size: 15px; }
.wk-zufrieden input { margin-top: 2px; flex: none; }
.wk-honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wk-meldung { padding: 12px 14px; border-radius: 12px; background: #eef6ec; color: #2d5a27; font-weight: 600; }
.wk-meldung.ist-fehler { background: #fdecea; color: #8e1f1f; }
.wk-formular .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Links im Fließtext unterstrichen – nicht nur an der Farbe erkennbar (Barrierefreiheit, Wartung 01.11.2026) */
.wk-hilfe a, .wk-info a, .wk-formular p a { text-decoration: underline; text-underline-offset: 2px; }
