:root {
  --ink: #0f1b2d;
  --ink-soft: #1c2a3f;
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --white: #ffffff;
  --brass: #a8834a;
  --brass-light: #d2b483;
  --text: #1d2530;
  --muted: #5d6673;
  --line: #e2ddd2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

img, svg { display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--brass); }

p { margin: 0 0 1em; }

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

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}

.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 0.9rem; }
.btn-light { background: var(--brass-light); border-color: var(--brass-light); color: var(--ink); }
.btn-light:hover { background: #e2c899; }
.btn-large { padding: 18px 30px; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark { width: 36px; height: 36px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.08em; }
.logo-sub { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* Hero */
.hero { padding: 96px 0 104px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero h1 { margin-bottom: 28px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(15, 27, 45, 0.25);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.card-label { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.status, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #2f6b45;
  background: #e8f2ea;
  padding: 5px 11px;
  border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 0 0 22px 0;
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .time {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.timeline div { border-left: 1px solid var(--line); padding-left: 18px; position: relative; }
.timeline div::before {
  content: "";
  position: absolute;
  left: -5px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--brass);
}
.timeline li:last-child div::before { background: var(--brass); }
.timeline strong { display: block; font-weight: 500; color: var(--ink); }
.timeline span { font-size: 0.88rem; color: var(--muted); }
.card-foot {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.card-foot strong { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font-family: var(--serif); font-size: 2.5rem; color: var(--ink); line-height: 1.1; margin-bottom: 8px; }
.stat-label { font-size: 0.88rem; color: var(--muted); }

/* Sections */
.section { padding: 120px 0; }
.section-muted { background: var(--paper-2); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, 0.75); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--brass-light); }
.section-head { max-width: 720px; margin-bottom: 64px; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.service:hover { background: var(--white); }
.service-num { display: block; font-size: 0.8rem; color: var(--brass); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 28px; }
.service h3 { margin-bottom: 14px; }
.service p { color: var(--muted); margin: 0; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.step { border-top: 1px solid var(--line-dark); padding-top: 32px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--brass-light);
  border-radius: 50%;
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.step h3 { margin-bottom: 12px; }
.step p { margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.about-text h2 { margin-bottom: 28px; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.quote {
  margin: 0;
  padding: 48px;
  background: var(--white);
  border-left: 3px solid var(--brass);
  border-radius: 0 10px 10px 0;
}
.quote blockquote {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--ink);
}
.quote figcaption strong { display: block; font-weight: 500; color: var(--ink); }
.quote figcaption span { font-size: 0.88rem; color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 24px;
}
.person h3 { margin-bottom: 4px; }
.role { font-size: 0.82rem; color: var(--brass); font-weight: 500; margin-bottom: 16px; }
.person p:last-of-type { color: var(--muted); font-size: 0.95rem; }
.badge { align-self: flex-start; margin-top: auto; color: #8a5a1c; background: #f6ecdc; }

/* Jannick: abwesend */
.person:has(.dot-away) .avatar { background: var(--paper-2); color: var(--muted); border: 1px dashed #b9b2a4; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  margin: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.testimonial figcaption { font-size: 0.88rem; color: var(--muted); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq details { border-bottom: 1px solid #d6d0c3; }
.faq details:first-child { border-top: 1px solid #d6d0c3; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px 24px 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-right: 40px; margin: -6px 0 24px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 96px; align-items: center; }
.contact h2 { margin-bottom: 24px; }
.contact-lead { font-size: 1.1rem; max-width: 30em; margin-bottom: 40px; }
.contact-list { margin: 0; }
.contact-list div { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list div:first-child { border-top: 1px solid var(--line-dark); }
.contact-list dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 6px; }
.contact-list dd { margin: 0; color: var(--white); }

/* Footer */
.site-footer { background: #0a1320; color: rgba(255, 255, 255, 0.6); padding: 48px 0; font-size: 0.88rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer-name { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--white); }
.footer-claim { font-style: italic; font-family: var(--serif); }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.8rem; }

/* Legal page */
.legal { padding: 88px 0 120px; }
.legal .container { max-width: 760px; }
.legal h1 { margin-bottom: 48px; }
.legal h2 { font-size: 1.6rem; margin: 56px 0 16px; }
.legal p { color: var(--muted); }
.back { display: inline-block; margin-bottom: 32px; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about, .contact { gap: 56px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; justify-content: center; }

  .hero { padding: 56px 0 72px; }
  .hero-grid, .about, .contact, .faq-wrap { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .services, .steps, .testimonials { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .quote { padding: 32px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav { padding: 8px 16px 20px; }
  .team { grid-template-columns: 1fr; }
  .service { padding: 32px 24px; }
  .stat-num { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
