/* Content pages (Skills, Research): cards, numbers, steps, file view. Tokens, header and page head come from kopf.css, the base from stil.css. */
.titelkopf + .stufe { border-top: 1px solid var(--linie); }
.stufe .kopfzeile { display: grid; gap: 10px; margin-bottom: 36px; }
.stufe .kopfzeile h2 { margin: 0; }
.stufe .kopfzeile .text { max-width: 62ch; }
code, .fest { font-family: var(--fest); }
.stufe code { font-size: .92em; background: var(--feld); padding: 2px 7px; border-radius: 6px; color: var(--text); }

.kachel { background: var(--bg-tief); border: 1px solid var(--linie); border-radius: var(--radius-gross); padding: 26px 28px; min-width: 0; }
.kachel h3 { font-size: 22px; margin-bottom: 10px; }
.kachel p { color: var(--leise); font-size: 15px; }
.kachel p + p { margin-top: 10px; }

/* Skills: the six shipped skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill { display: flex; flex-direction: column; gap: 12px; min-height: 170px; transition: border-color .15s; }
.skill:hover { border-color: var(--linie-stark); }
.skill .name { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.skill b { font-family: var(--fest); font-size: 16px; font-weight: 600; }
.skill p { font-size: 14.5px; }
/* The copy button of a card: the one of the docs ("Copy page") in the tokens of the site, radius 9. */
.kopieren { display: inline-flex; align-items: center; gap: 7px; flex: none; border: 1px solid var(--linie-stark); background: transparent; color: var(--still); border-radius: var(--radius); padding: 5px 10px; font-size: 12px; line-height: 1.5; cursor: pointer; transition: color .15s, border-color .15s; }
.kopieren svg { width: 14px; height: 14px; }
.kopieren:hover, .kopieren:focus-visible, .kopieren.fertig { color: var(--text); border-color: var(--leise); }
.kopieren:focus-visible { outline: 2px solid var(--leise); outline-offset: 2px; }

.zwei { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.fakten { margin-top: 28px; border-top: 1px solid var(--linie); }
.fakten div { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.fakten b { display: block; font-weight: 600; font-size: 15.5px; }
.fakten span { color: var(--leise); font-size: 14px; }
.datei { background: var(--bg-tief); border: 1px solid var(--linie-stark); border-radius: var(--radius-gross); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); min-width: 0; }
.datei .pfad { padding: 11px 18px; border-bottom: 1px solid var(--linie); font: 12.5px var(--fest); color: var(--still); }
.datei pre { margin: 0; padding: 20px 22px; font: 13.5px/1.7 var(--fest); color: var(--leise); white-space: pre-wrap; overflow-wrap: anywhere; }
.datei pre b { color: var(--text); font-weight: 400; }

.abschluss { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 44px 28px; }
.abschluss h2 { margin: 0; }
.abschluss .text { max-width: 46ch; }
.knoepfe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 1000px) {
  .skills { grid-template-columns: 1fr 1fr; }
  .zwei { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .skills { grid-template-columns: 1fr; }
}

/* Labs: maker tiles, the before-and-after chart, the report cards and the line below them, in one card */
#paper.stufe { padding-block: clamp(16px, 2.5vh, 32px); }
.forschung { padding: 30px 36px 24px; display: grid; gap: 40px; }
.forschung > * { min-width: 0; }
.hreihe { display: grid; grid-template-columns: repeat(10, minmax(0, 101px)); justify-content: space-between; gap: 12px; }
.hk { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--bg); transition: border-color .15s, background .15s; }
.hk:hover { border-color: var(--linie-stark); background: var(--feld); }
.hk:focus-visible { outline: 2px solid var(--leise); outline-offset: 2px; }
.hk svg { width: 51%; height: 51%; color: var(--text); }

.dtitel { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--leise); }
.vkopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--bg); }
.seg button { border: 0; background: transparent; color: var(--leise); font: 600 13px var(--schrift); padding: 7px 14px; border-radius: 6px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--feld-hell); color: var(--text); }
.seg button:focus-visible { outline: 2px solid var(--leise); outline-offset: 1px; }
.vliste { display: grid; gap: 14px; margin-top: 22px; }
.vliste[hidden] { display: none; }
.vz { display: grid; grid-template-columns: 260px minmax(0, 1fr) 120px; gap: 20px; align-items: center; padding: 14px 0; border-top: 1px solid var(--linie); }
.vn { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vn svg { width: 30px; height: 30px; flex: none; color: var(--text); }
.vn b { display: block; font-size: 15px; font-weight: 600; }
.vn small { display: block; font-size: 12.5px; color: var(--still); margin-top: 2px; }
.vb { display: grid; gap: 6px; min-width: 0; }
/* Each row is drawn to its own original: the grey bar is the original's time, the light bar the share of it Exe AI needs. */
.spur { position: relative; height: 26px; border-radius: var(--radius); background: var(--feld); overflow: hidden; }
.spur i { position: absolute; inset: 0 auto 0 0; border-radius: var(--radius); }
.spur i.o { background: #66645d; }
.spur i.e { background: var(--text); }
.spur span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text); }
/* The label crosses the end of a short bar: difference keeps it dark on the light bar and light on the dark track. */
.spur i.e + span { color: var(--text); mix-blend-mode: difference; }
.vf { font-size: 28px; font-weight: 650; letter-spacing: -.04em; text-align: right; line-height: 1; }
.vf small { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--still); white-space: nowrap; }

/* Report cards: one row that scrolls sideways; the first page fills each card and its corners clip it. */
.deck { display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 6px 2px 22px; cursor: grab; scrollbar-width: none; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.deck.zieht { cursor: grabbing; scroll-snap-type: none; }
.deck.zieht .blatt { pointer-events: none; }
.blatt { color: var(--text); text-decoration: none; flex: none; width: clamp(200px, 17vw, 250px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; user-select: none; }
.glas { position: relative; aspect-ratio: 595 / 842; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(236, 235, 230, .16); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); transition: transform .25s, border-color .25s; }
.glas img { display: block; width: 100%; height: 100%; object-fit: cover; }
.glas::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(155deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); pointer-events: none; }
.blatt:focus-visible { outline: none; }
.blatt:focus-visible .glas { outline: 2px solid var(--leise); outline-offset: 2px; }
.blatt:hover .glas { transform: translateY(-5px); border-color: rgba(236, 235, 230, .34); }
.blatt b { font-size: 14px; font-weight: 600; line-height: 1.35; min-height: calc(4 * 1.35em); }
.blatt small { font: 12px var(--mono-web); color: var(--still); text-align: center; padding-top: 10px; border-top: 1px solid var(--linie); }
.deck-fuss { display: flex; justify-content: flex-end; gap: 8px; }
.deck-fuss button { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--linie-stark); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.deck-fuss button:hover { background: var(--feld); }
.deck-fuss svg { width: 16px; height: 16px; }

.forschung .unten { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.forschung .unten .hf { grid-column: 1; justify-self: start; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--linie-stark); border-radius: var(--radius); }
.forschung .unten .hf svg { width: 26px; height: 26px; }
.forschung .metal { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1; color: var(--leise); white-space: nowrap; }
.forschung .metal b { color: var(--text); font-weight: 600; }
/* Heavy Metal: the chip glows in signal orange and only its glow pulses (glow radii of the 64 px mark, scaled to 26 px). */
.forschung .metal .chip { width: 26px; height: 26px; flex: none; display: block; color: #FF6A00; --c: #FF6A00; animation: chip-puls 1.6s ease-in-out infinite; }
@keyframes chip-puls {
  0%, 100% { filter: drop-shadow(0 0 calc(4px * .8) var(--c)) drop-shadow(0 0 calc(8px * .8) color-mix(in srgb, var(--c) 60%, transparent)); }
  50% { filter: drop-shadow(0 0 calc(4px * 1.2) var(--c)) drop-shadow(0 0 calc(8px * 1.2) color-mix(in srgb, var(--c) 60%, transparent)); }
}
@media (prefers-reduced-motion: reduce) { .forschung .metal .chip { animation: none; } }
.forschung .ecke { grid-column: 3; grid-row: 1; justify-self: end; display: block; height: 28px; width: auto; }
@media (max-width: 1000px) {
  .forschung { padding: 24px 22px 20px; gap: 30px; }
  .hreihe { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vz { grid-template-columns: 1fr auto; gap: 10px; }
  .vb { grid-column: 1 / -1; grid-row: 2; }
  .forschung .unten { grid-template-columns: 1fr auto; }
  .forschung .metal { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .forschung .ecke { grid-column: 2; }
}
