/* Shared ground of the static pages: tokens, top bar, buttons, motion, consent bar, contact form. */
:root {
  --paper: #fff; --tile: #f3f4f8; --tile-2: #e9ebf2;
  --ink: #0e1020; --ink-2: #3d4152; --steel: #5f6578;
  --brand: #1f3bd1; --brand-deep: #182fa8; --brand-text: #1a33b8; --brand-tint: #eaeeff;
  --on-brand: #fff; --on-brand-2: rgba(255,255,255,.82);
  --rule: rgba(14,16,32,.1);
  --sans: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --spring: cubic-bezier(.3,1.4,.4,1);
  --gutter: clamp(20px, 5vw, 96px);
  --r: 22px;
  --t-h2: clamp(2rem, 1rem + 2.9vw, 3.5rem);
  --t-lead: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --pad: clamp(80px, 10vw, 152px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-padding-bottom: var(--banner-h, 0px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 500 1.0625rem/1.5 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; }
::selection { background: var(--ink); color: #fff; }
.hero ::selection, .closing ::selection { background: #fff; color: var(--brand); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); color: #fff; transition: color .4s, background .4s; }
body.light-nav .nav { color: var(--ink); background: rgba(255,255,255,.75); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
@media (prefers-reduced-transparency: reduce) { body.light-nav .nav { background: #fff; backdrop-filter: none; } }
/* scrolled a little: the bar gets a ground, so it stays readable over the headline */
body.ist-gescrollt:not(.light-nav) .nav { background: rgba(31,59,209,.82); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
@media (prefers-reduced-transparency: reduce) { body.ist-gescrollt:not(.light-nav) .nav { background: var(--brand); backdrop-filter: none; } }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.sun { width: 52px; height: 26px; display: block; }
.wordmark { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.wordmark span { opacity: .6; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 550; font-size: 1rem; }
.nav-links a { white-space: nowrap; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn-nav { background: #fff; color: var(--brand); }
body.light-nav .btn-nav { background: var(--brand); color: #fff; }
/* phones and narrow tablets: the trial button stays in the bar, the links move into a menu */
.nav-mobil { display: none; }
.nav-menu { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-mobil { display: flex; align-items: center; gap: 6px; }
  .nav .btn-klein { padding: 9px 13px; font-size: .875rem; }
  .wordmark { font-size: 1.25rem; } .sun { width: 40px; height: 20px; } .brand { gap: 9px; }
  .nav-burger { all: unset; cursor: pointer; display: grid; gap: 5px; padding: 12px 10px; margin-right: -10px; }
  .nav-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--spring), opacity .25s; transform-origin: center; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-burger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 6px; }
  .nav-menu { position: fixed; left: 0; right: 0; top: 62px; z-index: 49; display: grid; padding: 8px var(--gutter) 14px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(14,16,32,.4); transform-origin: top; animation: menu-in .35s var(--spring) both; }
  .nav-menu[hidden] { display: none; }
  .nav-menu a { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
  .nav-menu a:first-child { border-top: 0; }
  body.menu-open .nav { background: #fff; color: var(--ink); }
  body.menu-open .btn-nav { background: var(--brand); color: #fff; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
}
@media (max-width: 380px) { .wordmark span { display: none; } .nav { padding-left: 14px; padding-right: 14px; } .nav .btn-klein { padding: 9px 10px; font-size: .8125rem; } .sun { width: 34px; height: 17px; } .wordmark { font-size: 1.125rem; } }

.btn { border: 0; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 1.0625rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; transition: transform .3s var(--spring), background .25s, color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.nav .btn { padding: 11px 18px; font-size: 1rem; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #f3f4f8; }
.btn-outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -14px rgba(31,59,209,.8); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--tile); color: var(--ink); }
.btn-ghost:hover { background: var(--tile-2); }
.btn-white:focus-visible, .btn-outline:focus-visible, .nav .btn-nav:focus-visible { outline-color: #fff; }
.btn-brand:focus-visible, .btn-ghost:focus-visible, body.light-nav .nav .btn-nav:focus-visible, body.menu-open .nav .btn-nav:focus-visible { outline-color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h2 { font-size: var(--t-h2); }
.lead { font-size: var(--t-lead); line-height: 1.42; color: var(--ink-2); letter-spacing: -0.012em; }
.klein { color: var(--steel); font-size: .875rem; line-height: 1.5; }

/* closing: the headline alone, two slow blobs of light */
.closing { position: relative; overflow: hidden; padding: clamp(96px, 13vw, 184px) var(--gutter); display: grid; gap: 28px; background: var(--brand); color: #fff; }
.closing > * { position: relative; }
.h2-close { font-size: clamp(2.5rem, 0.8rem + 5.4vw, 5.75rem); letter-spacing: -0.045em; line-height: .98; max-width: 16ch; }
.closing .cta { margin-top: 8px; }
.blob { position: absolute !important; border-radius: 50%; filter: blur(60px); pointer-events: none; mix-blend-mode: screen; }
.b1 { width: 60vw; height: 60vw; right: -15vw; top: -30%; background: radial-gradient(closest-side, rgba(142,160,255,.55), transparent); animation: drift1 16s ease-in-out infinite alternate; }
.b2 { width: 40vw; height: 40vw; left: 30%; bottom: -40%; background: radial-gradient(closest-side, rgba(255,177,120,.35), transparent); animation: drift2 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-18%, 22%) scale(1.1); } }
@keyframes drift2 { to { transform: translate(25%, -30%) scale(1.15); } }


/* motion of the sections below the hero */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-words] .w { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
[data-words].in .w { opacity: 1; transform: none; }
html:not(.lp-js) [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-words] .w { opacity: 1 !important; transform: none !important; transition: none !important; }
  .blob { animation: none; }
}

/* open points before go-live, shown only in the preview build */
.offen { display: inline-block; margin: 2px 6px; padding: 1px 8px; border-radius: 6px; background: #ffe45c; color: #0e1020; font: 600 .75rem/1.5 var(--mono); letter-spacing: 0; white-space: nowrap; vertical-align: middle; }
.offen-liste { position: fixed; left: 12px; bottom: 12px; z-index: 65; max-width: min(440px, calc(100vw - 24px)); max-height: 60vh; overflow-y: auto; padding: 8px 12px; border-radius: 12px; background: #ffe45c; color: #0e1020; font: 500 .8125rem/1.45 var(--sans); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
body.has-banner .offen-liste { bottom: calc(var(--banner-h, 0px) + 12px); }
.offen-liste summary { cursor: pointer; font-weight: 650; }
.offen-liste ul { margin: 8px 0 4px; padding-left: 18px; display: grid; gap: 6px; }
.offen-liste b { font-family: var(--mono); font-size: .75rem; }

/* consent: a bar at the bottom edge; the page stays usable and nothing is covered (body gets the bar's height as padding) */
body.has-banner { padding-bottom: var(--banner-h, 0px); }
.consent { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: min(40vh, 200px); overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: 12px var(--gutter); background: #fff; color: var(--ink); box-shadow: 0 -1px 0 var(--rule), 0 -24px 48px -32px rgba(14,16,32,.5); }
.consent--mehr { max-height: min(70vh, 420px); }
.consent-kopf { min-width: 0; }
.consent-title { margin: 0 0 2px; font-size: .9375rem; font-weight: 650; letter-spacing: -0.01em; }
.consent-title:focus { outline: none; }
.consent-text { margin: 0; color: var(--ink-2); font-size: .8125rem; line-height: 1.45; max-width: 96ch; }
.consent-options { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.consent-option { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: .8125rem; line-height: 1.45; cursor: pointer; }
.consent-option input { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); }
.consent-actions { display: flex; align-items: center; gap: 8px; }
.consent-actions .btn { min-height: 44px; min-width: 150px; padding: 0 18px; font-size: .9375rem; background: var(--ink); color: #fff; box-shadow: none; }
.consent-actions .btn:hover { background: var(--brand); }
.consent-more { all: unset; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; color: var(--ink-2); font: inherit; font-size: .9375rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.consent-more:hover { color: var(--ink); }
.consent-more:focus-visible, .consent-actions .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 900px) {
  .consent { grid-template-columns: 1fr; max-height: 40vh; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .consent--mehr { max-height: 80vh; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions .btn { min-width: 0; padding: 0 10px; font-size: .875rem; }
  .consent-more, .consent-actions .btn[data-act="save"] { grid-column: 1 / -1; justify-self: center; }
}

/* contact form */
.modal-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(14,16,32,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--ease); overflow-y: auto; }
.modal-overlay.is-in { opacity: 1; }
.modal-card { width: min(100%, 640px); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; color: var(--ink); border-radius: var(--r); padding: 20px 24px 28px; box-shadow: 0 40px 100px -40px rgba(0,0,0,.6); transform: translateY(16px) scale(.98); transition: transform .5s var(--spring); }
.modal-overlay.is-in .modal-card { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-brand { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.03em; }
.modal-brand span { color: var(--steel); font-weight: 500; }
.modal-close { all: unset; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); transition: background .2s; }
.modal-close:hover { background: var(--tile); color: var(--ink); }
.modal-close:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.modal-title { margin: 0 0 8px; font-size: 1.75rem; letter-spacing: -0.03em; }
.modal-intro { margin: 0 0 18px; color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .875rem; color: var(--ink-2); font-weight: 500; }
.field em { font-style: normal; color: var(--brand-text); }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); padding: 11px 13px; border: 1px solid rgba(14,16,32,.22); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:hover, .field textarea:hover { border-color: rgba(14,16,32,.4); }
.field textarea { resize: vertical; min-height: 110px; }
.field--full { grid-column: 1 / -1; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-privacy { margin: 16px 0 0; color: var(--ink-2); font-size: .84375rem; line-height: 1.55; }
.contact-privacy a, .contact-error a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-error { margin: 10px 0 0; color: #b83a00; font-size: .9rem; }
.contact-los { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; }
/* the small SunMate in the corner of the form */
.contact-mate { flex: none; display: block; width: 58px; height: 58px; margin: -8px 2px 0 0; rotate: 8deg; animation: schweben 3.8s ease-in-out infinite; }
.contact-mate .sunmate { display: block; width: 100%; height: 100%; overflow: visible; transition: transform .45s var(--spring); transform-origin: 50% 80%; }
.contact-mate:hover .sunmate { transform: scale(1.14) rotate(-10deg); }
.contact-mate .sunmate:not(.is-working) .sunmate-eyes { animation: sunmate-blink 3.6s .6s infinite; }
.contact-mate.is-froh { animation: contact-froh .9s var(--ease) both, schweben 3.8s ease-in-out .9s infinite; }
@keyframes contact-froh { 0% { transform: none; } 40% { transform: translateY(-16px) rotate(200deg); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .contact-mate, .contact-mate.is-froh { animation: none; } .contact-mate .sunmate { transition: none; } }
.contact-form .btn:disabled { opacity: .55; cursor: wait; transform: none; }
.modal-done p { max-width: 44ch; margin: 0 0 18px; color: var(--ink-2); }
.modal-done h2:focus { outline: none; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } .modal-card { padding: 16px 18px 22px; } }
@media (prefers-reduced-motion: reduce) { .modal-overlay, .modal-card { transition: none; } }
