/* THNEU1: the parts the start page, /arbeiten and /so-arbeite-ich share. The iPhone frame, the light spot of
   "Neigen und Licht", the stage with its drawn scenes, the four points about the websites. Code only, no artwork. */
html[lang="de"] [data-l="en"], html[lang="en"] [data-l="de"] { display: none !important; }

/* Neigen und Licht (neigen.js): the spot is a round soft light, about 35 percent of the card wide. */
.neigen { touch-action: pan-y; transform-origin: 50% 50%; backface-visibility: hidden; }
.neigen-licht { position: absolute; left: 0; top: 0; z-index: 3; width: 35%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,.18) 38%, rgba(255,255,255,0) 70%); mix-blend-mode: soft-light; }

/* The iPhone, drawn: thin bezel, rounded corners, the Dynamic Island. Every size is a share of the phone's own width.
   THNEU2 (F6): the frame has ONE aspect-ratio (never a width and a height), the bezel is 2.6 percent on every side, so the
   screen is exactly 19.5 : 9 (94.8 x 205.4); the screen is clipped to the INNER radius (16 - 2.6 = 13.4) with clip-path as
   well as overflow, because WebKit drops an overflow clip with a radius while a parent is transformed (the card tilt). */
.iphone { position: relative; display: block; container-type: inline-size; aspect-ratio: 100 / 210.6; }
.iphone-rahmen { position: absolute; inset: 0; display: block; border-radius: 16cqw; background: #000; padding: 2.6cqw;
  box-shadow: inset 0 0 0 .9cqw #3A3A3C, 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px -12px rgba(0,0,0,.75); }
.iphone-rahmen::before, .iphone-rahmen::after { content: ""; position: absolute; width: 1.1cqw; border-radius: 1cqw; background: #3A3A3C; }
.iphone-rahmen::before { right: -.9cqw; top: 27%; height: 15%; }
.iphone-rahmen::after { left: -.9cqw; top: 22%; height: 9%; box-shadow: 0 13cqw 0 #3A3A3C; }
.iphone-schirm { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 13.4cqw;
  clip-path: inset(0 round 13.4cqw); -webkit-mask-image: -webkit-radial-gradient(white, black); background: #111; }
.iphone-schirm > img, .iphone-schirm .stapel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: inherit; }
.iphone-insel { position: absolute; z-index: 2; left: 50%; top: 5.2cqw; width: 30.5cqw; height: 9cqw; margin-left: -15.25cqw; border-radius: 99px; background: #000; }

/* The four points, in Timo's voice. */
.vier { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vier li { position: relative; padding-left: 30px; color: #FFFFFF; line-height: 1.35; }
.vier li::before { content: ""; position: absolute; left: 0; top: .12em; width: 20px; height: 20px; border-radius: 50%; background: rgba(48,209,88,.16); }
.vier li::after { content: ""; position: absolute; left: 6px; top: calc(.12em + 5px); width: 5px; height: 9px; border: solid #30D158; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.vier a { color: #0A84FF; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.vier .klammer { white-space: nowrap; }
.vier .und { font-size: 1.45em; font-weight: 500; line-height: 0; color: #fff; vertical-align: -.08em; padding: 0 .04em; }
.vier li { text-wrap: pretty; }

/* The stage. 16:10, everything inside is a share of its width (cqw), so the same scene fits the phone and the desktop.
   THNEU2: on the start page the stage sits in a card (.karte-b) that may be taller than 16:10 on the phone; the 16:10
   canvas is then centred in it. The card is one link whose target follows the scene (buehne.js). */
.buehne { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 24px;
  background: radial-gradient(120% 90% at 50% 0%, #17171A 0%, #0B0B0C 70%); border: 1px solid rgba(255,255,255,.08); }
.karte-b { position: relative; overflow: hidden; border-radius: 24px; container-type: size; aspect-ratio: 16 / 10;
  background: radial-gradient(120% 90% at 50% 0%, #17171A 0%, #0B0B0C 70%); border: 1px solid rgba(255,255,255,.08); transition: border-color 200ms ease-out; }
/* The canvas leaves a 40 px strip at the card's foot for the link pill, so the pill never lies over a scene. */
.karte-b > .buehne { position: absolute; left: 50%; top: calc(50% - 20px); width: min(100cqw, calc((100cqh - 40px) * 1.6)); aspect-ratio: 16 / 10; transform: translate(-50%, -50%);
  overflow: visible; border: 0; border-radius: 0; background: none; }

.sz { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 380ms ease-out, visibility 0s 380ms; }
.sz.an { opacity: 1; visibility: visible; transition: opacity 380ms ease-out, visibility 0s; }
.sz.spielt *, .sz.spielt *::after, .sz.spielt *::before { animation-fill-mode: both !important; }
/* MORGEN1: buehne.js measures a scene's rest layout with this class for one moment (no animation, no transition). */
.sz.messen, .sz.messen *, .sz.messen *::before, .sz.messen *::after { animation: none !important; transition: none !important; }
.sz .karte-k { position: absolute; border-radius: 3cqw; background: #1C1C1E; border: 1px solid rgba(255,255,255,.08); color: #fff; }
.sz .txt { font-size: clamp(12px, 3cqw, 19px); line-height: 1.3; color: #fff; }
.sz .leise { color: #AEAEB2; }
.sz .seite { position: absolute; inset: 0; padding: 18cqw 9cqw 0; display: flex; flex-direction: column; gap: 6cqw; background: #F2F2F7; }
.sz .seite i { display: block; height: 6cqw; border-radius: 3cqw; background: #C7C7CC; }
.sz .seite i.k { height: 22cqw; border-radius: 6cqw; background: #8E8E93; }
.sz .seite i.b { width: 60%; }
.sz .haken { position: absolute; display: grid; place-items: center; border-radius: 50%; background: #30D158; }
.sz .haken::after { content: ""; width: 26%; height: 46%; margin-top: -10%; border: solid #fff; border-width: 0 .9cqw .9cqw 0; transform: rotate(45deg); }

/* Scene: his photo settles in, small and friendly. */
.sz-foto .rahmen { position: absolute; left: 50%; top: 50%; width: min(34cqw, 150px); aspect-ratio: 1; transform: translate(-50%, -50%); }
@keyframes sz-setzen-m { from { opacity: 0; transform: translate(-50%, calc(-50% + 5cqw)) scale(.82); } to { opacity: 1; transform: translate(-50%, -50%); } }
.sz-foto .bild { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.2cqw rgba(255,255,255,.06), 0 20px 50px -18px rgba(10,132,255,.45); }
.sz-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sz-foto .welle { position: absolute; inset: -4cqw; border-radius: 50%; border: .5cqw solid rgba(10,132,255,.5); }
.sz-foto.spielt .rahmen { animation: sz-setzen-m 900ms cubic-bezier(.2,.8,.2,1.15); }
.sz-foto.spielt .welle { animation: sz-welle 1400ms ease-out 500ms; }
@keyframes sz-setzen { from { opacity: 0; transform: translateY(5cqw) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes sz-welle { 0% { opacity: 0; transform: scale(.9); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }

/* Scene: three real example pages slide through a phone, one after another. */
.sz-handy .iphone { position: absolute; left: 50%; top: 4cqw; width: 26.6cqw; margin-left: -13.3cqw; }
.sz-handy .stapel { position: relative; width: 100%; height: 100%; }
.sz-handy .stapel img { position: absolute; inset: 0; }
.sz-handy .stapel img:nth-child(2), .sz-handy .stapel img:nth-child(3) { opacity: 0; }
.sz-handy .hinten { position: absolute; top: 9cqw; width: 22cqw; opacity: .35; }
.sz-handy .hinten.l { left: 15cqw; margin-left: 0; transform: rotate(-8deg); }
.sz-handy .hinten.r { left: auto; right: 15cqw; margin-left: 0; transform: rotate(8deg); }
.sz-handy.spielt .iphone:not(.hinten) { animation: sz-hoch 700ms cubic-bezier(.2,.8,.2,1); }
.sz-handy.spielt .stapel img:nth-child(2) { animation: sz-weich 700ms ease-in-out 3000ms; }
.sz-handy.spielt .stapel img:nth-child(3) { animation: sz-weich 700ms ease-in-out 5500ms; }
.sz-handy.spielt .hinten { animation: sz-blass 900ms ease-out 200ms; }
@keyframes sz-hoch { from { opacity: 0; transform: translateY(8cqw); } to { opacity: 1; transform: none; } }
@keyframes sz-blass { from { opacity: 0; } to { opacity: .35; } }
@keyframes sz-weich { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* Scene: a mail arrives, the page in the phone updates, a check, "in unter 48 Stunden". */
.sz-mail .brief { left: 6cqw; top: 9cqw; width: 47cqw; padding: 3cqw 3.4cqw; display: flex; gap: 2.6cqw; align-items: center; }
.sz-mail .brief svg { flex: none; width: 7cqw; height: 7cqw; }
.sz-mail .iphone { position: absolute; right: 12cqw; top: 4cqw; width: 26.6cqw; }
.sz-mail .zeiten { display: grid; gap: 3cqw; }
.sz-mail .zeiten i { position: relative; }
.sz-mail .zeiten i.neu::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0A84FF; opacity: 0; }
.sz-mail .haken { left: 52cqw; top: 36cqw; width: 10cqw; height: 10cqw; }
.sz-mail .zeile48 { position: absolute; left: 6cqw; top: 40cqw; margin: 0; }
.sz-mail.spielt .brief { animation: sz-brief 800ms cubic-bezier(.2,.8,.2,1); }
.sz-mail.spielt .zeiten i.neu::after { animation: sz-blau 700ms ease-out 1500ms both; }
.sz-mail.spielt .zeiten i.neu { animation: sz-ruck 600ms ease-out 1500ms; }
.sz-mail.spielt .haken { animation: sz-pop 500ms cubic-bezier(.2,.9,.3,1.4) 2300ms; }
.sz-mail.spielt .zeile48 { animation: sz-ein 600ms ease-out 2700ms; }
@keyframes sz-brief { from { opacity: 0; transform: translate(-4cqw, -7cqw) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes sz-blau { from { opacity: 0; } to { opacity: 1; } }
@keyframes sz-ruck { 0% { transform: none; } 40% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes sz-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes sz-ein { from { opacity: 0; transform: translateY(2cqw); } to { opacity: 1; transform: none; } }

/* ABEND3 (B1) scene: a customer's small requests arrive one after another as chat bubbles, about 350 ms apart; each gets a
   small green check a moment later; then, larger, the line. Every bubble at 15 px or more; buehne.js hides the last ones
   (class weg) when the card is too short for all six, never fewer than three. */
.sz-wunsch .liste { --n: 4; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: flex-start;
  gap: 0; width: max-content; margin: 0; }
/* MORGEN4 (B1): the answer is a small "erledigt" tick on the bubble's top right corner, the way a messenger shows a reaction:
   it sits in the room above the bubble (padding-top of the row), so a row is only that much taller and nothing is covered. */
.sz-wunsch .w { position: relative; margin: .95em .2em 0 0; padding: .36em .8em; border-radius: 1.05em; background: #2C2C2E; color: #fff;
  font-size: clamp(15px, 3.1cqw, 20px); line-height: 1.25; white-space: nowrap; transform-origin: 0 100%; }
.sz-wunsch .w.weg { display: none; }
.sz-wunsch .ok { position: absolute; right: -.2em; bottom: calc(100% - .3em); display: inline-flex; align-items: center; gap: .3em; height: 1.35em; padding: 0 .55em 0 .3em;
  border-radius: 1em; background: #1C1C1E; box-shadow: 0 0 0 2px #0F0F10; font-size: 1em; line-height: 1; color: #fff; white-space: nowrap; }
.sz-wunsch .ok i { position: relative; flex: none; width: .95em; height: .95em; border-radius: 50%; background: #30D158; }
.sz-wunsch .ok i::after { content: ""; position: absolute; left: .34em; top: .17em; width: .22em; height: .42em; border: solid #fff; border-width: 0 .12em .12em 0; transform: rotate(45deg); }
.sz-wunsch .zeile { margin: clamp(6px, 2cqw, 14px) 0 0; font-size: clamp(21px, 5.4cqw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; color: #fff; white-space: nowrap; }
.sz-wunsch.spielt .w { animation: sz-blase 340ms cubic-bezier(.2,.9,.3,1.2) calc(200ms + var(--i) * 450ms); }
.sz-wunsch.spielt .ok { animation: sz-pop 300ms cubic-bezier(.2,.9,.3,1.4) calc(560ms + var(--i) * 450ms) both; }
.sz-wunsch.spielt .zeile { animation: sz-ein 500ms ease-out calc(450ms + var(--n) * 450ms) both; }
@keyframes sz-blase { from { opacity: 0; transform: translateY(.9em) scale(.9); } to { opacity: 1; transform: none; } }

/* Scene: the four points. */
.sz-vier .vier { position: absolute; left: 7cqw; right: 7cqw; top: 50%; transform: translateY(-50%); gap: 2cqw; font-size: clamp(15px, 3.1cqw, 21px); }
.sz-vier .vier li { padding-left: 1.6em; }
.sz-vier .vier li::before { width: 1.1em; height: 1.1em; }
.sz-vier .vier li::after { left: .36em; top: calc(.12em + .27em); width: .28em; height: .5em; }
.sz-vier .vier a { position: relative; z-index: 5; }
/* THNEU2: on the phone five points do not fit the stage at 15 px; "Liebe zum Detail" is left out there (it stays on /arbeiten). */
@media (max-width: 767px) {
  .sz-vier .vier .liebe { display: none; }
  /* the canvas is narrower than the card on a short phone; the list uses the card's width, not the canvas's */
  .karte-b .sz-vier .vier { left: 50%; right: auto; width: calc(100vw - 2 * clamp(12px, 4vw, 16px) - 28px); transform: translate(-50%, -50%); gap: 6px; line-height: 1.28; }
}
.sz-vier.spielt .vier li { animation: sz-ein 500ms ease-out calc(var(--i) * 260ms); }

/* THNEU2: the stage card is ONE link (.buehne-link) under the whole card; its target follows the scene. The canvas lies
   above it but lets the pointer through, except on its own inner links (SEO, GEO), so a tap on them wins. The pill in the
   corner (.buehne-hinweis) only shows where the link goes. The photo scene has no target: no link for pointer or keyboard. */
.buehne-link { position: absolute; inset: 0; z-index: 1; display: none; border-radius: inherit; color: transparent; font-size: 1px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.buehne-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.buehne-link.an { display: block; }
.buehne-link:focus-visible { outline: 2px solid #0A84FF; outline-offset: -3px; }
.karte-b > .buehne { z-index: 2; }
.karte-b:has(.buehne-link.an) > .buehne { pointer-events: none; }
.karte-b > .buehne a { pointer-events: auto; }
.buehne-hinweis { position: absolute; right: 10px; bottom: 6px; z-index: 3; display: none; align-items: center; gap: 5px; min-height: 30px; padding: 0 12px;
  border-radius: 999px; background: rgba(0,0,0,.66); color: #0A84FF; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.buehne-hinweis.an { display: inline-flex; animation: sz-ein 300ms ease-out both; }
.buehne-hinweis i { font-style: normal; display: inline-block; transition: transform 200ms ease-out; }
.karte-b:has(.buehne-link.an:hover) .buehne-hinweis i { transform: translateX(2px); }
.karte-b:has(.buehne-link.an:hover) { border-color: rgba(255,255,255,.2); }

@media (prefers-reduced-motion: reduce) {
  .sz, .sz.an, .karte-b, .buehne-hinweis i { transition: none; }
  .buehne-hinweis.an { animation: none; }
  .sz.spielt *, .sz.spielt *::after, .sz.spielt *::before { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; }
}

/* THNEU2 (E): the name bar. "Timo Hölscher" stays on top of every page but the start page: sticky in the top left, at most
   44 px high, a link home. Once it has reached the top (leiste.js), it slides into the window's corner, gets a little
   smaller and a soft dark blur plate fades in behind it, so it stays readable over the content. The plate is fixed to the
   window's top edge, so it is as wide as the window and never makes the page wider. */
html { scroll-padding-top: calc(56px + env(safe-area-inset-top)); }
.mark { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; display: flex; align-items: center; height: 44px; }
.mark .mark-merker { display: none; }
.mark-merker { display: block; height: 0; }
.mark::before { content: ""; position: fixed; z-index: -1; top: 0; left: 0; right: 0; height: calc(44px + env(safe-area-inset-top, 0px));
  background: rgba(0,0,0,.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255,255,255,.07); opacity: 0; pointer-events: none; }
.mark a { min-height: 44px; transform-origin: 0 50%; }
.mark.klein::before { opacity: 1; }
.mark.klein a { color: #FFFFFF; transform: translateX(var(--nach, 0px)) scale(.92); }
.mark.bereit::before { transition: opacity 200ms ease-out; }
.mark.bereit a { transition: transform 220ms cubic-bezier(.2,.7,.2,1), color 200ms ease-out; }
body:has(.mark) #sprache { top: env(safe-area-inset-top, 0px); width: 44px; height: 44px; z-index: 7; }
@media (prefers-reduced-motion: reduce) { .mark.klein a { transform: none; } .mark.bereit::before, .mark.bereit a { transition: none; } }
