/* Kacheln im Streaming-Stil: gemeinsam für den Admin und die Kundenseiten (Meine Aufträge, Auftragsseite, Präsentation).
 * Bausteine: .aurora (weiche Farbflächen), .art (Bild oder Verlauf, Farbe über die Variable --h), .hero-tile und .d-hero (große Köpfe mit Bild),
 * .lane/.lane-track/.tile (Reihen mit Kacheln), .chip.glass, .seg7 (Schritte), .progress (Balken), .tl (Verlauf).
 * Keine Inline-Stile (CSP): Werte kommen über Klassen und über el.style.setProperty('--h', …) im Skript. Alle Bewegung ist abschaltbar (prefers-reduced-motion). */
/* Weiche Farbflächen im Hintergrund von Hero und Auftragskopf */
.aurora { position: absolute; inset: -25%; pointer-events: none; z-index: -2; mix-blend-mode: screen; opacity: .75; filter: blur(34px);
  background: radial-gradient(40% 50% at 16% 28%, rgba(245, 185, 66, .30), transparent 70%), radial-gradient(38% 46% at 84% 18%, rgba(96, 128, 255, .26), transparent 70%), radial-gradient(44% 52% at 60% 108%, rgba(168, 85, 247, .22), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

/* Hintergrundbild einer Kachel oder des Heros: das Bild des Auftrags, sonst ein Verlauf, dessen Farbe aus der Nummer kommt */
.art { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 18% 8%, hsl(var(--h) 85% 55% / .55), transparent 58%), radial-gradient(110% 90% at 92% 95%, hsl(calc(var(--h) + 70) 80% 50% / .5), transparent 55%), linear-gradient(160deg, #13151d, #0a0b10); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.art.has-img img { opacity: 1; }
.art .initial { position: absolute; right: 16px; top: 4px; font: 700 132px/1 var(--cond); text-transform: uppercase; color: rgba(255, 255, 255, .08); pointer-events: none; }
.art.has-img .initial { display: none; }
.hero-art, .tile .art { position: absolute; inset: 0; z-index: -3; }

/* Hero: der Auftrag, der als Nächstes dran ist */
.hero-tile { position: relative; overflow: hidden; isolation: isolate; border-radius: 8px; min-height: 340px; display: flex; align-items: flex-end; border: 1px solid var(--edge-dim); background: #0a0b10; }
.hero-tile .shade, .d-hero .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 8, 11, .94) 0%, rgba(7, 8, 11, .72) 40%, rgba(7, 8, 11, .1) 78%), linear-gradient(0deg, rgba(7, 8, 11, .8), transparent 50%); }
.hero-body { position: relative; padding: 40px 44px; max-width: 760px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero-body .mono { color: var(--amber); }
.hero-body h1 { font-size: clamp(44px, 6vw, 88px); margin: 0; }
.hero-text { color: #c9cbd2; margin: 0; font-size: 19px; }
.hero-next { margin: 0; font-size: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 6px; }
.hero-counts { margin: 0; }
.hero-body .tile-live { width: min(460px, 100%); }

/* Suche und Reihen */
.lib-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lib-bar h2 { font-size: 34px; margin: 0; }
.search { width: 300px; max-width: 100%; }
.search .inp { min-height: 44px; font-size: 17px; }
.lanes { display: flex; flex-direction: column; gap: 22px; }
.lane-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.lane-head h2 { font-size: 30px; margin: 0; letter-spacing: .04em; }
.lane-sub { color: var(--label); font-size: 14px; }
.lane-wrap { position: relative; margin: 0 -32px; }
.lane-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 16px 32px 28px; scrollbar-width: none; }
.lane-track::-webkit-scrollbar { display: none; }
.lane-nav { position: absolute; top: 16px; bottom: 28px; width: 60px; z-index: 8; border: 0; color: #fff; font: 400 44px/1 var(--sans); cursor: pointer; opacity: 0; transition: opacity .2s; }
.lane-nav.prev { left: 0; background: linear-gradient(90deg, rgba(7, 8, 11, .95), transparent); }
.lane-nav.next { right: 0; background: linear-gradient(270deg, rgba(7, 8, 11, .95), transparent); }
.lane-wrap:hover .lane-nav, .lane-nav:focus-visible { opacity: 1; }
.lane-nav:focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; }
@media (hover: none) { .lane-nav { display: none; } }

/* Kachel */
.tile { position: relative; flex: 0 0 340px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; isolation: isolate; scroll-snap-align: start; color: inherit; text-decoration: none; background: #0a0b10; border: 1px solid var(--edge-dim);
  display: flex; flex-direction: column; justify-content: flex-end; transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s, border-color .22s; }
.tile .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 6, 9, .95) 6%, rgba(5, 6, 9, .55) 46%, rgba(5, 6, 9, .05) 100%); }
.tile:hover, .tile:focus-visible { transform: scale(1.06); z-index: 6; border-color: rgba(245, 185, 66, .85); box-shadow: 0 24px 60px rgba(0, 0, 0, .65), 0 0 0 1px rgba(245, 185, 66, .5), 0 0 46px rgba(245, 185, 66, .2); }
.tile:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.tile.du { border-color: rgba(245, 185, 66, .4); }
.tile.kunde .art { filter: saturate(.65) brightness(.85); }
.tile.fertig { opacity: .8; }
.tile.fertig:hover, .tile.fertig:focus-visible { opacity: 1; }
.tile.job-laeuft { animation: glow 2.6s ease-in-out infinite; border-color: rgba(245, 185, 66, .7); }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(245, 185, 66, .3), 0 0 18px rgba(245, 185, 66, .12); } 50% { box-shadow: 0 0 0 1px rgba(245, 185, 66, .6), 0 0 38px rgba(245, 185, 66, .3); } }
.tile-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chip.glass { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 11, 14, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); }
.tile-main { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.tile-title { font-size: 30px; margin: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.tile-sub { margin: 0; font-size: 14px; color: #b9bbc3; }
.tile-next { margin: 0; font-size: 12px; }
.tile-more { max-height: 0; opacity: 0; overflow: hidden; display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 0 16px; font-size: 13px; color: #c9cbd2; transition: max-height .25s, opacity .25s, padding .25s; }
.tile:hover .tile-more, .tile:focus-visible .tile-more { max-height: 64px; opacity: 1; padding-bottom: 12px; }
.seg7 { display: flex; gap: 4px; }
.seg7 i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); display: block; }
.seg7 i.done { background: var(--text); }
.seg7 i.cur { background: var(--amber); box-shadow: 0 0 8px rgba(245, 185, 66, .7); }
.tile-live { display: flex; flex-direction: column; gap: 6px; }
.progress { width: 100%; max-width: 560px; height: 5px; background: rgba(255, 255, 255, .14); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), #ffd98a); box-shadow: 0 0 12px rgba(245, 185, 66, .6); transition: width .6s linear; }
.progress.wait i { width: 100%; background: repeating-linear-gradient(90deg, rgba(245, 185, 66, .65) 0 10px, transparent 10px 20px); box-shadow: none; animation: slide 1.1s linear infinite; background-size: 20px 100%; }
@keyframes slide { to { background-position: 20px 0; } }

.d-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 8px; border: 1px solid var(--edge-dim); min-height: 220px; display: flex; align-items: flex-end; background: #0a0b10; }
.d-hero .art img { filter: blur(5px) saturate(1.15); transform: scale(1.1); }
.d-hero-body { position: relative; padding: 22px 36px 30px; width: 100%; }

.tl { list-style: none; margin: 0; padding: 0; }
.tl li { padding: 0 0 18px 26px; position: relative; border-left: 1px solid var(--edge); margin-left: 5px; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #2e3038; }
.tl li.ok::before { background: var(--ok); }
.tl li.now::before { background: var(--amber); }
.tl li:last-child { padding-bottom: 0; }
.tl .when { margin-top: 5px; }

@media (prefers-reduced-motion: reduce) {
  .aurora, .tile.job-laeuft, .progress.wait i { animation: none; }
  .tile, .tile:hover, .tile:focus-visible { transition: none; transform: none; }
  .art img, .tile-more, .progress i { transition: none; }
}
@media (max-width: 720px) {
  .lane-wrap { margin: 0 -16px; }
  .lane-track { padding: 16px 16px 28px; }
  .tile { flex-basis: 78vw; }
  .hero-body { padding: 28px 22px; }
  .d-hero-body { padding: 18px 20px 24px; }
}
