/* ==========================================================================
   THENN·OS — Startseite Polish (loads AFTER styles.redesign.css)
   Implements STARTSEITE-POLISH-PLAN.md: Manrope display, calm hero (no grid /
   aurora drift / typewriter / Ken-Burns / tilt), one focus-pull reveal, trust
   chips folded into the hero, the consolidated "Ablauf" narrative and the
   founder block. Pure overrides + new components — the base sheet stays shared.
   ========================================================================== */

:root {
    --font-display: 'Manrope', var(--font-sans);
    /* warm, quiet kicker tone (replaces the lime dev-tool look) */
    --color-kicker: #C9B18C;
}

/* --------------------------------------------------------------------------
   HERO — calm backdrop: no grid (element removed), no aurora drift,
   a single static warm glow behind the device.
   -------------------------------------------------------------------------- */
/* The hero is display:flex (base sheet) and now has TWO .container children
   (hero__inner + trust chips) — stack them instead of laying them side by side */
.hero { flex-direction: column; justify-content: center; }

.bg-atmosphere::before { animation: none; }
.hero .bg-atmosphere::before {
    background: radial-gradient(ellipse at 74% 36%, var(--color-primary-glow) 0%, transparent 52%);
    opacity: 0.5;
}
.hero__glow { opacity: 0.32; }

/* Kicker: no "//" code-comment prefix, sans small-caps in a warm muted tone */
.kicker {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-kicker);
}
.kicker::before { content: none; }

/* Risk-reversal mini line under the hero CTA — sans, not mono */
.cta-meta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0;
    color: var(--color-text-muted);
}

/* Device: straight (0°), still. One choreographed focus-pull on load, then calm. */
/* width:100% is load-bearing: the base sheet centers .stage with margin:0 auto
   at ≤1024px, and auto margins beat grid stretch — with only absolutely
   positioned children the stage would shrink to ~0 without it */
.stage { perspective: none; animation: none; width: 100%; }
.device {
    width: 100%;
    margin-right: 0;
    transform: none;
    transition: none;
    animation: deviceFocus 1.15s var(--ease-out-expo) 0.35s both;
}
@keyframes deviceFocus {
    from { opacity: 0; transform: translateY(26px); filter: blur(10px); }
    62%  { filter: blur(0); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* Glow blooms once with the device, then holds still */
.hero__glow { animation: glowBloom 1.5s var(--ease-out-expo) 0.35s both; }
@keyframes glowBloom {
    from { opacity: 0; }
    to   { opacity: 0.32; }
}
/* Screenshots stay sharp and still — no Ken-Burns */
.device__layer[data-active="true"] img,
.device__layer[data-active="true"] video { animation: none; }

/* Entrance stagger: slower = calmer (0.8s → 1.05s), same choreography */
.hero__col-text > * { animation-duration: 1.05s; }

/* Trust chips folded into the hero (replaces the trust-strip section) */
.hero__trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2.4rem;
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 5;
    animation: heroIn 1.05s var(--ease-out-expo) 0.55s both;
}
@media (max-width: 1024px) {
    .hero__trust { justify-content: center; }
}

/* --------------------------------------------------------------------------
   ABLAUF — one narrative (Umfrage → Gruppen → Kalender → Buchung → Abrechnung).
   Alternating screenshot rows; per step: title + ONE sentence + fact chips.
   -------------------------------------------------------------------------- */
.ablauf { background: var(--color-bg); border-top: 1px solid var(--color-border); }
.ablauf .section-head { max-width: 800px; margin-left: 0; margin-right: auto; text-align: left; }
.ablauf__rows {
    display: flex;
    flex-direction: column;
    gap: clamp(3.5rem, 7vw, 6rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
    counter-reset: abstep;
}
.ab-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.ab-row__step {
    counter-increment: abstep;
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-kicker);
    margin-bottom: 1rem;
}
.ab-row__step::before { content: "Schritt " counter(abstep); }
.ab-row__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}
.ab-row__lead {
    color: var(--color-text-secondary);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 46ch;
}
.ab-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.ab-chip {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 0.38rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

/* media column — browser frame with a soft static glow (same craft as before) */
.ab-row__media { position: relative; }
.ab-row__media::before {
    content: "";
    position: absolute;
    inset: -12% -8% -6%;
    z-index: 0;
    background: radial-gradient(58% 52% at 50% 42%, var(--ab-glow, var(--color-primary-glow)), transparent 72%);
    filter: blur(22px);
    opacity: 0.45;
    pointer-events: none;
}
.ab-frame {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-hover);
    background: var(--color-bg-elevated);
    box-shadow: 0 42px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.ab-frame__bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--color-border);
}
.ab-frame img { display: block; width: 100%; height: auto; }

@media (min-width: 861px) {
    .ab-row:nth-child(even) .ab-row__media { order: -1; }
}
@media (max-width: 860px) {
    .ab-row { grid-template-columns: 1fr; gap: 1.75rem; }
    .ab-row__media::before { left: 0; right: 0; }
    .ab-row__lead { max-width: none; }
}

.ablauf__foot {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-text-secondary);
    max-width: 64ch;
    line-height: 1.6;
}
.ablauf__foot strong { color: var(--color-text); font-weight: 600; }
.ablauf__foot a { color: var(--color-primary); font-weight: 600; }
.ablauf__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

/* --------------------------------------------------------------------------
   LIGHTBOX — every screenshot opens full-size on click (script.polish.js)
   -------------------------------------------------------------------------- */
.ab-frame, .feat-tile { cursor: zoom-in; }
/* Clickable frames share the feature tiles' calm hover language: a small lift */
.ab-frame {
    transition: transform 0.45s var(--ease-out-expo),
                border-color 0.3s ease,
                box-shadow 0.45s ease;
}
.ab-frame:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: 0 52px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.ab-frame:focus-visible, .feat-tile:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 3px;
}
.lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(5, 13, 12, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__fig { max-width: min(1400px, 94vw); margin: 0; }
.lb__img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-hover);
    box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9);
    transform: scale(0.96);
    transition: transform 0.35s var(--ease-out-expo);
}
.lb.is-open .lb__img { transform: scale(1); }
.lb__cap {
    margin-top: 0.9rem;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
}
.lb__close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-hover);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease;
}
.lb__close:hover { background: rgba(255, 255, 255, 0.14); }

/* --------------------------------------------------------------------------
   FEATURES — trimmed head + "all modules" exit link
   -------------------------------------------------------------------------- */
.features__more {
    margin-top: 1.75rem;
    text-align: right;
}
.features__more a {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: gap 0.25s var(--ease-out-expo);
}
.features__more a:hover { gap: 0.85rem; }

/* --------------------------------------------------------------------------
   FIT CARDS — same hover lift as the feature tiles (page-wide motion language)
   -------------------------------------------------------------------------- */
.fit__card {
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease;
}
.fit__card:hover { transform: translateY(-3px); border-color: var(--color-border-hover); }
.fit__card--yes:hover { border-color: rgba(203, 224, 117, 0.45); }

/* --------------------------------------------------------------------------
   FOUNDER — real face + direct contact (replaces pseudo social proof)
   -------------------------------------------------------------------------- */
.founder {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.founder__card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.75rem, 4vw, 3.25rem);
    align-items: center;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.25rem);
    border-radius: var(--radius-xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}
.founder__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 12% 0%, rgba(224, 149, 54, 0.10), transparent 55%);
    pointer-events: none;
}
.founder__photo {
    position: relative;
    width: clamp(150px, 20vw, 220px);
    height: clamp(150px, 20vw, 220px);
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-hover);
}
.founder__text { position: relative; }
.founder__lead {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
}
.founder__text > p:not(.founder__lead) {
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.founder__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    margin-top: 1.4rem;
}
.founder__contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}
.founder__contact a svg { width: 18px; height: 18px; flex-shrink: 0; }
.founder__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.founder__sig {
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--color-border);
}
.founder__sig strong { display: block; font-size: 1.02rem; }
.founder__sig span { font-size: 0.88rem; color: var(--color-text-muted); }
@media (max-width: 640px) {
    .founder__card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .founder__contact { justify-content: center; }
    .founder__sig { width: 100%; }
}

/* --------------------------------------------------------------------------
   FOOTER — PWA one-liner (replaces the install section)
   -------------------------------------------------------------------------- */
.footer__app {
    margin-top: 0.9rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    max-width: 280px;
}
.footer__app a { color: var(--color-text-secondary); font-weight: 600; }
.footer__app a:hover { color: var(--color-text); }

/* --------------------------------------------------------------------------
   Progressive enhancement + reduced motion for the new sections
   -------------------------------------------------------------------------- */
@supports (content-visibility: auto) {
    .ablauf { content-visibility: auto; contain-intrinsic-size: auto 2400px; }
    .founder { content-visibility: auto; contain-intrinsic-size: auto 500px; }
}

@media (prefers-reduced-motion: reduce) {
    .device, .hero__glow, .hero__trust {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .hero__glow { opacity: 0.32 !important; }
}
