/* ==========================================================================
   avenir21 GmbH — Website Styles
   Elegant, minimalistisch. Keine externen Ressourcen (keine Web-Fonts,
   kein Tracking) — datenschutzfreundlich, ohne Cookies.
   ========================================================================== */

:root {
  /* Neutrals — abgestimmt auf das Anthrazit des Logos */
  --paper:       #f6f5f2;   /* Seitenhintergrund, warmes Off-White */
  --surface:     #ffffff;   /* Karten */
  --ink:         #3f4348;   /* Fließtext, nah am Logo-Grau */
  --ink-strong:  #2b2e31;   /* Überschriften */
  --ink-soft:    #6e7277;   /* sekundärer Text */
  --line:        #e4e2dc;   /* Rahmen, Trennlinien */
  --line-soft:   #edebe5;   /* Hairlines */
  --dark:        #2b2e31;   /* dunkle Flächen */

  /* etabits-Akzent (nur im Beteiligungs-Band) */
  --etabits:     #f29400;

  --maxw: 1080px;
  --radius: 14px;

  --font: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* Reset / Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  color: var(--ink-strong);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p { text-wrap: pretty; }

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

/* Accessibility ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-strong);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 242, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 160px; height: auto; }

.site-nav { display: flex; gap: 36px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink-strong); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink-strong); color: #fff; }
.btn-primary:hover { background: #1e2123; }
.btn-ghost { color: var(--ink-strong); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-etabits { background: var(--etabits); color: #fff; font-weight: 500; }
.btn-etabits:hover { background: #d98500; }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Hero -------------------------------------------------------------------- */
.hero {
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 9vw, 104px);
}
.eyebrow {
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0 0 28px;
  max-width: 18ch;
}
.hero-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 0 38px;
}
.hero-lede strong { font-weight: 500; color: var(--ink-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}
.section-num {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.section-intro {
  max-width: 58ch;
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 48px;
}

/* Cards ------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(43, 46, 49, 0.35);
  border-color: var(--line-soft);
}
.card-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--etabits);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: 14px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* Beteiligungen / etabits ------------------------------------------------- */
.beteiligungen {
  background: var(--dark);
  color: #d9dbdc;
  border-top: none !important;
}
.section-head--light h2 { color: #fff; }
.section-head--light .section-num { color: #8b8e90; }

.feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 14px;
}
.feature-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--etabits);
  margin: 0 0 14px;
}
.feature-title {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 18px;
}
.feature-text p:not(.feature-kicker) {
  color: #b7babc;
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 30px;
}
.feature-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  border: 1px solid #3c4043;
  border-radius: 22px;
  background: #25282a;
}
.feature-eta {
  font-size: 5.5rem;
  line-height: 1;
  color: var(--etabits);
  font-weight: 700;
}
.feature-word {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f5f3;
}

/* Kontakt ----------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 44px;
}
.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.contact-block address {
  font-style: normal;
  color: var(--ink-strong);
  line-height: 1.7;
}
.contact-lines { margin: 0; line-height: 1.8; color: var(--ink-strong); }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.2s ease; }
.contact-lines a:hover { border-color: var(--ink-strong); }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-brand { font-weight: 500; color: var(--ink-strong); letter-spacing: -0.01em; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--ink-strong); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature-mark { order: -1; padding: 36px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 14px; }
  .header-inner { height: 66px; }
  .brand-logo { width: 132px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Impressum --------------------------------------------------------------- */
.legal { padding: clamp(48px, 8vw, 88px) 0; }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 36px; }
.legal h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 40px 0 12px;
  color: var(--ink-strong);
}
.legal p { color: var(--ink); max-width: 70ch; margin: 0 0 14px; }
.legal a { color: var(--ink-strong); }
.legal .back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal .back-link:hover { color: var(--ink-strong); }
.legal address { font-style: normal; line-height: 1.7; }
