/* BrandLift Studio – base: tokens, reset, layout, header, footer, buttons */
:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #18181b;
  --line: rgba(244, 239, 230, 0.09);
  --line-strong: rgba(201, 164, 92, 0.35);
  --text: #f4efe6;
  --muted: #a9a398;
  --gold: #c9a45c;
  --gold-light: #e8cf98;
  --gold-gradient: linear-gradient(135deg, #e8cf98 0%, #c9a45c 55%, #a8843f 100%);
  --radius: 16px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  --bg-deep: #070708;
  --graphite: #101012;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  --glass-line: rgba(244, 239, 230, 0.1);
  --gold-glow: rgba(201, 164, 92, 0.35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 85% -8%, rgba(201, 164, 92, 0.07), transparent 62%),
    radial-gradient(900px 600px at -10% 38%, rgba(201, 164, 92, 0.035), transparent 60%),
    linear-gradient(180deg, #0c0c0e 0%, var(--bg) 45%, #0b0b0d 100%);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: break-word; }
p { overflow-wrap: break-word; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: #0a0a0b; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 0.97rem; text-align: center; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease, background-color .2s ease;
}
.btn-primary { background: var(--gold-gradient); color: #0a0a0b; box-shadow: 0 6px 24px -8px rgba(201, 164, 92, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(201, 164, 92, 0.85), 0 0 0 4px rgba(201, 164, 92, 0.12); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(201, 164, 92, 0.08); transform: translateY(-2px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 9, 0.28);
  -webkit-backdrop-filter: blur(8px) saturate(130%); backdrop-filter: blur(8px) saturate(130%);
  border-bottom: 1px solid rgba(201, 164, 92, 0.14);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -22px rgba(0, 0, 0, 0.9);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); flex-wrap: wrap; transition: min-height .3s var(--ease); }
.site-header.is-scrolled .header-inner { min-height: 60px; }
.header-inner { flex-wrap: nowrap; }
.site-nav a { font-size: 0.86rem; padding: 6px 14px; }
.header-cta { min-height: 38px; padding: 0 18px; font-size: 0.82rem; white-space: nowrap; }
.nav-cta-mobile { display: none; }
@media (min-width: 1200px) {
    .site-header > .container {
        max-width: 1560px;
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        column-gap: 24px;
    }

    .header-inner .brand {
        justify-self: start;
    }

    .site-nav {
        justify-self: center;
    }

    .header-cta {
         justify-self: end;
    transform: translateX(10px);
    }
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 1.1rem; }
.brand-text span { color: var(--gold); font-weight: 500; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--gold-gradient);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 18px rgba(201, 164, 92, 0.5);
}
.site-nav ul { display: flex; gap: clamp(4px, 1vw, 10px); flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-size: 0.95rem; padding: 8px 14px; border-radius: 999px; transition: color .2s ease, background-color .25s ease, box-shadow .25s ease; position: relative; }
.site-nav a:hover { color: var(--text); background: rgba(244, 239, 230, 0.05); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .header-cta { display: none; }
  .js .nav-cta-mobile { display: block; padding-top: 16px; }
  .js .site-nav .nav-cta-mobile a.btn { display: inline-flex; width: 100%; padding: 0 24px; border: 0; border-radius: 999px; font-size: 0.95rem; color: #0a0a0b; background: var(--gold-gradient) !important; box-shadow: 0 6px 24px -8px rgba(201, 164, 92, 0.6) !important; }
  .js .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; background: transparent;
    border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; background: none !important; box-shadow: none !important; }
  .site-nav { width: 100%; }
  .js .site-nav { width: auto; }
}

/* Footer: three premium cards */
.site-footer { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); padding-top: clamp(24px, 4vw, 48px); background: linear-gradient(180deg, var(--graphite), var(--bg-deep)); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.site-footer::after { /* warm ambient glow + very faint geometric lattice */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(201, 164, 92, 0.28), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c9a45c' stroke-width='.7'%3E%3Cpath d='M48 6l9 21 21-9-9 21 21 9-21 9 9 21-21-9-9 21-9-21-21 9 9-21-21-9 21-9-9-21 21 9z'/%3E%3C/g%3E%3C/svg%3E") center top / 96px 96px;
  opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000, transparent 80%);
}
.footer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-bottom: clamp(32px, 4vw, 48px); }
.footer-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  padding: clamp(32px, 3.4vw, 52px) clamp(24px, 2.6vw, 40px);
  border: 1px solid rgba(201, 164, 92, 0.32); border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 164, 92, 0.08), transparent 62%), #121214;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 36px 80px -56px rgba(201, 164, 92, 0.45);
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 1.3rem; margin: 0; }
.footer-logo-img { display: block; height: 52px; width: auto; max-width: 72px; object-fit: contain; flex: none; }
.footer-mark { display: block; height: 48px; width: auto; max-width: 64px; object-fit: contain; margin-bottom: 18px; }
.footer-rule { display: block; width: 56px; height: 1px; margin: 22px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-message { font-size: 1.15rem; line-height: 1.4; letter-spacing: -0.01em; color: var(--text); margin: 0; }
.footer-message--sm { font-size: 1.02rem; max-width: 24ch; }
.footer-note { margin: 12px 0 0; font-size: 0.92rem; max-width: 32ch; }
.footer-heading { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin: 0; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.footer-links a, .footer-contact a { color: var(--muted); transition: color .2s ease; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; font-size: 0.95rem; overflow-wrap: anywhere; }
.footer-btn { margin-top: auto; width: 100%; max-width: 260px; justify-content: center; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; }
.footer-card--social .footer-social + .footer-btn, .footer-card--social .footer-contact + .footer-btn { margin-top: 24px; }
.footer-card--social .footer-btn { margin-top: auto; }
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-legal a { color: var(--muted); font-size: 0.88rem; transition: color .2s ease; }
.footer-legal a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line-strong); padding-block: 22px; font-size: 0.88rem; align-items: center;
}
/* Large desktop footer: wider, centred, more presence (tablet/mobile keep the rules above) */
@media (min-width: 1200px) {
  .site-footer { padding-top: 36px; }
 .site-footer > .container {
    max-width: 1480px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}
  .footer-cards { gap: 32px; padding-bottom: 44px; }
  .footer-card { padding: 38px 50px; min-height: 438px; border-radius: 30px; border-color: rgba(201, 164, 92, 0.22);
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 164, 92, 0.09), transparent 62%), linear-gradient(180deg, #141416, #101012);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 50px -32px rgba(0, 0, 0, 0.85), 0 36px 80px -56px rgba(201, 164, 92, 0.4); }
  .footer-logo { gap: 14px; font-size: 1.45rem; }
  .footer-logo-img { height: 60px; max-width: 84px; }
  .footer-rule { width: 64px; margin: 28px auto; }
  .footer-message { font-size: 1.25rem; }
  .footer-note { margin-top: 14px; font-size: 1rem; }
  .footer-heading { font-size: 0.88rem; }
  .footer-links { gap: 12px; margin-bottom: 36px; }
  .footer-links a { font-size: 1.04rem; }
  .footer-btn { min-height: 50px; max-width: 280px; padding: 0 30px; font-size: 0.95rem; text-transform: none; letter-spacing: 0; } /* primary-button language, sentence case */
  .footer-mark { height: 71px; max-width: 93px; margin-top: -13px; margin-bottom: 22px; } /* grows upward so the text below keeps its place */
  .footer-message--sm { font-size: 1.1rem; }
  /* balance: side cards centre their content beside the taller link card */
  .footer-card--brand, .footer-card--social { justify-content: center; }
  .footer-card--brand .footer-rule { margin: 22px auto 24px; }
  .footer-card--brand .footer-note { margin-top: 10px; }
  .footer-card--links .footer-rule { margin: 18px auto 22px; }
  .footer-card--links .footer-links { margin-bottom: 28px; }
  /* the "Kontakta oss" button replaces the redundant "Kontakt" text link; the shorter list is centred in its card */
  .footer-links li:has(> a[href$="/kontakt/"]) { display: none; }
  .footer-card--links { justify-content: center; }
  .footer-card--links .footer-btn { margin-top: 0; }
  .footer-card--social .footer-rule { margin: 26px auto 0; }
  .footer-bottom { position: relative; border-top: 0; padding-block: 26px 30px; font-size: 0.94rem; line-height: 1.5; }
  /* divider drawn on the content box (container padding excluded) so it matches the card edges and the legal row */
  .footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-strong); }
  .footer-bottom p { margin: 0; }
  .footer-legal { gap: 6px 28px; }
  .footer-legal a { font-size: 0.94rem; }
}
@media (max-width: 1023px) {
  .footer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-card--social { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-cards { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .footer-legal { justify-content: center; }
}

/* Scroll reveal (progressive enhancement: only when JS is present) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  /* After the entrance finishes, restore normal hover transitions (no stagger delay). */
  .js .reveal.is-settled { transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s ease, background-color .3s ease; transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Inline text links */
.text-link { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(201, 164, 92, 0.4); text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
.text-link:hover { color: var(--text); text-decoration-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold-light); background: rgba(201, 164, 92, 0.1); box-shadow: inset 0 0 0 1px rgba(201, 164, 92, 0.28); }
@media (max-width: 860px) { .js .site-nav a[aria-current="page"] { color: var(--gold-light); } }

/* BrandLift logo mark (SiteContent.logo, else static fallback): never distorted */
.brand-logo { display: block; height: 34px; width: auto; max-width: 56px; object-fit: contain; flex: none; }
@media (max-width: 480px) { .brand-logo { height: 30px; } }
/* Large desktop header: more presence, same height (--header-h is shared with the hero) */
@media (min-width: 1200px) {
  .brand { gap: 12px; font-size: 1.24rem; }
  .brand-logo { height: 40px; max-width: 64px; }
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: 0.97rem; padding: 8px 17px; letter-spacing: 0.005em; }
  .header-cta { min-height: 44px; padding: 0 24px; font-size: 0.92rem; }
}
/* Footer social links (only rendered when configured) */
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--gold-light); border-color: var(--gold); background: rgba(201, 164, 92, 0.08); }
.footer-social .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.btn > span[aria-hidden="true"] { margin-left: 8px; }
