/* Navid Gold – Richtung C „Heritage" */
:root {
  --paper: #F4EBDD;
  --paper-light: #FBF5EA;
  --sand: #F3E3C3;
  --ink: #2B1E14;
  --body: #4E3D2E;
  --muted: #6B5A49;
  --red: #8C1D18;
  --red-dark: #5E110E;
  --gold: #C9A24A;
  --gold-light: #E2B95B;
  --line: rgba(43, 30, 20, 0.18);
  --line-strong: rgba(43, 30, 20, 0.35);
  --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-body: "Lora", "Georgia", serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.4s var(--ease); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ornament bands */
.ornament { display: block; width: 100%; height: 14px; }

/* Eyebrow, buttons */
.eyebrow { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .ic {
  width: 38px; height: 38px; border-radius: 999px; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ic { transform: translate(2px, -1px) scale(1.05); }
}
.btn-red { background: var(--red); color: var(--paper-light); }
.btn-red:hover { background: var(--red-dark); color: var(--paper-light); }
.btn-red .ic { background: rgba(255,255,255,0.14); }
.btn-ink { background: var(--ink); color: var(--paper-light); }
.btn-ink:hover { color: var(--paper-light); background: #17100a; }
.btn-ink .ic { background: rgba(255,255,255,0.12); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(43,30,20,0.3); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-ghost .ic { background: rgba(43,30,20,0.06); }
.btn-paper { background: var(--paper-light); color: var(--ink); border-color: rgba(43,30,20,0.2); }
.btn-paper:hover { color: var(--ink); border-color: var(--ink); }
.btn-paper .ic { background: rgba(43,30,20,0.06); }

/* Frames (Postkarten-Rahmen) */
.frame { border: 1px solid var(--line); padding: 10px; background: var(--paper-light); }
.frame-in { border: 1px solid rgba(140, 29, 24, 0.35); }

/* Header / Nav */
.site-header { position: relative; z-index: 60; }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 0 0 0;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: 0.06em; }
.brand-tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-style: italic; }
.nav-links a { color: var(--ink); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--red); transition: right 0.5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { right: 0; }
}
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--paper-light); border-radius: 999px;
  position: relative; cursor: pointer; padding: 0;
}
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 23.5px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; position: relative; }
.hero-copy { grid-column: span 8; display: flex; flex-direction: column; gap: 30px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 0.98; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero-lead { max-width: 600px; font-size: 19px; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.watermark {
  position: absolute; right: -20px; top: -60px; font-family: var(--font-display);
  font-size: clamp(200px, 30vw, 420px); line-height: 1; color: var(--gold); opacity: 0.08;
  pointer-events: none; user-select: none; z-index: 0;
}

/* Hero entrance on first paint (CSS animation: runs off the main thread while the page loads) */
.hero-copy > * { opacity: 0; animation: hero-in 700ms var(--ease-out) forwards; }
.hero-copy > :nth-child(1) { animation-delay: 60ms; }
.hero-copy > :nth-child(2) { animation-delay: 120ms; }
.hero-copy > :nth-child(3) { animation-delay: 200ms; }
.hero-copy > :nth-child(4) { animation-delay: 280ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Watermark parallax: scroll-driven, off the main thread, only where supported */
@supports (animation-timeline: scroll()) {
  .watermark { animation: watermark-drift linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
  @keyframes watermark-drift { from { transform: translateY(0); } to { transform: translateY(140px); } }
}

/* Divider */
.divider { display: flex; align-items: center; gap: 18px; padding: 0 0 90px; }
.divider span { flex: 1; height: 1px; background: rgba(43,30,20,0.2); }

/* Zahlen */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 120px; }
.fact { padding: 30px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { font-family: var(--font-display); font-weight: 500; font-size: 38px; white-space: nowrap; font-variant-numeric: lining-nums; line-height: 1; color: var(--ink); }
.fact > span { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.fact strong span { font: inherit; }

/* Sections */
.section { padding: 0 0 130px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.section-head.center { align-items: center; text-align: center; }
.section h2 { font-size: clamp(36px, 4.2vw, 52px); }

/* Geschichte */
.story-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
.story-intro { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 40px; }
.story-quote { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--red); }
.story-cite { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.timeline { grid-column: 6 / span 7; position: relative; padding-left: 48px; display: flex; flex-direction: column; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(140,29,24,0.4); transform: scaleY(0); transform-origin: top; transition: transform 1100ms var(--ease-in-out); }
.timeline.drawn::before { transform: scaleY(1); }
.tl { position: relative; padding-bottom: 48px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -55px; top: 8px; width: 13px; height: 13px; border-radius: 999px; background: var(--red); border: 3px solid var(--paper); transform: scale(0.4); opacity: 0; transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out); }
.tl.in::before { transform: scale(1); opacity: 1; }
.tl:nth-child(2).in::before { transition-delay: 60ms; }
.tl:nth-child(3).in::before { transition-delay: 120ms; }
.tl:nth-child(4).in::before { transition-delay: 180ms; }
.tl.now::before { background: var(--gold); }
.tl-when { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.2em; color: var(--red); margin-bottom: 10px; text-transform: uppercase; }
.tl h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.tl p { font-size: 16px; line-height: 1.7; color: var(--body); }

/* Familie / Netzwerk */
.family { background: var(--red); color: var(--paper-light); padding: 64px; position: relative; overflow: hidden; }
.family-pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.family-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; position: relative; margin-bottom: 40px; }
.family-head .eyebrow { color: var(--gold-light); }
.family-head h2 { margin-top: 12px; color: var(--paper-light); }
.family-mark { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--gold-light); }
.family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; position: relative; }
.family-item { border-top: 1px solid rgba(251,245,234,0.25); padding-top: 22px; }
.family-item h3 { font-size: 28px; margin-bottom: 6px; color: var(--paper-light); }
.family-place { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; }
.family-item p { font-size: 15px; color: rgba(251,245,234,0.8); }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service .frame-in { padding: 28px 22px; min-height: 220px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.service, .audience { transition: transform 200ms var(--ease-out); }
.service .frame-in, .audience .frame-in { transition: border-color 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service:hover, .audience:hover { transform: translateY(-4px); }
  .service:hover .frame-in, .audience:hover .frame-in { border-color: var(--red); }
}
.service .num { font-family: var(--font-display); font-size: 30px; color: var(--gold); }
.service h3 { font-size: 22px; }
.service p { font-size: 14px; line-height: 1.65; color: var(--body); }

/* Zielgruppen */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.audience .frame-in { padding: 40px; display: flex; flex-direction: column; gap: 18px; min-height: 320px; height: 100%; }
.audience.sand .frame-in { background: var(--sand); }
.audience h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.audience p { font-size: 15px; color: var(--body); }
.audience .btn { align-self: flex-start; margin-top: auto; }

/* Kontakt */
.contact .frame-in { padding: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
.contact-info { grid-column: span 5; display: flex; flex-direction: column; gap: 18px; }
.contact-lines { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--body); }
.contact-lines a { color: var(--ink); }
.contact-lines a:hover { color: var(--red); }
.form { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.field { display: flex; flex-direction: column; position: relative; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label { color: var(--red); }
.field.full { grid-column: span 2; }
.field label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; transition: color 200ms var(--ease-out); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 12px 0; outline: none; border-radius: 0; width: 100%;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232B1E14' stroke-width='1.2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 24px; }
.field textarea { min-height: 110px; resize: vertical; }
.consent { grid-column: span 2; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent input { margin: 4px 0 0 0; accent-color: var(--red); flex: none; width: 16px; height: 16px; }
.form-actions { grid-column: span 2; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 14px; color: var(--red); min-height: 1.5em; opacity: 0; transform: translateY(4px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.form-status.show { opacity: 1; transform: none; }
.form-status.ok { color: #2E5E3A; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Footer */
.footer { padding: 0 0 50px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 40px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; object-fit: contain; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--red); }

/* Unterseiten */
.page { padding: 80px 0 120px; }
.page-inner { max-width: 760px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 32px; }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page p, .page li { color: var(--body); font-size: 16px; }
.page ul { padding-left: 20px; }
.page address { font-style: normal; color: var(--body); }
.page .back { display: inline-block; margin-bottom: 40px; font-style: italic; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 0; transform: none; transition: opacity 250ms ease; }
  .reveal.in { opacity: 1; }
  .hero-copy > * { animation-name: hero-fade; animation-duration: 300ms; }
  @keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
  .watermark { animation: none; }
  .timeline::before { transform: scaleY(1); transition: none; }
  .tl::before { transform: scale(1); opacity: 1; transition: opacity 200ms ease; }
  .service, .audience, .btn .ic { transition: none; }
  .service:hover, .audience:hover { transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-intro { grid-column: auto; position: static; }
  .timeline { grid-column: auto; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact .frame-in { padding: 40px; grid-template-columns: 1fr; gap: 32px; }
  .contact-info { grid-column: auto; }
  .form { grid-column: auto; }
  .family { padding: 48px 40px; }
  .family-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { padding-top: 20px; }
  .brand-tag { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: calc(100% + 16px);
    flex-direction: column; gap: 0; background: var(--paper-light);
    border: 1px solid var(--line); padding: 8px 0;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links li { opacity: 0; transform: translateY(6px); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(2) { transition-delay: 40ms; }
  .nav-links.open li:nth-child(3) { transition-delay: 80ms; }
  .nav-links.open li:nth-child(4) { transition-delay: 120ms; }
  .nav-links.open li:nth-child(5) { transition-delay: 160ms; }
  .nav-links.open li:nth-child(6) { transition-delay: 200ms; }
  .nav-links li a { display: block; padding: 14px 24px; }
  .hero { padding: 64px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { grid-column: auto; }
  .watermark { right: -40px; top: -30px; }
  .facts { grid-template-columns: 1fr; margin-bottom: 80px; }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .section { padding-bottom: 80px; }
  .timeline { padding-left: 28px; }
  .tl::before { left: -35px; }
  .family { padding: 40px 24px; }
  .family-head { flex-direction: column; align-items: flex-start; }
  .services { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: 1fr; }
  .audience .frame-in { padding: 28px 22px; min-height: 0; }
  .contact .frame-in { padding: 28px 22px; }
  .form { grid-template-columns: 1fr; }
  .field.full, .consent, .form-actions { grid-column: span 1; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
