/* ==========================================================================
   Hennemann Group — Design Tokens
   ========================================================================== */
:root {
  --bg:            #161318;
  --bg-elevated:   #1E1A20;
  --bg-elevated-2: #252026;
  --border:        #322C33;
  --border-soft:   #241F26;
  --text:          #EDEAE4;
  --text-muted:    #9C9590;
  --text-faint:    #6E6A67;
  --accent:        #C6A265;
  --accent-strong: #D8B67B;
  --accent-dim:    rgba(198, 162, 101, 0.14);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Manrope', sans-serif;

  --max-w: 1280px;
  --radius: 2px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-soft);
}

@media (min-width: 1024px) {
  .section { padding: 128px 0; }
}

.section--tight { padding: 72px 0; }

.prose {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ==========================================================================
   Fade-in on scroll
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(22, 19, 24, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border-soft);
}
.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav__logo strong { color: var(--accent); font-weight: 600; }

.nav__links {
  display: none;
  align-items: center;
  gap: 36px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.nav__links a { transition: color 0.25s var(--ease); }
.nav__links a:hover { color: var(--text); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__cta {
  display: none;
}
@media (min-width: 900px) {
  .nav__cta { display: inline-flex; }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
@media (min-width: 900px) {
  .hamburger { display: none; }
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 90;
  background: var(--bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 1.5rem;
  font-family: var(--font-display);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #171318;
}
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}
.hero__title {
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 14ch;
}
@media (min-width: 640px) {
  .hero__title { font-size: 3.25rem; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 3.75rem; }
}
.hero__subtext {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero__mark {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section__label {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}
.section__title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 20ch;
}
@media (min-width: 768px) {
  .section__title { font-size: 2.5rem; }
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro__body {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .intro__body { grid-template-columns: 0.55fr 0.45fr; align-items: start; }
}
.intro__stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
@media (min-width: 1024px) {
  .intro__stats { border-top: none; border-left: 1px solid var(--border); padding-top: 0; padding-left: 40px; }
}
.intro__stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  display: block;
}
.intro__stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Pillar rows (solutioIT / Baufi-Solution / Kreditfinder.net)
   ========================================================================== */
.pillar-list {
  border-top: 1px solid var(--border);
}
.pillar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .pillar-row {
    grid-template-columns: 56px 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
}
.pillar-row__index {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--text-faint);
  display: block;
}
.pillar-row__name {
  font-size: 1.625rem;
  margin-bottom: 8px;
}
.pillar-row__tag {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.pillar-row__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 46ch;
}
.pillar-row__focus {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.pillar-row__focus li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.pillar-row__focus li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ==========================================================================
   Values (numbered editorial list, no cards)
   ========================================================================== */
.values {
  border-top: 1px solid var(--border);
}
.value-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
@media (min-width: 768px) {
  .value-row { grid-template-columns: 80px 1fr 1.4fr; gap: 32px; }
}
.value-row__index {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1rem;
}
.value-row__title {
  font-size: 1.1875rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.value-row__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 52ch;
}

/* ==========================================================================
   Anfrage-Formular
   ========================================================================== */
.form-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .form-section__grid { grid-template-columns: 0.85fr 1.15fr; }
}
.toggle {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toggle__option {
  position: relative;
}
.toggle__option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.toggle__label {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.toggle__option input:checked + .toggle__label {
  background: var(--accent);
  color: #171318;
}
.toggle__option input:focus-visible + .toggle__label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   Anfrage-Funnel (Fortschrittsbalken + Schritte)
   ========================================================================== */
.funnel__progress { margin-bottom: 8px; }
.funnel__progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.funnel__progress-label strong {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
}
.funnel__progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.funnel__progress-fill {
  height: 100%;
  width: 33.333%;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.funnel__step {
  display: none;
  flex-direction: column;
  gap: 20px;
}
.funnel__step.is-active { display: flex; }
.funnel__actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}
.field input,
.field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--error input,
.field--error textarea { border-color: #C4664F; }
.field__error {
  font-size: 0.8125rem;
  color: #E08268;
  display: none;
}
.field--error .field__error { display: block; }

.form__consent {
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.6;
}
.form__consent a { color: var(--text-muted); text-decoration: underline; }

.form__status {
  font-size: 0.9375rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  display: none;
}
.form__status.is-success {
  display: block;
  background: rgba(101, 168, 130, 0.12);
  color: #8FC7A6;
  border: 1px solid rgba(101, 168, 130, 0.3);
}
.form__status.is-error {
  display: block;
  background: rgba(196, 102, 79, 0.12);
  color: #E08268;
  border: 1px solid rgba(196, 102, 79, 0.3);
}

.form-info__item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.form-info__item:first-child { padding-top: 0; }
.form-info__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.form-info__label {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.form-info__value {
  font-size: 1rem;
  color: var(--text);
}

/* ==========================================================================
   Contact CTA band
   ========================================================================== */
.cta-band {
  background: var(--bg-elevated);
  padding: 72px 0;
  border-bottom: 1px solid var(--border-soft);
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cta-band__title {
  font-size: 1.75rem;
  max-width: 20ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 72px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer__brand strong { color: var(--accent); }
.footer__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 36ch;
  line-height: 1.6;
}
.footer__heading {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.footer__links a:hover { color: var(--text); }
.footer__soon { color: var(--text-faint); }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-faint);
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.footer__bottom a { color: var(--text-faint); text-decoration: underline; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal {
  padding: 160px 0 96px;
}
.legal__title {
  font-size: 2.25rem;
  margin-bottom: 8px;
}
.legal__updated {
  color: var(--text-faint);
  font-size: 0.875rem;
  margin-bottom: 48px;
  display: block;
}
.legal h2 {
  font-size: 1.375rem;
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 68ch;
}
.legal p + p { margin-top: 14px; }
.legal ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.legal ul li { padding-left: 18px; position: relative; }
.legal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.legal a { color: var(--text); text-decoration: underline; }

.hero__subtext a,
.prose a,
.pillar-row__desc a,
.value-row__desc a,
.faq-row__a a,
.footer__desc a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s var(--ease);
}
.hero__subtext a:hover,
.prose a:hover,
.pillar-row__desc a:hover,
.value-row__desc a:hover,
.faq-row__a a:hover,
.footer__desc a:hover {
  color: var(--accent);
}

/* ==========================================================================
   FAQ (native details/summary, no cards)
   ========================================================================== */
.faq-list { border-top: 1px solid var(--border); }
.faq-row { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-row__q {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-row__q::marker,
.faq-row__q::-webkit-details-marker { display: none; content: ''; }
.faq-row__q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}
.faq-row[open] .faq-row__q::after { transform: rotate(45deg); }
.faq-row__a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 62ch;
  padding-bottom: 24px;
}

/* Placeholder marker (unedited [PLATZHALTER] content) */
.ph {
  border: 1px dashed var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: var(--radius);
  color: var(--accent-strong);
}
.pillar-row__soon {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 10px;
  white-space: nowrap;
}
