/* wheelsuite.de – Zusatz zu styles.css (identisch mit dropwheel.de) und den Beleg-/Fenster-Bausteinen von homewheel.de.
   Eigenes der Suite: die Naht (zwei Papiere nebeneinander), das Aufgaben-Register, Hell/Dunkel. */
:root {
  --paper: #f1eee9; --paper-2: #e7e3dc; --paper-3: #d9d3ca;
  --sheet: #fbf9f4; --green: #17734d; --violet: #6c5ce7; --violet-2: #8b7cf6;
  --dw-paper: #f2eee4; --hw-paper: #eeebf3; --hw-c: #8b7cf6; --dw-c: #06b6d4;
}
/* ---------- Abendpapier: warmer, dunkler Tisch, helle Zettel darauf ---------- */
[data-bs-theme="dark"] {
  --paper: #1c1a17; --paper-2: #24211d; --paper-3: #2f2b26;
  --ink: #ece4d4; --ink-2: #cdc4b2; --ink-3: #968d7e; --rule: rgba(236, 228, 212, .15);
  --sheet: #e9e0cd; --green: #7fd1a6; --violet: #e0a458; --violet-2: #e0a458;
  --dw-paper: #221f19; --hw-paper: #1f1c24; --desk-shadow: #0d0c0a;
  --bs-body-bg: var(--paper); --bs-body-color: var(--ink); --bs-border-color: var(--rule);
  --bs-link-color-rgb: 236, 228, 212; --bs-link-hover-color-rgb: 224, 164, 88; --bs-emphasis-color: var(--ink);
}
/* Zettel bleiben hell, wie unter einer Schreibtischlampe; Schatten dunkler als der Tisch */
[data-bs-theme="dark"] :is(.receipt, .task-card, .fc-drop, .fc-result, .qe, .drag-chip, .key, .req-table, .reg-search) {
  --ink: #221f1a; --ink-2: #4b4439; --ink-3: #776e5f; --rule: rgba(34, 31, 26, .16); --paper: #f1e9d6; --paper-2: #ddd3bd; --sheet: #e9e0cd; --green: #17734d;
  background-color: #e9e0cd; color: #221f1a; border-color: #221f1a;
}
[data-bs-theme="dark"] :is(.receipt, .fc-result, .screen) { box-shadow: 8px 10px 0 var(--desk-shadow); }
[data-bs-theme="dark"] .task-card:hover { box-shadow: 5px 6px 0 var(--desk-shadow); }
[data-bs-theme="dark"] .screen { border-color: #0d0c0a; }
[data-bs-theme="dark"] .hub { fill: #e9e0cd; } [data-bs-theme="dark"] .hub-title { fill: #221f1a; } [data-bs-theme="dark"] .hub-kicker, [data-bs-theme="dark"] .hub-sub { fill: #4b4439; }
[data-bs-theme="dark"] .seg path { stroke: #0d0c0a; } [data-bs-theme="dark"] .wheel-shadow { fill: #0d0c0a; }
[data-bs-theme="dark"] .seg text { fill: #15130f; }
[data-bs-theme="dark"] .section-ink { background: #12110e; color: #ece4d4; }
[data-bs-theme="dark"] .section-ink .facts li { color: #cdc4b2; }
[data-bs-theme="dark"] .section-ink .facts li b { color: #f6efe0; }
[data-bs-theme="dark"] .btn-ink { --bs-btn-hover-bg: #f6efe0; --bs-btn-hover-border-color: #f6efe0; --bs-btn-active-bg: #f6efe0; --bs-btn-active-border-color: #f6efe0; --bs-btn-hover-color: #1c1a17; }
[data-bs-theme="dark"] .navbar-toggler-icon { filter: invert(1) sepia(.3); }
[data-bs-theme="dark"] .link-ink:hover { border-bottom-color: #e0a458; }
[data-bs-theme="dark"] :focus-visible { outline-color: #e0a458; }
[data-bs-theme="dark"] .seam-plus { box-shadow: 0 0 0 6px var(--paper); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
.only-dark { display: none; } [data-bs-theme="dark"] .only-dark { display: block; } [data-bs-theme="dark"] .only-light { display: none; }

.theme-btn { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; line-height: 1; border: 1.5px solid var(--ink); border-radius: 8px; background: transparent; color: var(--ink); padding: .42rem .55rem; }
.theme-btn:hover { background: var(--ink); color: var(--paper); }
.brand-mark { width: 34px; height: 34px; }

/* ---------- Hero ---------- */
.hero-suite { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-suite .display-hero { font-size: clamp(2.7rem, 7.2vw, 5.6rem); }
.hero-suite .l-dw, .hero-suite .l-hw { position: relative; display: inline-block; isolation: isolate; }
.hero-suite .l-dw::after, .hero-suite .l-hw::after { content: ""; position: absolute; left: .02em; right: .04em; bottom: .04em; height: .13em; z-index: -1; }
.hero-suite .l-dw::after { background: linear-gradient(90deg, #06b6d4 0 12.5%, #f43f5e 0 25%, #8b5cf6 0 37.5%, #10b981 0 50%, #f59e0b 0 62.5%, #3b82f6 0 75%, #ec4899 0 87.5%, #14b8a6 0); }
.hero-suite .l-hw::after { background: linear-gradient(90deg, #8b7cf6 0 16.66%, #2dd4bf 0 33.33%, #fb7185 0 50%, #f472b6 0 66.66%, #fbbf24 0 83.33%, #4ade80 0); }

/* ---------- Die Naht ---------- */
.seam { display: grid; grid-template-columns: 1fr 1fr; border-block: 1.5px solid var(--ink); margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.seam-half { padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.seam-dw { background: var(--dw-paper); border-right: 1.5px solid var(--ink); }
.seam-hw { background: var(--hw-paper); }
.seam-plus { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 800 1.9rem/1 var(--font-display); box-shadow: 0 0 0 6px var(--paper); z-index: 3; }
.seam-head { display: flex; align-items: center; gap: .8rem; }
.seam-head img { width: 44px; height: 44px; }
.seam-head b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.seam-head span { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.seam-stage { flex: 1; display: grid; place-items: center; min-height: 340px; position: relative; }
.seam-stage .wheel-stage { width: min(430px, 100%); }
.seam-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.seam-foot .meta-line { margin: 0; flex-basis: 100%; }
.btn-hw-suite::after { background: linear-gradient(90deg, #8b7cf6 0 16.66%, #2dd4bf 0 33.33%, #fb7185 0 50%, #f472b6 0 66.66%, #fbbf24 0 83.33%, #4ade80 0) !important; }
.hw-shot { position: relative; width: 100%; padding: 0 0 3.5rem 0; }
.hw-shot .receipt { position: absolute; right: -.5rem; bottom: 0; width: min(250px, 62%); transform: rotate(1.5deg); }
@media (max-width: 991px) {
  .seam { grid-template-columns: 1fr; }
  .seam-dw { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .seam-plus { top: auto; translate: -50% 0; position: relative; left: 50%; margin: -27px 0; grid-row: 2; }
  .seam-hw { grid-row: 3; }
}

/* Bausteine von homewheel.de, hier nur die Grundform */
.receipt { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: 6px 7px 0 var(--ink); color: var(--ink); }
.screen { border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--sheet); box-shadow: 8px 10px 0 var(--ink); }
.screen-bar { font-family: var(--font-mono); background: var(--paper-2); }
.zero-receipt { max-width: 380px; }
.section-ink .zero-receipt { background: #fbf9f4; color: #15131c; }
.section-ink .lead-copy { color: inherit; opacity: .85; }

/* ---------- Aufgaben-Register ---------- */
.reg-tools { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-bottom: 1.5rem; }
.reg-search { flex: 1 1 260px; max-width: 420px; font-family: var(--font-mono); font-size: .9rem; padding: .6rem .9rem; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--sheet); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.reg-search::placeholder { color: var(--ink-3); }
.reg-search:focus { outline: 2.5px solid var(--violet); outline-offset: 2px; }
.reg-filter { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.reg-filter button { font-family: var(--font-mono); font-size: .78rem; border: 0; background: transparent; color: var(--ink); padding: .55rem .8rem; }
.reg-filter button + button { border-left: 1.5px solid var(--ink); }
.reg-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.reg-count { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); }
.task-card .task-app { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.task-card[hidden] { display: none; }
.reg-empty { font-family: var(--font-mono); font-size: .9rem; color: var(--ink-3); padding: 1.5rem 0; }

/* ---------- Download ---------- */
.dl-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1.5px solid var(--ink); }
.dl-row:last-of-type { border-bottom: 1.5px solid var(--ink); }
.dl-row h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .6rem 0 .5rem; }
.dl-row .seam-head img { width: 40px; height: 40px; }
.dl-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1rem; font-family: var(--font-mono); font-size: .8rem; }
.req-table code { font-size: .72rem; word-break: break-all; background: transparent; padding: 0; }
@media (max-width: 767px) { .dl-row { grid-template-columns: 1fr; } }

.footer-list a[href^="http"]::after { content: " ↗"; font-family: var(--font-mono); font-size: .8em; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .wheel.intro { animation: none; } }
.screen > img { height: auto; }
.screen > img.only-dark, [data-bs-theme="dark"] .screen > img.only-light { display: none; }
[data-bs-theme="dark"] .screen > img.only-dark { display: block; }
.section-ink .facts li { color: #cfcbc4; }
.section-ink .facts li b { color: #fff; }
.seam-stage .wheel-stage { width: min(480px, 100%); }
.hero-suite { overflow-x: clip; }
@media (max-width: 575px) { .hw-shot .receipt { right: 0; } .seam-stage { min-height: 0; } }
.section-ink { overflow-x: clip; }

.drag-chip { transition: transform .7s cubic-bezier(.5, 0, .2, 1), opacity .3s; z-index: 3; }
.drag-result { left: auto !important; right: 2%; top: auto !important; bottom: 4%; opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .3s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.drag-result.on { opacity: 1; transform: none; }
.drag-result .chip-ico.ok { background: #10b981; color: #fff; }
.kbd-try { border: 0; background: transparent; color: var(--ink-2); font-family: var(--font-mono); font-size: .78rem; padding: .2rem 0; display: inline-flex; gap: .25rem; align-items: center; }
.kbd-try:hover { color: var(--ink); }
.kbd-try .key { font-size: .72rem; }

/* Beleg: Monate + Aufblinken */
.rc-months { display: flex; gap: 3px; margin: -.2rem 0 .55rem; }
.rc-months button { flex: 1; height: 7px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; padding: 0; }
.rc-months button[aria-selected="true"] { background: #8b7cf6; }
.ledger li.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { background: rgba(251, 191, 36, .55); } 100% { background: transparent; } }

/* Ausprobieren */
.try-dw { background: var(--dw-paper); border-top: 1.5px solid var(--ink); }
.try-hw { background: var(--hw-paper); border-block: 1.5px solid var(--ink); }
.section-head .sec-no + h2 { margin-top: .6rem; }
.wi-ctl { margin-top: 1.4rem; }
.wi-ctl label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: .4rem; }
.wi-ctl output { font-family: var(--font-mono); font-weight: 500; }
.wi-ctl input[type=range] { width: 100%; accent-color: #8b7cf6; height: 1.6rem; }
[data-bs-theme="dark"] .wi-ctl input[type=range] { accent-color: #e0a458; }
.wi-receipt { max-width: 460px; margin-inline: auto; }
.wi-dates { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .8rem; margin: .4rem 0 1rem; }
.wi-dates small { display: block; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; color: var(--ink-3); }
.wi-dates b { font-size: 1.35rem; letter-spacing: -.02em; }
.wi-arrow { font-family: var(--font-mono); font-size: 1.4rem; padding-bottom: .1rem; }
.wi-ring { display: flex; align-items: center; gap: 1rem; padding: .8rem 0 1rem; border-block: 1.5px dashed var(--ink); margin-bottom: .6rem; }
.wi-ring svg { width: 96px; height: 96px; flex: none; }
.wi-ring b { display: block; font-size: 1.3rem; letter-spacing: -.02em; }
.wi-ring small { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); }

/* Aufgaben-Laufband */
.marquee { display: grid; gap: .9rem; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.marquee.filtering::before, .marquee.filtering::after { display: none; }
.mq-track { will-change: transform; }
.mq-row { overflow: hidden; }
.mq-track { display: flex; gap: .9rem; width: max-content; animation: mq 70s linear infinite; padding: .3rem 0 .6rem; }
.mq-row.rev .mq-track { animation-direction: reverse; animation-duration: 80s; }
.mq-row:hover .mq-track, .mq-row:focus-within .mq-track { animation-play-state: paused; }
.mq-track .task-card { width: 270px; flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee.filtering .mq-track { animation: none; width: auto; flex-wrap: wrap; }
.marquee.filtering .dup { display: none; }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .mq-row { overflow-x: auto; } .dup { display: none; } }

/* Overlays */
.ov { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 18, 15, .25); }
.ov[hidden] { display: none; }
.ov-wheel { position: fixed; width: 380px; height: 380px; margin: -190px 0 0 -190px; animation: pop .22s cubic-bezier(.3, 1.4, .5, 1); }
.ov-wheel svg, .qe-wheel svg { width: 100%; height: 100%; overflow: visible; display: block; }
/* gleiche Formensprache wie das Rad auf dropwheel.de: dicke Tinte, Farbflächen, Mono-Beschriftung, Segment springt raus */
.ws-wheel .w-shadow { fill: #15131c; transform: translate(6px, 9px); }
.ws-wheel .w-seg { cursor: pointer; outline: none; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.ws-wheel .w-seg path { fill: var(--c); stroke: #15131c; stroke-width: 3; stroke-linejoin: round; }
.ws-wheel .w-seg text { font: 500 11.5px var(--font-mono); fill: #15131c; pointer-events: none; letter-spacing: .02em; }
.ws-wheel .w-seg text.w-no { font-size: 10px; opacity: .65; }
.ws-wheel .w-seg:hover, .ws-wheel .w-seg:focus-visible, .ws-wheel .w-seg.on { transform: translate(calc(var(--dx) * 12px), calc(var(--dy) * 12px)); }
.ws-wheel .w-seg:focus-visible path { stroke-width: 5; }
.ws-wheel .w-hub { fill: #fbf9f4; stroke: #15131c; stroke-width: 3; }
.ws-wheel .w-kicker { font: 500 10px var(--font-mono); fill: #6a6676; letter-spacing: .12em; }
.ws-wheel .w-title { font: 800 22px var(--font-display); fill: #15131c; letter-spacing: -.03em; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.qe { position: fixed; left: 50%; top: 50%; translate: -50% -50%; width: min(380px, calc(100% - 2rem)); background: #fbf9f4; color: #15131c; border: 1.5px solid #15131c; border-radius: 18px; box-shadow: 10px 12px 0 #0d0c0a; padding: 1rem 1.1rem 1.1rem; animation: pop .22s cubic-bezier(.3, 1.4, .5, 1); }
.qe-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.qe-head small { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; border: 1.5px solid currentColor; border-radius: 5px; padding: 0 .3rem; }
.qe-wheel { width: 250px; height: 250px; margin: .2rem auto .6rem; }
.qe-form { display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; margin-top: .8rem; }
.qe-form input { font-family: var(--font-mono); font-size: .9rem; border: 1.5px solid #15131c; border-radius: 9px; padding: .5rem .6rem; background: #fff; color: #15131c; min-width: 0; }
.qe-hint { font-size: .78rem; color: #6a6676; margin: .7rem 0 0; }
.ws-toast { position: fixed; left: 50%; bottom: 1.4rem; translate: -50% 20px; z-index: 3100; background: #15131c; color: #f1eee9; font-family: var(--font-mono); font-size: .82rem; padding: .6rem 1rem; border-radius: 10px; box-shadow: 5px 6px 0 #8b7cf6; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; }
.ws-toast.on { opacity: 1; translate: -50% 0; }
[data-bs-theme="dark"] .ws-toast { background: #e9e0cd; color: #221f1a; box-shadow: 5px 6px 0 #e0a458; }
html { overflow-x: clip; } .seam-foot { row-gap: .6rem; }
.qe-wheel .ws-wheel .w-seg text { font-size: 10.5px; } .qe-wheel .ws-wheel .w-title { font-size: 18px; }
