/* ─────────────────────────────────────────────
   Lokale Fonts (DSGVO-konform, kein Google CDN)
   ───────────────────────────────────────────── */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────
   Variables
   ───────────────────────────────────────────── */
:root {
  --bg: #faf7f2;
  --bg-alt: #f1ece2;
  --bg-dark: #1a1814;
  --text: #1a1814;
  --text-muted: #6b6359;
  --text-inverse: #faf7f2;
  --accent: #b8421f;
  --accent-dark: #7a2d14;
  --line: #d9d2c4;
  --highlight: #f5e6d3;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

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

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ─────────────────────────────────────────────
   Header
   ───────────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.logo .dot { color: var(--accent); font-style: normal; }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
nav a:hover { color: var(--text); }
nav a.cta {
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s;
}
nav a.cta:hover { background: var(--accent); color: var(--bg); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─────────────────────────────────────────────
   Hero (Startseite)
   ───────────────────────────────────────────── */
.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 66, 31, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 1.8rem;
}
.hero h1 em { color: var(--accent); font-style: italic; }

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-muted);
  max-width: 55ch;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-secondary { border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-meta {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.hero-meta-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  font-style: italic;
}
.hero-meta-label { font-size: 0.85rem; color: var(--text-muted); }

/* ─────────────────────────────────────────────
   Section shared
   ───────────────────────────────────────────── */
section { padding: clamp(4rem, 8vw, 6rem) 0; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 800px; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section-eyebrow::before { content: "—"; color: var(--accent); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.section-title em { color: var(--accent); font-style: italic; }

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   Services
   ───────────────────────────────────────────── */
.services {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.service {
  background: var(--bg);
  padding: 2.2rem;
  transition: background 0.25s;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service:hover { background: var(--highlight); }

.service-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.service-icon {
  width: 36px;
  height: 36px;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.service h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.service p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.6; }

.service ul {
  list-style: none;
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.service li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   About
   ───────────────────────────────────────────── */
.about { position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.about-text p strong { color: var(--text); font-weight: 600; }

.about-side {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 2.5rem;
  border-radius: 6px;
  position: sticky;
  top: 100px;
}
.about-side h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.about-side ul { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.about-side li { display: flex; gap: 0.9rem; font-size: 0.94rem; line-height: 1.5; }
.about-side li::before { content: "→"; color: var(--accent); font-weight: 600; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   Process
   ───────────────────────────────────────────── */
.process { background: var(--bg-dark); color: var(--text-inverse); }
.process .section-eyebrow { color: var(--highlight); }
.process .section-eyebrow::before { color: var(--accent); }
.process .section-title { color: var(--text-inverse); }
.process .section-lead { color: rgba(250, 247, 242, 0.7); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.process-step {
  border-top: 1px solid rgba(250, 247, 242, 0.2);
  padding-top: 1.8rem;
  position: relative;
}
.process-step .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.process-step h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.process-step p { color: rgba(250, 247, 242, 0.7); font-size: 0.95rem; line-height: 1.6; }

/* ─────────────────────────────────────────────
   Contact
   ───────────────────────────────────────────── */
.contact { background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-info {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.contact-row {
  padding: 1.6rem 1.8rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.contact-value {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}
.contact-value a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   Legal pages (Impressum / Datenschutz)
   ───────────────────────────────────────────── */
.legal-page { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }

.legal-page .section-title { margin-bottom: 0.5rem; }

.legal-content {
  max-width: 760px;
  margin-top: 3rem;
}
.legal-content h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legal-content p strong { color: var(--text); font-weight: 600; }
.legal-content ul {
  list-style: none;
  margin: 0.6rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-content ul li {
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}
.legal-content ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-content a:hover { text-decoration-thickness: 2px; }

.legal-meta {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-card {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.6rem;
  border-radius: 4px;
  margin: 1rem 0 1.5rem;
}
.contact-card p { margin-bottom: 0.3rem; color: var(--text); }
.contact-card p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--text-inverse); margin-bottom: 1rem; }
.footer-brand p {
  color: rgba(250, 247, 242, 0.6);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 36ch;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.5);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  font-size: 0.94rem;
  color: rgba(250, 247, 242, 0.85);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.15);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.5);
  font-family: var(--mono);
}

/* ─────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────── */
@media (max-width: 820px) {
  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem var(--gutter);
    gap: 1.4rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  nav ul.open { transform: translateY(0); }
  .menu-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .process-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─────────────────────────────────────────────
   Animations
   ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-meta {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.hero h1 { animation-delay: 0.1s; }
.hero-lead { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
.hero-meta { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
