/* ==========================================================================
   RegioVR — Stylesheet
   Farben zentral über CSS-Variablen. Zum Umfärben nur :root anpassen.
   ========================================================================== */

:root {
  --ink:        #0b1220;
  --ink-soft:   #16203219;
  --paper:      #ffffff;
  --paper-alt:  #f4f7fb;
  --text:       #1c2534;
  --muted:      #5d6b80;
  --line:       #dde4ee;

  --accent:     #0ea5e9;
  --accent-600: #0284c7;
  --accent-700: #0369a1;
  --accent-soft:#e0f2fe;

  --radius:     14px;
  --radius-lg:  22px;
  --wrap:       1180px;

  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 4px 12px rgba(11,18,32,.05);
  --shadow-md: 0 4px 12px rgba(11,18,32,.07), 0 16px 40px rgba(11,18,32,.08);
  --shadow-lg: 0 10px 30px rgba(11,18,32,.10), 0 30px 70px rgba(11,18,32,.12);

  --ff: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.14rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--accent-700); }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent; border-radius: 100px;
  font: inherit; font-weight: 650; font-size: .97rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent-600); color: #fff; box-shadow: 0 6px 18px rgba(2,132,199,.32); }
.btn-primary:hover { background: var(--accent-700); }
.btn-ghost { background: transparent; color: #e8eef8; border-color: rgba(232,238,248,.35); }
.btn-ghost:hover { background: rgba(232,238,248,.10); border-color: rgba(232,238,248,.6); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,18,32,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.brand-text strong { font-weight: 800; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: #cfdaea; text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:hover { color: #fff; }
.nav a.btn-primary { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 9px;
  background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0b1220; border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav a.btn { margin-top: .9rem; border-bottom: 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 78% 8%, rgba(14,165,233,.22), transparent 62%),
    radial-gradient(760px 420px at 8% 92%, rgba(59,130,246,.16), transparent 60%),
    linear-gradient(168deg, #0b1220 0%, #101c30 58%, #0d1729 100%);
  color: #dbe5f2;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem;
}
.hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.19rem); color: #b8c6da; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.9rem 0 1.4rem; }
.hero-note { font-size: .92rem; color: #8fa2bc; margin: 0; }
.hero-note strong { color: #cfdcec; }

.visual-stage {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-lg);
}
.headset { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }

/* ---------- Kennzahlen ---------- */
.stats { background: var(--ink); padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat { background: #0e1829; padding: clamp(1.4rem, 3vw, 2rem); text-align: center; }
.stat-num { display: block; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.stat-label { display: block; font-size: .93rem; color: #9db0c8; margin-top: .35rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.section-head .eyebrow { color: var(--accent-700); }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* ---------- Karten (Einsatzzwecke) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c6d5e8; }
.card-icon {
  width: 48px; height: 48px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent-700);
}
.card-icon svg { width: 25px; height: 25px; }
.card p { color: var(--muted); font-size: .98rem; }
.ticks { margin-top: 1.1rem; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .93rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Vorteile ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem 2.2rem; }
.benefit { padding: 1.3rem 0 1.3rem 1.3rem; border-left: 3px solid var(--accent); }
.benefit h3 { margin-bottom: .3em; }
.benefit p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Hardware ---------- */
.hw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hw-visual .visual-stage {
  background: linear-gradient(150deg, #101c30, #0b1220);
  border-color: rgba(255,255,255,.09);
}
.hw-copy .eyebrow { color: var(--accent-700); }
.hw-copy > p { color: var(--muted); }
.specs { margin: 1.6rem 0 1.2rem; display: grid; gap: 1rem; }
.specs > div { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem 1rem; align-items: start; }
.specs dt { font-weight: 700; color: var(--ink); }
.specs dd { margin: 0; color: var(--muted); font-size: .97rem; }
.fineprint { font-size: .82rem; color: #8494a8; margin: 0; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; counter-reset: s; }
.step {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem 1.6rem; box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute; top: -20px; left: 1.6rem;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-600); color: #fff;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(2,132,199,.35);
}
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Kontakt ---------- */
.section-contact {
  background: linear-gradient(168deg, #0b1220 0%, #111f36 100%);
  color: #cfdaea;
}
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-intro h2 { color: #fff; }
.contact-intro p { color: #a8bad2; }
.contact-points { display: grid; gap: .6rem; margin-top: 1.5rem; }
.contact-points li { position: relative; padding-left: 1.9rem; color: #cfdaea; font-size: .97rem; }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(14,165,233,.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* ---------- Formular ---------- */
.form-card {
  background: var(--paper); color: var(--text);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
}
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .38rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field label { font-size: .9rem; font-weight: 650; color: var(--ink); }
.req { color: #dc2626; }

.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .9rem;
  font: inherit; font-size: .97rem; color: var(--text);
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14,165,233,.16);
}
.field input.invalid, .field textarea.invalid, .field select.invalid {
  border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}
.field .field-err { font-size: .84rem; color: #b91c1c; }

.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field-check input { width: 19px; height: 19px; margin-top: .18rem; accent-color: var(--accent-600); }
.field-check label { font-weight: 450; font-size: .89rem; line-height: 1.5; color: var(--muted); }

.form-note { font-size: .8rem; color: var(--muted); margin: -.2rem 0 0; }

/* Honeypot — für Menschen unsichtbar, aber nicht display:none (Bots erkennen das) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; padding: .9rem 1.05rem; border-radius: 10px; font-size: .95rem; }
.form-status.show { display: block; }
.form-status.ok  { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-status.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.form-status.busy{ background: var(--accent-soft); border: 1px solid #bae6fd; color: var(--accent-700); }

/* ---------- Footer ---------- */
.site-footer { background: #070d18; color: #8ea1bb; padding: 2.6rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem; align-items: center; justify-content: space-between; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin: .3rem 0 0; font-size: .9rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: #b7c6da; text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copy { margin: 0; font-size: .87rem; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.legal .wrap { max-width: 48rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: .8em; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.02rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); font-size: .98rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.legal ul li { margin-bottom: .35rem; }
.legal .todo {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .93rem; margin-bottom: 2rem;
}
.legal .back { display: inline-block; margin-top: 2.5rem; font-weight: 650; }

/* ---------- Ergebnisseite kontakt.php (ohne JS) ---------- */
.result { min-height: 60vh; display: grid; place-items: center; padding: 4rem 0; }
.result-card {
  max-width: 34rem; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.6rem 2rem; box-shadow: var(--shadow-md);
}
.result-icon { width: 60px; height: 60px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; }
.result-icon.ok  { background: #ecfdf5; color: #059669; }
.result-icon.err { background: #fef2f2; color: #dc2626; }
.result-icon svg { width: 30px; height: 30px; }
.result-card p { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .hw-grid, .contact-grid, .cards { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hw-visual { order: -1; }
  .stats-grid { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: .15rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
}
