/* ==========================================================================
   Fonts (self-hosted — DSGVO: keine externe Google-Fonts-Auslieferung)
   ========================================================================== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-variable.woff2') format('woff2-variations'), url('../fonts/manrope-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-italic-latin.woff2') format('woff2');
}

/* ==========================================================================
   Hennemann Group — Design Tokens
   ========================================================================== */
:root {
  --bg:            #F7F6F1;
  --bg-elevated:   #EFEDE5;
  --border:        #E1DED2;
  --text:          #1B211D;
  --text-muted:    #5B6459;
  --accent:        #2F4F3E;
  --accent-strong: #24392C;
  --accent-dim:    rgba(47, 79, 62, 0.08);
  --on-accent:     #FAF9F4;
  --logo-gold:     #C6A265;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Manrope', sans-serif;

  --max-w: 1200px;
  --radius: 6px;

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

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

a, button, .faq-row__q {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  text-wrap: balance;
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  text-wrap: balance;
}

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; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

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

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

.section {
  padding: 72px 0;
  scroll-margin-top: 88px;
}

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

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

/* ==========================================================================
   Fade-in on scroll (restrained — section-level only, not per row)
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s 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: 72px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}
.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-body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav__logo strong { color: var(--accent); font-weight: 700; }

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

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

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

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  background: none;
  border: none;
  padding: 0;
}
@media (min-width: 900px) {
  .hamburger { display: none; }
}
.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s 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: 72px 0 0 0;
  z-index: 90;
  background: var(--bg);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overscroll-behavior: contain;
  font-size: 1.375rem;
  font-family: var(--font-body);
  font-weight: 600;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  overflow-y: auto;
}
.mobile-menu__anfrage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.mobile-menu__anfrage-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.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 26px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-strong); }

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

/* ==========================================================================
   Anfrage-Menu (Dropdown am "Anfrage senden"-Button)
   ========================================================================== */
.anfrage-menu {
  position: relative;
  display: inline-flex;
}
.anfrage-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(27, 33, 29, 0.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 110;
}
.anfrage-menu__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.anfrage-menu__panel a {
  display: block;
  padding: 12px 14px;
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.anfrage-menu__panel a:hover { background: var(--accent-dim); color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
}
.hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero__title {
  font-size: 2.5rem;
  margin-bottom: 22px;
  max-width: 13ch;
}
@media (min-width: 480px) {
  .hero__title { font-size: 2.75rem; }
}
@media (min-width: 768px) {
  .hero__title { font-size: 3.5rem; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 4.25rem; }
}
.hero__subtext {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero__subtext a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}
.hero__subtext a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero__mark {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section__title {
  font-size: 2rem;
  margin-bottom: 18px;
  max-width: 18ch;
}
@media (min-width: 768px) {
  .section__title { font-size: 2.5rem; }
}
.section__intro {
  max-width: 60ch;
  margin-bottom: 48px;
}

/* ==========================================================================
   Intro (Über uns)
   ========================================================================== */
.intro__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.intro__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 8px;
}
@media (max-width: 639px) {
  .intro__stats { grid-template-columns: 1fr; gap: 20px; }
}
.intro__stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.intro__stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 24ch;
}

/* ==========================================================================
   Pillar rows (solutioIT / Baufi-Solution / Kreditfinder.net)
   ========================================================================== */
.pillar-list {
  display: flex;
  flex-direction: column;
}
.pillar-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 48px 0;
}
@media (min-width: 900px) {
  .pillar-row {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .pillar-row--reverse .pillar-row__main { order: 2; }
  .pillar-row--reverse .pillar-row__side { order: 1; }
}
.pillar-row--tinted {
  background: var(--bg-elevated);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .pillar-row--tinted {
    margin: 0 -40px;
    padding-left: 40px;
    padding-right: 40px;
  }
}
.pillar-row__name {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.pillar-row__tag {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}
.pillar-row__desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  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: 22px;
  position: relative;
}
.pillar-row__focus li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ==========================================================================
   Values grid (2x2, no cards)
   ========================================================================== */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 56px;
}
@media (min-width: 700px) {
  .values { grid-template-columns: 1fr 1fr; }
}
.value-item__title {
  font-size: 1.1875rem;
  margin-bottom: 10px;
  display: block;
}
.value-item__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 42ch;
}

/* ==========================================================================
   Anfrage grid (compact 3-up)
   ========================================================================== */
.anfrage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) {
  .anfrage-grid { grid-template-columns: repeat(3, 1fr); }
}
.anfrage-item {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.anfrage-item__name {
  font-size: 1.1875rem;
}
.anfrage-item__tag {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-top: 6px;
  display: block;
}
.anfrage-item__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ==========================================================================
   Contact CTA band
   ========================================================================== */
.cta-band {
  background: var(--accent);
  padding: 72px 0;
}
.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.875rem;
  max-width: 18ch;
  color: var(--on-accent);
}
.cta-band .btn--primary {
  background: var(--on-accent);
  color: var(--accent-strong);
}
.cta-band .btn--primary:hover { background: var(--bg-elevated); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-elevated);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  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-body);
  font-size: 1.0625rem;
  font-weight: 700;
  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__desc a { text-decoration: underline; text-decoration-color: var(--border); }
.footer__desc a:hover { color: var(--accent); }
.footer__heading {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.footer__bottom a { color: var(--text-muted); text-decoration: underline; }
.footer__bottom a:hover { color: var(--accent); }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal {
  padding: 152px 0 96px;
}
.legal__title {
  font-size: 2.25rem;
  margin-bottom: 8px;
}
.legal__updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 48px;
  display: block;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 44px;
  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: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); }
.legal a:hover { color: var(--accent); }

.prose a,
.pillar-row__desc a,
.value-item__desc a,
.faq-row__a a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.prose a:hover,
.pillar-row__desc a:hover,
.value-item__desc a:hover,
.faq-row__a a:hover {
  color: var(--accent);
  text-decoration-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-body);
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 22px 36px 22px 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: 18px;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  font-family: var(--font-display);
  transition: transform 0.2s 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: 26px;
}
