/* SeiteKlar v2 – Veredelungs-Schicht im Stil der FlowAgent-Seite
   (Scroll-Reveal, Glas-Karten, Hover-Lift, weiche Blur-Blobs, Ping-Badge, Sans-Typografie).
   Eigene Farben: Blau (STRATO-ähnlich) + warmes Orange für CTAs – bewusst NICHT Türkis wie FlowAgent. */
:root {
  --bg: #FFFFFF; --bg-alt: #F4F7FE; --paper: #FFFFFF;
  --ink: #0E1A33; --muted: #46526B; --line: #DFE6F3;
  --navy: #1553E0; --navy-deep: #0B3AA8; --navy-soft: #EAF0FF; --navy-50: #EEF3FF; --navy-100: #D9E4FF;
  --cta: #D64300; --cta-hover: #B83800; --cta-soft: #FFE9DC; --cta-glow: rgba(214, 67, 0, .38);
  --night: #0A1736; --night-2: #0B2A7A;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: var(--font-sans);
  --shadow: 0 10px 15px -3px rgba(14, 26, 51, .08), 0 4px 6px -4px rgba(14, 26, 51, .08);
  --shadow-hover: 0 20px 25px -5px rgba(14, 26, 51, .13), 0 8px 10px -6px rgba(14, 26, 51, .1);
  --radius: 16px; --header-h: 4.5rem;
}
body { background: #fff; font-family: var(--font-sans); }
h1, h2, h3, .wordmark { font-family: var(--font-sans); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.18; }
h3 { font-size: 1.15rem; line-height: 1.3; }
.page-main h1 { font-family: var(--font-sans); font-weight: 700; font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.12; }
.page-main h2 { font-family: var(--font-sans); font-weight: 700; }
::selection { background: var(--navy-100); }

/* ---------- Header (FlowAgent: weiß/80 + Blur + feine Linie) ---------- */
.site-header { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid #EEF1F7; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(14, 26, 51, .22); border-bottom-color: var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em; }
.wordmark::before { content: "S"; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: 0;
  background: radial-gradient(circle at 82% 18%, var(--cta) 0 .17rem, transparent .19rem), linear-gradient(135deg, var(--navy), var(--navy-deep)); box-shadow: 0 6px 14px -4px rgba(21, 83, 224, .55); transition: transform .3s; }
.wordmark:hover::before { transform: rotate(-6deg) scale(1.06); }
.wordmark span { display: none; }
.nav a:not(.btn) { color: #4B5563; font-weight: 500; transition: color .2s; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: color .2s, background-size .3s ease; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--navy); background-size: 100% 2px; }
.nav-toggle { border-radius: .6rem; transition: background .2s, border-color .2s; }
.nav-toggle:hover { background: var(--navy-50); border-color: var(--navy-100); }

/* ---------- Buttons (FlowAgent: rounded-xl, Schatten, Hover-Lift, Active-Scale) ---------- */
.btn { border-radius: .75rem; font-weight: 600; font-size: .95rem; letter-spacing: -0.005em; border-width: 2px; box-shadow: 0 10px 20px -8px var(--cta-glow), 0 4px 6px -4px rgba(14, 26, 51, .1);
  transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -8px var(--cta-glow), 0 8px 10px -6px rgba(14, 26, 51, .12); }
.btn:active { transform: scale(.96); }
.btn-ghost { background: transparent; color: var(--navy) !important; border-color: var(--navy); box-shadow: none; }
.btn-ghost:hover { background: var(--navy-50); border-color: var(--navy-deep); color: var(--navy-deep) !important; box-shadow: none; }
.nav .btn { padding: .6rem 1.05rem; border-radius: .7rem; }
.lang-switch a, .lang-switch .lang-cur { border-radius: 8px; transition: background .2s, color .2s; }

/* ---------- Hero (zentriert, Blur-Blobs, Ping-Badge, Staffel-Einblendung) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 4.25rem 0 4.25rem; border-bottom: 0; background: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { top: 0; left: 50%; width: min(1200px, 130vw); height: 560px; transform: translate(-50%, -34%); background: var(--navy-50); filter: blur(120px); animation: blobDrift 14s ease-in-out infinite alternate; }
.hero::after { bottom: 0; right: 0; width: min(780px, 100vw); height: 380px; transform: translate(14%, 30%); background: #FFEFE4; filter: blur(130px); animation: blobDrift 18s ease-in-out infinite alternate-reverse; }
.hero-grid { grid-template-columns: 1fr; justify-items: center; gap: 2.75rem; }
.hero-grid > div:first-child { display: flex; flex-direction: column; align-items: center; }
.hero-kicker { max-width: 100%; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .55rem; padding: .35rem .85rem; border-radius: 999px; background: var(--navy-50); color: var(--navy-deep); font-size: .74rem; font-weight: 700; letter-spacing: .09em; margin: 0 0 1.5rem; }
.hero-kicker::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--navy); animation: pingDot 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.hero h1 { max-width: 21ch; margin: 0 auto 1.4rem; font-size: clamp(2.35rem, 5.4vw, 4.25rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.hero h1 .hl { color: var(--navy); }
.hero .lead { max-width: 40rem; margin: 0 auto 2.2rem; font-size: clamp(1.02rem, 1.6vw, 1.25rem); line-height: 1.7; color: var(--muted); }
.hero-actions { justify-content: center; gap: 1rem; }
.industries { justify-content: center; margin-top: 2.6rem; }
.industries a { border-radius: 999px; background: rgba(255, 255, 255, .85); transition: border-color .2s, color .2s, background .2s, transform .2s, box-shadow .2s; }
.industries a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(21, 83, 224, .4); }
.industries a::after { display: inline-block; transition: transform .2s; }
.industries a:hover::after { transform: translateX(3px); }
.hero-visual { width: min(640px, 100%); min-height: 0; margin-inline: auto; text-align: left; }
.browser { border-radius: 1rem; box-shadow: 0 30px 60px -24px rgba(14, 26, 51, .28), 0 10px 20px -10px rgba(14, 26, 51, .12); }
.phone { box-shadow: 0 24px 40px -14px rgba(11, 58, 168, .55); animation: floatY 6s ease-in-out infinite; }
.mini .mini-h { font-weight: 700; }
.hero-kicker, .hero h1, .hero .lead, .hero-actions, .industries, .hero-visual { animation: fadeUp .8s ease-out both; }
.hero h1 { animation-delay: .08s; } .hero .lead { animation-delay: .16s; } .hero-actions { animation-delay: .24s; } .industries { animation-delay: .32s; } .hero-visual { animation-delay: .4s; }

/* ---------- Abschnitte ---------- */
section { padding: 5rem 0; }
.section-kicker { color: var(--navy); font-weight: 700; letter-spacing: .12em; }
.section-intro { font-size: 1.05rem; color: var(--muted); }
#leistungen > .wrap > :is(.section-kicker, h2, .section-intro),
#warum > .wrap > :is(.section-kicker, h2, .section-intro),
#beispiele > .wrap > :is(.section-kicker, h2, .section-intro),
#ablauf > .wrap > :is(.section-kicker, h2, .section-intro),
#preise > .wrap > :is(.section-kicker, h2, .section-intro),
#faq > .wrap > :is(.section-kicker, h2, .section-intro),
#ablauf > .wrap > p:last-child { text-align: center; }
.faq-list { margin-inline: auto; }
#kontakt > .wrap, #ueber > .wrap { text-align: center; }
#kontakt > .wrap p, #ueber > .wrap p { margin-inline: auto; }
#leistungen > .wrap > .section-intro, #warum > .wrap > .section-intro, #beispiele > .wrap > .section-intro,
#ablauf > .wrap > .section-intro, #preise > .wrap > .section-intro, #faq > .wrap > .section-intro { margin-inline: auto; margin-bottom: 3rem; }
.service-block { border-top: 0; padding: 4.25rem 0; }
.service-block.tint, #ablauf, #kontakt { background: var(--bg-alt); }
#preise, #faq, #beispiele, #leistungen { background: #fff; }

/* ---------- Glas-Karten + Hover-Lift (FlowAgent: glass-card) ---------- */
.card, .step, .price-card, .example, details.faq, .process-step, .legal-box, form, .cta-box, .contact-list li, .ba-frame, .why-item {
  border-radius: 1rem; }
.card, .step, .price-card, .example, .process-step { background: rgba(255, 255, 255, .88); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s; }
.card:hover, .step:hover, .price-card:hover, .example:hover, .process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--navy-100); }
.icon { border-radius: .8rem; background: linear-gradient(135deg, var(--navy-50), var(--navy-100)); color: var(--navy); transition: transform .3s, background .3s, color .3s; }
.card:hover .icon { transform: scale(1.1) rotate(-4deg); background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; }
.card a.more::after { content: " →"; display: inline-block; transition: transform .2s; }
.card a.more:hover::after { transform: translateX(4px); }
.card a.more:hover { text-decoration: none; }
.step::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--navy-100); color: var(--navy-deep); font: 700 1rem var(--font-sans); letter-spacing: 0; margin-bottom: .9rem; transition: background .3s, color .3s, transform .3s; }
.step:hover::before { background: var(--navy); color: #fff; transform: scale(1.1); }
.service-block li::before, .price-card li::before { width: .5rem; height: .5rem; border-radius: 50%; background: var(--cta); top: .85rem; }
.example .mock { transition: filter .3s; }
.example:hover .mock { filter: brightness(1.05); }
.badge { background: var(--cta-soft); border-color: #F2C9AE; color: #A33000; }
.ba-frame { box-shadow: var(--shadow); }
.browser, .phone, .ba-frame, .mk-browser { border-radius: 1rem; }

/* ---------- Preise ---------- */
.price { font-family: var(--font-sans); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.04em; color: var(--ink); }
.price small { font-weight: 500; }
.price-card.featured { outline: 0; border: 2px solid var(--navy); background: linear-gradient(180deg, #fff, var(--navy-50)); box-shadow: 0 24px 50px -18px rgba(21, 83, 224, .4); }
.rec-badge { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); box-shadow: 0 6px 14px -4px rgba(21, 83, 224, .5); }
@media (min-width: 861px) { .price-card.featured { transform: translateY(-8px); } .price-card.featured:hover { transform: translateY(-14px); } }
.term { background: var(--navy-50); }

/* ---------- Dunkler Abschnitt „Warum“ ---------- */
#warum { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, var(--night) 0%, #0B2262 55%, var(--night-2) 100%); color: #F4F6FA; }
#warum::before { content: ""; position: absolute; z-index: -1; top: -120px; right: -120px; width: 520px; height: 520px; border-radius: 50%; background: rgba(47, 107, 255, .35); filter: blur(110px); animation: blobDrift 16s ease-in-out infinite alternate; }
#warum::after { content: ""; position: absolute; z-index: -1; bottom: -160px; left: -100px; width: 420px; height: 420px; border-radius: 50%; background: rgba(214, 67, 0, .22); filter: blur(120px); }
#warum h2, #warum h3 { color: #fff; }
#warum .section-kicker { color: #FFB68F; }
#warum .section-intro, #warum .why-item p { color: #C9D3E6; }
.why-item { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .3s cubic-bezier(.2, .7, .3, 1), background .3s, border-color .3s; }
.why-item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
#warum .icon { background: rgba(255, 255, 255, .12); color: #fff; }
#warum .card:hover .icon, #warum .why-item:hover .icon { background: var(--cta); color: #fff; }

/* ---------- FAQ ---------- */
details.faq { background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(14, 26, 51, .04); transition: border-color .25s, box-shadow .25s; }
details.faq:hover { border-color: var(--navy-100); }
details[open].faq { border-color: var(--navy-100); box-shadow: var(--shadow); }
summary { transition: color .2s; }
summary:hover { color: var(--navy); }
summary::after, details[open] summary::after { content: "+"; transition: transform .3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details[open] > :not(summary) { animation: fadeDown .35s ease-out; }

/* ---------- Formulare, Unterseiten ---------- */
form, form.contact-form { border-radius: 1rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
input, textarea, form.contact-form input, form.contact-form textarea { border-radius: .6rem; transition: border-color .2s, box-shadow .2s; }
.page-main { position: relative; isolation: isolate; padding-top: 3.4rem; }
.page-main::before { content: ""; position: absolute; z-index: -1; top: -5rem; left: 50%; width: min(1000px, 120vw); height: 380px; transform: translateX(-50%); background: var(--navy-50); border-radius: 50%; filter: blur(110px); }
.page-main .section-kicker { display: inline-block; background: var(--navy-50); color: var(--navy-deep); padding: .3rem .8rem; border-radius: 999px; font-size: .72rem; }
.cta-box { background: linear-gradient(135deg, #fff, var(--navy-50)); border: 1px solid var(--navy-100); box-shadow: var(--shadow); padding: 1.8rem 1.6rem; position: relative; overflow: hidden; }
.step-no { background: var(--navy); }
.process-step dt { color: var(--navy-deep); }
.placeholder, .ph { border-radius: 6px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Footer (FlowAgent: dunkel) ---------- */
.site-footer { background: var(--night); color: #AEB9D0; border-top: 0; padding: 3rem 0 3.4rem; margin-top: 0; }
.site-footer .wordmark { color: #fff; }
.site-footer .footer-links a { color: #B7C2D9; transition: color .2s; }
.site-footer .footer-links a:hover { color: #fff; text-decoration: none; }
.site-footer .footer-label { color: #fff; }
.site-footer .legal-note, .site-footer p { color: #8E9BB7; }
.site-footer a { color: #B7C2D9; }

/* ---------- Scroll-Reveal (FlowAgent: .reveal / .active) ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease-out, transform .8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pingDot { 0% { box-shadow: 0 0 0 0 rgba(21, 83, 224, .55); } 75%, 100% { box-shadow: 0 0 0 .55rem rgba(21, 83, 224, 0); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes blobDrift { from { margin-left: -30px; } to { margin-left: 30px; } }

@media (max-width: 860px) {
  section { padding: 3rem 0; }
  .hero { padding: 2.8rem 0 2.6rem; }
  .hero-kicker { border-radius: 1rem; padding: .45rem .9rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .service-block { padding: 2.4rem 0; }
  .price-card.featured { transform: none; }
  .site-header { background: rgba(255, 255, 255, .92); }
}
@media (max-width: 1099px) {
  .nav { background: #fff; border-radius: 0 0 1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover, .step:hover, .price-card:hover, .example:hover, .why-item:hover, .process-step:hover { transform: none; }
}
