/* servicenerd.ai – Maßnahmentag Optimierung IT-Betrieb
   Schriften liegen lokal (keine Anfrage an Dritte). */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/barlow-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-wght-normal.woff2') format('woff2');
}

:root {
  --orange: #ffa800;
  --orange-soft: #fff4db;
  --navy: #1a1a2e;
  --navy-deep: #12121f;
  --ink: #1a1a2e;
  --ink-soft: #3d3e52;
  --muted: #55566a;
  --paper: #f7f5f0;
  --line: #45465e;
  --on-navy: #d9dae6;
  --white: #ffffff;
  --danger: #b3261e;
  --display: 'Barlow', 'Arial Narrow', Arial, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--orange);
}

[id] {
  scroll-margin-top: 24px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background-color 0.12s ease,
    color 0.12s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  flex: none;
  width: 22px;
  height: 22px;
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy svg {
  stroke: var(--orange);
}
.btn-orange {
  background: var(--orange);
  color: var(--navy);
}
.btn-orange svg {
  stroke: var(--navy);
}
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-small {
  min-height: 48px;
  padding: 10px 22px;
  font-size: 1.0625rem;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ---------- Kopf und Hero ---------- */

.hero {
  background: var(--orange);
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--navy);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-weight: 600;
  font-size: 1.0625rem;
}
.site-nav a:not(.btn) {
  padding: 12px 0;
  text-decoration: none;
}
.site-nav a:not(.btn):hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero-body {
  padding-top: 56px;
  padding-bottom: 88px;
}
.eyebrow {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.125rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.9vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.hero-rule {
  width: 180px;
  height: 8px;
  margin: 32px 0;
  background: var(--navy);
}
.hero-sub {
  margin-bottom: 40px;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.3;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 56px;
  padding: 0;
  list-style: none;
}
.facts li {
  flex: 1 1 240px;
  padding-top: 14px;
  border-top: 2px solid var(--navy);
}
.facts span {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}
.facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.25;
}

/* ---------- Abschnitte ---------- */

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}
.section-tight-top {
  padding-top: 0;
}
.band-paper {
  background: var(--paper);
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
}
.section-lead {
  margin-top: 12px;
  font-size: 1.25rem;
  color: var(--ink-soft);
}
.marker {
  box-shadow: inset 0 -0.28em 0 var(--orange);
}

.intro {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
}
.intro p {
  flex: 1 1 400px;
}
.intro-lead {
  font-size: 1.5rem;
  line-height: 1.42;
  font-weight: 600;
}
.intro-text {
  color: var(--ink-soft);
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 32px;
}
.pillar {
  flex: 1 1 280px;
  padding-top: 24px;
  border-top: 6px solid var(--orange);
}
.pillar h3 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.2;
}
.pillar p {
  color: var(--ink-soft);
}

/* ---------- Ablauf ---------- */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 0;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}
.step {
  flex: 1 1 230px;
}
.step-rail {
  display: flex;
  align-items: center;
}
.step-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
}
.step-rail::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--orange);
}
.step-main .step-num {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 0 0 4px var(--navy);
}
.step-body {
  padding-right: 28px;
}
.step h3 {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
}
.step-meta {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- Ergebnis ---------- */

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 56px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: 16px;
}
.checklist svg {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  stroke: var(--navy);
}

/* ---------- Brauchen + Preis ---------- */

.offer {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: flex-start;
}
.needs {
  flex: 1 1 400px;
}
.needs h3 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
}
.needs ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
}
.price-card {
  flex: 1 1 400px;
  padding: 36px;
  border: 3px dashed var(--orange);
}
.price-label {
  font-size: 1.0625rem;
  color: var(--muted);
}
.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 4rem);
  line-height: 1.1;
}
.price small {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--muted);
}
.price-note {
  margin: 4px 0 20px;
  font-size: 1rem;
  color: var(--muted);
}
.price-card .btn {
  margin-top: 28px;
}
.footnote {
  margin-top: 32px;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- Sabine ---------- */

.sabine {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
  padding: 48px;
  background: var(--orange);
}
.sabine-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
}
.sabine-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--orange);
}
.sabine-text {
  flex: 1 1 480px;
}
.sabine h3 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.2;
}
.sabine p {
  font-size: 1.25rem;
}
.sabine .talk {
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
}

/* ---------- Buchung ---------- */

.booking {
  background: var(--navy);
  color: var(--white);
}
.booking-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: flex-start;
  padding-top: 96px;
  padding-bottom: 96px;
}
.booking-info {
  flex: 1 1 340px;
}
.booking-info h2 {
  margin-bottom: 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.125rem, 4.4vw, 3.25rem);
  line-height: 1.08;
}
.booking-info h2 span {
  color: var(--orange);
}
.booking-info > p {
  font-size: 1.25rem;
  color: var(--on-navy);
}
.booking-contact {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--on-navy);
}
.booking-contact strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--white);
}
.booking-contact a {
  color: var(--orange);
}

.booking-form {
  flex: 1.3 1 460px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.field {
  min-width: 0;
}
.field-row .field {
  flex: 1 1 200px;
}
.field label,
.booking-form legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-weight: 600;
  font-size: 1rem;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.field textarea {
  min-height: 112px;
  resize: vertical;
}
.field input::placeholder {
  color: #6b6c80;
}
/* Das Formular sitzt auf Weiß: Der orange Fokusrahmen der dunklen Fläche
   wäre dort kaum zu sehen. */
.booking-form :focus-visible {
  outline-color: var(--navy);
}
.field [aria-invalid='true'] {
  border-color: var(--danger);
}
.field-error {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--danger);
}
.booking-form fieldset {
  padding: 0;
  border: 0;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.choice {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  cursor: pointer;
}
.choice:has(input:checked) {
  background: var(--orange-soft);
}
.choice input,
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--navy);
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.45;
}
.consent input {
  margin-top: 1px;
}
.form-note {
  font-size: 0.9375rem;
  color: var(--muted);
}
.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.form-status[hidden] {
  display: none;
}
.form-status.is-error {
  background: #fde8e6;
  color: #7a1a14;
}
/* Honeypot: für Menschen unsichtbar, nicht per display:none (Bots prüfen das) */
.hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-grid[hidden] {
  display: none;
}
.booking-done {
  padding-top: 96px;
  padding-bottom: 96px;
}
.booking-done[hidden] {
  display: none;
}
.booking-done:focus {
  outline: none;
}
.done-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-bottom: 40px;
}
.done-head > div:last-child {
  flex: 1 1 320px;
}
.done-head h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.1;
}
.done-head p {
  font-size: 1.25rem;
  color: var(--on-navy);
}
.done-badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange);
}
.done-badge svg {
  width: 38px;
  height: 38px;
  stroke: var(--navy);
}

/* ---------- Terminbuchung (eingebettet von msp-support.de) ---------- */

.termin-frame {
  margin-top: 40px;
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
}
.booking-done .termin-frame {
  margin-top: 0;
}
.termin-frame:empty {
  display: none;
}
.termin-frame iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  border: 0;
}
#termin[hidden] {
  display: none;
}

/* ---------- Fuß ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy);
  font-size: 1rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.site-footer .wordmark {
  font-size: 1.375rem;
  color: var(--white);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.footer-links a {
  display: inline-block;
  padding: 12px 0;
  color: var(--white);
}

/* ---------- Rechtstexte, Danke-Seite ---------- */

.plain-header {
  background: var(--orange);
}
.legal {
  max-width: 800px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.legal h1 {
  margin-bottom: 32px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
}
.legal h2 {
  margin: 48px 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.2;
}
.legal h3 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
}
.legal p,
.legal ul {
  margin-bottom: 14px;
}
.legal ul {
  padding-left: 22px;
}
.legal a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.legal address {
  font-style: normal;
  margin-bottom: 14px;
}
.back-link {
  display: inline-block;
  margin-top: 40px;
  font-weight: 600;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 720px) {
  body {
    font-size: 1.0625rem;
  }
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-body {
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .section-tight-top {
    padding-top: 0;
  }
  .site-nav {
    gap: 0 20px;
  }
  .site-nav .nav-optional {
    display: none;
  }
  .intro-lead {
    font-size: 1.25rem;
  }
  .checklist {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .steps {
    flex-direction: column;
    gap: 0;
  }
  .step {
    flex: none;
    display: flex;
    gap: 20px;
  }
  .step-rail {
    flex-direction: column;
  }
  .step-rail::after {
    width: 2px;
    height: auto;
    min-height: 24px;
  }
  .step:last-child .step-rail::after {
    display: none;
  }
  .step-body {
    padding: 0 0 32px;
  }
  .step h3 {
    margin-top: 8px;
  }
  .price-card,
  .sabine,
  .booking-form {
    padding: 24px;
  }
  .booking-grid,
  .booking-done {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

@media print {
  .site-nav,
  .cta-row,
  .booking,
  .skip-link {
    display: none;
  }
}
