/* ============================================================
   Service landing pages  (EWW-13)

   Layout and tokens for core/templates/core/services/*.html, which
   all extend services/_base.html. Moved verbatim out of the first
   page (barrierefreiheit.html) so the ten pages share one copy.

   Shared pieces have their own files: site-nav.css,
   contact-form.css, site-footer.css, bni-float.css.
   The site nav is fixed (92px, 78px under 760px); .service-hero
   and #kontakt leave room for it.
   ============================================================ */

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

:root {
  --bg: #ffffff;
  --bg2: #f7f9fc;
  --navy: #0d1f4e;
  --teal: #0f9d97;
  --teal2: #0cc5bd;
  /* darker teal for text: --teal is ~3.3:1 on white, this is ~5.5:1 (WCAG AA) */
  --teal-text: #0f766e;
  --teal-bg: #e8f8f7;
  --muted: #5a6a8a;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(13,31,78,0.08);
  --shadow-lg: 0 14px 48px rgba(13,31,78,0.14);
  --accent-gradient: linear-gradient(135deg, #0f9d97, #0cc5bd);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.7;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn-main {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.btn-main:hover { background: #132552; }

.service-hero {
  background: linear-gradient(180deg, var(--teal-bg), var(--bg));
  /* 92px clears the fixed site nav (site-nav.css) */
  padding: calc(92px + 4.5rem) 6% 2.25rem;
}

.service-hero-inner, .service-body-inner { max-width: 760px; margin: 0 auto; }

.kicker {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-text);
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
}

.lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 2rem; }

.service-body { padding: 2.25rem 6% 4rem; }

.service-body h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 2.2rem 0 0.6rem;
}

.service-body h2:first-child { margin-top: 0; }

.service-body p { color: var(--muted); font-size: 0.98rem; }

/* Tech label: sits in the hero between lead and CTA. Teal text on the
   light teal tint; --teal-text keeps it at WCAG AA (--teal would be ~3:1). */
/* 12px under the lead (2rem - 1.25rem), 32px above the CTA: the pill belongs
   to the lead, not to the button */
.service-tech { margin: -1.25rem 0 2rem; }
.service-tech:empty { display: none; }

.service-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-text);
  background: var(--teal-bg);
  border: 1px solid rgba(15,157,151,0.25);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.contact { padding: 4.5rem 6%; background: var(--bg2); border-top: 1px solid var(--border); }

/* "#kontakt" links should not land the heading under the fixed nav */
#kontakt { scroll-margin-top: 92px; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-info h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 0.9rem; }
.contact-info p { color: var(--muted); font-size: 0.95rem; }

/* the shared form card sits on --bg2 here, so lift it onto white */
.contact .cform { background: #fff; }

/* ---- optional detail sections (ad landing pages) ---- */

/* role="list" on the <ol>/<ul> keeps list semantics in Safari,
   which drops them when list-style is none */
.service-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin-top: 0.8rem;
}

.service-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.7rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--teal-bg);
  color: var(--teal-text);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-steps strong { display: block; color: var(--navy); }

/* same look as the homepage's "Was bewusst nicht Teil davon war" box */
.service-limits {
  margin-top: 2.4rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.service-limits h2 {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-limits ul { list-style: none; display: grid; gap: 0.35rem; }

.service-limits li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-limits li::before { content: "–"; position: absolute; left: 0; }

.service-faq h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 1.3rem 0 0.25rem;
}

.service-faq h3:first-child { margin-top: 0.5rem; }

@media (max-width: 1020px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .service-hero { padding: calc(78px + 3rem) 5% 1.75rem; }
  #kontakt { scroll-margin-top: 78px; }
  .service-body { padding: 1.75rem 5% 3rem; }
  /* extra clearance so the submit button is not left sitting
     under the fixed BNI pill (bni-float.css) */
  .contact { padding: 3rem 5% 9rem; }
}
