/* The development pages (/entwicklung): the look of /programme — dark, light type, round buttons — on its own sheet, so the
   pages load nothing they do not use. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0a;
    --panel: rgba(255, 255, 255, 0.045);
    --line: rgba(255, 255, 255, 0.13);
    --text: #f4f4f4;
    --muted: rgba(255, 255, 255, 0.72);
    --soft: rgba(255, 255, 255, 0.5);
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 72% 18%, rgba(255,255,255,0.055), transparent 27rem),
        linear-gradient(180deg, #0d0d0d 0%, var(--bg) 45%, #050505 100%);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }

.back-link {
    position: fixed; top: 34px; right: 34px; z-index: 20;
    color: rgba(255,255,255,0.52); text-decoration: none;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    transition: color 0.2s ease;
}
.back-link:hover { color: #fff; }

.page { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }

.crumbs { padding-top: 34px; color: var(--soft); font-size: 12px; letter-spacing: 0.04em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: 0.6; }

.skip { position: absolute; left: -999px; top: 12px; z-index: 30; padding: 10px 16px; background: #fff; color: #000; border-radius: 999px; }
.skip:focus { left: 16px; }

.hero {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 56px; align-items: center;
    padding: 76px 0 80px;
}
.hero-copy { min-width: 0; }

.kicker {
    margin-bottom: 24px; color: var(--soft);
    font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    font-weight: 280; letter-spacing: -0.05em; line-height: 0.98;
}
h1 span { display: block; }
/* The search phrase as the h1's first line: what the page is about, in the words people search with. */
.h1-key {
    margin-bottom: 22px; color: rgba(255,255,255,0.78);
    font-size: clamp(0.95rem, 1.3vw, 1.1rem); font-weight: 450; letter-spacing: 0; line-height: 1.4;
}

.lead {
    max-width: 680px; margin-top: 28px; color: var(--muted);
    font-size: clamp(1.03rem, 1.35vw, 1.18rem); font-weight: 300;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18); background: transparent; color: inherit;
    font: inherit; font-size: 0.95rem; text-decoration: none; cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.4); }
.button--primary { background: #f4f4f4; color: #080808; border-color: #f4f4f4; }
.button--primary:hover { background: #fff; border-color: #fff; }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.section { padding: 72px 0; border-top: 1px solid rgba(255,255,255,0.1); }

.section-label {
    color: rgba(255,255,255,0.55);
    font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
}

h2 {
    margin: 14px 0 34px;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 320; letter-spacing: -0.035em; line-height: 1.1;
}

h3 { font-size: 1.08rem; font-weight: 560; letter-spacing: -0.01em; margin-bottom: 8px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.card {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel);
}
/* The light under the pointer (set by the script as --x/--y). */
.card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s ease;
    background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.085), transparent 62%);
}
.card:hover::before { opacity: 1; }
.card-index { display: block; margin-bottom: 14px; color: var(--soft); font-size: 0.78rem; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.card p { color: var(--muted); font-size: 0.95rem; font-weight: 300; }

.card--link { display: flex; flex-direction: column; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.card--link:hover { border-color: rgba(255,255,255,0.32); transform: translateY(-2px); }
.card-kicker { color: var(--soft); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 14px; }
.card-more { margin-top: auto; padding-top: 18px; font-size: 0.9rem; color: #fff; }

.proof {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
    padding: 30px 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel);
}
.proof-text { margin-top: 12px; color: var(--muted); font-size: 1.05rem; font-weight: 300; max-width: 48rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; padding: 24px 24px 24px 0; }
/* The line above each step, drawn from the left as the step comes in. */
.steps li::before {
    content: ""; position: absolute; left: 0; right: 16px; top: 0; height: 1px; background: rgba(255,255,255,0.28);
    transform-origin: left; transform: scaleX(1);
}
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-bottom: 16px; border-radius: 50%;
    background: #f4f4f4; color: #080808; font-size: 0.9rem; font-weight: 600;
}
.steps p { color: var(--muted); font-size: 0.95rem; font-weight: 300; }

.two-columns { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }

.tech { list-style: none; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.tech li {
    padding: 9px 15px; border: 1px solid rgba(255,255,255,0.13); border-radius: 14px;
    background: rgba(255,255,255,0.045); color: rgba(255,255,255,0.88); font-size: 0.9rem;
}

.faq { margin-top: 18px; }
.faq details { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
    transition: color 0.2s ease;
}
.faq summary h3 { display: inline; margin: 0; font-size: 1.02rem; font-weight: 450; letter-spacing: 0; }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 15px; font-weight: 300; font-size: 1.3rem; color: var(--soft);
    transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] p { animation: open 0.4s ease both; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.faq details p { padding: 0 0 20px; color: var(--muted); font-weight: 300; max-width: 46rem; }

.contact-band {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
    padding: 32px 34px; border-radius: 24px; background: #f4f4f4; color: #080808;
}
.contact-band h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.contact-band p { color: rgba(0,0,0,0.62); max-width: 46rem; }
.contact-band .button { background: #080808; color: #fff; border-color: #080808; white-space: nowrap; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.more-title { margin: 0; font-weight: 400; }
.more { list-style: none; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.more a {
    display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
    text-decoration: none; font-size: 0.92rem; color: var(--muted);
}
.more a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

footer {
    margin-top: 40px; padding: 46px 0 56px; border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--soft); font-size: 12px; text-align: center;
}
footer a { margin: 0 14px; color: var(--soft); text-decoration: none; }
footer a:hover { color: #fff; }

/* The flow beside the hero: stations as pills, the middle one lit and breathing, data running along the wires. */
.hero-visual {
    padding: 22px; border: 1px solid var(--line); border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.flow { display: block; width: 100%; height: auto; max-height: 440px; overflow: visible; }
.flow .node rect { fill: rgba(255,255,255,0.04); stroke: rgba(255,255,255,0.28); stroke-width: 1.2; }
.flow .node text { fill: rgba(255,255,255,0.86); font: 500 22px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -0.01em; }
.flow .node--lit rect { fill: #f4f4f4; stroke: #f4f4f4; }
.flow .node--lit text { fill: #080808; font-weight: 600; }
.flow .node--lit .pulse { fill: none; stroke: rgba(255,255,255,0.55); transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.flow .wire { stroke: rgba(255,255,255,0.3); stroke-width: 1.4; stroke-dasharray: 3 7; animation: wire 1.2s linear infinite; }
.flow .packet { fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,0.7)); }
@keyframes pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.18, 1.5); opacity: 0; } }
@keyframes wire { to { stroke-dashoffset: -10; } }

/* Coming in: the hero on load, everything else as it reaches the screen (the script marks .is-visible; without script nothing is
   hidden). */
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } }
@keyframes fade { from { opacity: 0; } }
.kicker, .h1-key { animation: fade 0.8s ease both; }
.h1-line { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.12s + var(--i, 0) * 0.1s); }
.lead { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
.hero-actions { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both; }
.hero-visual { animation: fade 1.2s ease 0.3s both; }
.flow .node { animation: fade 0.7s ease both; animation-delay: calc(0.5s + var(--i, 0) * 0.15s); }

.js .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .steps li.reveal::before { transform: scaleX(0); transition: transform 1s cubic-bezier(0.2, 0.65, 0.2, 1); transition-delay: calc(0.15s + var(--i, 0) * 120ms); }
.js .steps li.reveal.is-visible::before { transform: scaleX(1); }

/* On a phone: the request at hand while reading, out of the way of the contact band. */
.sticky-cta {
    position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25;
    display: none; gap: 8px; padding: 6px; border-radius: 999px;
    background: rgba(20,20,20,0.82); border: 1px solid rgba(255,255,255,0.12);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    transform: translate(-50%, 140%); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sticky-cta.is-shown { transform: translate(-50%, 0); }
.sticky-cta .button { min-height: 44px; }
.sticky-call { width: 44px; padding: 0; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 460px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-columns, .contact-band, .proof { grid-template-columns: 1fr; }
    .contact-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .page { width: calc(100% - 32px); }
    .sticky-cta { display: flex; }
    .hero-visual { padding: 14px; }
    .flow { max-height: 300px; }
    .back-link { display: none; }
    .hero { padding: 56px 0 52px; }
    .cards, .steps { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .card { padding: 22px; }
    footer a { display: inline-block; margin: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .steps li.reveal::before { transform: none; }
    .flow .packet, .flow .pulse { display: none; }
}
