/* ============================================================
   JG Solutions — Design-System
   Hell, minimal, blauer Markenakzent. Sora + Instrument Sans.
   ============================================================ */

:root {
  --paper: #ffffff;
  --mist: #f4f7fb;
  --ink: #0e1420;
  --slate: #56617a;
  --line: #e3e9f2;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-ghost: #eaf1fe;
  --green: #16a34a;

  --font-display: "Sora", sans-serif;
  --font-body: "Instrument Sans", sans-serif;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;

  --shadow-soft: 0 10px 30px -12px rgba(14, 20, 32, 0.12);
  --shadow-card: 0 2px 8px -2px rgba(14, 20, 32, 0.06);

  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--slate); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.accent { color: var(--blue-deep); }

/* ---------- Skip-Link & Fokus ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-s) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(37, 99, 235, 0.6);
}
.btn--primary:hover { background: var(--blue); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-deep); }

.btn--big { padding: 1rem 2rem; font-size: 1.08rem; }

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 40px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.45rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 85% 8%, rgba(59, 130, 246, 0.10), transparent 70%),
    radial-gradient(500px 300px at 8% 90%, rgba(37, 99, 235, 0.06), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
  font-size: 0.92rem;
  color: var(--slate);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust svg { color: var(--green); flex-shrink: 0; }

/* Signatur: Posteingang-Fenster */

.inbox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  max-width: 420px;
  margin-left: auto;
}
.inbox-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.inbox-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.inbox-bar .dot:first-child { background: #f0b4b4; }
.inbox-bar .dot:nth-child(2) { background: #f2d9a4; }
.inbox-bar .dot:nth-child(3) { background: #b3dcb8; }
.inbox-title {
  margin-left: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}
.inbox-body { padding: 1.1rem; display: grid; gap: 0.8rem; }

.inbox-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 0.85rem 1rem;
  background: var(--paper);
  opacity: 0;
  transform: translateY(14px);
  animation: inbox-in 0.7s var(--ease) forwards;
}
.inbox-item:nth-child(1) { animation-delay: 0.5s; }
.inbox-item:nth-child(2) { animation-delay: 1.5s; }
.inbox-item:nth-child(3) { animation-delay: 2.5s; }

.inbox-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-s);
  background: var(--blue-ghost);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.inbox-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
}
.inbox-item span { font-size: 0.85rem; color: var(--slate); }

@keyframes inbox-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sektionen ---------- */

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--mist { background: var(--mist); }

.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head p { font-size: 1.08rem; }
.section-head h2 { margin-bottom: 0.8rem; }

/* ---------- Karten-Raster ---------- */

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: #cfd9ea; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-m);
  background: var(--blue-ghost);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.98rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Feature-Liste (Warum JG) ---------- */

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-s);
  background: var(--blue-ghost);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.feature p { font-size: 0.95rem; }

/* ---------- Prozess ---------- */

.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.5rem 1.3rem;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-deep);
  background: var(--blue-ghost);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; }

/* ---------- Passt es? ---------- */

.fit-list { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.2rem; }
.fit-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--slate); font-size: 0.98rem; }
.fit-list svg { flex-shrink: 0; margin-top: 0.25rem; }
.fit-yes svg { color: var(--green); }
.fit-no svg { color: #d97706; }

/* ---------- Über mich ---------- */

.about { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: start; }
.monogram {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.about-text p { margin-bottom: 1em; max-width: 40rem; }
.about-text p:last-of-type { margin-bottom: 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); margin-bottom: 0.8rem; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-q svg { flex-shrink: 0; transition: transform 0.25s var(--ease); color: var(--blue-deep); }
.faq-item[data-open="true"] .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.3rem 1.2rem; font-size: 0.98rem; }
.faq-item[data-open="true"] .faq-a { display: block; }

/* ---------- CTA-Band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border-radius: var(--radius-l);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 34rem; margin: 0 auto 1.8rem; }
.cta-band .btn--primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}
.cta-band .btn--primary:hover { background: var(--blue-ghost); }
.cta-note { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); margin-top: 1rem; }
.cta-band .cta-note { margin-bottom: 0; }

/* ---------- Page-Hero (Unterseiten) ---------- */

.page-hero { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; overflow: hidden; }
.page-hero .lead { font-size: 1.12rem; max-width: 38rem; margin-top: 1rem; }

/* ---------- Leistungs-Detail ---------- */

.service { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.service + .service { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--line); }
.service h2 { margin-bottom: 0.9rem; }
.service > div > p { margin-bottom: 1em; }
.service-list { list-style: none; display: grid; gap: 0.7rem; }
.service-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--slate); font-size: 0.98rem; }
.service-list svg { color: var(--blue-deep); flex-shrink: 0; margin-top: 0.25rem; }
.service-panel {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.8rem;
}
.service-panel h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.service .btn { margin-top: 1.6rem; }

/* ---------- Kontakt ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-item strong { display: block; color: var(--ink); font-size: 0.98rem; }
.contact-item a, .contact-item span { font-size: 0.98rem; color: var(--slate); }

.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--blue); outline: none; }
.form-field textarea { resize: vertical; min-height: 130px; }

.form-consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--slate); margin-bottom: 1.4rem; }
.form-consent input { margin-top: 0.3rem; accent-color: var(--blue-deep); width: 18px; height: 18px; flex-shrink: 0; }

.form-error { color: #b91c1c; font-size: 0.88rem; margin-top: 0.4rem; display: none; }
.form-error[data-show="true"] { display: block; }

.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-m);
  padding: 1.2rem 1.4rem;
  color: #166534;
  font-size: 0.98rem;
  display: none;
}
.form-success[data-show="true"] { display: block; }

/* Honeypot: für Menschen unsichtbar */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Funnel ---------- */

.funnel-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--mist); }
.funnel-top { padding: 1.4rem 0; }
.funnel-top .container { display: flex; justify-content: center; }

.funnel-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem 4rem;
}
.funnel-note { font-size: 0.92rem; color: var(--slate); text-align: center; margin-bottom: 1.6rem; max-width: 30rem; }

.funnel-card {
  width: 100%;
  max-width: 640px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.funnel-progress { margin-bottom: 1.8rem; }
.funnel-progress-label { font-size: 0.85rem; font-weight: 600; color: var(--slate); margin-bottom: 0.5rem; }
.funnel-bar { height: 6px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.funnel-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-deep), var(--blue)); border-radius: 999px; transition: width 0.35s var(--ease); }

.funnel-question { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.funnel-hint { font-size: 0.95rem; color: var(--slate); margin-bottom: 1.4rem; }

.funnel-options { display: grid; gap: 0.75rem; margin-bottom: 1.6rem; }
.funnel-option {
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.funnel-option:hover { border-color: var(--blue); transform: translateY(-1px); }
.funnel-option[aria-pressed="true"] {
  border-color: var(--blue-deep);
  background: var(--blue-ghost);
}
.funnel-option .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.15s;
}
.funnel-option[aria-pressed="true"] .check { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.funnel-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.funnel-nav .btn--ghost { background: var(--paper); }

.funnel-summary { list-style: none; display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.funnel-summary li { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0.85rem 1.1rem; }
.funnel-summary strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 0.2rem; }
.funnel-summary span { font-size: 0.98rem; color: var(--ink); }

.funnel-done { text-align: center; padding: 1.5rem 0; }
.funnel-done-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0fdf4;
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
}
.funnel-done h2 { margin-bottom: 0.7rem; }
.funnel-done p { max-width: 26rem; margin: 0 auto 1.4rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #b8c0d0; padding: 3.5rem 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: 0.9rem; }
.footer-col > p { color: #8a93a8; font-size: 0.95rem; max-width: 18rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: #b8c0d0; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.6rem; font-size: 0.88rem; color: #8a93a8; }

/* ---------- Scroll-Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .inbox-item { animation: none; opacity: 1; transform: none; }
  .btn, .card, .funnel-option { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .inbox { margin: 0 auto; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 1.8rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
  }
  .nav-links.is-open { display: flex; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile .btn { width: 100%; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .monogram { width: 88px; height: 88px; font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .funnel-nav { flex-direction: column-reverse; align-items: stretch; }
  .funnel-nav .btn { width: 100%; }
}
