/* Vitalis Digital – One-Page, mobil zuerst, ohne externes Tracking */
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/SourceSerifPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/SourceSerifPro-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-900: #0c262e;
  --teal-800: #123a44;
  --teal-700: #1a4c58;
  --teal-600: #346168;
  --gold: #e8b86d;
  --gold-hover: #f0c889;
  --cream: #f4f0e8;
  --cream-2: #ece7dd;
  --paper: #fbf8f2;
  --ink: #0c262e;
  --ink-soft: #3a4f55;
  --line: #d6cfc3;
  --muted: #bcd1d1;
  --white: #f7f8f6;
  --danger: #8a2b2b;
  --font-sans: "Source Sans Pro", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  --font-serif: "Source Serif Pro", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --measure: 70rem;
  --narrow: 42rem;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(12, 38, 46, 0.06), 0 8px 24px rgba(12, 38, 46, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-800); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-900); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--teal-900);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 4px;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(calc(100% - 2rem), var(--narrow));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark span { font-weight: 400; color: var(--ink-soft); }

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  color: var(--ink);
}
.nav-button span,
.nav-button span::before,
.nav-button span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}
.nav-button span::before,
.nav-button span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-button span::before { top: -5px; }
.nav-button span::after { top: 5px; }
.nav-button .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
}
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.65rem 0.5rem;
  border-radius: 6px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--cream-2);
}
.nav-cta {
  background: var(--teal-900) !important;
  color: var(--white) !important;
  text-align: center;
  margin-top: 0.35rem;
}
.nav-cta:hover { background: var(--teal-800) !important; }

@media (min-width: 840px) {
  .nav-button { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.45rem 0.7rem; }
  .nav-cta {
    margin-top: 0;
    margin-left: 0.4rem;
    padding-inline: 0.95rem !important;
    border-radius: 8px;
  }
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 80% 15%, rgba(28, 82, 94, 0.35), transparent 55%),
    linear-gradient(180deg, var(--teal-900) 0%, var(--teal-800) 100%);
  color: var(--white);
  position: relative;
  padding: 3.25rem 0 3.5rem;
}
@media (min-width: 840px) {
  .hero { padding: 4.5rem 0 4.75rem; }
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.hero .lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-gold {
  background: var(--gold);
  color: var(--teal-900);
}
.btn-gold:hover { background: var(--gold-hover); color: var(--teal-900); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(188, 209, 209, 0.45);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-dark {
  background: var(--teal-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--teal-800); color: var(--white); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-meta li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Sections */
section { padding: 3.25rem 0; }
.section-alt { background: var(--paper); }
.section-dark {
  background: var(--teal-900);
  color: var(--white);
}
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-600);
  margin: 0 0 0.4rem;
}
.section-dark .kicker { color: var(--gold); }
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}
.section-intro {
  max-width: 40rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.section-dark .section-intro { color: var(--muted); }
.tax-note {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Price groups */
.price-groups {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .price-groups { grid-template-columns: 1fr 1fr; }
  .price-group--wide { grid-column: 1 / -1; }
}
.price-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1rem;
  box-shadow: var(--shadow);
}
.section-alt .price-group { background: #fffdf8; }
.price-group h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(214, 207, 195, 0.7);
}
.price-row:last-of-type { border-bottom: 0; }
.price-name { color: var(--ink); }
.price-name small {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 0.15rem;
}
.price-value {
  font-weight: 600;
  white-space: nowrap;
  color: var(--teal-800);
  text-align: right;
}
.not-offered {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Ablauf */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}
.step p { margin: 0; color: var(--ink-soft); }

/* Beispiele */
.sample-note {
  background: var(--cream-2);
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1rem;
  margin: 0 0 1.75rem;
  border-radius: 0 8px 8px 0;
}
.logo-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
.sample-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sample-card figcaption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.sample-card strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.sample-card img {
  width: 100%;
  background: var(--cream-2);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.doc-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .doc-grid { grid-template-columns: 1fr 1fr; }
}
.doc-grid img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

/* Kontakt */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 840px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact-copy p { color: var(--muted); }
.contact-copy a { color: var(--gold); }
.contact-copy a:hover { color: var(--gold-hover); }
.mail-direct {
  font-size: 1.1rem;
  font-weight: 600;
}

.form {
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid rgba(188, 209, 209, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 0.3rem;
}
.form .field { margin-bottom: 0.95rem; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(188, 209, 209, 0.35);
  background: var(--paper);
  color: var(--ink);
}
.form textarea { min-height: 8.5rem; resize: vertical; }
.form .hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}
.form-status[data-state="error"] { color: #f3c2c2; }
.form-status[data-state="ok"] { color: var(--gold); }

/* Footer */
.site-footer {
  background: #0a1e24;
  color: var(--muted);
  padding: 2rem 0 2.25rem;
  font-size: 0.92rem;
}
.footer-inner {
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--gold-hover); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.site-footer small { display: block; margin-top: 0.35rem; color: #8aa0a5; }

/* Legal pages */
.legal {
  padding: 2.5rem 0 3.5rem;
}
.legal h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
}
.legal .stand {
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
}
.legal h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal address { font-style: normal; }
.widerruf-form {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
}
.widerruf-form p { margin: 0.4rem 0; }

.page-hero-lite {
  background: var(--teal-900);
  color: var(--white);
  padding: 1.75rem 0;
  border-left: 8px solid var(--gold);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  text-align: center;
}
.error-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

#leistungen, #ablauf, #beispiele, #kontakt, #main {
  scroll-margin-top: 4.75rem;
}
