:root {
  --bg: #FBFAF7;
  --bg-alt: #EFEBE3;
  --panel: #FFFFFF;
  --border: #ECE7DE;
  --border-soft: #E4DFD6;

  --ink: #26231F;
  --ink-soft: #4E483F;
  --text-mut: #5E584D;
  --text-mut-2: #6B655A;
  --text-faint: #A29A8C;
  --text-faint-2: #B3ADA1;
  --text-faint-3: #B8B1A4;

  --btn-dark: #2B2926;
  --btn-dark-hover: #48433B;

  --dark-bg: #26231F;
  --dark-bg-2: #1F1C18;
  --dark-text: #F7F5F1;
  --dark-text-2: #F1EDE5;
  --dark-text-mut: #8A8375;

  --accent: #8FA37E;

  --font-head: 'Newsreader', serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --max-width: 1180px;
  --pad: 52px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 500; }

.shell { max-width: var(--max-width); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}
.btn--dark { background: var(--btn-dark); color: var(--dark-text); }
.btn--dark:hover { background: var(--btn-dark-hover); }
.btn--outline { border: 1.5px solid var(--border-soft); color: var(--ink-soft); background: none; }
.btn--outline:hover { background: var(--bg-alt); }
.btn--light { background: var(--dark-text); color: var(--ink); }
.btn--light:hover { background: var(--border-soft); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav__brand { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) { font-size: 14.5px; font-weight: 600; color: var(--text-mut); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links .btn { font-size: 14px; padding: 11px 20px; }
.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 34px; height: 34px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 76px var(--pad) 80px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-alt); padding: 7px 15px; border-radius: 24px;
  margin-bottom: 26px;
}
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero__badge span:last-child { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-mut); }
.hero__eyebrow {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700; margin-bottom: 16px;
}
.hero h1 {
  font-size: 64px; line-height: 1.03; font-weight: 500; letter-spacing: -0.01em;
}
.hero__lead {
  font-size: 18px; line-height: 1.62; color: var(--text-mut);
  margin-top: 24px; max-width: 520px; text-wrap: pretty;
}
.hero__actions { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }

.hero__media { position: relative; justify-self: center; }
.hero__media-backdrop {
  position: absolute; inset: 18px -18px -18px 18px;
  background: var(--text-faint-2); border-radius: 24px;
}
.hero__photo {
  position: relative; width: 360px; height: 440px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(50, 45, 38, 0.5);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark-bg);
  color: var(--dark-text-2);
}
.stats__item { padding: 34px 40px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.stats__item:last-child { border-right: none; }
.stats__num { font-family: var(--font-head); font-size: 38px; font-weight: 500; color: var(--bg); }
.stats__label { font-size: 13.5px; color: var(--text-faint-3); margin-top: 4px; font-weight: 500; }

/* Section shell */
.section { padding: 88px var(--pad); }
.section--alt { background: var(--bg-alt); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 44px; flex-wrap: wrap;
}
.section__eyebrow {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 800; color: var(--text-faint); margin-bottom: 12px;
}
.section__title { font-size: 42px; line-height: 1.08; }
.section__note { font-size: 14px; color: var(--text-faint); padding-bottom: 8px; }

/* Leistungen accordion */
.services { border-top: 1px solid var(--border-soft); }
.service-group { border-bottom: 1px solid var(--border-soft); }
.service-group__header {
  display: flex; align-items: center; gap: 24px; padding: 28px 4px;
  cursor: pointer; background: none; border: none; width: 100%; text-align: left;
  font-family: inherit;
}
.service-group__index { font-family: var(--font-head); font-size: 22px; color: var(--text-faint-2); width: 36px; flex: none; }
.service-group__name-wrap { flex: 1; }
.service-group__name { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.service-group__tag { font-size: 13.5px; color: var(--text-faint); font-weight: 600; margin-top: 3px; }
.service-group__count { font-size: 13px; color: var(--text-faint-2); font-weight: 700; white-space: nowrap; }
.service-group__toggle { font-size: 30px; color: #7A7263; line-height: 1; width: 26px; text-align: center; flex: none; }
.service-group__items {
  padding: 0 4px 30px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px;
}
.service-group[hidden] .service-group__items { display: none; }
.service-item__title { font-size: 15.5px; font-weight: 700; color: #2B2823; line-height: 1.3; }
.service-item__desc { font-size: 14px; line-height: 1.55; color: var(--text-mut-2); margin-top: 3px; }

/* Kunden */
.clients__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.client-card {
  aspect-ratio: 3 / 2; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.client-card__label { font-size: 13px; font-weight: 600; color: var(--text-faint); }

/* Über mich */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about__photo {
  width: 100%; height: 420px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(50, 45, 38, 0.45);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.about__title { font-size: 40px; line-height: 1.1; margin-bottom: 20px; }
.about__text { font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 28px; text-wrap: pretty; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about__fact {
  display: flex; align-items: center; gap: 10px; background: var(--bg);
  padding: 13px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #3B372F;
}
.about__fact-dot { width: 7px; height: 7px; background: var(--text-faint-2); border-radius: 50%; flex: none; }

/* Werdegang */
.timeline__note { font-size: 14px; color: var(--text-faint); font-weight: 600; margin-bottom: 34px; }
.timeline__list { display: flex; flex-direction: column; }
.timeline__row {
  display: grid; grid-template-columns: 190px 1fr auto; gap: 28px; align-items: center;
  padding: 24px 20px; margin: 0 -20px; border-top: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; background: none; border-left: none; border-right: none; border-bottom: none;
  width: calc(100% + 40px); text-align: left; font-family: inherit;
  transition: background 0.18s, transform 0.18s;
}
.timeline__row:hover, .timeline__row:focus-visible { background: #F4F1EA; transform: translateX(4px); }
.timeline__date { font-size: 14px; color: var(--text-faint); font-weight: 700; }
.timeline__role { font-size: 20px; font-weight: 700; color: var(--ink); }
.timeline__org { font-size: 15px; color: var(--text-mut-2); margin-top: 2px; }
.timeline__link {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--text-faint-2); white-space: nowrap;
}
.timeline__link-arrow { font-size: 18px; line-height: 1; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(38, 35, 31, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 40px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--bg); border-radius: 20px; max-width: 520px; width: 100%;
  padding: 44px 44px 40px; box-shadow: 0 40px 100px -30px rgba(38, 35, 31, 0.6); position: relative;
}
.modal-card__close {
  position: absolute; top: 22px; right: 24px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--border); border: none; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-mut-2); cursor: pointer;
}
.modal-card__close:hover { background: var(--border-soft); }
.modal-card__eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800;
  color: var(--text-faint-2); margin-bottom: 12px;
}
.modal-card__title { font-size: 32px; line-height: 1.1; margin-bottom: 6px; }
.modal-card__org { font-size: 16px; font-weight: 600; color: #7A7263; margin-bottom: 22px; }
.modal-card__body { font-size: 16px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }

/* Tools */
.tools-panel {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 44px 46px;
}
.tools-panel__label {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800;
  color: var(--text-faint); margin-bottom: 22px;
}
.tools-panel__list { display: flex; flex-wrap: wrap; gap: 11px; }
.tools-panel__pill {
  background: var(--bg-alt); color: #4A463F; font-size: 14.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 24px;
}

/* Contact CTA */
.cta {
  background: var(--dark-bg); color: var(--dark-text-2); padding: 84px var(--pad); text-align: center;
}
.cta__eyebrow {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800;
  color: var(--text-faint); margin-bottom: 16px;
}
.cta__title { font-size: 48px; line-height: 1.06; max-width: 640px; margin: 0 auto 14px; color: var(--dark-text); }
.cta__meta { font-size: 16.5px; color: var(--text-faint-3); margin-bottom: 34px; }

/* Footer */
.footer {
  background: var(--dark-bg-2); color: var(--dark-text-mut); font-size: 13px;
  padding: 22px var(--pad); display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: var(--text-faint-3); }

/* Responsive */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 8px 24px 20px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { display: block; padding: 10px 0; }
  .nav__links .btn { margin-top: 10px; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__media { justify-self: start; }
  .hero h1 { font-size: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2n) { border-right: none; }
  .stats__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .section { padding: 56px var(--pad); }
  .section__title { font-size: 30px; }
  .service-group__items { grid-template-columns: 1fr; padding-left: 24px; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__photo { height: 320px; }
  .timeline__row { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .timeline__link { display: none; }
  .cta__title { font-size: 32px; }
}

@media (max-width: 560px) {
  .hero__photo { width: 100%; height: 340px; }
  .hero__media-backdrop { inset: 12px -12px -12px 12px; }
  .hero h1 { font-size: 34px; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .about__facts { grid-template-columns: 1fr; }
  .modal-card { padding: 36px 24px 28px; }
  .modal-card__title { font-size: 26px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
