/* ============================================================
   ki-sichtbarkeit.io · Base + Layout (MVP)
   ============================================================ */

/* Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

html { color-scheme: light; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography ---------------------------------------------- */
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: 500; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 600; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p  { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--s-2); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--eyebrow-color);
}

/* Container ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--s-3);
}
@media (min-width: 900px) {
  .wrap { padding-inline: var(--s-5); }
}

/* Sections ------------------------------------------------- */
section {
  position: relative;
  padding-block: var(--s-5);
}
@media (min-width: 900px) {
  section { padding-block: var(--s-7); }
}

/* Navigation ---------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.brand-mark { color: var(--ink); font-weight: 700; }
.brand-dot  { color: var(--pink); font-weight: 700; }
@media (max-width: 400px) {
  .brand { font-size: 14px; }
}
.site-nav .nav-cta {
  margin-left: auto;
  display: none;
}
@media (min-width: 600px) {
  .site-nav .nav-cta { display: inline-flex; }
}

/* Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--touch-min);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 3px; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--pink);
  color: var(--on-pink);
}
.btn-primary:hover { background: var(--pink-text); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 4px;
  min-height: 32px;
}
.btn-ghost:hover { color: var(--pink-text); border-color: var(--pink); transform: none; }

/* Hero ---------------------------------------------------- */
.hero {
  padding-block: var(--s-6) var(--s-5);
}
@media (min-width: 900px) {
  .hero { padding-block: var(--s-7); }
}
/* Sehr kurze Viewports (iPhone SE 568px etc.): CTA in den Fold ziehen */
@media (max-height: 640px) {
  .hero { padding-block: var(--s-2) var(--s-3); }
  .hero h1 { font-size: 28px; line-height: 1.08; }
  .hero .lead { font-size: 15px; line-height: 1.4; margin-top: 4px; }
  .hero-cta-row { margin-top: var(--s-2); }
  .eyebrow { font-size: 11px; }
}
.hero .wrap { display: grid; gap: var(--s-3); }
.hero h1 { text-wrap: balance; max-width: 20ch; }
.hero .lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--sub);
  max-width: 60ch;
  margin-top: var(--s-2);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  margin-top: var(--s-3);
}

/* Section Panel (Problem, Live-Beweis, GTM) --------------- */
.section-panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-panel .body { max-width: var(--measure); color: var(--sub); }
.section-panel h2 { max-width: 22ch; margin-bottom: var(--s-3); }

/* Section Paper */
.section-paper { background: var(--paper); }

/* Personen-Karte (Sektion 6 Trust-Anker) ------------------ */
.person-card {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 520px;
  padding: 20px 24px;
  margin: var(--s-3) 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.person-portrait {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
}
.portrait-initials {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.person-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.person-role {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.4;
}
.person-link {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s ease;
}
.person-link:hover,
.person-link:focus-visible { color: var(--pink-text); }
.person-link:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (max-width: 480px) {
  .person-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
  }
}
.section-paper h2 { max-width: 22ch; margin-bottom: var(--s-3); }
.section-paper .body { max-width: var(--measure); color: var(--sub); }

/* KEI-Check Formular ------------------------------------- */
.section-form { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-form h2 { margin-bottom: var(--s-2); max-width: 22ch; }
.section-form .subhead { color: var(--sub); font-size: clamp(17px, 1.4vw, 19px); max-width: 60ch; margin-bottom: var(--s-3); }
.section-form .body { max-width: var(--measure); color: var(--sub); margin-bottom: var(--s-4); }
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  max-width: 520px;
  display: grid;
  gap: var(--s-2);
}
.form-card label {
  display: grid;
  gap: 6px;
  font-size: var(--fs-small);
  color: var(--sub);
  font-weight: 500;
}
.form-card input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-card input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 25%, transparent);
}
.form-card .btn-primary { margin-top: var(--s-1); }
.form-card .form-note { color: var(--sub); font-size: var(--fs-small); font-style: italic; margin-top: var(--s-1); line-height: 1.5; }
.form-card .form-note + .form-note { margin-top: 4px; }
.form-card .form-note-trust { font-style: normal; }

/* Prozess Steps (Sektion 4) ------------------------------- */
.section-steps { background: var(--paper); }
.section-steps h2 { margin-bottom: var(--s-4); max-width: 22ch; }
.steps {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  counter-reset: stepnum;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  counter-increment: stepnum;
}
.step::before {
  content: 'Schritt ' counter(stepnum, decimal-leading-zero);
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  color: var(--pink-text);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.step h3 { font-size: 18px; margin-bottom: var(--s-2); }
.step p { color: var(--sub); font-size: 15px; line-height: 1.55; }

/* FAQ (Accordion) ---------------------------------------- */
.section-faq { background: var(--paper); }
.section-faq h2 { margin-bottom: var(--s-4); }
.faq-list { display: grid; gap: 0; max-width: 780px; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: 18px 0;
  min-height: 44px;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--pink-text); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
  border-radius: 2px;
}
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
  transition: transform .25s ease;
  color: var(--sub);
}
.faq-item summary:hover::after { color: var(--pink-text); }
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--pink-text);
}
.faq-item p {
  margin: 0 0 var(--s-3) 0;
  color: var(--sub);
  line-height: 1.6;
  max-width: 68ch;
  animation: faqSlide .3s ease-out;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item p { animation: none; }
  .faq-item summary::after { transition: none; }
}

/* Final-CTA ---------------------------------------------- */
.section-cta { background: var(--panel); border-top: 1px solid var(--line); }
.section-cta h2 { margin-bottom: var(--s-3); max-width: 20ch; }
.section-cta .body { color: var(--sub); max-width: 60ch; margin-bottom: var(--s-4); }
.section-cta .body p + p { margin-top: var(--s-2); }
.section-cta .cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.section-cta .cta-note { color: var(--sub); font-size: var(--fs-small); margin-top: var(--s-2); }
@media (max-width: 600px) {
  .section-cta .cta-row { flex-direction: column; align-items: stretch; }
  .section-cta .cta-row .btn { width: 100%; text-align: center; }
}

/* GTM-Partner-Block: Wortmarke mit Pink-Unterstrich ------- */
.pp-mark {
  display: inline-block;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 1px;
  font-weight: 600;
}

/* Footer ------------------------------------------------- */
.site-foot {
  padding-block: var(--s-4);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--sub);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  justify-content: space-between;
}
.site-foot a { color: var(--sub); }
.site-foot a:hover { color: var(--ink); }

/* Reveal -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--rv-y), 0);
  transition: opacity var(--rv-dur) var(--rv-ease), transform var(--rv-dur) var(--rv-ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: translate3d(0, 0, 0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* geo-audit Unterseite: Ebenen-Blöcke --------------------- */
.ebenen {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .ebenen { grid-template-columns: repeat(3, 1fr); } }
.ebene {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
}
.ebene h3 { font-size: 18px; margin-bottom: var(--s-2); }
.ebene .ebene-tag { font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); color: var(--pink-text); text-transform: uppercase; font-weight: 500; margin-bottom: var(--s-1); display: block; }
.ebene p { color: var(--sub); font-size: 15px; line-height: 1.55; }

/* Bekommst-Blöcke (geo-audit Sektion 3) ------------------- */
.bekommst {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  max-width: 820px;
}
.bekommst .item {
  border-left: 2px solid var(--pink);
  padding: 4px 0 4px var(--s-3);
}
.bekommst .item h3 { font-size: 18px; margin-bottom: 6px; }
.bekommst .item p { color: var(--sub); font-size: 15px; line-height: 1.55; }

/* Phasen (geo-audit Sektion 4) ---------------------------- */
.phasen {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  counter-reset: phasenum;
}
@media (min-width: 900px) { .phasen { grid-template-columns: repeat(2, 1fr); } }
.phase {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  counter-increment: phasenum;
}
.phase::before {
  content: 'Phase ' counter(phasenum);
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  color: var(--pink-text);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.phase h3 { font-size: 18px; margin-bottom: var(--s-2); }
.phase p { color: var(--sub); font-size: 15px; line-height: 1.55; }

/* Formular-JS-Erweiterungen (Honeypot, Status, Success-Panel) ------- */
.form-card .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.form-card .form-status {
  color: var(--sub);
  font-size: var(--fs-small);
  margin-top: var(--s-1);
  line-height: 1.5;
}
.form-card .form-status[data-kind="error"] { color: var(--pink-text); }
.form-card-success .form-success-title {
  font-size: clamp(20px, 1.6vw, 22px);
  margin-bottom: var(--s-2);
}
.form-card-success .form-success-body {
  color: var(--sub);
  line-height: 1.55;
}
