/* Katerina Viva — main.css
   Design tokens (colors, fonts, spacing), base styles, layout, typography,
   buttons, header, navigation, language switcher and footer.
   Change a color here once → it updates on every German and English page. */

/* ---------- Self-hosted fonts (no third-party requests, GDPR-friendly) ---------- */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #2A1C13;
  --royal: #8A5A3B;
  --electric: #C08A5B;
  --gray: #F5F0EA;
  --white: #FBF8F4;
  --pure: #FFFFFF;
  --ink: #2B231E;
  --muted: #6B5E54;          /* darkened from #8A7C70 for 4.5:1 on light gray */
  --muted-soft: #8A7C70;
  --line: rgba(42,28,19, .10);
  --line-strong: rgba(42,28,19, .18);
  --on-dark: #F7F0E8;
  --on-dark-muted: rgba(240,228,214,.8);
  --line-dark: rgba(255, 255, 255, .16);

  --grad-hero: radial-gradient(circle at 75% 40%, #C08A5B 0%, #8A5A3B 40%, #2A1C13 100%);
  --grad-soft: radial-gradient(circle at 20% 0%, rgba(192,138,91,.16), transparent 55%);

  --f-head: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(88px, 11vw, 168px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --shadow-1: 0 1px 2px rgba(42,28,19,.04), 0 8px 24px -12px rgba(42,28,19,.12);
  --shadow-2: 0 2px 4px rgba(42,28,19,.04), 0 24px 60px -24px rgba(42,28,19,.28);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--gray); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin: 0; color: var(--navy); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
::selection { background: var(--electric); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); position: relative; }
.section--white { background: var(--white); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.dark { background: var(--navy); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead, .dark .muted { color: var(--on-dark-muted); }

/* ---------- Typography ---------- */
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.dark .eyebrow, .hero .eyebrow { color: #E2C4A5; }
.h-display { font-size: clamp(42px, 5.3vw, 86px); font-weight: 400; letter-spacing: -0.045em; line-height: .98; }
.h-1 { font-size: clamp(38px, 5vw, 76px); font-weight: 400; letter-spacing: -0.04em; }
.h-2 { font-size: clamp(32px, 3.8vw, 56px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.06; }
.h-3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.55; }
.num { font-family: var(--f-head); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -0.02em; }

.sec-head { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 960px) {
  .sec-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 64px; }
}
.sec-head .lead { max-width: 52ch; }
.statement { font-family: var(--f-head); font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.03em; line-height: 1.2; color: var(--navy); max-width: 26ch; }
.dark .statement { color: #fff; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--royal); --fg: #fff; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--bg); color: var(--fg); font-family: var(--f-head); font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em; text-decoration: none; border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s; cursor: pointer; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 70%); opacity: 0; transition: opacity .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(138,90,59,.7); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn:hover .arr--down { transform: translateY(3px); }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--light:hover { box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { --bg: var(--navy); --fg: #fff; box-shadow: none; }
.btn--ghost-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { --bg: rgba(255,255,255,.1); border-color: #fff; box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; color: var(--royal); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .3s var(--ease); }
.link-arrow:hover { gap: 12px; }
.dark .link-arrow { color: #E2C4A5; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; color: #fff; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled, .site-header.is-solid { background: rgba(245,240,234,.82); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); color: var(--navy); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-head); font-weight: 600; letter-spacing: -0.03em; font-size: 19px; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo small { font-weight: 400; opacity: .7; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 6px; }
.nav a { display: inline-block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; transition: background-color .25s; }
.nav a:hover { background: rgba(255,255,255,.12); }
.is-scrolled .nav a:hover, .is-solid .nav a:hover { background: rgba(42,28,19,.06); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.is-scrolled .nav a[aria-current="page"], .is-solid .nav a[aria-current="page"] { background: rgba(42,28,19,.07); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang a, .lang span { padding: 5px 10px; border-radius: 999px; text-decoration: none; line-height: 1; }
.lang [aria-current="true"] { background: currentColor; }
.lang [aria-current="true"] b { color: var(--navy); font-weight: 700; }
.is-scrolled .lang [aria-current="true"] b, .is-solid .lang [aria-current="true"] b { color: #fff; }
.header-cta { display: none; }
.site-header:not(.is-scrolled):not(.is-solid) .header-cta { --bg: #fff; --fg: var(--navy); }
.menu-btn { width: 46px; height: 46px; border-radius: 999px; border: 1px solid currentColor; background: transparent; display: inline-grid; place-items: center; color: inherit; }
.menu-btn span { width: 18px; height: 1.5px; background: currentColor; display: block; position: relative; transition: transform .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 150; background: var(--grad-hero); color: #fff; padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; overflow-y: auto; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.mobile-menu nav { margin-top: 48px; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-family: var(--f-head); font-size: 34px; letter-spacing: -0.03em; text-decoration: none; }
.mobile-menu .btn { margin-top: 36px; justify-content: center; }
.mobile-menu__meta { margin-top: auto; padding-top: 40px; color: var(--on-dark-muted); font-size: 15px; }
.close-btn { width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: clamp(72px, 8vw, 112px) 0 40px; font-size: 15px; }
.footer__big { font-family: var(--f-head); font-size: clamp(34px, 7vw, 112px); overflow-wrap: break-word; letter-spacing: -0.055em; line-height: .95; color: #fff; padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line-dark); margin-bottom: 56px; }
.footer__big a { text-decoration: none; display: inline-flex; flex-wrap: wrap; gap: .2em; align-items: baseline; transition: color .3s; }
.footer__big a:hover { color: #E2C4A5; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer__brand { grid-column: auto; } }
.footer__brand .logo { color: #fff; margin-bottom: 16px; }
.site-footer h2, .site-footer h3 { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #F1E6DA; transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 14px; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.placeholder { display: inline-block; padding: 1px 8px; border-radius: 6px; background: rgba(255,194,26,.16); color: #8A5A00; border: 1px dashed rgba(217,138,0,.6); font-size: .92em; }
.dark .placeholder, .site-footer .placeholder, .cta .placeholder { color: #FFD88A; background: rgba(255,194,26,.12); border-color: rgba(255,194,26,.5); }


/* Active menu item: dot under the label (instead of a filled pill) */
.nav a { position: relative; }
.nav a[aria-current="page"], .is-scrolled .nav a[aria-current="page"], .is-solid .nav a[aria-current="page"] { background: rgba(42,28,19,.06); }
.site-header:not(.is-scrolled):not(.is-solid) .nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: currentColor; }
.mobile-menu nav a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 14px; flex: none; }
.mobile-menu nav a[aria-current="page"] { justify-content: flex-start; }
.mobile-menu nav a[aria-current="page"] span { margin-left: auto; }

/* Menu: no background on hover/active – only the dot under the active item */
.nav a:hover, .is-scrolled .nav a:hover, .is-solid .nav a:hover,
.nav a[aria-current="page"], .is-scrolled .nav a[aria-current="page"], .is-solid .nav a[aria-current="page"],
.site-header:not(.is-scrolled):not(.is-solid) .nav a[aria-current="page"] { background: transparent; }
.nav a { transition: opacity .25s; }
.nav a:hover { opacity: .7; }

/* Logo in the headline style: light sans + single italic serif letters */
.logo { font-weight: 400; letter-spacing: -0.04em; font-size: 21px; }
.logo em.serif { font-size: 1.1em; line-height: 0; letter-spacing: 0; padding: 0 .01em; }

/* Headline words with an italic letter never break in the middle */
.nw { white-space: nowrap; }
