:root { --bg: #080a0f; --panel: #0f141c; --line: rgba(255, 255, 255, .08); --text: #e9eef3; --muted: #94a3b8; --accent: #00c4a7; --bad: #f87171; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font: 15px/1.55 'Inter', system-ui, sans-serif;
  background: radial-gradient(700px 500px at 30% 10%, rgba(0, 196, 167, .12), transparent 70%), radial-gradient(600px 500px at 90% 90%, rgba(124, 58, 237, .12), transparent 70%), var(--bg); }
a { color: var(--accent); }

.ct-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(8, 10, 15, .7); backdrop-filter: blur(10px); }
.ct-logo { height: 34px; width: auto; display: block; }
.ct-home { flex: 1 1 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.ct-home:hover { color: var(--accent); }
.ct-home span { font-size: 18px; line-height: 1; }
.ct-bar .ct-badge { flex: 1 1 0; text-align: center; max-width: max-content; margin-left: auto; }
@media (max-width: 520px) { .ct-bar { padding: 12px 14px; } .ct-logo { height: 26px; } .ct-badge { font-size: 11px; padding: 3px 8px; } .ct-home { font-size: 13px; } }
.ct-badge { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(0, 196, 167, .45); padding: 4px 12px; border-radius: 99px; }

.ct-main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 32px 20px; }
.ct-loading { text-align: center; color: var(--muted); padding: 80px 0; }
.ct-grid { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 40px; align-items: center; }

.ct-stage { perspective: 1200px; }
.ct-tilt { position: relative; transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: ct-float 6s ease-in-out infinite; --gx: 50%; --gy: 30%; }
.ct-tilt.lit { transition: transform .08s linear; }
@keyframes ct-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.ct-card { border-radius: 4.7% / 3.4%; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(0, 196, 167, .18); }
.ct-glare { position: absolute; inset: 0; border-radius: 4.7% / 3.4%; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .28), transparent 45%),
    linear-gradient(115deg, transparent 30%, rgba(255, 0, 170, .2) 42%, rgba(0, 231, 255, .2) 50%, rgba(255, 236, 0, .18) 58%, transparent 70%); background-size: 100% 100%, 220% 220%; background-position: center, var(--gx) var(--gy); }
.ct-tilt.lit .ct-glare { opacity: .8; }

.ct-status { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; }
.ct-status.ok { background: rgba(0, 196, 167, .1); border: 1px solid rgba(0, 196, 167, .45); }
.ct-status.bad { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .45); }
.ct-status b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ct-status.ok b { color: #5eead4; }
.ct-status.bad b { color: var(--bad); }
.ct-status div span { color: var(--muted); font-size: 14px; }
.ct-seal { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; font-weight: 900; color: #00140f; background: var(--accent); box-shadow: 0 0 0 5px rgba(0, 196, 167, .2), 0 0 24px rgba(0, 196, 167, .5); }
.ct-status.bad .ct-seal { background: var(--bad); box-shadow: 0 0 0 5px rgba(248, 113, 113, .2); }

.ct-name { margin: 0 0 14px; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 44px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.ct-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ct-facts div { background: var(--panel); padding: 12px 14px; }
.ct-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ct-facts dd { margin: 2px 0 0; font-weight: 600; }
.ct-facts .mono { font-family: 'Space Grotesk', ui-monospace, monospace; letter-spacing: .06em; color: #5eead4; }
.ct-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.ct-error { text-align: center; padding: 70px 10px; }
.ct-error-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(248, 113, 113, .15); color: var(--bad); font-size: 30px; font-weight: 800; }
.ct-error h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; text-transform: uppercase; margin: 14px 0 6px; }
.ct-error p { color: var(--muted); }
/* „Nicht gefunden“ – neutral, ohne Shop-Verweis */
body.ct-neutral .ct-home, body.ct-neutral .ct-foot, body.ct-neutral .ct-badge { display: none; }
.ct-nf { font-family: 'Inter', system-ui, sans-serif; max-width: 560px; margin: 0 auto; }
.ct-nf .ct-error-icon { background: rgba(255, 255, 255, .07); color: #fff; }
.ct-nf h1 { font-family: 'Inter', system-ui, sans-serif; text-transform: none; font-weight: 600; letter-spacing: -.02em; font-size: 30px; }
.ct-nf p { line-height: 1.6; } .ct-nf-hilfe { margin-top: 26px; font-size: 13.5px; } .ct-nf-hilfe a { color: inherit; }
.ct-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .ct-grid { grid-template-columns: 1fr; gap: 24px; }
  .ct-stage { max-width: 300px; margin: 0 auto; width: 100%; }
  .ct-name { font-size: 34px; text-align: center; }
  .ct-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ct-tilt { animation: none; } }

/* Nummer eingeben */
.ct-lookup { margin: 22px auto 0; max-width: 360px; text-align: left; }
.ct-lookup label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.ct-lookup-row { display: flex; align-items: stretch; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.04); }
.ct-lookup-row span { display: flex; align-items: center; padding: 0 4px 0 14px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; opacity: .6; }
.ct-lookup-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .12em; padding: 12px 6px; outline: none; }
.ct-lookup-row button { border: 0; background: #00c4a7; color: #00261f; font-weight: 800; padding: 0 18px; cursor: pointer; font-size: 15px; }
.ct-lookup small { display: block; margin-top: 8px; opacity: .6; font-size: 12.5px; line-height: 1.45; }
.ct-lookup.err .ct-lookup-row { border-color: #f87171; }
.ct-error-icon.ok { background: rgba(0,196,167,.15); color: #00c4a7; }

.ct-card-img { display: block; width: 100%; height: auto; border-radius: 4.5% / 3.25%; }

/* Fotos der Originalkarte */
.ct-photos { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.ct-photos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ct-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ct-photos h2 { margin: 4px 0 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.ct-seg { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.ct-seg button { border: 0; background: transparent; color: var(--muted); font: 600 14px 'Inter', sans-serif; padding: 8px 18px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; }
.ct-seg button.on { background: var(--accent); color: #00140f; }
.ct-photo { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: #050608; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 196, 167, .08); }
.ct-photo img { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #050608; cursor: zoom-in; transition: opacity .16s; }
.ct-photo img.fade { opacity: 0; }
.ct-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px; font-size: 12.5px; color: rgba(255, 255, 255, .78);
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); pointer-events: none; }
.ct-zoom { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .92); cursor: zoom-out; padding: 12px; }
.ct-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }
@media (max-width: 760px) { .ct-photos h2 { font-size: 24px; } .ct-photos-head { align-items: flex-start; } .ct-photo { border-radius: 16px; } }

/* ungerade Anzahl Angaben: letzte Zeile über die ganze Breite (kein leeres Feld) */
.ct-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Karte umdrehen */
.ct-flip { position: relative; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1); cursor: pointer; }
.ct-flip.flipped { transform: rotateY(180deg); }
.ct-face { position: relative; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ct-back { position: absolute; inset: 0; transform: rotateY(180deg); border-radius: 4.7% / 3.4%; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(0, 196, 167, .18); background: #0b0d11; }
.ct-back img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-turn { display: block; margin: 18px auto 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text);
  font: 600 14px 'Inter', sans-serif; padding: 9px 18px; border-radius: 99px; cursor: pointer; transition: background .2s, border-color .2s; }
.ct-turn:hover { background: rgba(0, 196, 167, .12); border-color: rgba(0, 196, 167, .45); }
.ct-tilt .ct-glare { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .ct-flip { transition: none; } }

/* Enthüllung: Seite wartet verdeckt, bis die Karte aus dem Intro an ihren Platz geglitten ist */
.ct-info { transition: opacity 1.4s ease .15s, transform 1.4s ease .15s; }
.ct-widmung { transition: opacity 1.4s ease .8s, transform 1.4s ease .8s; }
.ct-photos { transition: opacity 1.4s ease 1.3s, transform 1.4s ease 1.3s; }
.ct-turn, .ct-replay { transition: opacity 1s ease .6s; }
.ct-reveal .ct-stage { visibility: hidden; }
.ct-reveal .ct-info, .ct-reveal .ct-widmung, .ct-reveal .ct-photos { opacity: 0; transform: translateY(18px); transition: none; }
.ct-reveal .ct-turn { opacity: 0; transition: none; }
body.ct-lock { overflow: hidden; }
.ct-intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; opacity: 0; transition: opacity .7s ease; }
.ct-intro::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 42%, #0e2427 0%, #070a0e 62%, #05060a 100%); transition: opacity 1.2s ease; }
.ct-intro.show { opacity: 1; }
.ct-intro.fly::before { opacity: 0; }
.ct-intro.done { opacity: 0; pointer-events: none; }
.ct-intro > * { grid-area: 1 / 1; position: relative; }
/* Siegel-Knopf */
.ct-intro-btn { display: flex; flex-direction: column; align-items: center; gap: 14px; border: 0; background: none; color: var(--text); cursor: pointer; padding: 20px;
  transition: opacity .7s ease, transform .8s cubic-bezier(.5, 0, .2, 1), filter .7s ease; }
.ct-intro.open .ct-intro-btn { opacity: 0; transform: scale(1.25); filter: blur(6px); pointer-events: none; }
.ct-intro-seal { position: relative; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #12403c, #071413 70%); box-shadow: 0 0 0 1px rgba(0, 196, 167, .5), 0 0 40px rgba(0, 196, 167, .35); animation: ct-seal 2.2s ease-out infinite; }
.ct-intro-seal::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, transparent 0 55%, #5eead4 75%, #fff6c8 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ct-spin 2.6s linear infinite; }
.ct-intro-seal img { width: 62px; height: auto; filter: drop-shadow(0 0 12px rgba(94, 234, 212, .7)); }
.ct-intro-btn:hover .ct-intro-seal { transform: scale(1.05); }
.ct-intro-btn b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: .05em; text-transform: uppercase; }
.ct-intro-btn small { margin-top: -10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); animation: ct-blink 2.2s ease-in-out infinite; }
@keyframes ct-seal { 0% { box-shadow: 0 0 0 1px rgba(0, 196, 167, .5), 0 0 40px rgba(0, 196, 167, .35), 0 0 0 0 rgba(0, 196, 167, .45); }
  100% { box-shadow: 0 0 0 1px rgba(0, 196, 167, .5), 0 0 40px rgba(0, 196, 167, .35), 0 0 0 34px rgba(0, 196, 167, 0); } }
@keyframes ct-spin { to { transform: rotate(360deg); } }
@keyframes ct-blink { 50% { opacity: .45; } }
/* Spalte: Karte oben (wächst), Widmung darunter */
.ct-intro-col { --ch: min(54vh, 460px); display: flex; flex-direction: column; align-items: center; width: min(92vw, 640px); pointer-events: none; }
.ct-intro-slot { position: relative; height: 0; width: 100%; display: flex; justify-content: center; align-items: flex-end; perspective: 1400px;
  transition: height 1.5s cubic-bezier(.65, 0, .25, 1); }
.ct-intro.card .ct-intro-slot { height: var(--ch); }
.ct-intro-card { position: relative; z-index: 1; flex: none; height: var(--ch); aspect-ratio: 63.5 / 88; transform-origin: 0 0;
  opacity: 0; transform: translateY(40px) scale(.92); transition: opacity 1.1s ease .5s, transform 1.4s cubic-bezier(.2, .8, .2, 1) .3s; }
.ct-intro.card .ct-intro-card { opacity: 1; transform: none; }
.ct-intro.fly .ct-intro-card { transition: transform 1.3s cubic-bezier(.65, 0, .25, 1); }
.ct-intro-card .ct-flip { height: 100%; cursor: default; transition-duration: 1.1s; }
.ct-intro-front { height: 100%; border-radius: 4.7% / 3.4%; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 50px rgba(0, 196, 167, .22); }
.ct-intro-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-intro-wid { text-align: center; padding: 0 8px; opacity: 0; transform: translateY(12px);
  transition: opacity 1.2s ease, transform 1.2s ease, margin 1.5s cubic-bezier(.65, 0, .25, 1); }
.ct-intro.wid .ct-intro-wid { opacity: 1; transform: none; }
.ct-intro.card .ct-intro-wid { margin-top: 26px; }
.ct-intro.fly .ct-intro-wid { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ct-intro-wid blockquote { margin: 14px 0 0; font-family: 'SanvitoProRegular', Georgia, serif; font-size: 36px; line-height: 1.28; color: #f8fafc;
  transition: font-size 1.5s cubic-bezier(.65, 0, .25, 1); }
.ct-intro.card .ct-intro-wid blockquote { font-size: 23px; }
.ct-intro-wid blockquote span { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(8px); }
.ct-intro.wid .ct-intro-wid blockquote span { animation: ct-word .9s ease forwards; animation-delay: calc(var(--i) * 120ms + .5s); }
@keyframes ct-word { to { opacity: 1; filter: blur(0); transform: none; } }
.ct-intro-wid cite { display: block; margin-top: 12px; font-style: normal; font-family: 'SanvitoProRegular', Georgia, serif; font-size: 24px; color: var(--accent);
  opacity: 0; transition: opacity 1s ease; }
.ct-intro.wid .ct-intro-wid cite { opacity: 1; transition-delay: 2.2s; }
.ct-intro .ct-sparks { top: 50%; }
/* Pause vor der Karte: erst das echte Päckchen öffnen */
.ct-intro-paket { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 420px; max-height: 0; opacity: 0; overflow: hidden;
  transition: opacity .9s ease, max-height .9s ease, margin .9s ease; }
.ct-intro.pause .ct-intro-paket { max-height: 320px; opacity: 1; margin-top: 34px; }
.ct-intro.weiter .ct-intro-paket { max-height: 0; opacity: 0; margin-top: 0; transition-duration: .6s; }
.ct-intro-paket b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 32px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.ct-intro-paket small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ct-intro-weiter { pointer-events: auto; margin: 12px 0 6px; border: 0; border-radius: 99px; padding: 13px 24px; cursor: pointer;
  font: 700 15px 'Inter', sans-serif; color: #00140f; background: var(--accent); animation: ct-weiter 1.8s ease-out infinite; }
@keyframes ct-weiter { 0% { box-shadow: 0 0 0 0 rgba(0, 196, 167, .55); } 100% { box-shadow: 0 0 0 18px rgba(0, 196, 167, 0); } }
.ct-intro.pause .ct-intro-wid blockquote { font-size: 28px; }
@media (max-width: 640px) { .ct-intro.pause .ct-intro-wid blockquote { font-size: 22px; } .ct-intro-paket b { font-size: 26px; } }
@media (max-width: 640px) { .ct-intro-wid blockquote { font-size: 28px; } .ct-intro.card .ct-intro-wid blockquote { font-size: 19px; } .ct-intro-col { --ch: min(50vh, 440px); } }
@media (prefers-reduced-motion: reduce) { .ct-intro-seal, .ct-intro-seal::before, .ct-intro-btn small { animation: none; } }
.ct-sparks { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 0; }
.ct-sparks i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff6c8;
  box-shadow: 0 0 10px 2px rgba(255, 214, 102, .9), 0 0 20px 4px rgba(0, 196, 167, .5); opacity: 0;
  animation: ct-spark 1.5s cubic-bezier(.15, .7, .3, 1) var(--d) forwards; }
@keyframes ct-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.2); } }
.ct-tilt { position: relative; z-index: 1; }
.ct-replay { display: inline-block; margin: 14px 0 0; border: 0; background: none; padding: 0; color: var(--accent); font: 600 13.5px 'Inter', sans-serif; cursor: pointer; }
.ct-replay:hover { text-decoration: underline; }
/* Widmung */
.ct-widmung { margin: 44px auto 0; max-width: 680px; text-align: center; padding: 30px 26px 26px; border-radius: 22px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(0, 196, 167, .10), rgba(255, 255, 255, .02) 60%); border: 1px solid rgba(0, 196, 167, .25); }
.ct-widmung blockquote { margin: 14px 0 0; font-family: 'SanvitoProRegular', 'Georgia', serif; font-size: 30px; line-height: 1.3; color: #f8fafc; }
.ct-widmung cite { display: block; margin-top: 14px; font-style: normal; font-family: 'SanvitoProRegular', 'Georgia', serif; font-size: 22px; color: var(--accent); }
@media (max-width: 640px) { .ct-widmung blockquote { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .ct-reveal .ct-flip, .ct-reveal-hint { animation: none; } }
.ct-note a { color: var(--accent, #00C4A7); font-weight: 600; text-decoration: none; white-space: nowrap; }
