/* ==========================================================================
   Luminex Holding AG — styles.css
   Design-Tokens gemäss CLAUDE.md (WCAG 2.2 AA geprüft)
   ========================================================================== */

/* Poppins selbst gehostet (kein Google-Fonts-Request, CH-DSG-freundlich) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-600.woff2') format('woff2');
}

:root {
  --anthrazit: #26292E;
  --ivory: #F6F1EA;
  --kupfer: #B87548;            /* nur grafisch: Icons, Linien, grosse Zahlen */
  --kupfer-text-hell: #9C5F38;  /* Kupfer-Text/Links/Buttons auf Ivory (4.55:1) */
  --kupfer-text-dunkel: #D9A066;/* Kupfer-Text/Links auf Anthrazit (6.4:1) */
  --grau-hell: #6E675C;         /* Sekundärtext auf Ivory (4.97:1) */
  --grau-dunkel: #A8A199;       /* Sekundärtext auf Anthrazit (5.7:1) */
  --content-max: 1100px;
  --radius: 4px;
}

/* --- Basis ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--ivory);
  color: var(--anthrazit);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  text-wrap: pretty;
}

p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

a {
  color: var(--kupfer-text-hell);
}

a:hover {
  color: var(--anthrazit);
}

/* Sichtbarer Fokus auf allen interaktiven Elementen */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--kupfer);
  outline-offset: 2px;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: 24px;
}

/* --- Skip-Link ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--anthrazit);
  color: var(--ivory);
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 16px;
  color: var(--ivory);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Ivory-Text auf #9C5F38 = 4.55:1 (AA) — #B87548 wäre nur 3.29:1 */
.btn-primary {
  background: var(--kupfer-text-hell);
  color: var(--ivory);
}

.btn-primary:hover {
  background: #7F4C2C;
  color: var(--ivory);
}

.btn-outline-dark {
  border: 1px solid var(--kupfer-text-dunkel);
  color: var(--kupfer-text-dunkel);
}

.btn-outline-dark:hover {
  background: var(--kupfer-text-dunkel);
  color: var(--anthrazit);
}

/* --- Navigation ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid rgba(38, 41, 46, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-logo img {
  height: 40px;
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--anthrazit);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:not(.btn):hover {
  color: var(--kupfer-text-hell);
}

.nav-list .btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.nav-list .btn:hover {
  color: var(--ivory);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--anthrazit);
  transition: background-color 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--anthrazit);
  transition: transform 0.2s ease;
}

.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 799px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
  }

  .nav-menu.is-open {
    display: block;
  }

  .nav-bar {
    flex-wrap: wrap;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 8px 20px;
  }

  .nav-list a:not(.btn) {
    min-height: 48px;
    padding: 0 8px;
  }

  .nav-list .btn {
    margin-top: 12px;
    justify-content: center;
  }
}

/* --- Sektionen ------------------------------------------------------------ */

.section {
  padding-block: 96px;
}

.section-dark {
  background: var(--anthrazit);
  color: var(--ivory);
}

.section-divided .container {
  border-top: 1px solid rgba(38, 41, 46, 0.12);
  padding-top: 96px;
}

.section-divided {
  padding-top: 0;
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 56px;
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  background: var(--anthrazit);
  color: var(--ivory);
  padding-block: 104px 120px;
}

.hero-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 56px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  margin: 0 0 28px;
  max-width: 820px;
}

.hero-subline {
  color: var(--grau-dunkel);
  font-size: 18px;
  margin: 0 0 44px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--kupfer-text-dunkel);
  font-size: 15px;
  text-decoration: none;
}

.hero-secondary-link:hover {
  color: var(--ivory);
  text-decoration: underline;
}

/* --- Modell ----------------------------------------------------------------- */

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}

.model-grid .aperture {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}

.model-grid h3 {
  font-size: 20px;
  margin: 0 0 14px;
}

.model-grid h3 .step-number {
  color: var(--kupfer-text-hell);
}

.model-grid p {
  margin: 0;
}

/* --- Markt ------------------------------------------------------------------ */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.market-card {
  background: rgba(38, 41, 46, 0.035);
  border-top: 3px solid var(--kupfer);
  padding: 28px 26px;
}

.market-card h3 {
  font-size: 17px;
  margin: 0 0 12px;
}

.market-card p {
  font-size: 16px;
  color: var(--grau-hell);
  margin: 0;
}

.market-summary {
  font-size: 18px;
  margin: 56px 0 0;
  max-width: 760px;
}

.market-summary strong {
  font-weight: 600;
}

/* --- Track Record ------------------------------------------------------------ */

.track-intro {
  color: var(--grau-dunkel);
  margin: 0 0 72px;
  max-width: 720px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin: 0 0 72px;
  padding: 0;
  list-style: none;
}

.stat-value {
  display: block;
}

.stat-label {
  display: block;
}

/* #B87548 auf Anthrazit = 3.94:1 — zulässig, da grosse Zahlen (>= 44px, 600) */
.stat-value {
  color: var(--kupfer);
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.stat-label {
  color: var(--grau-dunkel);
  font-size: 15px;
  margin-top: 12px;
}

.track-summary {
  border-left: 2px solid var(--kupfer);
  padding-left: 24px;
  margin: 0;
  max-width: 720px;
}

/* --- Team --------------------------------------------------------------------- */

/* Flex mit zentrierten (auch unvollständigen) Reihen;
   Kartenbreite steuert die Spaltenzahl: Desktop 3 pro Reihe */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 28px;
  margin-bottom: 72px;
}

.team-member {
  width: 200px;
}

@media (min-width: 1000px) {
  .team-member {
    width: 300px;
  }
}

@media (max-width: 479px) {
  .team-member {
    width: 100%;
    max-width: 300px;
  }
}

.team-portrait {
  display: block;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.team-member h3 {
  font-size: 17px;
  margin: 0;
}

.team-role {
  color: var(--kupfer-text-hell);
  font-size: 14px;
  font-weight: 500;
  margin: 2px 0 8px;
}

.team-member p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grau-hell);
  margin: 0;
}

.governance {
  border-top: 1px solid rgba(38, 41, 46, 0.12);
  padding-top: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.governance .aperture {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 4px;
}

.governance p {
  font-size: 16px;
  margin: 0;
  max-width: 780px;
}

.governance strong {
  font-weight: 600;
}

/* --- Impact --------------------------------------------------------------------- */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
}

.impact-grid h3 {
  font-size: 19px;
  margin: 0 0 14px;
  border-bottom: 2px solid var(--kupfer);
  display: inline-block;
  padding-bottom: 8px;
}

.impact-grid p {
  margin: 0;
}

/* --- Kontakt ---------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.contact-card {
  background: rgba(246, 241, 234, 0.05);
  border: 1px solid rgba(246, 241, 234, 0.15);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.contact-card h3 {
  font-size: 22px;
  margin: 0;
}

.contact-card p {
  color: var(--grau-dunkel);
  font-size: 16px;
  margin: 0;
  flex: 1;
}

.legal-note {
  color: var(--grau-dunkel);
  font-size: 13px;
  margin: 0;
  max-width: 820px;
}

/* --- Footer ------------------------------------------------------------------------- */

.site-footer {
  background: var(--anthrazit);
  color: var(--ivory);
  padding-block: 40px 48px;
}

.footer-inner {
  border-top: 1px solid rgba(246, 241, 234, 0.15);
  padding-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 34px;
  width: auto;
}

.footer-meta {
  color: var(--grau-dunkel);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  gap: 8px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--grau-dunkel);
  font-size: 13px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ivory);
  text-decoration: underline;
}

/* --- Unterseiten (Impressum / Datenschutz) ------------------------------------------- */

.legal-page {
  padding-block: 64px 96px;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 32px;
}

.legal-page h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* --- Fade-ins (nur mit JS und ohne Reduced Motion) ------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
