/* =============================================================
   Layout — Container, Sections, Header, Footer, Preview-Streifen
   ============================================================= */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container--narrow { max-width: var(--container-narrow); }
.container--mid { max-width: var(--container-mid); }
.container--max { max-width: var(--container-max); }

/* Section rhythm */
.section {
  padding-block: clamp(64px, 9vw, 128px);
  position: relative;
}
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--text-on-dark);
}
.section--dark p { color: var(--text-on-dark-muted); }
.section--stone { background: var(--stone-100); }
.section--paper { background: var(--paper); }

/* Section headers */
.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--centered {
  text-align: center;
  margin-inline: auto;
  justify-items: center;
}
.section-head .eyebrow { margin-bottom: 4px; }
.section-head h2 { margin: 0; }
.section-head p {
  color: var(--text-muted);
  font-size: var(--fs-20);
  max-width: 62ch;
}
.section--dark .section-head p { color: var(--text-on-dark-muted); }

/* ================= Preview-Streifen (PixelUno) ================= */
.preview-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-preview);
  z-index: var(--z-preview);
  background: var(--purple-preview);
  color: var(--purple-preview-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.2;
}
.preview-bar__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
@media (max-width: 600px) {
  .preview-bar { font-size: 11px; padding-inline: 12px; }
}

/* ================= Header ================= */
.header {
  position: fixed;
  top: var(--bar-preview);
  left: 0; right: 0;
  height: var(--bar-header);
  z-index: var(--z-nav);
  background: transparent;
  transition:
    background-color var(--dur-3) var(--ease-out),
    backdrop-filter var(--dur-3) var(--ease-out),
    border-color var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
/* When scrolled */
.header.is-scrolled,
.header.is-solid {
  background: color-mix(in oklab, var(--stone-100) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--stone-200);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-950);
  flex-shrink: 0;
}
.brand__mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--ink-950);
  color: var(--sun-500);
  border-radius: var(--radius-8);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name-primary {
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-950);
}
.brand__name-secondary {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}
@media (max-width: 600px) {
  .brand__name-secondary { display: none; }
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink-800);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: background-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
  position: relative;
}
.nav__link:hover {
  background: color-mix(in oklab, var(--ink-950) 6%, transparent);
  color: var(--ink-950);
}
.nav__link[aria-current="page"] {
  color: var(--ink-950);
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--sun-500);
  border-radius: 50%;
}

/* Dropdown */
.nav__item--has-drop { position: relative; }
.nav__drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              visibility var(--dur-2);
  z-index: 5;
}
.nav__item--has-drop:hover .nav__drop,
.nav__item--has-drop:focus-within .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__drop-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-8);
  text-decoration: none;
  color: var(--ink-900);
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1.3;
  transition: background-color var(--dur-1) var(--ease-out);
}
.nav__drop-link small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-500);
  margin-top: 2px;
}
.nav__drop-link:hover {
  background: var(--stone-100);
  color: var(--ink-950);
  text-decoration: none;
}

/* Header actions right */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher — segmented pill */
.lang {
  display: inline-flex;
  padding: 3px;
  background: color-mix(in oklab, var(--ink-950) 6%, transparent);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.header.is-scrolled .lang,
.header.is-solid .lang {
  background: color-mix(in oklab, var(--ink-950) 8%, transparent);
}
.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  transition: background-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.lang__item:hover { color: var(--ink-900); }
.lang__item[aria-current="true"] {
  background: var(--ink-950);
  color: var(--sun-500);
}

/* Mobile nav trigger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--stone-200);
  background: var(--paper);
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--ink-950);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Mobile nav */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header__actions .btn:not(.nav-toggle) { display: none; }
  .header__actions .lang { display: none; }

  .nav {
    position: fixed;
    inset: calc(var(--bar-total)) 0 0 0;
    background: var(--stone-50);
    display: flex;
    flex-direction: column;
    padding: 32px clamp(20px, 4vw, 32px);
    padding-bottom: 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur-3) var(--ease-out);
    z-index: var(--z-nav);
    align-items: stretch;
    gap: 20px;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav__link {
    padding: 16px 12px;
    font-size: var(--fs-20);
    font-family: var(--font-serif);
    font-weight: 500;
    border-radius: 0;
    border-bottom: 1px solid var(--stone-200);
    justify-content: space-between;
    width: 100%;
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__item--has-drop .nav__drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 12px 12px;
    min-width: 0;
  }
  .nav__drop-link {
    padding: 8px 12px;
    font-size: var(--fs-16);
  }

  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--stone-200);
  }
  .nav__mobile-actions .btn { width: 100%; }
  .nav__mobile-actions .lang { align-self: center; }
}
@media (min-width: 961px) {
  .nav__mobile-actions { display: none; }
}

/* ================= Hero ================= */
/* ================= Hero V2 — Editorial Centered ================= */
.hero-v2 {
  padding-top: calc(var(--bar-header) + clamp(48px, 6vw, 80px));
  padding-bottom: clamp(48px, 8vw, 96px);
  background: var(--stone-50);
  position: relative;
  overflow: hidden;
}
.hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 50% 0%, color-mix(in oklab, var(--sun-500) 10%, transparent), transparent 60%);
  pointer-events: none;
}
.hero-v2 > .container { position: relative; text-align: center; }

.hero-v2__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 32px;
}
.hero-v2__mark-line {
  width: 40px;
  height: 1px;
  background: var(--ink-500);
  opacity: 0.5;
}
@media (max-width: 560px) {
  .hero-v2__mark { flex-direction: column; gap: 6px; font-size: 10px; }
  .hero-v2__mark-line { width: 24px; }
}

.hero-v2__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 2.2rem + 3.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  max-width: 18ch;
  margin: 0 auto 28px;
  text-wrap: balance;
}
.hero-v2__title em {
  font-style: italic;
  color: var(--sun-600);
  font-weight: 400;
}

.hero-v2__lead {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 62ch;
  margin: 0 auto 40px;
  font-weight: 400;
  text-wrap: pretty;
}

.hero-v2__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
@media (max-width: 480px) {
  .hero-v2__cta .btn { width: 100%; max-width: 320px; }
}

.hero-v2__photo {
  margin: 0 auto 56px;
  max-width: 1080px;
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
.hero-v2__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow:
    0 30px 60px -20px rgba(11,13,16,.25),
    0 12px 24px -8px rgba(11,13,16,.15);
}
.hero-v2__photo-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--ink-950);
  color: var(--sun-500);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  border: 4px solid var(--stone-50);
  box-shadow: 0 12px 28px -8px rgba(11,13,16,.35);
  z-index: 2;
}
.hero-v2__photo-badge-inner {
  text-align: center;
  padding: 8px;
}
.hero-v2__photo-badge-line-1 {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sun-500);
  font-weight: 500;
}
.hero-v2__photo-badge-line-2 {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.1;
  color: var(--stone-100);
  margin-top: 4px;
  font-style: italic;
  font-weight: 400;
}
@media (max-width: 560px) {
  .hero-v2__photo-badge { width: 92px; height: 92px; top: -14px; right: -8px; }
  .hero-v2__photo-badge-line-1 { font-size: 10px; }
  .hero-v2__photo-badge-line-2 { font-size: 14px; }
}

.hero-v2__stats {
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--stone-200);
}
.hero-v2__stats li {
  padding: 20px clamp(12px, 2vw, 24px);
  border-right: 1px solid var(--stone-200);
  text-align: left;
  display: grid;
  gap: 6px;
  align-content: center;
}
.hero-v2__stats li:last-child { border-right: none; }
.hero-v2__stat-value {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 1.6rem + 1.5vw, 3.2rem);
  font-weight: 400;
  color: var(--sun-600);
  line-height: 1;
}
.hero-v2__stat-label {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  color: var(--ink-600);
  letter-spacing: 0.02em;
  line-height: 1.35;
}
@media (max-width: 800px) {
  .hero-v2__stats { grid-template-columns: repeat(2, 1fr); }
  .hero-v2__stats li:nth-child(2n) { border-right: none; }
  .hero-v2__stats li:nth-child(-n+2) { border-bottom: 1px solid var(--stone-200); }
}
@media (max-width: 420px) {
  .hero-v2__stats { grid-template-columns: 1fr; }
  .hero-v2__stats li { border-right: none; border-bottom: 1px solid var(--stone-200); }
  .hero-v2__stats li:last-child { border-bottom: none; }
}

/* ================= Legacy Hero (kept for detail pages) ================= */
.hero {
  position: relative;
  padding-top: calc(var(--bar-header) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(64px, 10vw, 128px);
  background:
    radial-gradient(1200px 600px at 100% 0%, color-mix(in oklab, var(--sun-500) 12%, transparent), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, color-mix(in oklab, var(--sun-500) 7%, transparent), transparent 60%),
    linear-gradient(180deg, var(--stone-50), var(--stone-100));
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
.hero__content { max-width: 640px; }
.hero__eyebrow { margin-bottom: 24px; }
.hero__title {
  font-size: var(--fs-76);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-feature-settings: "kern", "liga";
}
.hero__title .accent {
  color: var(--sun-600);
  font-style: italic;
  font-feature-settings: "kern", "liga";
}
.hero__lead {
  font-size: var(--fs-20);
  color: var(--ink-700);
  margin-bottom: 32px;
  max-width: 56ch;
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-24);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 20%, var(--ink-700) 0%, var(--ink-900) 60%, var(--ink-950) 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-on-dark);
}
.hero__portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
}
.hero__portrait-placeholder {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  color: rgba(255,255,255,.14);
  text-align: center;
  padding: 40px;
}
.hero__portrait-placeholder svg {
  width: 55%;
  max-width: 260px;
  height: auto;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 50% 40%, transparent 40%, rgba(11,13,16,.55) 100%);
  pointer-events: none;
}

/* Floating fact cards on hero */
.fact-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-16);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
  min-width: 140px;
}
.fact-card__value {
  font-family: var(--font-serif);
  font-size: var(--fs-30);
  font-weight: 600;
  color: var(--ink-950);
  line-height: 1;
}
.fact-card__label {
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.fact-card--tl { top: 12%; left: -12%; }
.fact-card--br { bottom: 10%; right: -10%; }
@media (max-width: 900px) {
  .fact-card--tl { left: 6%; top: 8%; }
  .fact-card--br { right: 6%; bottom: 8%; }
}
@media (max-width: 480px) {
  .fact-card { padding: 10px 14px; min-width: 110px; }
  .fact-card__value { font-size: var(--fs-24); }
}

/* ================= Trust Bar ================= */
.trust {
  padding-block: 48px;
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
  background: var(--stone-100);
}
.trust__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-400);
  margin-bottom: 24px;
}
.trust__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  flex-wrap: wrap;
}
.trust__item {
  font-family: var(--font-serif);
  font-size: var(--fs-24);
  font-weight: 500;
  color: var(--ink-600);
  font-style: italic;
  opacity: 0.85;
  letter-spacing: -0.01em;
  transition: opacity var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.trust__item:hover { opacity: 1; color: var(--ink-800); }

/* ================= Footer ================= */
.footer {
  background: var(--ink-950);
  color: var(--text-on-dark);
  padding-block: 80px 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px 32px;
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__brand .brand__mark { background: var(--ink-800); border: 1px solid var(--border-on-dark-strong); }
.footer__brand .brand__name-primary { color: var(--stone-100); }
.footer__brand .brand__name-secondary { color: var(--ink-400); }

.footer__tagline {
  color: var(--text-on-dark-muted);
  font-size: var(--fs-14);
  margin-top: 16px;
  max-width: 30ch;
  line-height: 1.55;
}

.footer__col h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--sun-300);
  margin-bottom: 20px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer__col a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: var(--fs-14);
  transition: color var(--dur-1) var(--ease-out);
}
.footer__col a:hover {
  color: var(--sun-500);
  text-decoration: none;
}
.footer__col address {
  font-style: normal;
  font-size: var(--fs-14);
  color: var(--text-on-dark-muted);
  line-height: 1.75;
}
.footer__col address a { color: var(--text-on-dark); }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: var(--fs-12);
  color: var(--ink-400);
}
.footer__signature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-400);
  text-decoration: none;
}
.footer__signature .heart {
  color: var(--sun-500);
  transition: transform var(--dur-2) var(--ease-out);
  display: inline-block;
}
.footer__signature a {
  color: var(--stone-100);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.20);
  transition: border-color var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.footer__signature a:hover {
  color: var(--sun-500);
  border-color: var(--sun-500);
}
.footer__signature:hover .heart { transform: scale(1.15); }
