/* ==========================================================================
   L.H Übersetzungen — Light editorial design system
   ========================================================================== */

:root {
  /* Color tokens */
  --paper: #FAF7F0;
  --paper-pure: #FFFFFF;
  --ink: #1A1714;
  --ink-soft: #2E2823;
  --gold: #fad805;
  --gold-deep: #d1b404;
  --muted: #6B645A;
  --hairline: #E5DECF;
  --hairline-strong: #D8CFB8;
  --gold-30: rgba(250, 216, 5, 0.30);
  --gold-40: rgba(250, 216, 5, 0.40);
  --gold-12: rgba(250, 216, 5, 0.12);

  /* Type */
  --f-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --f-body: "Newsreader", "Source Serif 4", "Lora", Georgia, serif;
  --f-mono: "IBM Plex Mono", "Space Mono", ui-monospace, Menlo, monospace;
  --f-arabic: "Amiri", "Noto Naskh Arabic", "Scheherazade New", serif;

  /* Scale */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 144px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* Utility */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--pure { background: var(--paper-pure); }
.section--paper { background: var(--paper); }

/* Kicker (— BUREAU DE TRADUCTION CERTIFIÉ) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.kicker--gold { color: var(--gold-deep); }
.kicker--light { color: var(--paper); }
.kicker--light::before { background: var(--gold); }

/* Headlines: two-tone serif (ink roman + italic gold key word) */
.h-display {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h-sub {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
}
.gold-i {
  font-style: italic;
  color: #fad805;
  font-weight: 500;
}
.lede {
  font-family: var(--f-body);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

/* Mono labels & tags */
.mono { font-family: var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--gold-40);
  border-radius: 2px;
  background: transparent;
}
.tag--ink { color: var(--paper); border-color: var(--gold-40); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn .arr {
  width: 14px; height: 1px; background: currentColor; position: relative; transition: width .25s ease;
}
.btn .arr::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arr { width: 22px; }

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 500;
}
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--paper); }

.btn--ink-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ink-outline:hover { background: var(--ink); color: var(--paper); }

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 247, 240, 0.35);
}
.btn--ghost-light:hover { border-color: var(--gold); color: #fad805; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}
.brand {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}
.brand em { font-style: italic; color: #fad805; font-weight: 500; }
.brand__mark {
  display: inline-block;
  height: 28px; width: auto; margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.nav { display: flex; gap: 28px; justify-self: center; }
.nav a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover { color: var(--gold-deep); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold-deep); }

.header-right { display: flex; align-items: center; gap: 18px; justify-self: end; }
.lang-switch {
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  gap: 8px;
}
.lang-switch .active { color: var(--ink); }
.lang-switch span.sep { color: var(--hairline-strong); }
.lang-btn {
  font: inherit; letter-spacing: inherit; color: inherit;
  background: none; border: none; padding: 0; cursor: pointer;
}
.lang-btn.active { color: var(--ink); }

/* ===== BILINGUAL CONTENT TOGGLE (DE default / EN) ===== */
html[data-lang="de"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-de { display: none !important; }

.mobile-toggle { display: none; }

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 96px 36px;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-40), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(250, 216, 5, 0.18);
}
.footer-grid h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fad805;
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a:hover { color: #fad805; }
.footer-grid p, .footer-grid li { color: rgba(250, 247, 240, 0.78); font-size: 15px; }
.footer-brand .brand { color: var(--paper); font-size: 26px; }
.footer-brand .lede { color: rgba(250, 247, 240, 0.7); max-width: 36ch; margin-top: 18px; font-size: 16px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.55);
}
.footer-bottom .legal { display: flex; gap: 28px; }
.footer-bottom .legal a:hover { color: #fad805; }
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a {
  width: 32px; height: 32px;
  border: 1px solid rgba(250, 216, 5, 0.35);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fad805;
  transition: all .2s ease;
}
.footer-bottom .socials a:hover { background: var(--gold); color: var(--ink); }

/* PAGE HEADER (for inner pages) */
.page-hero {
  padding-block: clamp(80px, 10vw, 140px) clamp(56px, 7vw, 96px);
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.page-hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; }
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 24px 0 0;
  text-wrap: balance;
}
.page-hero .lede { margin-top: 20px; }

/* Hairline grid (for service grids) */
.hairline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.hairline-grid > * {
  padding: 44px 40px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background .3s ease;
}
.hairline-grid > *:hover { background: rgba(250, 216, 5, 0.04); }

/* Service cell */
.svc__icon { color: #fad805; margin-bottom: 22px; }
.svc__title {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: var(--ink);
}
.svc__desc { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0 0 20px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Section header (kicker + h2 + sub) */
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 56px;
  margin-bottom: 64px;
}
.section-head__title .kicker { margin-bottom: 22px; }
.section-head__sub { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 46ch; }

/* MOBILE NAV DRAWER */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav a {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 16px var(--gutter);
  border-top: 1px solid var(--hairline);
}
.mobile-nav a:first-child { border-top: none; }
.mobile-nav a[aria-current="page"] { color: var(--gold-deep); }
.site-header .mobile-nav__lang {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px var(--gutter);
  border-top: 1px solid var(--hairline);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.site-header.is-open .mobile-nav { display: flex; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav { display: none; }
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .brand { min-width: 0; overflow: hidden; }
  .mobile-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 2px;
    flex-shrink: 0;
  }
  .lang-switch { display: none; }
  .hairline-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 18px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hairline-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-right .btn span.btn-label-full { display: none; }
}
@media (max-width: 420px) {
  .header-right { gap: 10px; }
  .btn--gold { padding: 12px 14px; }
  .brand span { display: none; }
}

/* Subtle reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* Focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Selection */
::selection { background: var(--gold); color: var(--ink); }
