/* MMD Analyse & Advisory GmbH — style.css */
:root {
  --bg: #ebe7de;
  --paper: #f6f3ec;
  --ink: #1b1a19;
  --muted: #646055;
  --line: #cdc6b7;
  --accent: #7a2230;      /* deep burgundy */
  --accent-light: #cf7a88; /* accent tint for dark backgrounds */
  --dark: #1d1b1a;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font: 400 1rem/1.7 var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
h3 { font-size: 1.6rem; line-height: 1.15; }

.label { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; padding-left: 2.5rem; position: relative; }
.label::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 1.75rem; height: 1px; background: var(--accent); }

.btn { display: inline-block; padding: 0.95rem 1.6rem; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font: 500 0.95rem var(--sans); text-decoration: none; cursor: pointer; transition: background 0.25s, border-color 0.25s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.link:hover { color: var(--accent); border-color: var(--accent); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 1.4rem 0; border-bottom: 1px solid transparent; transition: padding 0.3s, background 0.3s, border-color 0.3s; }
.site-header.scrolled { padding: 0.65rem 0; background: rgba(235, 231, 222, 0.95); border-color: var(--line); backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { font-family: var(--serif); font-size: 1.9rem; line-height: 1; text-decoration: none; }
.logo small { display: block; font: 500 0.72rem/1 var(--sans); color: var(--muted); margin-top: 0.3rem; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { position: relative; text-decoration: none; font-size: 0.92rem; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent); transition: width 0.25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform 0.25s, top 0.25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: calc(var(--section) * 0.6 + 4rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 7rem); margin-bottom: 1.75rem; }
.lead { max-width: 33rem; font-size: 1.15rem; color: var(--muted); margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.hero-art { position: relative; aspect-ratio: 4 / 5; }
.curtain { position: absolute; inset: 0 0 8% 14%; background: repeating-linear-gradient(90deg, var(--dark) 0 14px, #2b2826 14px 28px); }
.disc { position: absolute; left: 0; top: 14%; width: 52%; aspect-ratio: 1; background: var(--accent); border-radius: 50%; }
.note { position: absolute; left: 14%; right: 18%; bottom: 0; background: var(--paper); border: 1px solid var(--line); padding: 0.8rem 1rem; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.strip { display: flex; flex-wrap: wrap; margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.strip li { flex: 1 1 auto; padding: 1rem 1.25rem; font-size: 0.9rem; font-weight: 500; border-left: 1px solid var(--line); }
.strip li:first-child { border-left: 0; padding-left: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem 2rem; }
.about-head { grid-column: 1 / 10; }
.about-visual { grid-column: 1 / 6; position: relative; min-height: 26rem; }
.stripes { position: absolute; inset: 0 0 0 0; background: repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 22px), var(--paper); border: 1px solid var(--line); }
.statement { position: absolute; left: 12%; right: -34%; bottom: 2.5rem; background: var(--accent); color: var(--paper); padding: 1.75rem; font: 1.75rem/1.2 var(--serif); }
.about-text { grid-column: 8 / 13; align-self: start; }
.about-text > p { margin-bottom: 1.25rem; color: var(--muted); }
.about-text > p:first-child { color: var(--ink); font-size: 1.15rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.facts dt { font-size: 0.8rem; color: var(--muted); }
.facts dd { font: 2.2rem/1.1 var(--serif); }

/* Services */
.services { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.services-intro { position: sticky; top: 7rem; }
.services-intro p { margin-top: 1.5rem; color: var(--muted); max-width: 22rem; }
.service { display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--line); transition: padding 0.3s, background 0.3s; }
.service:hover { padding-left: 1rem; background: var(--bg); }
.service h3 { margin-bottom: 0.4rem; }
.service p { color: var(--muted); max-width: 34rem; }
.ico { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: square; margin-top: 0.2rem; }
.service--main { border-top: 3px solid var(--accent); padding: 2.25rem 0 2.75rem; }
.service--main h3 { font-size: 2.6rem; }
.service--main p { color: var(--ink); font-size: 1.1rem; }

/* Approach */
.approach { background: var(--dark); color: var(--paper); }
.approach h2 { max-width: 14ch; margin-bottom: clamp(3rem, 7vw, 6rem); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.benefits li { border-top: 1px solid #5a554f; padding-top: 1.25rem; }
.benefits li:nth-child(even) { margin-top: 3.5rem; }
.num { display: block; font: clamp(4rem, 7vw, 6rem)/1 var(--serif); color: var(--accent-light); margin-bottom: 1.5rem; }
.benefits h3 { margin-bottom: 0.6rem; }
.benefits p { color: #b9b3a8; font-size: 0.95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.contact-info p { margin: 1.5rem 0 2.5rem; color: var(--muted); max-width: 26rem; }
address { border-left: 3px solid var(--accent); padding-left: 1.25rem; line-height: 1.8; }
.mail { display: inline-block; margin-top: 0.75rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); transition: color 0.2s; }
.mail:hover { color: var(--accent); }
.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.75rem); }
.field { margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.field label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field textarea { font: inherit; padding: 0.6rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; resize: vertical; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #a3201f; }
.err { min-height: 1.2rem; font-size: 0.8rem; color: #a3201f; margin-top: 0.3rem; }
.status { margin-top: 1.25rem; font-size: 0.92rem; }
.status.ok { color: #2d5a3d; }
.status.fail { color: #a3201f; }

/* Footer */
.footer { border-top: 1px solid var(--ink); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr; gap: 2.5rem; }
.footer a { display: block; text-decoration: none; color: var(--muted); font-size: 0.92rem; padding: 0.15rem 0; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer h4 { font: 600 0.85rem var(--sans); margin-bottom: 0.9rem; }
.footer p { font-size: 0.92rem; color: var(--muted); }
.footer .logo { color: var(--ink); }
.about-short { margin-top: 1rem; max-width: 24rem; }
.copy { margin-top: 3.5rem; padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1000px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefits li:nth-child(even) { margin-top: 0; }
  .about-head { grid-column: 1 / -1; }
  .about-visual { grid-column: 1 / 7; }
  .about-text { grid-column: 7 / 13; }
  .statement { right: -20%; font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 800px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.5rem var(--gutter) 2rem; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .hero-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .strip li { flex: 1 1 50%; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .about-visual, .about-text { grid-column: 1 / -1; }
  .about-visual { min-height: 20rem; margin-bottom: 1rem; }
  .statement { right: 0; left: 12%; bottom: -1.5rem; }
  .services-intro { position: static; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .benefits, .footer-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .service--main h3 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
