/* ---------- Lokale Schriften (DSGVO-konform, kein Google-Aufruf) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/archivo-v25-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/archivo-v25-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/archivo-v25-latin-500.woff2') format('woff2');
}

/* ============================================================
   HEMMERS & CIE. — Designsystem
   Farben: Elfenbein #F7F5F0 · Tinte #1A1F2B · Nacht #14171D
           Gold #A8873F / #C2A35D · Beige #EFECE4
   Typo:   Cormorant Garamond (Marke/Headlines) · Archivo (Funktion)
   ============================================================ */

:root {
  --ivory: #F7F5F0;
  --ink: #1A1F2B;
  --night: #14171D;
  --gold: #A8873F;
  --gold-light: #C2A35D;
  --beige: #EFECE4;
  --line: #E5E1D8;
  --line-dark: #2A3040;
  --gray: #565D6B;
  --gray-warm: #6B6455;
  --gray-cool: #8A8FA0;
  --gray-muted: #8A8577;
  --cream-text: #E8E2D4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand .wordmark {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: var(--ink);
  white-space: nowrap;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-sub {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #6B7280;
  margin-top: 4px;
  white-space: nowrap;
}
.ergo-mark {
  font-weight: 700;
  letter-spacing: 2.9px;
  color: #6B7280;
}
.site-footer .brand-sub, .site-footer .ergo-mark { color: var(--gray-cool); }

/* ---------- Rechtsseiten ---------- */
.legal-text { max-width: 780px; padding-bottom: 72px; }
.legal-text h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-top: 40px;
  color: var(--ink);
}
.legal-text p, .legal-text li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
  margin-top: 12px;
}
.legal-text ul { margin: 12px 0 0 20px; }
.legal-text a { color: var(--gold); }
.legal-note {
  background: var(--beige);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--gray-warm);
  margin-top: 28px;
}
mark.ph {
  background: #F3E6C4;
  color: #6B5A2E;
  padding: 1px 5px;
  font-size: 0.95em;
}
.nav {
  display: flex;
  align-items: center;
}
.nav .sep { color: #C9C4B8; user-select: none; }
.nav > a, .nav .dropdown > a {
  font-size: 13.5px;
  color: #3D4351;
  padding: 6px 13px;
  white-space: nowrap;
}
.nav > a.mobile-only { display: none; }
.nav > a:hover, .nav .dropdown > a:hover { color: var(--ink); }
.nav > a.active, .nav .dropdown > a.active { color: var(--ink); font-weight: 500; }

.dropdown { position: relative; }
.dropdown > a::after { content: " \25BE"; font-size: 10px; color: var(--gold); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(20, 23, 29, 0.10);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 13px 18px;
}
.dropdown-menu a + a { border-top: 1px solid var(--beige); }
.dropdown-menu a:hover { background: #FAF8F4; }
.dropdown-menu .dm-title { display: block; font-size: 14px; color: var(--ink); font-weight: 500; }
.dropdown-menu .dm-sub { display: block; font-size: 12px; color: var(--gray-muted); margin-top: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  transition: background .18s ease, color .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-solid { background: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: #2A3145; }
.btn-outline { background: transparent; color: var(--ink); border-color: #C9C4B8; }
.btn-outline:hover { border-color: var(--ink); }
.nav .btn { margin-left: 14px; padding: 10px 18px; font-size: 11px; }
.nav > a.btn-solid { color: var(--ivory); }
.nav > a.btn-solid:hover { color: var(--ivory); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }

/* Hero mit Gemälde-Hintergrund (Startseite) */
.hero-art {
  position: relative;
  background-image: url('images/nachtwache.jpg');
  background-size: cover;
  background-position: 65% 30%;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(247, 245, 240, 0.98) 0%,
    rgba(247, 245, 240, 0.95) 40%,
    rgba(247, 245, 240, 0.6) 57%,
    rgba(247, 245, 240, 0.05) 74%,
    rgba(247, 245, 240, 0) 100%);
}
.hero-art .hero-inner { position: relative; z-index: 1; }
.hero-art .eyebrow { color: #8A6D33; font-weight: 500; }
.hero-art p.lead { color: #4A5160; }
.hero-art .btn-outline {
  background: rgba(247, 245, 240, 0.6);
  border-color: #9A948A;
}

/* Headline-Umbrüche: Desktop 2 Zeilen, Mobil 3 Zeilen */
.br-mobile { display: none; }

/* Breite Bildschirme (Laptop/Desktop): mehr Hero-Höhe, damit die
   Nachtwache denselben Ausschnitt zeigt wie auf dem iPad statt
   flach beschnitten zu werden */
@media (min-width: 1100px) {
  .hero-art {
    /* Höhe wächst proportional zur Breite (45vw) — dadurch bleibt das
       Seitenverhältnis und damit der Bildausschnitt des Gemäldes bei
       jeder Bildschirmbreite gleich, statt hineinzuzoomen. */
    min-height: clamp(600px, 38vw, 780px);
    display: flex;
    align-items: center;
    background-position: 66% 24%;
  }
  .hero-art .container { width: 100%; }
}
@media (max-width: 720px) {
  .hero-art::before {
    background: linear-gradient(180deg,
      rgba(247, 245, 240, 0.96) 0%,
      rgba(247, 245, 240, 0.9) 55%,
      rgba(247, 245, 240, 0.35) 100%);
  }
  /* 3-zeilige Headline auf Mobil */
  .br-mobile { display: inline; }
  .br-wide { display: none; }
  .hero-art h1 { font-size: 30px; }
  /* Kompakterer Hero, damit beide Buttons ohne Scrollen sichtbar sind */
  .hero-art { padding: 36px 0 40px; }
  .hero-art p.lead { margin-top: 16px; font-size: 15.5px; line-height: 1.6; }
  .hero-art .actions { margin-top: 22px; }
  .hero-art .actions .btn { width: 100%; }
}
.hero-inner { max-width: 680px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 500;
  line-height: 1.14;
  color: var(--ink);
}
.hero p.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray);
  margin-top: 24px;
  max-width: 560px;
}
.hero .actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Bänder ---------- */
.band { padding: 64px 0; }
.band-dark { background: var(--night); color: var(--cream-text); }
.band-beige { background: var(--beige); }
.band h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 500;
  line-height: 1.22;
}
.band-dark h2 { color: var(--cream-text); }
.band .band-text {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--gray);
  margin-top: 16px;
  max-width: 620px;
}
.band-dark .band-text { color: var(--gray-cool); }

/* ---------- Kacheln ---------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.tile::before {
  content: "";
  display: block;
  width: 36px;
  border-top: 2px solid var(--gold);
  margin-bottom: 20px;
}
.tile h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
}
.tile p { font-size: 14.5px; line-height: 1.75; color: var(--gray); margin-top: 10px; }
.band-dark .tile { background: transparent; border-color: var(--line-dark); }
.band-dark .tile h3 { color: var(--cream-text); }
.band-dark .tile p { color: var(--gray-cool); }
.tile .tile-link {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: auto;
  padding-top: 22px;
}
.tile .tile-link:hover { color: var(--gold); }

/* ---------- Prozess / Zeitleiste ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 40px;
}
.steps.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { border-left: 1px solid var(--line-dark); padding: 0 16px 8px 18px; }
.step .num {
  font-family: var(--serif);
  font-size: 27px;
  color: var(--gold-light);
  line-height: 1;
}
.step .step-title { font-size: 14px; color: var(--cream-text); margin-top: 10px; }
.step p { font-size: 13px; line-height: 1.65; color: var(--gray-cool); margin-top: 6px; }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.person { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.person figure {
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: var(--beige);
}
.person figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}
.person figure.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: #B3AB99;
  font-size: 15px;
  text-align: center;
}
.person .p-body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.person .p-name { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.person .p-role {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}
.person .p-bio { font-size: 14px; line-height: 1.7; color: var(--gray); margin-top: 11px; }
.p-contact { font-size: 13.5px; line-height: 1.8; margin-top: 12px; }
.person .p-contact { margin-top: auto; padding-top: 14px; }
.p-contact a { color: var(--gray-warm); border-bottom: 1px solid var(--line); }
.p-contact a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Foto-Band (Kontakt) ---------- */
.photo-band figure { margin: 0; }
.photo-band img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  object-position: 50% 38%;
}
.photo-band figcaption {
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-top: 12px;
}

.tiles-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 980px) { .tiles-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .tiles-3 { grid-template-columns: 1fr; } }

/* Dropdown per Klick/Tipp geöffnet */
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Split (Text + Karte) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.quote-card { background: var(--beige); padding: 32px 30px; }
.quote-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: #3D4351;
}
.quote-card cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gray-muted);
  margin-top: 16px;
}

/* ---------- CTA-Band ---------- */
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band { padding: 56px 0; }
.cta-band h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.cta-band p { font-size: 14.5px; color: var(--gray-warm); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); padding: 40px 0; }
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .brand .wordmark { color: var(--cream-text); font-size: 15px; }
.footer-legal {
  font-size: 12.5px;
  line-height: 1.8;
  color: #5A6270;
  max-width: 340px;
  text-align: right;
}
.footer-legal a:hover { color: var(--gray-cool); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps, .steps.cols-4 { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .team { grid-template-columns: 1fr 1fr; }
}
/* ---------- Mobile-Menü-Toggle ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 10px 12px;
  cursor: pointer;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .site-header .container { flex-wrap: wrap; }
  /* Marke kompakter, damit Logo und Menü-Button bündig in einer Zeile stehen */
  .brand svg { width: 28px; height: 28px; }
  .brand .wordmark { font-size: 15px; letter-spacing: 1.1px; }
  .brand-sub { font-size: 8.5px; letter-spacing: 2px; margin-top: 3px; }
  .menu-toggle { display: block; align-self: center; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding: 6px 0 4px;
  }
  .nav.open { display: flex; }
  .nav .sep { display: none; }
  .nav > a { font-size: 15px; padding: 12px 0; border-bottom: 1px solid var(--beige); }
  .nav > a.mobile-only { display: block; }
  .dropdown { width: 100%; }
  .dropdown > a { display: none; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    min-width: 0;
    display: block;
  }
  .dropdown-menu a { padding: 12px 0; border: none; border-bottom: 1px solid var(--beige); }
  .dropdown-menu a:hover { background: transparent; }
  .dropdown-menu .dm-title { font-size: 15px; font-weight: 400; color: #3D4351; }
  .dropdown-menu .dm-sub { display: none; }
  .nav .btn { margin: 14px 0 8px; width: 100%; }
  .hero { padding: 56px 0 44px; }
  .tiles { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .steps, .steps.cols-4 { grid-template-columns: 1fr; }
  .footer-legal { text-align: left; }
}
