/* ============================================================
   BAFA-geförderte KI-Beratung - Hüttich Consulting
   Gleiches Design-System wie waldorf-recruiting (dieselbe
   Onepage-Vorlage); siehe sources/bafa-beratung/.
   ============================================================ */

@import url("/assets/fonts/fonts.css");

:root {
  /* Farben */
  --color-text: #111111;
  --color-text-soft: #4d5457;
  --color-bg: #ffffff;
  --color-sand: #e6e0d4;
  --color-stone: #ececea;
  --color-teal: #293d40;      /* Kopf- und Fußzeile */
  --color-deep: #213033;      /* Kontaktabschnitt */
  --color-accent: #fa7116;    /* Buttons */
  --color-accent-dark: #d95c0a;
  --color-border: #d9d5cc;

  /* Typografie */
  --font-heading: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-weight: 500;
  --heading-spacing: -0.4px;
  --heading-leading: 1.3;

  --step-hero: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-h2: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem);
  --step-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-body: clamp(1rem, 0.97rem + 0.16vw, 1.0938rem);
  --step-small: 0.9375rem;

  /* Layout */
  --container: 1250px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(3.5rem, 7vw, 6rem);
  --radius: 14px;
  --radius-sm: 8px;
  --header-height: 4.75rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-spacing);
  line-height: var(--heading-leading);
}

p + p { margin-top: 1em; }
a:not([class]) { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Kopfzeile ---------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: var(--color-teal);
}
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem clamp(1rem, 3vw, 2rem);
  min-height: var(--header-height);
  padding-block: 0.75rem;
}
.header__logo img { height: 34px; width: auto; }
.header__contact {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem clamp(1rem, 3vw, 2rem);
  font-size: var(--step-small);
}
.header__contact a { display: inline-flex; align-items: center; gap: 0.5rem; }
.header__contact a:hover { color: var(--color-accent); }
.header__contact svg { flex: none; opacity: 0.85; }

/* ---------- Buttons ------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 61px;
  padding: 0.6rem 1.9rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: var(--color-accent);
  border: 0;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, transform 0.15s ease;
}
.button:hover { background: var(--color-accent-dark); }
.button:active { transform: translateY(1px); }
.button--sm { border-radius: var(--radius-sm); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Abschnitte ---------------------------------------- */
.section { padding-block: var(--section-space); }
.section--sand { background: var(--color-sand); }
.section--stone { background: var(--color-stone); }
.section--deep { color: #fff; background: var(--color-deep); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-title { font-size: var(--step-h2); }
.section-title--center { text-align: center; margin-inline: auto; max-width: 26ch; }

/* ---------- Cover --------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section-space); }
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62em) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}
.hero__title { font-size: var(--step-hero); font-weight: 600; }
.hero__text { margin-top: 1.5rem; max-width: 54ch; color: var(--color-text-soft); }
.hero .button { margin-top: 2rem; }
.hero__media img { width: 100%; border-radius: var(--radius); }

/* ---------- Vorteile ------------------------------------------ */
.pillars {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 48em) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pillar { text-align: center; }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  color: var(--color-teal);
  background: #fff;
  border-radius: 50%;
}
.pillar h3 { font-size: var(--step-h3); font-weight: 600; }

/* ---------- Video --------------------------------------------- */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius);
}
.video img,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
}
.video__play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(17 17 17 / 0.15);
  transition: background-color 0.2s ease;
}
.video__play:hover::before { background: rgb(17 17 17 / 0.32); }
.video__play svg { position: relative; filter: drop-shadow(0 2px 12px rgb(0 0 0 / 0.4)); }
.video__hint { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--color-text-soft); }

/* ---------- Zweispalter --------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62em) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse .split__media { order: -1; }
}
.split__body > * + * { margin-top: 1.25rem; }
.split__body h2 { font-size: var(--step-h2); }

.problems {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-left: 1.35rem;
  list-style: none;
}
.problems li { position: relative; }
.problems li::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
}
.lead-strong { font-weight: 700; }

/* ---------- Ablauf (Timeline) --------------------------------- */
.timeline { display: grid; gap: 0; margin-top: 2.5rem; }
.timeline__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem clamp(1rem, 3vw, 2rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--color-border);
}
.timeline__item:last-child { border-bottom: 1px solid var(--color-border); }
.timeline__number {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
}
.timeline h3 { font-size: var(--step-h3); font-weight: 600; }
.timeline p { margin-top: 0.5rem; color: var(--color-text-soft); }

.process-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 62em) {
  .process-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
}
.process-grid__media img { width: 100%; border-radius: var(--radius); }

/* ---------- So arbeiten wir ----------------------------------- */
.steps {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 3rem;
}
@media (min-width: 44em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  background: #fff;
  border-radius: var(--radius);
}
.step--code img { object-fit: contain; aspect-ratio: 1; padding: 0.5rem; }
.step p { margin-top: 1rem; font-weight: 500; }

/* ---------- Partner ------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 3rem;
}
.partners img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-inline: auto;
  mix-blend-mode: multiply;
}

/* ---------- Kontakt ------------------------------------------- */
.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62em) {
  .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
}
.contact img { width: 100%; border-radius: var(--radius); }
.contact h2 { font-size: var(--step-h2); }
.contact p { margin-top: 1.25rem; color: rgb(255 255 255 / 0.85); }
.contact__person { margin-top: 1.5rem; display: grid; gap: 0.25rem; font-size: var(--step-small); }
.contact__person strong { font-size: var(--step-body); }
.contact__person a { color: #fff; text-decoration: underline; }
.contact .button { margin-top: 2rem; }

/* ---------- Fußzeile ------------------------------------------ */
.footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  color: #fff;
  background: var(--color-teal);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: var(--step-small);
}
.footer__logo img { height: 34px; width: auto; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a:hover { color: var(--color-accent); }

/* ---------- Einblenden ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Was wird gefördert -------------------------------- */
.services {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 44em) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68em) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-bg);
}
.service__icon { display: block; margin-bottom: 1rem; color: var(--color-accent); }
.service h3 { font-size: var(--step-h3); font-weight: 600; }
.service p { margin-top: 0.4rem; color: var(--color-text-soft); }

/* ---------- Fördertabelle ------------------------------------- */
.funding-table {
  width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  text-align: left;
}
.funding-table th,
.funding-table td { padding: 1rem 0.75rem; vertical-align: top; }
.funding-table thead th {
  font-weight: 600;
  border-bottom: 2px solid var(--color-teal);
}
.funding-table thead th:not(:first-child),
.funding-table tbody td { text-align: center; }
.funding-table tbody th { font-weight: 600; }
.funding-table tbody tr + tr > * { border-top: 1px solid var(--color-border); }
.funding-table th:first-child { border-right: 2px solid var(--color-teal); }
.funding-table small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-soft);
}
.requirements {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  list-style: none;
}
.requirements li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  font-weight: 600;
}
.requirements svg { color: var(--color-accent); }

/* ---------- Kundenstimmen ------------------------------------- */
.quotes {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 3rem;
}
@media (min-width: 48em) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote {
  display: flex;
  flex-direction: column;
  background: var(--color-sand);
  border-radius: var(--radius);
  overflow: hidden;
}
.quote img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.quote__body { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; flex: 1; }
.quote blockquote { font-size: 1.0625rem; }
.quote figcaption { margin-top: auto; font-size: var(--step-small); color: var(--color-text-soft); }
.quote figcaption strong { display: block; color: var(--color-text); }
