/* ==========================================================================
   OutScale-VA — Design Tokens
   ========================================================================== */

:root {
  --bg: #0A0A0D;
  --bg-elevated: #131318;
  --bg-elevated-2: #1B1B22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #F5F5F7;
  --text-muted: #9B9BA6;
  --text-faint: #6C6C77;

  --accent: #6D5EF0;
  --accent-2: #8B7CF6;
  --accent-strong: #8577F5;
  --accent-soft: rgba(109, 94, 240, 0.14);
  --gradient: linear-gradient(135deg, #6D5EF0, #9B6EF3);

  --check: #34D399;
  --check-soft: rgba(52, 211, 153, 0.12);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout-Helper
   ========================================================================== */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--border); position: relative; }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

h2.section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-lede { margin-top: 1rem; color: var(--text-muted); font-size: 1.05rem; max-width: 56ch; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -8px rgba(109, 94, 240, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 14px 32px -8px rgba(109, 94, 240, 0.7); }

.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 13, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; }
.brand img { height: 28px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a:not(.btn) { font-size: 0.94rem; color: var(--text-muted); transition: color 0.15s ease; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--gradient); transition: width 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; padding: 2rem var(--gutter); gap: 1.6rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav-links a:not(.btn) { font-size: 1.1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-block: clamp(4rem, 11vw, 7rem) clamp(3rem, 8vw, 5rem); position: relative; overflow: hidden; }

.hero-glow {
  position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.hero-glow.one { width: 480px; height: 480px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(109,94,240,0.35), transparent 70%); }
.hero-glow.two { width: 360px; height: 360px; bottom: -160px; left: 10%; background: radial-gradient(circle, rgba(155,110,243,0.22), transparent 70%); }

.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; }

.hero-title {
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { margin-top: 1.5rem; font-size: 1.12rem; color: var(--text-muted); max-width: 58ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.hero-fact { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; color: var(--text-muted); }
.hero-fact .tick { color: var(--check); font-weight: 700; }

/* ==========================================================================
   Leistungen — Karten
   ========================================================================== */

.grid-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(109, 94, 240, 0.4);
  box-shadow: 0 16px 40px -20px rgba(109, 94, 240, 0.5);
}

.service-icon-badge {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  margin-bottom: 1.2rem;
}
.service-icon { width: 22px; height: 22px; color: var(--accent-2); }

.service-card h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.93rem; color: var(--text-muted); }

/* ==========================================================================
   Ablauf — Prozess
   ========================================================================== */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.process-step {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.process-step:hover { transform: translateY(-5px); border-color: rgba(109, 94, 240, 0.4); }

.step-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}

.process-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ==========================================================================
   Für wen — Chips
   ========================================================================== */

.chip-cloud { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.chip:hover { border-color: transparent; color: #fff; background: var(--gradient); transform: translateY(-2px); }

/* ==========================================================================
   Warum — Stat-Karten
   ========================================================================== */

.grid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.stat-card {
  padding: 2.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: rgba(109, 94, 240, 0.4); }

.stat-number {
  font-weight: 800;
  font-size: 2.3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.stat-card h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-card p { font-size: 0.93rem; color: var(--text-muted); }

@media (max-width: 760px) { .grid-stats { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ — Accordion
   ========================================================================== */

.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.is-open { border-color: rgba(109, 94, 240, 0.4); }

.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; text-align: left; font-size: 1.01rem; font-weight: 600;
}

.faq-question .chevron { flex-shrink: 0; width: 20px; height: 20px; color: var(--text-muted); transition: transform 0.25s ease, color 0.2s ease; }
.faq-item.is-open .chevron { transform: rotate(180deg); color: var(--accent-2); }

.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p { padding: 0 1.5rem 1.4rem; color: var(--text-muted); font-size: 0.95rem; max-width: 68ch; }

/* ==========================================================================
   Kontakt / Formular
   ========================================================================== */

.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 5vw, 4.5rem); }

.contact-info-card { align-self: start; position: sticky; top: 100px; }
.contact-detail { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; color: var(--text-muted); margin-top: 1rem; }
.contact-detail svg { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; }

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .contact-info-card { position: static; } }

.form-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }

.form-fieldset { border: none; padding: 0; margin: 0 0 2rem; }
.form-fieldset legend { font-size: 0.85rem; font-weight: 700; color: var(--accent-2); padding: 0 0 1rem; width: 100%; text-transform: uppercase; letter-spacing: 0.04em; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.45rem; }
.field .hint { display: block; font-weight: 400; font-size: 0.82rem; color: var(--text-faint); margin-top: 0.3rem; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.78rem 0.95rem; color: var(--text); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 120px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><path d='M1 1l6 6 6-6' stroke='%239B9BA6' stroke-width='1.5' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem;
}

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
@media (max-width: 620px) { .checkbox-grid { grid-template-columns: 1fr; } }

.checkbox-option {
  display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--text-muted);
  padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.checkbox-option:hover { border-color: var(--border-strong); }
.checkbox-option input { margin-top: 0.2rem; accent-color: var(--accent-2); }
.checkbox-option:has(input:checked) { border-color: var(--accent-2); color: var(--text); background: var(--accent-soft); }

.consent-row { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.consent-row input { margin-top: 0.25rem; accent-color: var(--accent-2); }
.consent-row a { color: var(--accent-2); text-decoration: underline; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--border); padding-block: 3.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand { margin-bottom: 0.9rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-faint); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: var(--text-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-faint); }

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ==========================================================================
   Rechts-Seiten (Impressum / Datenschutz)
   ========================================================================== */

.legal-page { padding-block: clamp(3rem, 7vw, 5rem); }
.legal-page h1 { font-weight: 800; font-size: clamp(2.1rem, 4vw, 2.9rem); margin-bottom: 2.5rem; letter-spacing: -0.02em; }
.legal-page h2 { font-size: 1.15rem; font-weight: 700; margin-top: 2.25rem; margin-bottom: 0.8rem; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 0.85rem; max-width: 74ch; }
.legal-page ul { list-style: disc; padding-left: 1.3rem; }
.legal-page a { color: var(--accent-2); text-decoration: underline; }

/* ==========================================================================
   Danke-Seite
   ========================================================================== */

.thanks { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 4rem; }
.thanks .tick-big {
  width: 56px; height: 56px; color: #fff; padding: 14px; border-radius: 50%;
  background: var(--gradient); margin-bottom: 1.5rem;
}
.thanks h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.thanks p { color: var(--text-muted); max-width: 52ch; margin-bottom: 2rem; }
