/* ==========================================================================
   ATZINGER CONSULTING · Main Stylesheet
   Design: Editorial minimalism · Montserrat · Ink-Blue + Burgunder
   ========================================================================== */

/* --- Font Faces (self-hosted, DSGVO-sauber) ------------------------------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-latin-300-normal.woff2') format('woff2'),
       url('../fonts/montserrat-latin-300-normal.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'),
       url('../fonts/montserrat-latin-400-normal.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'),
       url('../fonts/montserrat-latin-500-normal.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2'),
       url('../fonts/montserrat-latin-600-normal.woff') format('woff');
}

/* --- Design Tokens -------------------------------------------------------- */
:root {
  /* Colors — matching the brand package exactly */
  --color-ink-blue:      #1E3A5F;
  --color-ink-blue-soft: #2B4A73;
  --color-burgundy:      #7A2E3A;
  --color-burgundy-hover:#8F3845;
  --color-light-burg:    #C89BA5;
  --color-cream:         #FBFAF7;
  --color-cream-soft:    #F5F2EC;
  --color-ink-grey:      #6B6B6B;
  --color-body:          #3C3C3C;
  --color-line:          #E5E1DA;

  /* Typography */
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-xxl: 9rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 860px;
  --content-padding: 1.5rem;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-body);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-ink-blue); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--color-burgundy); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-ink-blue);
  line-height: 1.15;
  font-weight: 300;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 1.5rem;
}

.display-xl {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.display-lg {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.display-md {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.display-sm {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-ink-grey);
  max-width: 40em;
}

p { max-width: 38em; }
p + p { margin-top: 1rem; }

/* Accent: single-letter highlight (mirrors the logo "I" in Ink-Blue) */
.accent-letter {
  color: var(--color-ink-blue);
  font-weight: 400;
}

/* Subtle period at end of phrases */
.dot { color: var(--color-burgundy); }

/* --- Layout Containers ---------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

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

.section {
  padding: var(--space-xl) 0;
}
.section-lg { padding: var(--space-xxl) 0; }
.section-sm { padding: var(--space-lg) 0; }

@media (max-width: 768px) {
  .section { padding: var(--space-lg) 0; }
  .section-lg { padding: var(--space-xl) 0; }
}

/* --- Signature Element: Burgundy vertical accent line -------------------- */
.accent-line {
  position: relative;
  padding-left: 2rem;
}
.accent-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 2px;
  background: var(--color-burgundy);
}

/* --- Header / Navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--color-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-logo img {
  height: 58px;
  width: auto;
}

.site-footer .site-logo img,
.site-footer img.footer-logo {
  height: 54px;
  width: auto;
}

@media (max-width: 640px) {
  .site-logo img {
    height: 46px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-blue);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: var(--color-burgundy);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-ink-blue);
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;         /* fallback */
    height: 100dvh;        /* dynamic viewport for iOS Safari */
    background: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding: 5rem 2rem 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
    padding: 0.5rem 0;
  }

  .main-nav a::after { display: none; }

  .main-nav a.active {
    color: var(--color-burgundy);
  }

  body.nav-open { overflow: hidden; }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.05rem 2.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-burgundy);
  color: var(--color-cream);
}
.btn-primary:hover {
  background: var(--color-burgundy-hover);
  color: var(--color-cream);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -12px rgba(122, 46, 58, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink-blue);
  border-color: var(--color-ink-blue);
}
.btn-secondary:hover {
  background: var(--color-ink-blue);
  color: var(--color-cream);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink-blue);
  padding: 0.5rem 0;
}
.btn-ghost::after {
  content: "→";
  font-size: 1em;
  transition: transform 0.25s var(--ease);
}
.btn-ghost:hover {
  color: var(--color-burgundy);
}
.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 960px;
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero .lead {
  margin-bottom: 2.8rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Subtle decorative mark in hero — echo of the logo */
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 30%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 46, 58, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

/* --- Featured Block (KI-Check highlight on startseite) ------------------- */
.featured-ki {
  background: var(--color-ink-blue);
  color: var(--color-cream);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.featured-ki::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-burgundy);
}

.featured-ki h2, .featured-ki h3 {
  color: var(--color-cream);
}

.featured-ki .eyebrow {
  color: var(--color-light-burg);
}

.featured-ki .lead {
  color: rgba(251, 250, 247, 0.85);
  max-width: 42em;
}

.featured-ki-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 860px) {
  .featured-ki-inner { grid-template-columns: 1fr; gap: var(--space-md); }
}

.featured-ki-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.featured-ki-step {
  display: flex;
  gap: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(251, 250, 247, 0.15);
}
.featured-ki-step:first-child { border-top: none; }

.featured-ki-step-number {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-light-burg);
  min-width: 2rem;
  padding-top: 0.25rem;
}

.featured-ki-step-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(251, 250, 247, 0.9);
}

.featured-ki-step-text strong {
  color: var(--color-cream);
  font-weight: 500;
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
}

.featured-ki .btn-primary {
  background: var(--color-cream);
  color: var(--color-ink-blue);
  margin-top: 2rem;
}
.featured-ki .btn-primary:hover {
  background: var(--color-light-burg);
  color: var(--color-ink-blue);
}

/* --- Service Cards (Leistungen) ------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.service-card {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--color-line);
  background: transparent;
  transition: background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.service-card:last-child { border-right: none; }

.service-card:hover {
  background: var(--color-cream-soft);
}

.service-card-number {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-burgundy);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}

.service-card p {
  color: var(--color-ink-grey);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
}

.service-card .btn-ghost {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--color-line);
  }
  .service-card:last-child { border-bottom: none; }
}

/* --- Service Detail Blocks (on leistungen.html) -------------------------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-line);
}

.service-block:first-of-type { border-top: none; }

.service-block-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  padding-top: 0.3rem;
}

.service-block h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.service-block p { margin-bottom: 1rem; font-size: 1rem; }

.service-block ul {
  list-style: none;
  margin-top: 1.5rem;
}
.service-block ul li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.95rem;
}
.service-block ul li:last-child { border-bottom: none; }
.service-block ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-burgundy);
  font-weight: 500;
}

@media (max-width: 768px) {
  .service-block { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* --- Team Section --------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-member {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.team-member-featured {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.team-member-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(15%);
  transition: filter 0.4s var(--ease);
}

.team-member-featured .team-member-photo {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
}

.team-member:hover .team-member-photo { filter: grayscale(0%); }

.team-member-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-ink-blue);
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.team-member-role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 1rem;
}

.team-member-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-body);
}

/* Profile page layout */
.profile-hero {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: center;
}
.profile-hero-photo {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

@media (max-width: 860px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero-photo { max-width: 300px; }
}

/* --- Forms ---------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ink-blue);
}

.form-field .required {
  color: var(--color-burgundy);
  margin-left: 0.2em;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.8rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink-blue);
  transition: border-color 0.25s var(--ease);
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  padding: 0.8rem 0;
  line-height: 1.6;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--color-burgundy);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #BBB5AA;
  font-weight: 300;
}

/* Honeypot — hidden from users, catches bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--color-ink-grey);
  line-height: 1.55;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--color-burgundy);
}

.form-submit { margin-top: 0.5rem; }

/* ---------- KI-fit Banner (Quiz-Ergebnis aus ki-fit Subdomain) ----------- */
/* Sitzt in der dunkelblauen Termin-Sektion oberhalb des Formulars. */
.kifit-banner {
  display: none;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  background: rgba(251, 250, 247, 0.06);
  border: 1px solid rgba(251, 250, 247, 0.18);
  border-left: 3px solid var(--color-light-burg);
  border-radius: 4px;
  color: var(--color-cream);
}
.kifit-banner.kifit-visible {
  display: block;
  animation: kifit-fade 0.5s var(--ease-out);
}
@keyframes kifit-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.kifit-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-light-burg);
  margin-bottom: 0.5rem;
}
.kifit-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-cream);
  margin-bottom: 0.75rem;
}
.kifit-summary {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(251, 250, 247, 0.9);
  margin-bottom: 0.5rem;
}
.kifit-summary strong {
  color: var(--color-cream);
  font-weight: 500;
}
.kifit-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 1.25rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(251, 250, 247, 0.12);
  border-bottom: 1px solid rgba(251, 250, 247, 0.12);
}
.kifit-stat-label {
  font-size: 0.7rem;
  color: rgba(251, 250, 247, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.kifit-stat-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.4;
}
.kifit-closing {
  font-size: 0.85rem;
  color: rgba(251, 250, 247, 0.65);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 640px) {
  .kifit-banner { padding: 1.5rem 1.25rem; }
  .kifit-title  { font-size: 1.1rem; }
  .kifit-stats  { gap: 1rem; }
}

/* ---------- Dark form variant (for sections with ink-blue background) ---- */
.form--on-dark .form-field label {
  color: var(--color-cream);
  opacity: 0.95;
}

.form--on-dark .form-field input,
.form--on-dark .form-field textarea,
.form--on-dark .form-field select {
  color: var(--color-cream);
  border-bottom-color: rgba(251, 250, 247, 0.35);
  caret-color: var(--color-cream);
}

.form--on-dark .form-field input:focus,
.form--on-dark .form-field textarea:focus,
.form--on-dark .form-field select:focus {
  border-bottom-color: var(--color-light-burg);
}

.form--on-dark .form-field input::placeholder,
.form--on-dark .form-field textarea::placeholder {
  color: rgba(251, 250, 247, 0.5);
}

/* Native date/time pickers – force light icon on dark bg (webkit only) */
.form--on-dark .form-field input[type="date"],
.form--on-dark .form-field input[type="time"] {
  color-scheme: dark;
}

.form--on-dark .form-field .required {
  color: var(--color-light-burg);
}

.form--on-dark .form-consent {
  color: rgba(251, 250, 247, 0.85);
}

.form--on-dark .form-consent a {
  color: var(--color-light-burg);
  text-decoration: underline;
}

/* Form feedback messages — designed to be readable on both cream and ink-blue backgrounds */
.form-message {
  padding: 1.25rem 1.5rem;
  background: var(--color-cream);
  border-left: 3px solid;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--color-ink-blue);
  box-shadow: 0 4px 20px -8px rgba(30, 58, 95, 0.15);
}
.form-message strong {
  font-weight: 500;
  color: var(--color-ink-blue);
}
.form-message a { color: var(--color-burgundy); }
.form-message-success {
  border-color: var(--color-ink-blue);
}
.form-message-error {
  border-color: var(--color-burgundy);
}

/* --- FAQ ------------------------------------------------------------------ */
.faq-item {
  border-bottom: 1px solid var(--color-line);
  padding: 1.6rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--color-line); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-ink-blue);
  padding: 0.3rem 0;
  letter-spacing: 0.005em;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-burgundy);
  transition: transform 0.3s var(--ease);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
  color: var(--color-body);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

/* --- Process Steps (KI-Check page) --------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
  margin-top: var(--space-md);
}

.process-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  position: relative;
}
.process-step:last-child { border-right: none; }

.process-step-num {
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-light-burg);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  letter-spacing: 0.01em;
}

.process-step-meta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 1rem;
  display: block;
}

.process-step p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-ink-grey);
}

@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-step {
    border-right: none;
  }
}

/* --- Deliverables list ---------------------------------------------------- */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: var(--space-md);
}

.deliverable {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-line);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.deliverable-marker {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-burgundy);
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
  min-width: 2rem;
}

.deliverable-text { font-size: 0.95rem; line-height: 1.6; color: var(--color-body); }
.deliverable-text strong {
  color: var(--color-ink-blue);
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .deliverables { grid-template-columns: 1fr; }
}

/* --- Two-column content --------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* --- Pull quote / statement block ---------------------------------------- */
.statement {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-ink-blue);
  max-width: 24em;
  letter-spacing: 0.005em;
}
.statement::first-letter { color: var(--color-burgundy); }

/* --- CTA block ------------------------------------------------------------ */
.cta-block {
  background: var(--color-ink-blue);
  color: var(--color-cream);
  padding: var(--space-xl) var(--content-padding);
  text-align: center;
  position: relative;
}

.cta-block h2 {
  color: var(--color-cream);
  margin-bottom: 1.5rem;
}

.cta-block p {
  color: rgba(251, 250, 247, 0.8);
  margin: 0 auto 2.5rem;
  max-width: 42em;
}

.cta-block .btn-primary {
  background: var(--color-burgundy);
  color: var(--color-cream);
}
.cta-block .btn-primary:hover {
  background: var(--color-burgundy-hover);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink-blue);
  color: rgba(251, 250, 247, 0.7);
  padding: var(--space-lg) 0 var(--space-md);
  font-size: 0.9rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}

.footer-brand img {
  height: 55px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1) opacity(0.85);
}

.footer-brand p {
  color: rgba(251, 250, 247, 0.6);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 22em;
}

.footer-col h4 {
  color: var(--color-cream);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: rgba(251, 250, 247, 0.7);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.footer-col a:hover {
  color: var(--color-light-burg);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 250, 247, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: rgba(251, 250, 247, 0.5);
  letter-spacing: 0.05em;
}

.footer-bottom > div:first-child {
  white-space: nowrap;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom > div:first-child {
    white-space: normal;
  }
}

/* --- Legal pages (Impressum/Datenschutz) --------------------------------- */
.legal-content {
  max-width: 760px;
}
.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
}
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 2.5rem 0 1rem;
  color: var(--color-ink-blue);
  letter-spacing: 0.01em;
}
.legal-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.8rem 0 0.8rem;
  color: var(--color-ink-blue);
}
.legal-content p,
.legal-content ul {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-body);
  max-width: none;
}
.legal-content ul { padding-left: 1.2rem; }
.legal-content li { margin-bottom: 0.3rem; }
.legal-content strong { color: var(--color-ink-blue); font-weight: 500; }

/* --- Scroll reveal animations -------------------------------------------- */
/* Progressive enhancement: visible by default; only hidden when JS has run */
.reveal {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}

/* --- Utility classes ------------------------------------------------------ */
.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 4rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 4rem; }
