/* SIA Connect – öffentliche Website (siak.ai). Farben identisch zur App (app/src/theme.ts). */
:root {
  --bg: #171412;
  --surface: #24201d;
  --surface2: #2e2925;
  --line: #3a342f;
  --text: #f4efe9;
  --muted: #ada398;
  --accent: #4da3ff;
  --on-accent: #0b1520;
  --amber: #f0b44c;
  --green: #6fcf97;
  --red: #ff7a6b;
  --radius: 18px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #7cbcff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section--alt { background: linear-gradient(180deg, rgba(36,32,29,.0), rgba(36,32,29,.75) 18%, rgba(36,32,29,.75) 82%, rgba(36,32,29,0)); }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.section-head { max-width: 760px; margin-bottom: 40px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(23,20,18,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(58,52,47,.7); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand small { display: block; color: var(--muted); font-weight: 600; font-size: .68rem; letter-spacing: .14em; line-height: 1; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav .nav-link { display: none; }
.nav .lang { border: 1px solid var(--line); color: var(--text); min-width: 44px; justify-content: center; }
@media (min-width: 900px) { .nav .nav-link { display: inline-flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #6fb5ff; color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--text); border-color: #544b44; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: .92rem; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.store svg { width: 26px; height: 26px; color: var(--muted); flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.store strong { font-size: 1rem; }

/* Hero */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 104px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vmax; height: 70vmax; background: radial-gradient(circle at center, rgba(77,163,255,.16), rgba(77,163,255,0) 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }

/* SIA-Orb */
.orb-stage { display: grid; place-items: center; min-height: 280px; }
.orb { position: relative; width: clamp(170px, 34vw, 260px); aspect-ratio: 1; display: grid; place-items: center; }
.orb-core { position: relative; z-index: 2; width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 30%, #9ccbff 0%, #4da3ff 42%, #1f6fd1 100%); box-shadow: 0 0 60px rgba(77,163,255,.45), inset 0 -10px 30px rgba(11,21,32,.35); color: var(--on-accent); font-weight: 800; font-size: clamp(1.6rem, 4.5vw, 2.4rem); letter-spacing: .06em; }
.orb-ring { position: absolute; inset: 19%; border-radius: 50%; border: 2px solid rgba(77,163,255,.55); animation: orb-pulse 3.6s ease-out infinite; }
.orb-ring:nth-child(2) { animation-delay: 1.2s; }
.orb-ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes orb-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.62); opacity: 0; } }
.orb--sm { width: 120px; }
.orb--sm .orb-core { font-size: 1.3rem; }

/* Audience */
.split { display: grid; gap: 20px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); }
.panel h3 { font-size: 1.4rem; }
.panel .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag--blue { background: rgba(77,163,255,.14); color: var(--accent); }
.tag--amber { background: rgba(240,180,76,.14); color: var(--amber); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .38em; width: 18px; height: 18px; border-radius: 50%; background: rgba(111,207,151,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236FCF97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Feature grid */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(77,163,255,.12); color: var(--accent); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.icon--amber { background: rgba(240,180,76,.12); color: var(--amber); }
.icon--green { background: rgba(111,207,151,.12); color: var(--green); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* Studio-Finder */
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 34px); }
.field-label { display: block; font-weight: 700; margin-bottom: 8px; }
.search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.input { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.input::placeholder { color: #8f857b; }
.input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.chips { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.chips legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font-weight: 600; font-size: .94rem; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.finder-status { margin: 18px 0 0; min-height: 1.6em; color: var(--muted); }
.finder-status.is-error { color: var(--red); }
.results { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.studio { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.studio-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.studio h3 { margin: 0; font-size: 1.12rem; }
.studio .dist { color: var(--accent); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.studio .addr { color: var(--muted); margin: 4px 0 10px; font-size: .95rem; }
.studio .badge { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--amber); background: rgba(240,180,76,.12); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.pill-list li { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface2); color: var(--text); }
.studio .devices { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.studio .btn-row { gap: 8px; }

/* SIA-Test */
.sia-box { display: grid; gap: 28px; align-items: center; background: radial-gradient(circle at 15% 50%, rgba(77,163,255,.14), rgba(77,163,255,0) 55%), var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 44px); }
@media (min-width: 760px) { .sia-box { grid-template-columns: auto 1fr; } }
.sia-hint { margin-top: 14px; color: var(--accent); font-weight: 700; min-height: 1.6em; }

/* Partner */
.partner { display: grid; gap: 24px; }
@media (min-width: 860px) { .partner { grid-template-columns: 1.1fr .9fr; align-items: start; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary h3 { display: inline; font-size: 1.02rem; margin: 0; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA */
.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .btn-row, .cta .store-row { justify-content: center; }

/* Support */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid .card a { font-weight: 700; overflow-wrap: anywhere; }
.topics { display: grid; gap: 16px; }
@media (min-width: 760px) { .topics { grid-template-columns: 1fr 1fr; } }
.note { border-left: 3px solid var(--amber); background: var(--surface); padding: 18px 20px; border-radius: 0 14px 14px 0; }
.page-hero { padding: clamp(40px, 7vw, 80px) 0 8px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a:hover { color: var(--text); }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .orb-ring { opacity: .35; }
  .orb-ring:nth-child(2) { transform: scale(1.25); opacity: .2; }
  .orb-ring:nth-child(3) { transform: scale(1.5); opacity: .1; }
}

/* Hilfsklassen */
.plain { list-style: none; margin: 0; padding: 0; }
.pt-sm { padding-top: 40px; }
.mt-lg { margin-top: 56px; }
.mt-md { margin-top: 20px; }
.center { margin-left: auto; margin-right: auto; }
.card--wide { grid-column: 1 / -1; background: radial-gradient(circle at 0% 0%, rgba(77,163,255,.12), rgba(77,163,255,0) 50%), var(--surface); }
