/* Krall Solutions – gemeinsames Stylesheet */

/* Schriften (lokal) */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/OpenSans-Variable.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/OpenSans-Italic-Variable.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Homemade Apple"; src: url("/assets/fonts/HomemadeApple-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Farben */
:root, [data-theme="light"] {
  --ground: #f6f6f4;
  --ink: #33393f;
  --ink-muted: #5e646b;
  --steel: #898e96;
  --line: #bfc3c8;
}
[data-theme="dark"] {
  --ground: #101419;
  --ink: #eff0f2;
  --ink-muted: #cdd1d6;
  --steel: #898f98;
  --line: #50575f;
}
:root {
  --gutter: clamp(24px, 4vw, 48px);
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Open Sans", "Segoe UI", Arial, sans-serif;
}

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
}
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
[data-theme] { background: var(--ground); color: var(--ink); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Typografie */
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.48em; color: var(--ink-muted); }
.eyebrow--center { padding-left: 0.48em; }
.eyebrow--tall { line-height: 26px; }
.title { font-family: var(--serif); font-size: clamp(36px, 4.2vw, 58px); line-height: 1.08; font-weight: 500; letter-spacing: -0.01em; }
.lead { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.35; font-weight: 500; color: var(--ink-muted); }
.heading { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.17; font-weight: 500; }
.heading--xl { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -0.01em; }
.heading--cta { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.01em; }
.heading--sm { font-size: 26px; line-height: 32px; font-weight: 600; }
.salutation { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 36px; font-weight: 500; }
.statement { font-family: var(--serif); font-size: 26px; line-height: 34px; font-weight: 600; }
.person-name { font-family: var(--serif); font-size: 24px; line-height: 30px; font-weight: 600; }
.signature { font-family: "Homemade Apple", cursive; font-size: 30px; line-height: 64px; font-weight: 400; }
.small { font-size: 14px; line-height: 22px; }
.muted { color: var(--ink-muted); }
.strong { font-weight: 600; }

/* Abstände */
.mt-n16 { margin-top: -16px; }
.mt-n8 { margin-top: -8px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* Layout */
.band { padding: 96px var(--gutter); }
.band--flush { padding-top: 0; }
.band--pb-64 { padding-bottom: 64px; }
.band--pb-48 { padding-bottom: 48px; }
.band--compact { padding-top: 64px; padding-bottom: 64px; }

.container { max-width: 1200px; margin: 0 auto; }
.container--980 { max-width: 980px; }
.container--960 { max-width: 960px; }
.container--760 { max-width: 760px; }

.stack { display: flex; flex-direction: column; }
.stack--center { align-items: center; text-align: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-40 { gap: 40px; }
.gap-48 { gap: 48px; }
.gap-56 { gap: 56px; }
.ruled { border-bottom: 1px solid var(--line); }

.two-col { display: flex; flex-wrap: wrap; column-gap: 80px; row-gap: 48px; }
.col-aside { flex: 1 1 380px; }
.col-main { flex: 999 1 560px; min-width: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary {
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  background: var(--ink);
  color: var(--ground);
  font-size: 16px;
  line-height: 24px;
}
a.btn--primary:hover, .btn--primary:not(:disabled):hover { color: var(--ground); background: var(--ink-muted); }
.btn--primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn--secondary {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--steel);
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
}
.btn--secondary:hover { color: var(--ink); border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; line-height: 22px; }

/* Kopfzeile */
.site-header { padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 32px;
  row-gap: 0;
  padding-bottom: 8px;
}
.site-header--centered .site-header__inner { justify-content: center; }
.brand { display: block; line-height: 0; }
.logo { display: block; width: 240px; height: 120px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 32px; row-gap: 4px; }
.main-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.48em;
  text-decoration: none;
}
.main-nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
/* Unter dieser Breite passt die Navigation nicht mehr neben das Logo: beides zentrieren. */
@media (max-width: 1022px) {
  .site-header__inner, .main-nav { justify-content: center; }
}

/* Fußzeile */
.site-footer { padding: 0 var(--gutter) 48px; }
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 32px;
  row-gap: 8px;
}
.site-footer--plain { padding-top: 32px; }
.site-footer--plain .site-footer__inner { border-top: 0; padding-top: 0; }
.site-footer__copy { max-width: 1200px; margin: 16px auto 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.footer-nav { display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 4px; font-size: 14px; line-height: 22px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer--minimal { padding: 24px var(--gutter); border-top: 1px solid var(--line); }
.site-footer--minimal .footer-nav { max-width: 640px; margin: 0 auto; justify-content: center; column-gap: 24px; }

/* Porträts und Logos */
.avatar { flex: 0 0 auto; display: block; border-radius: 50%; object-fit: cover; }
.avatar--48 { width: 48px; height: 48px; }
.avatar--64 { width: 64px; height: 64px; }
.avatar--160 { width: 160px; height: 160px; }
.client-logo { display: block; width: 220px; height: auto; }
.client-logo--sm { width: 180px; }
.byline { display: flex; align-items: center; gap: 16px; text-align: left; }
.byline--tight { gap: 14px; }

/* Startseite */
.hero-lead { max-width: 760px; }
.article {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.pain-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.pain-list li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.dash { flex: 0 0 auto; width: 16px; height: 1px; margin-top: 13px; background: var(--steel); }
.quote-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
}
.band-intro { max-width: 800px; }
.split-grid { display: flex; flex-wrap: wrap; column-gap: 64px; row-gap: 0; }
.split-grid__item {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}
.closing {
  max-width: 920px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.3;
  font-weight: 500;
}
.steps { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.steps li { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.step-num {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--steel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}
.step-body { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.case-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; column-gap: 48px; row-gap: 24px; }
.case-head__text { flex: 1 1 520px; max-width: 760px; }
.stats { display: flex; flex-wrap: wrap; column-gap: 48px; row-gap: 0; }
.stat { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.stat__value { font-family: var(--serif); font-size: 48px; line-height: 52px; font-weight: 500; }
.note-row { display: flex; flex-wrap: wrap; column-gap: 80px; row-gap: 16px; padding-top: 48px; border-top: 1px solid var(--line); }
.signoff {
  width: 100%;
  margin-top: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Fallstudie */
.case-hero { display: flex; flex-wrap: wrap-reverse; align-items: flex-start; column-gap: 64px; row-gap: 40px; }
.case-hero__text { flex: 999 1 640px; min-width: 0; max-width: 940px; }
.case-hero__logo { flex: 0 0 auto; margin-top: 4px; }
.kpis { display: flex; flex-wrap: wrap; column-gap: 64px; row-gap: 32px; }
.kpi { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.kpi__value { font-family: var(--serif); font-size: clamp(48px, 4.6vw, 64px); line-height: 1; font-weight: 500; }
.case-row { display: flex; flex-wrap: wrap; column-gap: 80px; row-gap: 16px; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.case-row__label { flex: 1 1 320px; }
.case-row__body { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.testimonial { display: flex; flex-wrap: wrap-reverse; align-items: flex-start; column-gap: 80px; row-gap: 40px; }
.testimonial__author { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.testimonial__quote {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--serif);
  font-size: clamp(21px, 1.8vw, 25px);
  line-height: 1.42;
  font-weight: 500;
}

/* Über mich */
.title--narrow { max-width: 900px; }
.about { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 80px; row-gap: 48px; }
.about__photo {
  flex: 0 1 440px;
  min-width: 0;
  width: 440px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}
.about__text { flex: 1 1 480px; min-width: 0; max-width: 680px; }
.about__intro { padding-bottom: 32px; border-bottom: 1px solid var(--line); }

/* Rechtliches */
.legal-row { display: flex; flex-wrap: wrap; column-gap: 64px; row-gap: 8px; padding: 32px 0; border-top: 1px solid var(--line); }
.legal-row__label { flex: 1 1 260px; }
.legal-row__body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; }
.policy { display: flex; flex-direction: column; gap: 16px; padding: 40px 0; border-top: 1px solid var(--line); }
.policy ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Formularseite */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app__main { flex: 1 0 auto; padding: 64px var(--gutter) 96px; }
.app__inner { max-width: 640px; margin: 0 auto; }
.progress { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.progress__track { height: 3px; background: var(--line); }
.progress__bar { height: 3px; background: var(--ink); transition: width 0.3s ease; }
.form-title { font-family: var(--serif); font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; font-weight: 500; letter-spacing: -0.01em; }
.form-lead { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2vw, 25px); line-height: 1.4; font-weight: 500; color: var(--ink-muted); }
.thanks-title { font-family: var(--serif); font-size: clamp(34px, 3.8vw, 50px); line-height: 1.1; font-weight: 500; letter-spacing: -0.01em; }
.thanks-signoff { margin-top: 16px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.step-title { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 500; }
.step-title:focus, .form-title:focus { outline: none; }
.step { display: flex; flex-direction: column; gap: 32px; min-width: 0; margin: 0; padding: 0; border: 0; }
.step--loose { gap: 40px; }
[hidden] { display: none !important; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-row .field { flex: 1 1 220px; }
.label { font-size: 14px; line-height: 22px; font-weight: 600; }
.question { font-weight: 600; }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--steel);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
}
.input::placeholder { color: var(--ink-muted); opacity: 1; }
textarea.input { line-height: 26px; resize: vertical; }
.select-wrap { position: relative; }
.select { padding-right: 48px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-wrap svg { position: absolute; right: 18px; top: 50%; margin-top: -8px; pointer-events: none; }

.options { display: flex; flex-direction: column; gap: 12px; }
.options--row { flex-direction: row; flex-wrap: wrap; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--steel);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
}
.options--row .opt { width: auto; flex: 1 1 160px; }
.options--row-narrow .opt { flex-basis: 140px; }
.opt:hover { border-color: var(--ink); }
.opt__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.opt__mark { flex: 0 0 auto; width: 16px; height: 16px; border: 1px solid var(--steel); border-radius: 50%; }
.opt__mark--box { border-radius: 2px; }
.opt:has(.opt__input:checked) { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.opt:has(.opt__input:checked) .opt__mark { background: var(--ground); border-color: var(--ground); }
.opt:has(.opt__input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 22px; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }

.form-nav {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.link-btn {
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink-muted); }
