/* AI Vaerk — Homepage (extends shared.css) */

/* Section separator lines */
.grid > *:not(:last-child):not(.grid__entrance):not(.nav) {
    border-bottom: 1px solid transparent;
    position: relative;
}

.grid > *:not(:last-child):not(.grid__entrance):not(.nav)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--grid-line);
    width: 0;
    z-index: 1;
    transition: width 0.7s var(--ease-draw);
    transition-delay: var(--line-delay, 0s);
}

.grid--lines > *:not(:last-child):not(.grid__entrance):not(.nav)::after {
    width: 100%;
}

/* Internal element borders: invisible until grid lines draw */
.grid:not(.grid--lines) :is(
    .diff__cell, .proof__stat, .proof__quotes,
    .team__card, .audience__no, .contact__text,
    .faq__item
) {
    border-color: transparent !important;
}

.diff__cell, .proof__stat, .proof__quotes,
.team__card, .audience__no, .contact__text,
.faq__item {
    transition: border-color 0.5s ease calc(var(--line-delay, 0s) + 0.25s);
}

/* ── Hero ── */

.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Layer 0: Particle canvas — full bleed */
.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

/* Layer 1: Ambient dot grid */
.hero__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(230,232,235,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

/* Layer 2: Blueprint SVG */
.hero__blueprint {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(230,232,235,0.04);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

/* Layer 3: Left fade for text readability */
.hero__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg) 10%, rgba(13,17,23,0.85) 30%, rgba(13,17,23,0.4) 52%, transparent 72%);
    z-index: 2;
    pointer-events: none;
}

/* Layer 4: Technical notation */
.hero__notation {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero__coord {
    position: absolute;
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.25;
}

.hero__coord--tl { top: 1.25rem; left: var(--pad); }
.hero__coord--tr { top: 1.25rem; right: var(--pad); }

/* Layer 5: Content — on top of everything */
.hero__content {
    position: relative;
    z-index: 4;
    max-width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 var(--pad);
}

.hero__pill {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero__content h1 {
    margin-bottom: 0.5rem;
}

/* Scroll cue */
.hero__scroll {
    position: absolute;
    bottom: 6.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.hero__scroll span {
    display: block;
    width: 2px;
    height: 2.5rem;
    border-radius: 1px;
    background: linear-gradient(to bottom, transparent, #1E7A8A 30%, #3A9E8B 60%, #7B8EC0);
    opacity: var(--scroll-cue-opacity, 0.5);
    transform: scaleY(var(--scroll-cue-scale, 1)) translateY(var(--scroll-cue-y, 0px));
    transform-origin: top;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.hero__tagline {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__tagline em {
    font-style: italic;
}

/* Hero morph words — text emphasis synced to particle shapes */
.hero__morph {
    background: linear-gradient(90deg, var(--accent) 0%, #3A9E8B 40%, #7B8EC0 60%, var(--accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: rgba(230, 232, 235, 1);
    animation: shimmer 4s ease-in-out infinite;
}

.hero__sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 48ch;
    margin: 0 0 2.5rem;
    line-height: 1.7;
}

#aktuelles { scroll-margin-top: 4rem; }

/* ── Journey (Service Timeline) ── */

.journey {
    padding: 3rem var(--pad);
}

.journey__track {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
    position: relative;
}

.journey__step {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.journey__num {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    opacity: 0.4;
    display: block;
    margin-bottom: 0.75rem;
}

.journey__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--grid-line);
    border-radius: 50%;
    color: var(--accent);
    background: var(--bg);
    position: relative;
    z-index: 1;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.journey__step:hover .journey__icon {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.15);
}

.journey__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.2;
    padding-top: 2.75rem;
}

.journey__step h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.journey__subtitle {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    padding: 0.2rem 0.6rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.journey__step p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 100%;
}

/* ── Journey Explore Button ── */

.journey__explore {
    text-align: center;
    padding: 1.5rem var(--pad) 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.journey__explore-btn {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: none;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    padding: 0.625rem 1.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.journey__explore-btn:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
    color: var(--text);
}

.journey__explore-btn svg {
    transition: transform 0.3s var(--ease);
}

.journey__explore-btn:hover svg {
    transform: translateX(3px);
}

/* ── Flow Modal ── */

.flow-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.flow-modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.flow-modal--closing {
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.flow-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.flow-modal__container {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3.5rem;
    text-align: center;
}

.flow-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.flow-modal__close:hover {
    color: var(--text);
    transform: scale(1.1);
}

.flow-modal__pill {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.flow-modal--open .flow-modal__pill {
    opacity: 1;
    transform: translateY(0);
}

.flow-modal__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.flow-modal--open .flow-modal__title {
    opacity: 1;
    transform: translateY(0);
}

/* Track */
.flow-modal__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    padding-top: 1rem;
}

/* Connecting line */
.flow-modal__line {
    position: absolute;
    top: calc(1rem + 23px);
    left: calc((100% - 6rem) / 8);
    right: calc((100% - 6rem) / 8);
    height: 2px;
    z-index: 0;
    overflow: hidden;
}

.flow-modal__line-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1E7A8A, #3A9E8B, #7B8EC0);
    transition: width 1.8s var(--ease) 0.3s;
    position: relative;
}

.flow-modal--open .flow-modal__line-fill {
    width: 100%;
}

/* Glowing head */
.flow-modal__line-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background: radial-gradient(ellipse at right, rgba(58, 158, 139, 0.8), transparent);
    filter: blur(2px);
}

/* Step delays */
.flow-modal__step[data-step="0"] { --d: 0.5s; --d-card: 0.7s; }
.flow-modal__step[data-step="1"] { --d: 0.9s; --d-card: 1.1s; }
.flow-modal__step[data-step="2"] { --d: 1.3s; --d-card: 1.5s; }
.flow-modal__step[data-step="3"] { --d: 1.7s; --d-card: 1.9s; }

/* Steps */
.flow-modal__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Node circles */
.flow-modal__node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--grid-line);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    margin-bottom: 1.5rem;
    position: relative;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.5s ease var(--d, 0.5s), transform 0.5s var(--ease) var(--d, 0.5s),
                border-color 0.4s ease, box-shadow 0.4s ease;
}

.flow-modal--open .flow-modal__node {
    opacity: 1;
    transform: scale(1);
}

.flow-modal__node span {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

/* Node ripple */
.flow-modal__node::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    opacity: 0;
    transform: scale(1);
}

.flow-modal--open .flow-modal__node::before {
    animation: nodeRipple 0.8s ease-out var(--d, 0.5s);
}

@keyframes nodeRipple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Animated state — aurora border on nodes */
.flow-modal--animated .flow-modal__node {
    border-color: transparent;
    background-image: linear-gradient(var(--bg), var(--bg)), linear-gradient(135deg, #1E7A8A, #3A9E8B, #7B8EC0);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.15);
}

.flow-modal--animated .flow-modal__node span {
    color: var(--accent);
}

.flow-modal__step:hover .flow-modal__node {
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25);
}

/* Card content */
.flow-modal__card {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
    transition: opacity 0.5s ease var(--d-card, 0.7s), transform 0.5s ease var(--d-card, 0.7s),
                filter 0.5s ease var(--d-card, 0.7s);
}

.flow-modal--open .flow-modal__card {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.flow-modal__card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.flow-modal__label {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}

.flow-modal__card p {
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 100%;
}

/* CTA */
.flow-modal__cta {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 2.1s, transform 0.5s ease 2.1s;
}

.flow-modal--open .flow-modal__cta {
    opacity: 1;
    transform: translateY(0);
}

/* ── Differentiators (2x2 grid) ── */

.diff {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.diff__cell {
    padding: 2.5rem var(--pad);
}

.diff__cell:nth-child(1) { border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); }
.diff__cell:nth-child(2) { border-bottom: 1px solid var(--grid-line); }
.diff__cell:nth-child(3) { border-right: 1px solid var(--grid-line); }

.diff__cell {
    transition: background 0.3s ease, border-color 0.5s ease calc(var(--line-delay, 0s) + 0.25s);
}

.diff__cell:hover {
    background: rgba(var(--accent-rgb), 0.03);
}

.diff__cell h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.diff__cell h3 em,
.diff__cell p em {
    font-style: normal;
    color: var(--accent);
}

.diff__cell p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── Social Proof ── */

.proof__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.proof__stat {
    padding: 2rem var(--pad);
    text-align: center;
}

.proof__stat:not(:last-child) {
    border-right: 1px solid var(--grid-line);
}

.proof__number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    display: block;
    -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    -webkit-mask-size: 220% 100%;
    -webkit-mask-position: 100% 0;
    mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    mask-size: 220% 100%;
    mask-position: 100% 0;
    transition: -webkit-mask-position 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                mask-position 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible .proof__number {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
}

.proof__stat:nth-child(1) .proof__number { transition-delay: 0.4s; }
.proof__stat:nth-child(2) .proof__number { transition-delay: 0.6s; }
.proof__stat:nth-child(3) .proof__number { transition-delay: 0.8s; }

/* Aurora glow line sweep */
.proof__stat {
    position: relative;
}

.proof__stat::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #1E7A8A 25%, #3A9E8B 50%, #7B8EC0 75%, transparent);
    box-shadow: 0 0 8px 2px rgba(30,122,138,0.5), 0 0 20px 4px rgba(58,158,139,0.25);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.reveal.visible .proof__stat::before {
    animation: statGlow 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal.visible .proof__stat:nth-child(1)::before { animation-delay: 0.4s; }
.reveal.visible .proof__stat:nth-child(2)::before { animation-delay: 0.6s; }
.reveal.visible .proof__stat:nth-child(3)::before { animation-delay: 0.8s; }

@keyframes statGlow {
    0%   { left: -2px; opacity: 0; }
    8%   { opacity: 1; }
    75%  { opacity: 0.7; }
    100% { left: calc(100% + 2px); opacity: 0; }
}

.proof__label {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

.proof__quotes {
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 2rem var(--pad);
    border-top: 1px solid var(--grid-line);
}

.proof__quote {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 1s ease, filter 1s ease;
    pointer-events: none;
}

.proof__quote--active {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
}

.proof__dots {
    grid-row: 2;
    grid-column: 1;
}

.proof__quote p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    max-width: 52ch;
}

.proof__quote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.proof__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.proof__dot {
    width: 1.5rem;
    height: 2px;
    border: none;
    padding: 0;
    background: var(--grid-line);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}

.proof__dot--active {
    background: var(--accent);
    width: 2.5rem;
}

/* ── Team ── */

.team {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.team__card {
    padding: 3rem var(--pad);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team__card:not(:last-child) {
    border-right: 1px solid var(--grid-line);
}

/* Portrait + Aurora Ring */
.team__portrait {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
    will-change: transform;
}

.team__ring {
    position: absolute;
    inset: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
}

.team__ring circle {
    stroke-dasharray: 603;
    stroke-dashoffset: 603;
    transition: stroke-dashoffset 1.2s var(--ease-draw);
}

.reveal--stagger.visible .team__ring circle {
    stroke-dashoffset: 0;
}

.team__photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.team__card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team__role {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.team__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.team__tags span {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border: 1px solid var(--grid-line);
    padding: 0.2rem 0.6rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.team__card:hover .team__tags span {
    border-color: rgba(var(--accent-rgb), 0.3);
    color: var(--text);
}

.team__bio {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 36ch;
}

/* ── Audience ── */

.audience {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.audience__yes,
.audience__no {
    padding: 2.5rem var(--pad);
}

.audience__yes {
    border-right: 1px solid var(--grid-line);
    background: rgba(var(--accent-rgb), 0.03);
}

.audience h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.audience ul {
    list-style: none;
}

.audience li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: start;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.audience li em {
    font-style: normal;
    color: var(--text);
}

.audience__yes li::before {
    content: '\2713';
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.7;
}

.audience__no li::before {
    content: '\2715';
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.8;
    opacity: 0.6;
}

.audience__no {
    opacity: 0.65;
}

/* Stagger individual list items */
.audience.reveal--stagger li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.audience.reveal--stagger.visible li {
    opacity: 1;
    transform: translateY(0);
}

.audience.visible .audience__yes li:nth-child(1) { transition-delay: 0.15s; }
.audience.visible .audience__yes li:nth-child(2) { transition-delay: 0.3s; }
.audience.visible .audience__yes li:nth-child(3) { transition-delay: 0.45s; }
.audience.visible .audience__yes li:nth-child(4) { transition-delay: 0.6s; }

.audience.visible .audience__no li:nth-child(1) { transition-delay: 0.25s; }
.audience.visible .audience__no li:nth-child(2) { transition-delay: 0.4s; }
.audience.visible .audience__no li:nth-child(3) { transition-delay: 0.55s; }

/* ── Quiz ── */

.quiz {
    padding: 3rem var(--pad);
}

.quiz__intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quiz__intro h2 {
    margin-bottom: 0.5rem;
}

.quiz__intro p {
    max-width: 100%;
}

.quiz__body {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    display: grid;
}

.quiz__step {
    grid-row: 1;
    grid-column: 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.quiz__step--active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: quizIn 0.4s var(--ease);
}

@keyframes quizIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.quiz__num {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.quiz__question {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.quiz__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz__opt {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: 1px solid var(--grid-line);
    padding: 1rem 1.25rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.quiz__opt:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

.quiz__opt:active {
    background: rgba(var(--accent-rgb), 0.1);
}

/* Result */
.quiz__result {
    grid-row: 1;
    grid-column: 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    text-align: center;
}

.quiz__result.quiz__result--active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: quizIn 0.5s var(--ease);
}

.quiz__result-label {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.quiz__result-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.quiz__result-text {
    margin-bottom: 2rem;
    max-width: 100%;
}

.quiz__result-cta {
    margin-bottom: 1rem;
}

.quiz__restart {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.quiz__restart:hover {
    color: var(--text);
}

/* ── Aktuelles (Event Banner) ── */

.aktuelles {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    position: relative;
}


.aktuelles__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 1.5rem 1.25rem;
    border-right: 1px solid var(--grid-line);
    flex-shrink: 0;
    background: rgba(var(--accent-rgb), 0.05);
}

.aktuelles__day {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #1E7A8A, #3A9E8B, #7B8EC0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aktuelles__month {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-top: 0.25rem;
}

.aktuelles__body {
    flex: 1;
    padding: 2rem var(--pad);
}

.aktuelles__pill {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.aktuelles__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.aktuelles__meta {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.aktuelles__badge {
    display: none;
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    padding: 0.2rem 0.6rem;
    margin-top: 0.75rem;
}

.aktuelles__badge.active {
    display: inline-block;
}

.aktuelles__cta {
    flex-shrink: 0;
    margin-right: var(--pad);
}

/* ── FAQ Link ── */

.faq-link {
    padding: 1.5rem var(--pad);
    text-align: center;
}

.faq-link a {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.faq-link a:hover {
    color: var(--text);
}

/* ── Hero fade-in sequence ── */

.hero__pill,
.hero__content h1,
.hero__tagline,
.hero__sub,
.hero__content .btn {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .hero__pill,
    .hero__content h1,
    .hero__tagline,
    .hero__sub,
    .hero__content .btn {
        animation-name: fadeUp;
        animation-duration: 0.6s;
        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
        animation-fill-mode: both;
    }

    .hero__pill          { animation-delay: 0.1s; }
    .hero__content h1    { animation-delay: 0.2s; }
    .hero__tagline       { animation-delay: 0.35s; }
    .hero__sub           { animation-delay: 0.5s; }
    .hero__content .btn  { animation-delay: 0.65s; }
}

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
    .hero__pill, .hero__content h1, .hero__tagline, .hero__sub, .hero__content .btn {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero__morph {
        animation: none;
        -webkit-text-fill-color: rgba(230, 232, 235, 1);
    }
    .proof__number {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .proof__stat::before {
        display: none;
    }
}

/* ── Tablet ── */

@media (max-width: 1023px) and (min-width: 901px) {
    .journey__track {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .journey__arrow {
        display: none;
    }
}

/* ── Mobile ── */

@media (max-width: 639px) {
    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero__canvas {
        position: relative;
        height: 45vh;
        flex-shrink: 0;
    }

    .hero__content {
        position: relative;
        max-width: 100%;
        padding: 2rem var(--pad) 4rem;
        height: auto;
        flex: 1;
    }

    .hero__fade {
        display: none;
    }

    .hero__dots,
    .hero__blueprint {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .hero__notation {
        display: none;
    }

    .hero__scroll {
        bottom: 1.5rem;
    }

    /* Journey: vertical */
    .journey__track {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .journey__arrow {
        display: none;
    }

    .journey__num {
        display: none;
    }

    .journey__step {
        text-align: left;
        padding: 1.25rem 0;
        border-bottom: 1px solid var(--grid-line);
    }

    .journey__step:last-child {
        border-bottom: none;
    }

    .journey__icon {
        width: 2.25rem;
        height: 2.25rem;
        margin: 0 0 0.75rem;
    }

    /* Grids to single column */
    .diff {
        grid-template-columns: 1fr;
    }

    .diff__cell:nth-child(1),
    .diff__cell:nth-child(3) {
        border-right: none;
    }

    .diff__cell:nth-child(1),
    .diff__cell:nth-child(2),
    .diff__cell:nth-child(3) {
        border-bottom: 1px solid var(--grid-line);
    }

    .proof__stats {
        grid-template-columns: 1fr;
    }

    .proof__stat:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }

    .proof__stat {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
    }

    .proof__label {
        margin-top: 0;
    }

    .team {
        grid-template-columns: 1fr;
    }

    .team__portrait {
        width: 140px;
        height: 140px;
    }

    .team__photo {
        width: 140px;
        height: 140px;
    }

    .team__card:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }

    .audience {
        grid-template-columns: 1fr;
    }

    .audience__yes {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }

    .aktuelles {
        flex-wrap: wrap;
    }

    .aktuelles__date {
        min-width: 72px;
        padding: 1.25rem 1rem;
    }

    .aktuelles__body {
        flex: 1;
        min-width: 0;
        padding: 1.5rem var(--pad);
    }

    .aktuelles__cta {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 1.25rem var(--pad);
        border: none;
        border-top: 1px solid var(--grid-line);
    }

    /* Flow modal mobile */
    .flow-modal__container {
        padding: 2rem 1.5rem;
        width: 100%;
    }

    .flow-modal__title {
        margin-bottom: 2rem;
    }

    .flow-modal__track {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 0;
    }

    .flow-modal__step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .flow-modal__node {
        flex-shrink: 0;
        margin-bottom: 0;
        width: 40px;
        height: 40px;
    }

    .flow-modal__line {
        left: 19px;
        right: auto;
        top: 20px;
        bottom: 20px;
        width: 2px;
        height: auto;
    }

    .flow-modal__line-fill {
        width: 100%;
        height: 0;
        background: linear-gradient(180deg, #1E7A8A, #3A9E8B, #7B8EC0);
        transition: height 1.8s var(--ease) 0.3s;
    }

    .flow-modal--open .flow-modal__line-fill {
        width: 100%;
        height: 100%;
    }

    .flow-modal__line-fill::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: 12px;
        background: radial-gradient(ellipse at bottom, rgba(58,158,139,0.8), transparent);
    }

    .flow-modal__cta {
        margin-top: 2rem;
    }
}
