/* Go Posta / Tregi – Landingpage. Farben, Schriften und Formen aus den Stitch-Vorlagen (adriatic_trust_marketplace).
   Gleiche Datei in goposta.al und tregi.al/site. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/jakarta-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --primary: #b31942; --primary-d: #8d002e; --tertiary: #004e47; --surface: #f8f9ff; --low: #eff4ff; --cont: #e5eeff;
  --card: #fff; --ink: #0b1c30; --navy: #1e293b; --muted: #545f73; --line: #e2e8f0;
  --display: "Jakarta", system-ui, sans-serif; --text: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --shadow: 0 8px 30px rgb(15 23 42 / .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--surface); color: var(--ink); font: 400 16px/1.55 var(--text); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); padding: 12px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; letter-spacing: -.025em; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 14px; border-radius: 999px; background: rgb(0 78 71 / .08); color: var(--tertiary); font-size: 13px; font-weight: 600; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lead { max-width: 34em; color: var(--muted); font-size: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); box-shadow: 0 12px 28px -12px rgb(179 25 66 / .7); }
.btn-soft { background: var(--card); color: var(--navy); border-color: var(--line); }
.btn-soft:hover { border-color: var(--primary); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 40; background: rgb(248 249 255 / .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.top.is-small { border-color: var(--line); box-shadow: var(--shadow); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font: 700 20px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--cont); }
.menu { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -72px 0 0; background: radial-gradient(60% 55% at 82% 40%, rgb(179 25 66 / .1), transparent 70%), radial-gradient(45% 50% at 8% 8%, var(--cont), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; min-height: min(760px, calc(100svh - 72px)); padding-block: 32px 64px; }
.hero h1 { margin-top: 20px; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { position: relative; display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 40px; padding-top: 20px; list-style: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.facts::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--line); transform-origin: left; }
.motion-ready .facts::before { animation: grow 1.1s .9s var(--ease) both; }
.is-preloading .facts::before { animation-play-state: paused; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .ico { width: 18px; height: 18px; color: var(--tertiary); }
@keyframes grow { from { transform: scaleX(0); } }

/* 3D-Bühne */
.stage { position: relative; height: 560px; perspective: 1200px; }
.stage-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.glass { background: rgb(255 255 255 / .94); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -24px rgb(15 23 42 / .28); }
.float { position: absolute; }
.bob { animation: bob 7s ease-in-out infinite; }
.float-b .bob { animation-delay: -2.4s; }
.float-c .bob { animation-delay: -4.6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.chip-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cont); color: var(--primary); flex: none; }
.tile.teal { background: rgb(0 78 71 / .09); color: var(--tertiary); }
.chip-card b { display: block; font-size: 14px; line-height: 1.3; }
.chip-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Go Posta: Paket */
.f-code, .f-pin { top: 8px; width: 48%; transform: translateZ(30px); }
.f-code { left: 0; }
.f-pin { right: 0; }
.f-code .chip-card, .f-pin .chip-card { min-height: 76px; }
.f-status { left: 50%; bottom: 0; width: min(360px, 100%); transform: translateX(-50%) translateZ(50px); }
.status { padding: 14px 18px; }
.status header { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 700 15px var(--display); }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--low); color: var(--muted); font: 600 11px var(--text); }
.status ol { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.status li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.status li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.status li.done i { background: var(--tertiary); border-color: var(--tertiary); }
.status li.now { color: var(--primary); font-weight: 600; }
.status li.now i { background: var(--primary); border-color: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(179 25 66 / .45); } 100% { box-shadow: 0 0 0 9px rgb(179 25 66 / 0); } }

.cube-pos { position: absolute; left: 50%; top: 244px; width: 0; height: 0; transform-style: preserve-3d; --s: 172px; }
.cube-scroll { transform-style: preserve-3d; }
.cube { position: relative; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(-34deg); animation: spin 24s linear infinite; }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(-34deg); } to { transform: rotateX(-22deg) rotateY(326deg); } }
.face { position: absolute; width: var(--s); height: var(--s); left: calc(var(--s) / -2); top: calc(var(--s) / -2); border-radius: 6px; border: 1px solid rgb(255 255 255 / .22); }
.face.front { background: linear-gradient(150deg, #c92a55, var(--primary) 60%, #99103a); transform: translateZ(calc(var(--s) / 2)); }
.face.back { background: linear-gradient(150deg, #b31942, #7f0029); transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.face.right { background: linear-gradient(150deg, #9c0f3a, #6d0023); transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.face.left { background: linear-gradient(150deg, #a8143f, #760026); transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.face.up { background: linear-gradient(135deg, #dd4a72, #c22451); transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.face.down { background: #4d0019; transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.face.up::after, .face.front::after, .face.back::after { content: ""; position: absolute; left: 40%; width: 20%; top: 0; height: 100%; background: rgb(255 255 255 / .82); }
.face.front::after, .face.back::after { height: 24%; }
.label { position: absolute; left: 12%; bottom: 12%; width: 62%; padding: 10px 12px; border-radius: 8px; background: #fff; color: var(--ink); font: 700 clamp(12px, 1.4vw, 15px)/1.2 var(--display); }
.label span { display: block; height: 18px; margin-top: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px); }
.shadow { position: absolute; left: 50%; top: 366px; width: 230px; height: 30px; margin-left: -115px; border-radius: 50%; background: radial-gradient(rgb(11 28 48 / .28), transparent 70%); }

/* Tregi: Karten in Tiefe */
.f-search { left: 8%; right: 8%; top: 0; transform: translateZ(60px); }
.search { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; color: var(--muted); font-size: 14px; }
.search .ico { color: var(--primary); width: 20px; height: 20px; }
.ghost { position: absolute; top: 110px; width: 190px; height: 260px; opacity: .75; }
.ghost.l { left: 2%; transform: translateZ(-90px) rotateY(28deg); }
.ghost.r { right: 2%; transform: translateZ(-90px) rotateY(-28deg); }
.ghost::before, .shot { content: ""; display: block; height: 56%; margin: 10px; border-radius: 10px; background: linear-gradient(135deg, var(--cont), #d3e4fe); }
.ghost::after { content: ""; display: block; margin: 16px 14px 0; height: 54px; background: linear-gradient(var(--line) 0 0) 0 0 / 55% 12px no-repeat, linear-gradient(var(--low) 0 0) 0 24px / 100% 10px no-repeat, linear-gradient(var(--low) 0 0) 0 42px / 75% 10px no-repeat; }
.f-item { left: 50%; top: 76px; width: 250px; transform: translateX(-50%) translateZ(30px); }
.item { overflow: hidden; }
.item .shot { display: grid; place-items: center; height: 188px; color: var(--primary); }
.item .shot .ico { width: 64px; height: 64px; stroke-width: 1.2; }
.item .body { padding: 4px 16px 16px; }
.item .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.line { display: block; height: 11px; border-radius: 6px; background: var(--low); margin-top: 10px; }
.line.price { width: 90px; height: 18px; margin-top: 0; background: var(--navy); opacity: .85; }
.line.short { width: 64%; }
.f-tiles { left: 3%; right: 3%; bottom: 0; transform: translateZ(70px); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles span { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; font-size: 13px; font-weight: 600; }

/* Laufband */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); }
.marquee div { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee ul { display: flex; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 32px; padding: 18px 0 18px 32px; font: 700 18px var(--display); color: var(--navy); white-space: nowrap; }
.marquee li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Abschnitte */
.sec { padding-block: 96px; }
.sec.white { background: var(--card); }
.sec-head { display: grid; justify-items: center; gap: 12px; text-align: center; margin-bottom: 48px; }
.sec-head p { max-width: 36em; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.cards { list-style: none; }
.card { position: relative; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.white .card { background: var(--surface); }
.card h3 { margin-top: 20px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.card .tile { width: 52px; height: 52px; border-radius: 14px; }

.cats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cats .card { padding: 20px; }
.cats .card .tile { width: 44px; height: 44px; border-radius: 12px; }
.cats h3 { margin-top: 14px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; list-style: none; }
.chips li { padding: 4px 10px; border-radius: 999px; background: var(--low); color: var(--navy); font-size: 12px; }
.cats .more { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--cont); }
.cats .more h3 { margin-top: 0; }
.cats .more .btn { margin-top: 16px; }

/* Ablauf mit Pin */
.flow { padding-block: 96px; }
#si-funksionon { scroll-margin-top: -80px; }
.flow-grid { display: grid; gap: 48px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; counter-reset: step; }
.steps li { position: relative; padding-top: 20px; border-top: 3px solid var(--primary); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 700 32px/1 var(--display); color: var(--primary); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 12px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.scenes { display: none; }
.flow.is-pinned { display: flex; align-items: center; min-height: 100vh; padding-block: 76px 24px; }
.flow.is-pinned .flow-grid { grid-template-columns: 1fr 1fr; align-items: center; }
.flow.is-pinned .steps { grid-template-columns: 1fr; gap: 4px; margin-top: 28px; }
.flow.is-pinned .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 12px 0 12px 20px; border-top: 0; border-left: 3px solid var(--line); opacity: .55; transition: opacity .35s, border-color .35s; }
.flow.is-pinned .steps li::before { grid-row: span 2; font-size: 28px; }
.flow.is-pinned .steps h3 { margin-top: 0; }
.flow.is-pinned .steps li.is-on { opacity: 1; border-color: var(--primary); }
.flow.is-pinned .scenes { display: grid; position: relative; height: min(460px, 70vh); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.scene { grid-area: 1 / 1; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 32px; text-align: center; opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.scene.is-on { opacity: 1; transform: none; }
.scene .tile { width: 168px; height: 168px; border-radius: 44px; background: linear-gradient(145deg, var(--cont), #d3e4fe); }
.scene .tile .ico { width: 80px; height: 80px; stroke-width: 1.3; }
.scene strong { font: 700 24px var(--display); }
.bar { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--primary); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Satz, der sich aufdeckt */
.statement { padding-block: 128px; }
.statement p { max-width: 20em; margin-inline: auto; text-align: center; font: 700 clamp(28px, 4.4vw, 52px)/1.3 var(--display); letter-spacing: -.025em; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.white .faq details { background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }
@supports selector(::details-content) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* Kontakt */
.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 48px; border-radius: 24px; background: var(--cont); }
.cta p { margin-top: 12px; color: var(--muted); }
.cta .actions { margin-top: 0; flex-direction: column; }

/* Fuss */
.foot { background: var(--card); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.foot h2 { font-size: 15px; letter-spacing: 0; color: var(--ink); margin-bottom: 8px; line-height: 44px; }
.foot ul { list-style: none; }
.foot a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); text-decoration: none; }
.foot a:hover { color: var(--primary); }
.foot a .ico { width: 20px; height: 20px; color: var(--primary); }
.foot .about p { max-width: 24em; margin-top: 8px; }
.foot .bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.badge { justify-content: center; min-width: 44px; }
.badge img { width: 38px; height: 37px; object-fit: contain; }

/* Rechtstexte und 404 */
.legal { max-width: 800px; padding-block: 48px 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); overflow-wrap: break-word; hyphens: auto; }
.legal h2 { margin-top: 40px; font-size: 20px; letter-spacing: -.01em; }
.legal p, .legal ul, .legal dl { margin-top: 12px; color: var(--navy); }
.legal ul { padding-left: 22px; }
.legal dt { margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.legal a { overflow-wrap: anywhere; }
.nf { display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 60vh; padding-block: 64px; text-align: center; }
.nf b { font: 700 clamp(80px, 20vw, 160px)/1 var(--display); color: var(--primary); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; min-height: 0; }
  .stage { width: 100%; max-width: 560px; margin-inline: auto; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 680px) {
  .wrap { padding-inline: 16px; }
  .top .wrap { height: 64px; }
  .nav { display: none; }
  .menu { display: block; }
  .menu summary { display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgb(15 23 42 / .3); }
  .menu nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
  .menu nav a:last-child { border-bottom: 0; }
  .hero .wrap { padding-block: 16px 48px; }
  .actions { flex-direction: column; }
  .facts { flex-direction: column; margin-top: 32px; }
  .stage { height: 450px; }
  .chip-card { gap: 10px; padding: 10px; }
  .chip-card .tile { width: 36px; height: 36px; }
  .f-code, .f-pin { width: calc(50% - 5px); }
  .f-code .chip-card, .f-pin .chip-card { min-height: 96px; }
  .f-search { left: 0; right: 0; }
  .search { gap: 10px; padding: 0 14px; font-size: 13px; }
  .cube-pos { top: 198px; --s: 120px; }
  /* Handy: keine Tiefen-Skalierung, damit alle Kanten auf dem Seitenraster liegen */
  .f-code, .f-pin, .f-search, .f-tiles { transform: none; }
  .f-status, .f-item { transform: translateX(-50%); }
  .f-tiles { left: 0; right: 0; }
  .shadow { top: 280px; width: 170px; margin-left: -85px; }
  .label { padding: 6px 8px; font-size: 11px; }
  .label span { height: 10px; margin-top: 4px; }
  .status { padding: 10px 14px; }
  .status ol { gap: 4px; margin-top: 8px; }
  .f-item { width: 210px; top: 68px; }
  .item .shot { height: 130px; }
  .ghost { width: 120px; height: 200px; top: 100px; }
  .marquee li { font-size: 15px; gap: 24px; padding: 14px 0 14px 24px; }
  .sec, .flow { padding-block: 64px; }
  .sec-head { margin-bottom: 32px; }
  .card { padding: 20px; }
  .cats { grid-template-columns: 1fr; gap: 12px; }
  .cats .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
  .cats h3 { margin-top: 0; }
  .cats .chips { grid-column: 1 / -1; }
  .cats .more { display: flex; align-items: stretch; }
  .steps { grid-template-columns: 1fr; margin-top: 32px; gap: 20px; }
  .statement { padding-block: 72px; }
  .cta { padding: 24px; }
  .foot .cols { grid-template-columns: 1fr; gap: 8px; padding-block: 24px 16px; }
  .foot h2 { margin-bottom: 0; }
  .foot .bottom { padding-block: 12px; font-size: 13px; }
}
@media (max-width: 360px) { .f-code .chip-card, .f-pin .chip-card { min-height: 112px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee div { width: auto; }
  .marquee ul { flex-wrap: wrap; }
  .marquee ul + ul { display: none; }
}

/* ---------- web-standard: Startzustände nur, wenn JS läuft und Bewegung erlaubt ist ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-intro], .motion-ready [data-reveal] { opacity: 0; will-change: transform, opacity; }
  .motion-ready [data-reveal="up"], .motion-ready [data-intro] { transform: translateY(var(--shift, 26px)); }
  .motion-ready [data-reveal="zoom"] { transform: scale(.94); }
  .motion-ready .is-in { opacity: 1 !important; transform: none !important; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0ms); }
  [data-tilt] { transform-style: preserve-3d; transition: transform .35s var(--ease), border-color .2s; }
  [data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(179 25 66 / .09), transparent 60%); opacity: 0; transition: opacity .3s; }
  [data-tilt]:hover { border-color: var(--primary); }
  [data-tilt]:hover::after { opacity: 1; }
}
@media (max-width: 680px) { :root { --shift: 12px; } }

/* ---------- Preloader (web-standard A0) – nur sichtbar, solange html.is-preloading ---------- */
.preloader { display: none; }
.is-preloading { overflow: hidden; }
.is-preloading .preloader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 999; color: #fff; --p: 0; }
.pl-panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); transition: transform .9s cubic-bezier(.77, 0, .18, 1); }
.pl-top { top: 0; } .pl-bottom { bottom: 0; }
.pl-top::before { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--primary); box-shadow: 0 0 18px #ff4d7d; }
.pl-core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; text-align: center; transition: opacity .4s, transform .6s var(--ease); }
.pl-ring { position: relative; display: grid; place-items: center; width: 132px; height: 132px; animation: pl-in .8s var(--ease) both; }
.pl-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ff4d7d calc(var(--p) * 360deg), rgb(255 255 255 / .1) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.pl-ring img { width: 76px; height: 76px; animation: pl-spin 1.1s var(--ease) both; }
.pl-word { display: flex; font: 700 clamp(32px, 7vw, 52px)/1.1 var(--display); letter-spacing: -.01em; perspective: 600px; }
.pl-word span { display: inline-block; min-width: .28em; opacity: 0; transform: rotateX(-90deg) translateY(12px); transform-origin: 50% 100%; animation: pl-letter .7s var(--ease) forwards; }
.pl-word span:nth-child(1) { animation-delay: .2s; } .pl-word span:nth-child(2) { animation-delay: .26s; } .pl-word span:nth-child(3) { animation-delay: .32s; } .pl-word span:nth-child(4) { animation-delay: .38s; }
.pl-word span:nth-child(5) { animation-delay: .44s; } .pl-word span:nth-child(6) { animation-delay: .5s; } .pl-word span:nth-child(7) { animation-delay: .56s; } .pl-word span:nth-child(8) { animation-delay: .62s; }
.pl-sub { font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: #b9c6dd; animation: pl-in .8s .6s var(--ease) both; }
.pl-bar { width: 180px; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .12); overflow: hidden; }
.pl-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p)); background: #ff4d7d; }
.pl-num { font: 700 12px var(--display); letter-spacing: .2em; color: #b9c6dd; font-variant-numeric: tabular-nums; }
.preloader.is-out .pl-core { opacity: 0; transform: scale(.94); }
.preloader.is-out .pl-top { transform: translateY(-101%); transition-delay: .15s; }
.preloader.is-out .pl-bottom { transform: translateY(101%); transition-delay: .15s; }
@keyframes pl-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes pl-spin { from { opacity: 0; transform: scale(.6) rotate(-60deg); } }
@keyframes pl-letter { to { opacity: 1; transform: none; } }
