/* oliver-schunn.tech – im Stil von Bent°Corner: Graustufen ohne Akzent, sachlich (New Utilitarian).
   Tasten wie im Tasten-Labor der App (B · OP-XY knapp): Fläche #141416, Licht oben links #202023, Schatten unten
   rechts #060607, Abstand 3, Weichheit 6, Ecken 9, Höhe 40, Druck 19 ms, Rückfedern 241 ms. Schriften liegen auf dem
   Server (keine Google Fonts, keine Cookies, kein Tracking). */
@font-face { font-family: "Inter"; src: url("fonts/Inter_18pt-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_18pt-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #141416; --face: #141416; --light: #202023; --dark: #060607; --surface: #18181a; --line: #2a2a2c;
  --line2: #3d3d40; --text: #ededed; --text2: #b5b5b5; --muted: #8e8e8e; --dim: #686868; --accent: #e4e4e4;
  --accent-deep: #3b3b3b; --hi: #ffffff; --glow: rgba(255,255,255,.55);
  --keygrad: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.10)); --keyinset: rgba(255,255,255,.055);
}
/* Hell nur, wenn man oben umschaltet (html[data-theme=light]) – Standard ist dunkel */
:root[data-theme="light"] {
  --bg: #ebebed; --face: #ebebed; --light: #ffffff; --dark: #c4c4c9; --surface: #f3f3f4; --line: #d6d6da;
  --line2: #bdbdc2; --text: #141416; --text2: #3d3d42; --muted: #6a6a70; --dim: #8e8e94; --accent: #2a2a2e;
  --accent-deep: #c8c8cc; --hi: #141416; --glow: rgba(20,20,22,.35); --keygrad: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 60%); --keyinset: rgba(255,255,255,.9);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body { font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.6; min-height: 100vh;
       display: flex; flex-direction: column; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line2); }
a:hover { text-decoration-color: var(--text2); }
[data-lang] { display: none; }
html[lang="de"] [data-lang="de"], html[lang="en"] [data-lang="en"] { display: revert; }

/* ---------- Kopf und Fuß ---------- */
header, footer { padding: 22px 40px; display: flex; align-items: center; gap: 16px; }
header { border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); margin-top: auto; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
footer .links { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.mark { font-family: "Barlow", sans-serif; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.mark { display: flex; align-items: center; white-space: nowrap; }
.mark a { text-decoration: none; color: var(--muted); transition: color 160ms; }
.mark a:hover, .mark a.here { color: var(--text); }
/* der lange Strich zwischen Oliver Schunn und Bent°Corner: ein Geviertstrich, nur etwa fünfmal so lang */
.mark .dash { display: inline-block; width: 5em; height: 1.5px; margin: 0 1.1em 0 .95em; background: currentColor;
              opacity: .55; border-radius: 1px; transform: translateY(-.05em); }
.nav { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- Tasten (Tasten-Labor B) ---------- */
.key {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 40px; padding: 0 18px; border-radius: 9px; border: 0; cursor: pointer;
  font: 500 13px "Inter", sans-serif; color: var(--text2); text-decoration: none; white-space: nowrap;
  background: var(--keygrad), var(--face);
  box-shadow: -3px -3px 6px var(--light), 3px 3px 6px var(--dark), inset 0 1px 0 var(--keyinset);
  transition: transform 241ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 241ms ease, color 160ms;
  user-select: none;
}
.key:hover { color: var(--text); }
.key:active, .key.down {
  transform: translateY(1px) scale(.985);
  box-shadow: inset 3px 3px 6px var(--dark), inset -3px -3px 6px var(--light);
  transition: transform 19ms, box-shadow 19ms;
}
.key .led { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); box-shadow: none; transition: background 160ms, box-shadow 160ms; }
.key.on .led, .key.primary .led { background: var(--hi); box-shadow: 0 0 8px var(--glow); }
.key.on, .key.primary { color: var(--text); }
.key.big { height: 54px; padding: 0 26px; font-size: 15px; border-radius: 11px; }
.key.small { height: 32px; padding: 0 12px; font-size: 12px; }
.key[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Sprache: DE ▾ */
.lang { position: relative; }
.lang .menu { position: absolute; right: 0; top: 44px; display: none; flex-direction: column; gap: 8px; padding: 8px;
              border-radius: 12px; background: var(--surface); border: 1px solid var(--line); z-index: 10; }
.lang .menu .key { min-width: 56px; }
.lang.open .menu { display: flex; }

/* ---------- Startseite ---------- */
.hero { flex: 1; display: grid; place-items: center; padding: 64px 24px; }
.box { max-width: 760px; width: 100%; }
.index { color: var(--dim); font-family: "Barlow", sans-serif; letter-spacing: .2em; font-size: 13px; text-transform: uppercase; }
h1.big { font-family: "Barlow", sans-serif; font-weight: 600; text-transform: uppercase;
         font-size: clamp(56px, 13vw, 132px); line-height: .9; letter-spacing: -.01em; margin: 18px 0 26px; }
h1.big span { color: var(--dim); }
.lead { color: var(--text2); max-width: 560px; }
.grid { margin-top: 42px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.grid > div { padding: 14px 14px 0 0; color: var(--muted); font-size: 13px; }
.grid b { display: block; color: var(--text); font-weight: 500; font-size: 14px; }
.grid a { text-decoration: none; }
.box h2.sec { font-family: "Barlow", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
              font-size: 15px; color: var(--text2); margin: 46px 0 0; }
.box h2.sec + .grid { margin-top: 12px; }
.box h2.sec + .row { margin-top: 14px; }   /* Startseite: Projekt als großer Knopf */
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 30px; }

/* ---------- In Arbeit: ASCII-Balken, durch den eine Helligkeits-Welle läuft (keine Prozent – nur "dran") ---------- */
.loading { display: grid; gap: 14px; margin-top: 40px; max-width: 560px; }
.ascii { font: 14px/1.25 ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace; color: var(--line2);
         white-space: pre; overflow: hidden; user-select: none; }
.ascii .lbl { color: var(--muted); }
.ascii i { font-style: normal; }

/* Fette Überschriften: Buchstaben weichen der Maus aus wie in zähem Öl */
.ch { display: inline-block; font-style: normal; will-change: transform; }

.features { list-style: none; display: grid; gap: 10px; }
.features li { color: var(--text2); padding-left: 18px; position: relative; }
.features li.white { color: var(--hi); }
.features li.white::before { background: var(--hi); }
.features li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }

/* ---------- Textseiten ---------- */
main.doc { max-width: 780px; width: 100%; margin: 0 auto; padding: 72px 40px 96px; }
main.doc h1 { font-family: "Barlow", sans-serif; font-weight: 600; text-transform: uppercase; font-size: 40px; letter-spacing: .02em; margin-bottom: 8px; }
main.doc .sub { color: var(--muted); margin-bottom: 36px; }
main.doc h2 { font-family: "Barlow", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 16px; margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
main.doc h3 { font-family: "Barlow", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted); margin: 18px 0 6px; }
main.doc p, main.doc li { color: var(--text2); }
main.doc ul { padding-left: 20px; margin: 8px 0; }
main.doc li { margin: 4px 0; }
main.doc p + p { margin-top: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 12px 0; }

/* ---------- Bent°Corner-Seite ---------- */
main.page { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 80px 40px 96px; }
.block { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--line); }
.block h2 { font-family: "Barlow", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
            font-size: 22px; margin-bottom: 12px; }
.cluster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.cluster > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.cluster h3 { font-family: "Barlow", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
              font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.note { color: var(--text2); font-size: 14px; }
main.page .row { margin-top: 40px; }

@media (max-width: 900px) { .cluster { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  main.page { padding: 48px 20px 64px; }
  .grid { grid-template-columns: 1fr; }
  header, footer { padding: 14px 16px; }
  footer .links { margin-left: 0; }
  .nav .hide-s { display: none; }
}

/* Tastatur: sichtbarer Fokus (Barrierefreiheit) */
.key:focus-visible, a:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }

/* Logo: weiße Karte im Dunkeln, schwarze im Hellen */
.logo-l { display: none; }
:root[data-theme="light"] .logo-d { display: none; } :root[data-theme="light"] .logo-l { display: block; }
.theme .ico { font-size: 14px; line-height: 1; }

/* Buy me a coffee: kleiner Sticker in der Kopfleiste (offizielles Tassen-Logo, gelb wie bei Buy Me a Coffee) */
.bmc { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 9px; border-radius: 9px;
  background: #FFDD00; color: #0D0C22; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
  border: 2px solid #fff; box-shadow: 2px 3px 0 rgba(0, 0, 0, .35); transform: rotate(-3deg);
  transition: transform 150ms ease, box-shadow 150ms ease; }
.bmc:hover { transform: rotate(-1deg) scale(1.05); box-shadow: 3px 4px 0 rgba(0, 0, 0, .35); }
.bmc img { width: 13px; height: 19px; display: block; }
@media (max-width: 560px) { .bmc span { display: none; } .bmc { padding: 0 8px; } }
@media (max-width: 480px) {   /* schmale Handys: Kopfleiste passt in eine Zeile (Sprachwahl lief rechts raus) */
  header { padding: 16px 16px; gap: 10px; }
  .nav { gap: 6px; }
  .mark { font-size: 12px; letter-spacing: .08em; }
  .nav .key.small { padding-left: 9px; padding-right: 9px; }
}

@media (max-width: 760px) { .mark .dash { width: 2.6em; margin: 0 .7em; } }
@media (max-width: 560px) { .mark .dash, .mark .dash + a { display: none; } }

/* Hell/Dunkel: die neue Farbe läuft als Welle von links über die Seite (View Transitions; ohne = sofort) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) {
  -webkit-mask: var(--wave) 0 0 / 300% 100% no-repeat; mask: var(--wave) 0 0 / 300% 100% no-repeat;
  -webkit-mask-position: 82% 0; mask-position: 82% 0;
}
:root { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H160Q170 6 162 12.5T158 25T164 37.5T156 50T160 62.5T152 75T156 87.5T146 100H0Z'/%3E%3C/svg%3E"); }

/* ---------- Bent°Corner-Showcase: Screenshots übereinander, nachgebaute App-Teile (bc.js) ---------- */
main.page.wide { max-width: 1240px; }
.hero2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero2 .loading { max-width: 480px; }
.sim, .ticker, .altq, .term, .ticket { font-family: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace; }

/* Stapel aus echten Screenshots: leicht gedreht und versetzt, Hover holt nach vorn (bc.js kippt mit der Maus) */
.stack { position: relative; width: 100%; }
.hero-stack { aspect-ratio: 1 / .92; }
.shot { position: absolute; margin: 0; border-radius: 12px; overflow: hidden; background: #0b0b0c;
        border: 1px solid var(--line2);
        box-shadow: -6px -6px 14px var(--light), 10px 14px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4);
        transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
        transition: rotate 520ms cubic-bezier(.2, .8, .2, 1), translate 520ms cubic-bezier(.2, .8, .2, 1),
                    scale 520ms cubic-bezier(.2, .8, .2, 1), filter 300ms, box-shadow 300ms; }
.shot img { display: block; width: 100%; height: auto; }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; transition: opacity 300ms;
               background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); }
.shot:hover { z-index: 9; rotate: 0deg; translate: 0 -12px; scale: 1.04; filter: none;
              box-shadow: -6px -6px 14px var(--light), 18px 26px 60px rgba(0, 0, 0, .7), 0 0 0 1px var(--hi); }
.shot:hover::after { opacity: 0; }
.stack:hover .shot:not(:hover) { filter: brightness(.55) saturate(.6); }
.h1s { width: 78%; right: 0; top: 0; rotate: 4deg; }
.h2s { width: 70%; left: 4%; top: 22%; rotate: -3deg; z-index: 2; }
.h3s { width: 52%; right: 6%; bottom: 0; rotate: 2deg; z-index: 3; }

/* Abschnitte: Text + Bild im Wechsel */
.show { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center;
        margin-top: 150px; }
.show.rev .show-text { order: 2; }
.show-text .lead { margin-top: 14px; }
h2.mega { font-family: "Barlow", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: -.005em;
          font-size: clamp(36px, 5vw, 60px); line-height: .95; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; padding: 6px 9px; border-radius: 6px;
        color: var(--text2); background: var(--surface); border: 1px solid var(--line2); }
.chip.c { color: #ffb36b; background: transparent; border-color: rgba(255, 179, 107, .7); }
.chip.f { color: var(--text); background: linear-gradient(110deg, #3a3a3e, #6d6d74 45%, #3a3a3e 70%); border-color: transparent; }
.chip.g { color: var(--muted); }
:root[data-theme="light"] .chip.f { color: #141416; background: linear-gradient(110deg, #d0d0d6, #ffffff 45%, #d0d0d6 70%); }
:root[data-theme="light"] .chip.c { color: #b0601a; border-color: rgba(176, 96, 26, .6); }

/* Nachgebauter Scanner: Kamera links, Packliste rechts */
.sim { border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
       box-shadow: -6px -6px 14px var(--light), 10px 14px 34px rgba(0, 0, 0, .5); overflow: hidden; font-size: 12px; }
.sim-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line);
           color: var(--dim); letter-spacing: .08em; }
.sim-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.sim-bar i:first-child { background: var(--hi); box-shadow: 0 0 8px var(--glow); }
.sim-title { margin-left: 8px; } .sim-r { margin-left: auto; } .sim-r b { color: var(--text); font-weight: 600; }
.sim-body { display: grid; grid-template-columns: 1.05fr 1fr; height: 360px; }
.cam { position: relative; overflow: hidden; border-right: 1px solid var(--line);
       background: radial-gradient(120% 90% at 50% 40%, #3b3c40, #1c1c1f 70%); }
:root[data-theme="light"] .cam { background: radial-gradient(120% 90% at 50% 40%, #cfd0d4, #a9aaaf 70%); }
.cardmock { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 63 / 88; border-radius: 6px;
            background: var(--frame, #161616); padding: 6px; display: flex; flex-direction: column; gap: 4px;
            box-shadow: 0 14px 30px rgba(0, 0, 0, .55); translate: -50% 130%; rotate: -8deg;
            transition: translate 620ms cubic-bezier(.2, .9, .25, 1), rotate 620ms cubic-bezier(.2, .9, .25, 1), opacity 300ms; }
.cardmock.in { translate: -50% -50%; rotate: 2deg; }
.cardmock.out { translate: 140% -50%; rotate: 14deg; opacity: 0; }
.cm-name { font: 700 8px/1.2 "Inter", sans-serif; color: #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
           background: rgba(255, 255, 255, .1); border-radius: 3px; padding: 3px 4px; }
.cm-art { flex: 1; border-radius: 3px; background: var(--art); }
.cm-type { height: 9px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.cm-text { height: 26%; border-radius: 3px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 6px), rgba(255, 255, 255, .06); }
.reticle i { position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .5); transition: border-color 200ms; }
.reticle i:nth-child(1) { left: 20%; top: 10%; border-right: 0; border-bottom: 0; }
.reticle i:nth-child(2) { right: 20%; top: 10%; border-left: 0; border-bottom: 0; }
.reticle i:nth-child(3) { left: 20%; bottom: 14%; border-right: 0; border-top: 0; }
.reticle i:nth-child(4) { right: 20%; bottom: 14%; border-left: 0; border-top: 0; }
.cam.hit .reticle i { border-color: #fff; }
.scanline { position: absolute; left: 0; right: 0; top: -10%; height: 2px; opacity: 0;
            background: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
            box-shadow: 0 0 14px 3px rgba(255, 255, 255, .45); }
.cam.scan .scanline { animation: sweep 760ms cubic-bezier(.5, 0, .5, 1) 1; }
@keyframes sweep { 0% { top: 8%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 90%; opacity: 0; } }
.cam.hit::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flash 380ms ease-out 1 forwards; pointer-events: none; }
@keyframes flash { from { opacity: .35; } to { opacity: 0; } }
.hud { position: absolute; left: 10px; right: 10px; bottom: 9px; display: flex; justify-content: space-between; gap: 8px;
       color: #e9e9e9; text-shadow: 0 1px 2px #000; font-size: 11px; letter-spacing: .06em; }
.hud-r { color: #ffb36b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack { display: flex; flex-direction: column; padding: 12px 14px; min-width: 0; }
.pack-h, .pack-f { display: flex; justify-content: space-between; color: var(--muted); letter-spacing: .08em; }
.pack-h b { color: var(--text); }
.pack-l { list-style: none; flex: 1; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; min-height: 0; }
.pack-l li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 7px 9px; border-radius: 8px;
             background: var(--bg); border: 1px solid var(--line); animation: drop 420ms cubic-bezier(.2, .9, .25, 1) 1; flex: none; }
.pack-l li .n { color: var(--text); font-family: "Inter", sans-serif; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack-l li .p { color: var(--text); text-align: right; }
.pack-l li .t { grid-column: 1 / -1; display: flex; gap: 5px; }
.pack-l li .t span { font-size: 9px; padding: 2px 5px; border-radius: 4px; border: 1px solid var(--line2); color: var(--muted); }
.pack-l li .t .c { color: #ffb36b; border-color: rgba(255, 179, 107, .6); }
.pack-l li .t .f { color: var(--text); border-color: var(--text2); }
.pack-l li .t .r { color: #e8c35a; border-color: rgba(232, 195, 90, .5); }
@keyframes drop { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
.pack-f { border-top: 1px solid var(--line); padding-top: 9px; align-items: baseline; }
.pack-f b { color: var(--text); font-size: 14px; }

/* Preis-Ticker (ASCII) */
.ticker { max-width: 100%; overflow-x: auto; margin-top: 26px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
          color: var(--muted); font-size: 12px; line-height: 1.7; overflow: hidden; white-space: pre; }
.ticker b { color: var(--text); font-weight: 600; } .ticker .up { color: #9be29b; } .ticker .dn { color: #ff8e8e; }
:root[data-theme="light"] .ticker .up { color: #237a23; } :root[data-theme="light"] .ticker .dn { color: #b02a2a; }
.trio { aspect-ratio: 1 / .82; }
.t1 { width: 64%; left: 0; top: 0; rotate: -3deg; }
.t2 { width: 72%; right: 0; top: 20%; rotate: 2.5deg; z-index: 2; }
.t3 { width: 25%; left: 9%; bottom: 0; rotate: -2deg; z-index: 3; }

/* Studio */
.altq { margin-top: 24px; font-size: 13px; line-height: 1.35; color: var(--line2); white-space: pre; overflow: hidden; }
.altq span, .altq b { color: var(--muted); font-weight: 400; } .altq b { color: var(--text); }
.altq .cur { font-style: normal; color: var(--hi); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.show-text .note { margin-top: 14px; }
.duo { aspect-ratio: 1 / .86; }
.d1 { width: 76%; left: 0; top: 8%; rotate: -2.5deg; }
.d2 { width: 30%; right: 3%; top: 0; rotate: 3deg; z-index: 2; }

/* Tauschen: Screenshot + Ticket, das sich entschlüsselt */
.duo2 { aspect-ratio: 1 / .72; }
.e1 { width: 86%; left: 0; top: 0; rotate: -2deg; }
.ticket { position: absolute; right: 0; bottom: 0; width: 52%; z-index: 3; padding: 16px 18px; border-radius: 14px;
          background: var(--surface); border: 1px solid var(--line2); color: var(--text2); font-size: 13px; rotate: 3deg;
          box-shadow: -6px -6px 14px var(--light), 14px 18px 40px rgba(0, 0, 0, .6);
          transition: rotate 520ms cubic-bezier(.2, .8, .2, 1), translate 520ms cubic-bezier(.2, .8, .2, 1); }
.ticket:hover { rotate: 0deg; translate: 0 -10px; }
.tk-h { display: flex; justify-content: space-between; color: var(--muted); letter-spacing: .14em; font-size: 11px;
        padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--line2); }
.tk-l { color: var(--text); min-height: 1.4em; white-space: nowrap; overflow: hidden; }
.tk-x { color: var(--dim); margin: 4px 0; }
.tk-f { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line2); color: var(--muted); font-size: 11px; }
.tk-f .lock { color: var(--hi); }

/* Handy: kein Download (Bent°Corner läuft nur auf Windows-PCs) – Hinweis statt Knopf */
.dl-mobile { display: none; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 30px; max-width: 520px; }
.term { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line2); font-size: 13px;
        display: flex; flex-direction: column; gap: 6px; }
.term-l { color: var(--hi); letter-spacing: .06em; } .term-t { color: var(--text2); font-family: "Inter", sans-serif; }
@media (hover: none) and (pointer: coarse), (max-width: 700px) {
  .dl-pc { display: none !important; } .dl-mobile { display: flex; }
  .game-block { display: none !important; }   /* Minispiel nur am PC (Tastatur/Maus) */
}
html.mobile .dl-pc { display: none !important; } html.mobile .dl-mobile { display: flex; }
html.mobile .game-block { display: none !important; }

/* Einblenden beim Scrollen (nur mit JS; ohne Bewegung sofort da) */
html.js .reveal { opacity: 0; translate: 0 34px; transition: opacity 700ms ease, translate 900ms cubic-bezier(.2, .8, .2, 1); }
html.js .reveal.on { opacity: 1; translate: 0 0; }

@media (max-width: 960px) {
  .hero2, .show { grid-template-columns: minmax(0, 1fr); gap: 40px; }   /* minmax: lange Zeilen (Ticker) sprengen sonst die Breite */
  .show { margin-top: 96px; }
  .show.rev .show-text { order: 0; }
  .hero-stack { max-width: 620px; }
}
@media (max-width: 560px) {
  .sim-body { grid-template-columns: 1fr; height: auto; }
  .cam { height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pack-l { height: 230px; flex: none; }
  .ticket { width: 72%; font-size: 12px; }
  .d2 { width: 36%; }
  .altq { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .shot, .ticket, .cardmock, html.js .reveal { transition: none; }
  html.js .reveal { opacity: 1; translate: 0 0; }
  .altq .cur { animation: none; }
}

/* ---------- Bent°Corner: „Was drin ist“ – Highlights als Raster, ASCII-Kopf ---------- */
.more-games { margin-top: 12px; color: var(--muted); font-size: 14px; }
.more-games .mg-k { font-family: ui-monospace, Consolas, monospace; color: var(--hi); }
.inside { margin-top: 72px; }
.inside-h { display: flex; align-items: center; gap: 14px; font: 600 12px ui-monospace, "Cascadia Mono", Consolas, monospace;
            letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.inside-rule { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line2) 0 6px, transparent 6px 10px); }
.inside-n { color: var(--dim); }
.inside-g { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px;
            border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.inside-g li { position: relative; padding: 18px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
               display: flex; flex-direction: column; gap: 6px; transition: background 200ms; }
.inside-g li:hover { background: var(--surface); }
.inside-g li i { font: 500 11px ui-monospace, Consolas, monospace; font-style: normal; color: var(--dim); letter-spacing: .1em; }
.inside-g li:hover i { color: var(--hi); }
.inside-g li b { font-family: "Barlow", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
                 font-size: 15px; color: var(--text); }
.inside-g li span { color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) { .inside-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .inside-g li { padding: 14px 12px 16px; } .inside { margin-top: 48px; } }
/* KI-Hinweis: dezent im Fuß */
footer .ai-note { color: var(--dim); font-size: 11px; }

/* ---------- Karten hochladen (upload.html, persönlicher Upload-Link) ---------- */
main.up { max-width: 900px; }
.up-link { font-size: 15px; }
.up-ok { color: #7be08a; }
.up-err { color: #ff8a8a; }
.up-steps { padding-left: 22px; display: grid; gap: 6px; }
.up-format code { font-size: 13px; color: var(--text); }
.up-drop { display: grid; place-items: center; min-height: 120px; margin: 12px 0; border: 1.5px dashed var(--line2);
           border-radius: 14px; cursor: pointer; color: var(--muted); transition: border-color 160ms, background 160ms; }
.up-drop:hover, .up-drop.over { border-color: var(--text2); background: var(--surface); color: var(--text); }
.up-drop .ascii-ish { font: 14px ui-monospace, "Cascadia Mono", Consolas, monospace; padding: 0 16px; text-align: center; }
.up-table { overflow-x: auto; max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.up-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.up-table th, .up-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--text2); }
.up-table th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-weight: 500; }
.up-table tr.skip td { color: var(--dim); }
.up-form { display: grid; gap: 12px; }
.up-form label { display: grid; gap: 6px; color: var(--text2); font-size: 14px; }
.up-form label.chk { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.up-form input:not([type]), .up-form textarea { background: var(--surface); color: var(--text); border: 1px solid var(--line2);
           border-radius: 10px; padding: 9px 12px; font: 14px "Inter", sans-serif; }
.up-form input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.up-form .req { color: #ffb36b; }
.up-progress { display: grid; gap: 8px; margin-top: 8px; }
.up-progress .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.up-progress .bar i { display: block; height: 100%; width: 0; background: var(--hi); transition: width 240ms ease; }

/* ---------- Scalper Invaders (game.js): das Minispiel aus der App, nur Score ---------- */
.game-block .game-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; margin-top: 18px; }
.game-block canvas { width: 100%; aspect-ratio: 3 / 4; display: block; border-radius: 16px; border: 1px solid var(--line);
                     background: #0a0a0b; cursor: pointer; touch-action: none; outline: none; }
.game-block canvas:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
.game-block .keys { font: 12px/1.9 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted); margin-top: 18px; }
.game-block .keys b { color: var(--text2); font-weight: 500; }
@media (max-width: 760px) { .game-block .game-wrap { grid-template-columns: 1fr; } }

/* ---------- Easter Egg: Bent°Corner Fortune Card (fortune.js) – wie in der App ---------- */
.fortune { position: fixed; width: 80px; height: 112px; z-index: 1000; cursor: pointer; opacity: 0; transition: opacity .6s ease;
           -webkit-tap-highlight-color: transparent; }
.fortune.l { left: 30px; } .fortune.r { right: 30px; }
.fortune.in { opacity: 1; }
.fc-wob { width: 100%; height: 100%; transform-origin: 50% 80%; perspective: 700px; }
.fc-wob.wob { animation: fc-wob .76s linear; }
.fc-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotate(-7deg) rotateY(180deg);
           transition: transform .76s cubic-bezier(.34, 1.35, .64, 1); }   /* kein filter hier: der macht das 3D flach */
.fortune.open .fc-flip { transform: rotate(-7deg) rotateY(0deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fc-face svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.fc-back { transform: rotateY(180deg); }
.fc-wob.wob .fc-shine { animation: fc-shine 1.1s cubic-bezier(.25, .46, .45, .94); }
/* Zettel: liegt nach dem Umdrehen über der Karte und rollt zur Seitenmitte hin aus */
.fc-slip { position: absolute; top: 38%; height: 64px; width: 0; overflow: hidden; z-index: 2; background: #ededed; border-radius: 4px;
           box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: width .52s cubic-bezier(.55, .06, .68, .19); }
.fortune.r .fc-slip { right: -12px; transform: rotate(-3deg); transform-origin: right center; }
.fortune.l .fc-slip { left: -12px; transform: rotate(3deg); transform-origin: left center; }
.fortune.slip .fc-slip { width: var(--full, 260px); transition: width .62s cubic-bezier(.34, 1.4, .64, 1); }
.fc-in { position: absolute; top: 12px; white-space: nowrap; }
.fortune.r .fc-in { right: 20px; text-align: right; } .fortune.l .fc-in { left: 20px; }
.fc-in b { display: block; font: italic 700 17px/1.2 "Inter", system-ui, sans-serif; color: #121214; }
.fc-in span { display: block; margin-top: 9px; font: 600 9px "Barlow", sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #8a8a8e; }
@keyframes fc-wob { 0% { transform: rotate(0); } 18% { transform: rotate(-9deg); } 36% { transform: rotate(7deg); }
                    53% { transform: rotate(-5deg); } 71% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
@keyframes fc-shine { from { transform: translateX(0); } to { transform: translateX(128px); } }
@media (prefers-reduced-motion: reduce) { .fc-wob.wob, .fc-wob.wob .fc-shine { animation: none; } }

/* ---------- Burger-Menü (nur Handy) und „nach oben“ ---------- */
.burger { position: relative; display: none; }
.burger .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.burger .bars i { display: block; width: 14px; height: 1.6px; border-radius: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
.burger.open .bars i:nth-child(1) { transform: translateY(4.6px) rotate(45deg); }
.burger.open .bars i:nth-child(2) { opacity: 0; }
.burger.open .bars i:nth-child(3) { transform: translateY(-4.6px) rotate(-45deg); }
.burger .menu { position: absolute; right: 0; top: 42px; display: none; flex-direction: column; gap: 8px; padding: 10px; min-width: 190px;
                border-radius: 12px; background: var(--surface); border: 1px solid var(--line); z-index: 20;
                box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.burger .menu .key { justify-content: flex-start; width: 100%; }
.burger.open .menu { display: flex; }
.burger .menu .sep { height: 1px; margin: 2px 2px; background: var(--line); }   /* Linie zwischen Kategorien */
.burger .row2 { display: flex; gap: 8px; padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); }
.burger .row2 .key:first-child { flex: 1; justify-content: flex-start; }
.burger .row2 .lng { min-width: 44px; }
@media (max-width: 700px) {
  .burger { display: block; }
  .nav > a.key[href="kontakt.html"], .nav > .theme, .nav > .lang { display: none; }   /* stecken im Burger-Menü */
}
html, body { overflow-x: clip; }   /* nichts darf die Seite seitlich verschiebbar machen */
.totop { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; padding: 0; z-index: 900; font-size: 18px;
         opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .25s, box-shadow 241ms, color 160ms; }
.totop.up-on { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 700px) { .totop { right: 14px; bottom: 14px; } }
