/* ============================================================
   OBAHI-DESIGN — light editorial rebuild
   One stylesheet, no JavaScript.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Syne";
  src: url("../fonts/Syne-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("../fonts/Syne-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("../fonts/Syne-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("../fonts/Syne-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("../fonts/Syne-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #000433;
  --ink-soft: rgba(0, 4, 51, 0.68);
  --ink-faint: rgba(0, 4, 51, 0.5);
  --red: #ec1c24;
  --red-light: #ff5a60;   /* red that still reads on the navy card */
  --paper: #ffffff;
  --paper-2: #eaecf2;
  --line: rgba(0, 4, 51, 0.12);

  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --head-font: "Syne", var(--body-font);

  --wrap: 1100px;
  --gutter: clamp(22px, 5vw, 64px);
  --bar-h: clamp(64px, 8vh, 84px);
  --measure: 62ch;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body-font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Shared content column */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .logo img {
  height: clamp(20px, 2.4vw, 28px);
  width: auto;
  display: block;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body-font);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: clamp(13px, 1.3vw, 15px);
}
.lang-switch a {
  text-decoration: none;
  color: var(--ink-faint);
  padding: 13px 5px;          /* ≥44px tap target inside the 72px bar */
  transition: color 0.2s ease;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: var(--red); }
.lang-switch .sep { color: var(--line); }
.lang-switch .lbl {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-left: 5px;
}
@media (max-width: 420px) {
  .lang-switch .lbl { display: none; } /* keep just E | D on narrow screens */
}

/* ============================================================
   Sections
   ============================================================ */
main { flex: 1 0 auto; }

.section {
  padding-block: clamp(56px, 10vh, 120px);
}
.section--tint {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: clamp(16px, 2.5vh, 24px);
}

/* Short red rule used above a couple of headings */
.rule {
  width: 72px;
  height: 3px;
  background: var(--red);
  border: 0;
  margin-bottom: clamp(20px, 3vh, 32px);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(72px, 14vh, 160px) clamp(56px, 10vh, 120px);
}
.hero h1 {
  font-family: var(--head-font);
  font-weight: 800;
  /* sized so each sentence of the headline holds its own line down to ~440px;
     below that it wraps, which is fine. Syne ExtraBold is very wide. */
  font-size: clamp(2rem, 5.1vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: clamp(24px, 4vh, 36px);
}
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: clamp(32px, 5vh, 48px);
}

/* ---------- Services ---------- */
.section h2 {
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.section h2.statement {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.2;
  max-width: 26ch;
}
.section p {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--ink-soft);
  max-width: var(--measure);
}

.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  margin-block: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--line);
}
.services li {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.01em;
  padding-block: clamp(14px, 2vh, 20px);
  border-bottom: 1px solid var(--line);
}
.services li.more { color: var(--ink-faint); font-weight: 400; }

.section .closing {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 52ch;
}

/* ---------- Featured service (interactive online publications) ---------- */
.feature {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  margin-top: clamp(36px, 5vh, 56px);
  max-width: 760px;
}
.feature .eyebrow { color: var(--red-light); }
.feature h3 {
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: clamp(14px, 2vh, 20px);
}
.feature p {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
  margin-bottom: clamp(20px, 3vh, 28px);
}
.feature__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid var(--red-light);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.feature__link:hover { color: var(--red-light); }

/* ---------- Contact ---------- */
.contact h2 { max-width: 20ch; }
.contact .sub {
  margin-bottom: clamp(32px, 5vh, 44px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  min-height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.6px;
  color: var(--ink-faint);
}
.site-footer .copy { justify-self: start; }
.site-footer .impressum-link { justify-self: center; }
.site-footer .impressum-link a {
  display: inline-block;
  padding: 11px 6px;          /* the label is 15px tall on its own */
  margin: -11px -6px;         /* grow the target, not the bar */
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}
.site-footer .impressum-link a:hover { color: var(--red); }
.site-footer .ecg { justify-self: end; }
.site-footer .ecg a {
  display: inline-block;
  padding: 13px 8px;          /* the WKO badge is a fixed 17px tall */
  margin: -13px -8px;
}
.site-footer .ecg img { height: 17px; width: auto; display: block; }

@media (max-width: 640px) {
  /* Row 1: copyright and legal link pushed to opposite edges.
     Row 2: the WKO badge centred underneath, spanning both columns. */
  .site-footer {
    grid-template-columns: 1fr auto;
    row-gap: 18px;
    column-gap: 12px;
    padding: 20px var(--gutter);
  }
  .site-footer .copy { grid-column: 1; justify-self: start; }
  .site-footer .impressum-link { grid-column: 2; justify-self: end; }
  .site-footer .ecg { grid-column: 1 / -1; justify-self: center; }
  /* keep the 44px tap target, but drop the horizontal bleed so the label
     optically lines up with the copyright on the other edge */
  .site-footer .impressum-link a { padding: 11px 0; margin: -11px 0; }
}

/* ============================================================
   Legal pages (Impressum / Legal Notice)
   ============================================================ */
.legal {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) var(--gutter) clamp(64px, 11vh, 120px);
}
.legal h1 {
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.legal .intro {
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 66ch;
  padding-bottom: clamp(24px, 4vh, 36px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vh, 40px);
}
.legal .address {
  font-size: clamp(1rem, 1.7vw, 1.0625rem);
  line-height: 1.85;
  max-width: 66ch;
  margin-bottom: clamp(16px, 3vh, 28px);
}
.legal .address strong { font-weight: 700; }
.legal h3 {
  font-family: var(--head-font);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: clamp(34px, 5vh, 48px) 0 12px;
}
.legal p {
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-bottom: 14px;
}
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.legal a:hover { color: var(--red); }
.legal .backlink {
  display: inline-block;
  margin-top: clamp(40px, 6vh, 60px);
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}
.legal .backlink:hover { color: var(--red); }
