/* =========================================================
   ════════  V5.2 — SIGNALARCHIV  ════════
   Gegenentwurf zum generischen Karten-Look:
   offene Register statt Boxen, ein Signal pro Baustein,
   physische Objekte (Fallblatt, Pass, Papier, Siegel)
   ========================================================= */

/* ---------------------------------------------------------
   1) HERO-CTAs — Plasma-Kapsel + Signal-Linie
   --------------------------------------------------------- */
.hero-v2 .hero-cta { align-items: center; gap: 1.4rem; }
.cta-plasma {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1.55rem;
    border-radius: 100px;
    color: #fff;
    background: #0a0c22;
    border: 1px solid rgba(167, 139, 250, 0.5);
    box-shadow: 0 14px 40px -14px rgba(139, 92, 246, 0.75);
    font: 600 0.95rem var(--font-sans);
    letter-spacing: 0.01em;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}
.cp-core {
    position: absolute;
    z-index: -2;
    left: -30%;
    top: -130%;
    width: 160%;
    height: 360%;
    background: conic-gradient(from 0deg, #6366F1, #EC4899, #8B5CF6, #38BDF8, #6366F1);
    filter: blur(18px);
    opacity: 0.55;
    animation: plasmaSpin 7s linear infinite;
    transition: opacity 0.5s ease;
}
.cta-plasma::before {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(120% 160% at 18% 0%, rgba(26, 28, 72, 0.6), rgba(10, 12, 34, 0.94) 60%);
    transition: opacity 0.6s ease;
}
.cp-label { display: inline-flex; height: 1.3em; line-height: 1.3em; overflow: hidden; }
.cp-label span {
    display: inline-block;
    text-shadow: 0 1.3em 0 #fff;
    transition: transform 0.55s cubic-bezier(0.65, 0, 0.05, 1);
    transition-delay: calc(var(--i, 0) * 16ms);
}
.cp-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #0a0c22;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cp-arrow i { transform: rotate(-45deg); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cta-plasma:hover { border-color: rgba(236, 72, 153, 0.7); box-shadow: 0 18px 50px -12px rgba(236, 72, 153, 0.7); }
.cta-plasma:hover::before { opacity: 0.25; }
.cta-plasma:hover .cp-core { opacity: 0.95; }
.cta-plasma:hover .cp-label span { transform: translateY(-1.3em); }
.cta-plasma:hover .cp-arrow { transform: scale(1.06); }
.cta-plasma:hover .cp-arrow i { transform: rotate(0deg); }
.cta-plasma:focus-visible, .cta-line:focus-visible { outline: 2px solid var(--accent-lighter); outline-offset: 4px; }
@keyframes plasmaSpin { to { transform: rotate(360deg); } }

.cta-line {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.3rem;
    color: var(--text-primary);
    font: 600 0.95rem var(--font-sans);
}
.cl-idx {
    padding: 0.2rem 0.38rem;
    font: 500 0.62rem var(--font-mono);
    letter-spacing: 0.08em;
    color: var(--accent-lighter);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}
.cl-rail {
    position: relative;
    width: 46px;
    height: 1px;
    background: var(--border-strong);
    transition: width 0.55s cubic-bezier(0.65, 0, 0.05, 1), background 0.3s ease;
}
.cl-rail::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--text-primary);
    border-right: 1px solid var(--text-primary);
    transform: rotate(45deg);
}
.cl-rail i {
    position: absolute;
    left: 0;
    top: -1.5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-lighter);
    box-shadow: 0 0 8px var(--accent-lighter);
    animation: railDot 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes railDot { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.cta-line:hover .cl-rail { width: 92px; background: var(--accent); }
.cta-line:hover .cl-idx { background: var(--accent-lighter); color: #fff; }

/* ---------------------------------------------------------
   2) STATS — Fallblatt-Anzeige im offenen Archivband
   --------------------------------------------------------- */
.readout {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border);
}
/* Passermarken an den Ecken */
.readout::before, .readout::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 11px;
    height: 11px;
    border-top: 1px solid var(--accent-lighter);
    pointer-events: none;
}
.readout::before { left: -6px; border-left: 1px solid var(--accent-lighter); }
.readout::after { right: -6px; border-right: 1px solid var(--accent-lighter); }
.ro-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.5rem 1.4rem 1.35rem;
    border-left: 1px solid var(--border);
    cursor: default;
}
.ro-cell:first-child { border-left: 0; padding-left: 0.2rem; }
.ro-idx {
    font: 500 0.6rem var(--font-mono);
    letter-spacing: 0.22em;
    color: var(--text-muted);
}
.flaps {
    display: inline-flex;
    gap: 0.07em;
    margin: 0.55rem 0 0.95rem;
    font: 600 clamp(2.5rem, 4.4vw, 4rem) / 1 var(--font-display);
}
.fl {
    position: relative;
    display: block;
    width: 0.72em;
    height: 1.06em;
    perspective: 320px;
    border-radius: 0.09em;
    color: #F4F2FF;
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.fl.sym { color: #F9A8D4; }
.fl-h {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.fl-top, .fl-a { top: 0; border-radius: 0.09em 0.09em 0 0; transform-origin: 50% 100%; background: linear-gradient(#1a1f45, #12163a); }
.fl-bot, .fl-b { bottom: 0; border-radius: 0 0 0.09em 0.09em; transform-origin: 50% 0; background: linear-gradient(#0f1232, #0b0e28); }
.fl-h b {
    position: absolute;
    left: 0;
    right: 0;
    height: 200%;
    display: grid;
    place-items: center;
    font-weight: inherit;
}
.fl-top b, .fl-a b { top: 0; }
.fl-bot b, .fl-b b { top: -100%; }
.fl::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 0.5px);
    height: 1px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.fl-a, .fl-b { z-index: 3; visibility: hidden; }
.fl.go .fl-a { visibility: visible; animation: flA var(--fd, 70ms) ease-in both; }
.fl.go .fl-b { visibility: visible; animation: flB var(--fd, 70ms) ease-out both; }
.fl.go2 .fl-a { visibility: visible; animation: flA2 var(--fd, 70ms) ease-in both; }
.fl.go2 .fl-b { visibility: visible; animation: flB2 var(--fd, 70ms) ease-out both; }
@keyframes flA2 { 0% { transform: rotateX(0deg); filter: brightness(1); } 50%, 100% { transform: rotateX(-90deg); filter: brightness(0.6); } }
@keyframes flB2 { 0%, 50% { transform: rotateX(90deg); filter: brightness(1.4); } 100% { transform: rotateX(0deg); filter: brightness(1); } }
@keyframes flA { 0% { transform: rotateX(0deg); filter: brightness(1); } 50%, 100% { transform: rotateX(-90deg); filter: brightness(0.6); } }
@keyframes flB { 0%, 50% { transform: rotateX(90deg); filter: brightness(1.4); } 100% { transform: rotateX(0deg); filter: brightness(1); } }
.ro-label { font: 600 1.05rem var(--font-display); color: var(--text-primary); }
.ro-sub { font: 0.72rem var(--font-mono); color: var(--text-muted); }
.ro-trace { display: flex; align-items: flex-end; gap: 4px; height: 24px; margin-top: auto; padding-top: 0.9rem; }
.tr-year i { width: 23%; height: 3px; background: var(--border-strong); transition: background 0.4s ease, height 0.4s var(--ease); }
.tr-year i:nth-child(-n+3) { background: var(--accent); }
.ro-cell:hover .tr-year i:nth-child(-n+3) { height: 6px; background: var(--accent-lighter); }
.ro-cell:hover .tr-year i:nth-child(4) { background: repeating-linear-gradient(90deg, var(--accent-lighter) 0 3px, transparent 3px 6px); }
.tr-proj i { width: 2px; height: 8px; background: var(--accent); transition: height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tr-proj i:nth-child(1) { background: var(--accent-lighter); }
.ro-cell:hover .tr-proj i { height: 20px; }
.ro-cell:hover .tr-proj i:nth-child(2) { transition-delay: 0.04s; }
.ro-cell:hover .tr-proj i:nth-child(3) { transition-delay: 0.08s; }
.ro-cell:hover .tr-proj i:nth-child(4) { transition-delay: 0.12s; }
.ro-cell:hover .tr-proj i:nth-child(5) { transition-delay: 0.16s; }
.ro-cell:hover .tr-proj i:nth-child(6) { transition-delay: 0.2s; }
.tr-ai { font: 500 0.72rem var(--font-mono); color: var(--accent-light); align-items: center; gap: 0; }
.tr-ai b { display: inline-block; width: 0.5em; height: 1em; margin-left: 2px; background: var(--accent-lighter); animation: caretBlink 1s steps(1) infinite; }
.ro-cell:hover .tr-ai::after { content: ' engineering'; color: var(--text-secondary); }
.tr-mot svg { width: 100%; height: 16px; overflow: visible; }
.tr-mot path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.ro-cell:hover .tr-mot path { stroke: var(--accent-lighter); animation: motDraw 1.2s var(--ease) both; }
@keyframes motDraw { from { stroke-dashoffset: 200; } }

/* ---------------------------------------------------------
   3) FAKTEN — Datenblatt mit Führungslinie
   --------------------------------------------------------- */
.spec { margin: 2.4rem 0 0; padding: 0; border-top: 1px solid var(--border-strong); }
.spec-row {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.8rem 0.1rem;
    border-bottom: 1px solid var(--border);
}
.spec-row dt {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex: 0 0 auto;
    font: 500 0.66rem var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.spec-row dt i { font-style: normal; color: var(--accent-lighter); letter-spacing: 0.05em; }
.spec-row::after {
    content: '';
    order: 1;
    flex: 1;
    min-width: 1.5rem;
    height: 1px;
    align-self: center;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 2px, transparent 2px 6px);
    transition: background 0.4s ease;
}
.spec-row dd {
    order: 2;
    margin: 0;
    text-align: right;
    font: 500 0.98rem var(--font-display);
    color: var(--text-primary);
}
.spec-row dd a { color: inherit; background-image: none; }
.spec-row dd a:hover { color: var(--accent-lighter); }
.spec-row:hover::after { background: linear-gradient(90deg, var(--accent), var(--accent-lighter)); animation: specLine 0.5s var(--ease) both; }
.spec-row:hover dt { color: var(--text-secondary); }
@keyframes specLine { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------------------------------------------------------
   4) PERIODENSYSTEM — Spektralprobe statt Glow-Kachel
   --------------------------------------------------------- */
.ptable {
    --el-bg: #0d1131;
    --el-bg2: #121641;
    gap: 1px;
    padding: 1px;
    background: var(--border-strong);
}
[data-theme="light"] .ptable { --el-bg: #ffffff; --el-bg2: #f4f2fd; }
.el { border-radius: 0; aspect-ratio: 1 / 1.04; }
.el:hover { transform: none; }
.el-inner { transform: rotateY(calc(var(--flip, 0) * 180deg)); }
.el-face {
    border: 0;
    border-radius: 0;
    padding: 0.85rem 0.95rem;
    background: var(--el-bg);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.el:hover .el-face, .el.hl .el-face { border-color: transparent; box-shadow: none; }
.el-face::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgb(var(--c));
    transition: width 0.4s var(--ease);
}
.el:hover .el-front::before, .el.hl .el-face::before { width: 6px; }
.el-back { background: var(--el-bg2); }
.el-sym {
    left: 0.95rem;
    top: 22%;
    font-size: clamp(2.3rem, 3.8vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text-primary);
}
[data-theme="light"] .el-sym { background: none; }
.el:hover .el-sym { transform: none; }
.el-no { color: var(--text-muted); left: 0.95rem; }
.el-name { left: 0.95rem; }
.el-cat { left: 0.95rem; }
.el-icon { display: none; }
.el-lvl { top: auto; bottom: 0.9rem; right: 0.95rem; flex-direction: column-reverse; gap: 3px; }
.el-lvl i, .el-lvl i.on { width: 12px; height: 2px; border-radius: 0; box-shadow: none; }
.el-lvl i { background: var(--border-strong); }
.el-lvl i.on { background: rgb(var(--c)); }
/* Signal: ein Elektron umkreist das Symbol */
.el-orbit {
    position: absolute;
    left: 0.3rem;
    top: calc(22% - 0.7rem);
    width: 5.4rem;
    height: 4.6rem;
    border-radius: 50%;
    border: 1px solid rgba(var(--c), 0);
    transform: rotate(-24deg) scaleY(0.42);
    pointer-events: none;
    transition: border-color 0.4s ease;
}
.el-orbit b { position: absolute; inset: 0; opacity: 0; animation: orbitSpin 1.7s linear infinite; animation-play-state: paused; transition: opacity 0.3s ease; }
.el-orbit b::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -3px;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: rgb(var(--c));
    box-shadow: 0 0 10px rgb(var(--c));
}
.el:hover .el-orbit, .el:focus-visible .el-orbit { border-color: rgba(var(--c), 0.5); }
.el:hover .el-orbit b, .el:focus-visible .el-orbit b { opacity: 1; animation-play-state: running; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.el-turn {
    position: absolute;
    right: 0.75rem;
    top: 1.2rem;
    font-size: 0.8rem;
    line-height: 1;
    color: rgb(var(--c));
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s var(--ease);
}
.el:hover .el-turn, .el:focus-visible .el-turn { opacity: 1; transform: rotate(-180deg); }
.el.dim { filter: saturate(0.2) brightness(0.55); }
.el.hl .el-face { box-shadow: inset 0 0 0 1px rgba(var(--c), 0.8); }
@media (hover: none) { .el-turn { opacity: 0.7; } }

/* ---------------------------------------------------------
   5) KONTAKT — Backstage-Pass am Lanyard + Kanäle
   --------------------------------------------------------- */
.pass-wrap { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.pass-stage { position: relative; display: flex; justify-content: center; padding-top: 4px; }
.pass-pin {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    width: 38px;
    height: 12px;
    margin-left: -19px;
    border-radius: 6px;
    background: linear-gradient(#4a4f80, #1b1e40);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pass-swing {
    position: relative;
    width: min(292px, 100%);
    padding-top: 74px;
    transform-origin: 50% 6px;
    touch-action: pan-y;
    cursor: grab;
    will-change: transform;
    -webkit-user-select: none;
    user-select: none;
}
.pass-swing.dragging { cursor: grabbing; }
.pass-strap {
    position: absolute;
    left: 50%;
    top: 2px;
    width: 30px;
    height: 86px;
    margin-left: -15px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed 50%, #db2777);
    clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
    overflow: hidden;
}
.pass-strap i { position: absolute; inset: 0; display: grid; place-items: center; }
.pass-strap i::before {
    content: 'EF ✦ EF ✦ EF';
    writing-mode: vertical-rl;
    font: 700 0.5rem var(--font-mono);
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.75);
}
.pass {
    position: relative;
    overflow: hidden;
    padding-bottom: 1.1rem;
    border-radius: 16px;
    color: #121433;
    background:
        radial-gradient(130% 80% at 100% 0%, rgba(236, 72, 153, 0.08), transparent 60%),
        #F4F1FB;
    box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.pass-clip {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 2;
    width: 46px;
    height: 9px;
    margin-left: -23px;
    border-radius: 5px;
    background: #121433;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6);
}
.pass-head {
    display: flex;
    justify-content: space-between;
    padding: 2.2rem 1.3rem 0.55rem;
    font: 800 0.66rem var(--font-display);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(115deg, #4f46e5, #7c3aed 55%, #db2777);
}
.pass-body { position: relative; min-height: 118px; padding: 1.15rem 1.3rem 0.3rem; }
.pass-mark {
    position: absolute;
    right: -16px;
    top: -8px;
    font: 800 7.4rem / 1 var(--font-display);
    letter-spacing: -0.07em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(79, 70, 229, 0.28);
    pointer-events: none;
}
.pass-name { position: relative; display: block; max-width: 8ch; font: 800 1.9rem / 1 var(--font-display); letter-spacing: -0.035em; }
.pass-role {
    position: relative;
    display: block;
    margin-top: 0.5rem;
    font: 600 0.62rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #575b86;
}
.pass-mail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: calc(100% - 2.6rem);
    margin: 0.85rem 1.3rem 0.8rem;
    padding: 0.7rem 0.8rem;
    font: 600 0.84rem var(--font-mono);
    color: #121433;
    background: transparent;
    border: 1.5px dashed #121433;
    border-radius: 10px;
    cursor: copy;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pass-mail:hover, .pass-mail:focus-visible { background: #121433; color: #fff; border-style: solid; outline: none; }
.pass-mail.copied { background: #047857; border-color: #047857; color: #fff; }
.pass-mail .hm-ic { color: inherit; }
.pass-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 1.3rem;
    border-top: 1.5px solid #121433;
}
.pass-meta div { padding: 0.55rem 0.4rem 0 0; }
.pass-meta dt { font: 700 0.5rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: #4f5380; }
.pass-meta dd { display: flex; align-items: center; gap: 0.3rem; margin: 0.15rem 0 0; font: 600 0.72rem var(--font-sans); color: #121433; }
.pass-code { display: flex; align-items: center; gap: 0.7rem; margin: 0.85rem 1.3rem 0; }
.pass-code i {
    flex: 1;
    height: 24px;
    background: repeating-linear-gradient(90deg, #121433 0 2px, transparent 2px 4px, #121433 4px 5px, transparent 5px 8px, #121433 8px 11px, transparent 11px 12px, #121433 12px 13px, transparent 13px 17px);
}
.pass-code span { font: 600 0.56rem var(--font-mono); letter-spacing: 0.14em; color: #4f5380; }

.channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border-strong);
}
.channels li { border-bottom: 1px solid var(--border); }
.channels li:nth-child(odd) { border-right: 1px solid var(--border); }
.channels a {
    position: relative;
    display: grid;
    grid-template-columns: 1.7rem 1fr auto;
    align-items: baseline;
    gap: 0.3rem;
    min-height: 44px;
    padding: 0.8rem 0.75rem;
    font: 600 0.95rem var(--font-display);
    color: var(--text-secondary);
    transition: color 0.3s ease, padding 0.45s var(--ease);
}
.channels a span { font: 0.6rem var(--font-mono); color: var(--text-muted); }
.channels a i { font-style: normal; color: var(--accent-lighter); transition: transform 0.4s var(--ease); }
.channels a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.channels a:hover, .channels a:focus-visible { color: var(--text-primary); padding-left: 1rem; outline: none; }
.channels a:hover i, .channels a:focus-visible i { transform: translate(3px, -3px); }
.channels a:hover::after, .channels a:focus-visible::after { transform: scaleX(1); }

/* ---------------------------------------------------------
   6) BRIEF — echtes Briefpapier + Wachssiegel
   --------------------------------------------------------- */
.letter {
    color: #1d1a2c;
    background: #F3EEE3;
    border: 0;
    border-radius: 6px;
    padding: 2rem 2.2rem 1.8rem 3.4rem;
    box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.letter.writing { border: 0; box-shadow: 0 46px 90px -36px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.letter::before {
    background:
        linear-gradient(90deg, transparent 2.3rem, rgba(214, 64, 98, 0.38) 2.3rem, rgba(214, 64, 98, 0.38) calc(2.3rem + 1px), transparent calc(2.3rem + 1px)),
        repeating-linear-gradient(to bottom, transparent 0 2.5rem, rgba(70, 92, 168, 0.16) 2.5rem calc(2.5rem + 1px));
}
.letter::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    mix-blend-mode: multiply;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.letter-kicker { color: #6146d6; }
.letter-line { color: #1d1a2c; }
.letter .ml, [data-theme="light"] .letter .ml { color: #4f35c9; border-bottom-color: rgba(79, 53, 201, 0.5); }
.letter .ml::placeholder { color: #625b78; }
.letter .ml:focus { background: rgba(99, 102, 241, 0.09); border-color: #4f35c9; }
.letter-msg label { color: #5c5573; }
.letter-msg textarea {
    color: #1d1a2c;
    border: 0;
    border-radius: 0;
    padding: 0 0.2rem;
    line-height: 2rem;
    background: repeating-linear-gradient(to bottom, #F3EEE3 0 calc(2rem - 1px), rgba(70, 92, 168, 0.28) calc(2rem - 1px) 2rem);
    background-attachment: local;
}
.letter-msg textarea::placeholder { color: #625b78; }
.letter-msg textarea:focus { box-shadow: none; outline: 2px solid rgba(79, 53, 201, 0.35); outline-offset: 6px; }
.letter-sign { color: #6b6380; }
.letter-stamp { color: #6146d6; background: rgba(97, 70, 214, 0.06); border-color: rgba(97, 70, 214, 0.5); }

.seal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    margin: 0;
    padding: 0.2rem 0.4rem 0.2rem 0.2rem;
    font: 600 0.95rem var(--font-sans);
    color: #1d1a2c;
    background: none;
    border: 0;
    cursor: pointer;
}
.seal { position: relative; display: block; width: 74px; height: 74px; filter: drop-shadow(0 7px 8px rgba(91, 30, 122, 0.45)); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal-ring { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.4; stroke-dasharray: 3 3; }
.seal text { font: 800 22px var(--font-display); letter-spacing: -1px; fill: rgba(70, 10, 55, 0.55); stroke: rgba(255, 255, 255, 0.22); stroke-width: 0.6; transition: opacity 0.3s ease; }
.seal-check {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.seal-label { position: relative; padding-bottom: 3px; }
.seal-label::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: #4f35c9;
    transform: scaleX(0.25);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.seal-btn:hover .seal { transform: rotate(-14deg) scale(1.06); }
.seal-btn:hover .seal-label::after { transform: scaleX(1); }
.seal-btn:active .seal { transform: scale(0.88); transition-duration: 0.12s; }
.seal-btn:focus-visible { outline: 2px solid #4f35c9; outline-offset: 6px; border-radius: 12px; }
.seal-btn[disabled] { cursor: progress; }
.seal-btn[data-state="sending"] .seal { animation: sealPress 0.9s ease-in-out infinite; }
.seal-btn[data-state="sent"] .seal text { opacity: 0; }
.seal-btn[data-state="sent"] .seal-check { opacity: 1; transform: none; }
.seal-btn[data-state="sent"] .seal-label { color: #0b6b49; }
.seal-btn[data-state="error"] .seal { animation: sealShake 0.5s ease; }
.seal-btn[data-state="error"] .seal-label { color: #a61b32; }
@keyframes sealPress { 50% { transform: scale(0.9) rotate(-6deg); } }
@keyframes sealShake { 20%, 60% { transform: translateX(-5px) rotate(-6deg); } 40%, 80% { transform: translateX(5px) rotate(6deg); } }

/* ---------------------------------------------------------
   7) RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ro-cell:nth-child(3) { border-left: 0; padding-left: 0.2rem; }
    .ro-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
    .pass-wrap { max-width: 520px; }
}
@media (max-width: 860px) {
    .hero-v2 .hero-cta { width: 100%; }
}
@media (max-width: 768px) {
    .flaps { font-size: clamp(2.2rem, 11vw, 3rem); }
    .ro-cell { padding: 1.2rem 0.9rem 1.1rem; }
    .spec-row { flex-wrap: wrap; gap: 0.2rem 0.8rem; }
    .spec-row::after { display: none; }
    .spec-row dd { width: 100%; text-align: left; }
    .letter { padding: 1.5rem 1.2rem 1.3rem 2.6rem; }
    .letter::before {
        background:
            linear-gradient(90deg, transparent 1.6rem, rgba(214, 64, 98, 0.38) 1.6rem, rgba(214, 64, 98, 0.38) calc(1.6rem + 1px), transparent calc(1.6rem + 1px)),
            repeating-linear-gradient(to bottom, transparent 0 2.5rem, rgba(70, 92, 168, 0.16) 2.5rem calc(2.5rem + 1px));
    }
    .letter .seal-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .cta-plasma { justify-content: space-between; width: 100%; }
    .cta-line { justify-content: center; }
    .ro-cell { padding-left: 0.6rem; padding-right: 0.6rem; }
    .channels a { padding-left: 0.5rem; font-size: 0.88rem; }
    .pass-meta { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------
   8) REDUCED MOTION / PRINT
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .cp-core, .cl-rail i, .el-orbit b, .tr-ai b { animation: none !important; }
    .fl.go .fl-a, .fl.go .fl-b, .fl.go2 .fl-a, .fl.go2 .fl-b { animation: none !important; visibility: hidden; }
    .pass-swing { transform: none !important; }
}
@media print {
    .cp-core, .cl-rail, .el-orbit, .el-turn, .pass-strap, .pass-pin, .seal { display: none !important; }
    .letter { box-shadow: none; }
}

/* Nav-Glas kräftiger — bleibt auch über hellem Briefpapier lesbar */
@media (min-width: 769px) {
    .logo, .nav-menu, .nav-actions { background: rgba(11, 14, 36, 0.84); }
    [data-theme="light"] .logo, [data-theme="light"] .nav-menu, [data-theme="light"] .nav-actions { background: rgba(255, 255, 255, 0.88); }
}

/* Ohne JS (oder vor dem Aufbau): Wert als normaler Text */
.flaps:empty::before { content: attr(data-value); color: var(--text-primary); letter-spacing: 0.04em; }
