/* ============================================================
   ETHNO EQ — ethnoeq.de
   Design-Tokens aus ETHNO_EQ_Brand_System v0.9
   Regeln: keine Schatten, keine Verläufe, keine Ornamente.
   ============================================================ */

/* ---------- Fonts (selbst gehostet) ---------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-italic.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --charcoal: #1B1F1E;
  --charcoal-soft: #262B2A;
  --sage: #55655D;
  --terracotta: #D67A4A;
  --sand: #E7E2DA;
  --offwhite: #F7F7F5;

  --font-head: 'Poppins', 'Avenir Next', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --s-8: 8px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-48: 48px;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --max: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
.accent { color: var(--terracotta); }

.kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--s-24);
}

.lead { font-size: 1.15rem; max-width: 46em; }
.muted { opacity: 0.72; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
section { padding: clamp(72px, 10vw, 140px) 0; }
.dark { background: var(--charcoal); color: var(--offwhite); }
.sandbg { background: var(--sand); }

/* ---------- Header ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--charcoal) 88%, transparent);
  backdrop-filter: blur(10px);
  color: var(--offwhite);
}
.nav {
  max-width: var(--max); margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-24);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo svg { height: 30px; width: auto; }
.nav-logo span {
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: 0.28em; font-size: 0.85rem;
}
.nav-links { display: flex; gap: clamp(14px, 2.5vw, 30px); list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  opacity: 0.85; transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--terracotta); }
.nav-burger { display: none; background: none; border: 0; color: inherit; font-size: 1.6rem; cursor: pointer; line-height: 1; }

@media (max-width: 780px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--charcoal); padding: var(--s-8) 0 var(--s-16);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px clamp(20px, 4vw, 48px); }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 120px;
}
.hero .wrap { display: grid; gap: var(--s-48); }
.hero-logo { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-16); }
.hero-logo .wordmark {
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: 0.55em; font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  text-indent: 0.55em; /* optischer Ausgleich */
}
.hero-logo svg { width: clamp(150px, 22vw, 230px); height: auto; }
.hero h1 { max-width: 14em; }
.hero .claim {
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--sand);
}
.hero .lead { color: var(--sand); }
.hero-cta { display: flex; gap: var(--s-16); flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 14px 30px; border-radius: var(--radius-pill);
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--offwhite); }
.btn-ghost { border: 1.5px solid var(--sage); color: var(--offwhite); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ---------- Karten ---------- */
.grid { display: grid; gap: var(--s-24); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #FFFFFF;
  border: 1px solid var(--sand);
  border-radius: var(--radius-card);
  padding: var(--s-32);
}
.dark .card {
  background: var(--charcoal-soft);
  border-color: color-mix(in srgb, var(--sage) 35%, transparent);
}
.card h3 { margin-bottom: var(--s-16); }
.card p { font-size: 0.98rem; }

/* Stat-Karten */
.stat .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--terracotta);
  display: block; margin-bottom: var(--s-8);
}
.stat p { font-size: 0.92rem; }

/* Stat-Zeile ohne Karten (dunkle Sektionen) */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-32); margin-top: var(--s-48); }
.statrow .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--terracotta);
  display: block;
}
.statrow p { font-size: 0.88rem; opacity: 0.8; }

/* Icon-Kreis (outlined, Brand-Regel) */
.icircle {
  width: 56px; height: 56px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--terracotta);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-24);
}
.icircle svg { width: 26px; height: 26px; stroke: var(--terracotta); fill: none; stroke-width: 1.7; }

/* ---------- Werte-Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-32); }
.chip {
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 10px 22px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--sage); color: var(--sage);
}
.chip:nth-child(odd) { border-color: var(--terracotta); color: var(--terracotta); }

/* ---------- Idee: IQ -> EQ ---------- */
.rename {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap; margin: var(--s-48) 0;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem); letter-spacing: 0.18em;
}
.rename .old { color: var(--sage); }
.rename .old s { text-decoration-thickness: 3px; text-decoration-color: var(--terracotta); }
.rename .arrow { color: var(--terracotta); }
.rename svg { width: clamp(90px, 12vw, 130px); height: auto; }

/* ---------- Marken-Kosmos ---------- */
.kosmos-card { display: flex; flex-direction: column; }
.kosmos-tag {
  align-self: flex-start;
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--offwhite); background: var(--sage);
  padding: 6px 16px; border-radius: var(--radius-pill);
  margin-bottom: var(--s-24);
}
.kosmos-card.lead-brand .kosmos-tag { background: var(--terracotta); }
.kosmos-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.6rem; margin-bottom: var(--s-8);
}
.kosmos-card .facts { margin-top: auto; padding-top: var(--s-24); display: flex; flex-wrap: wrap; gap: 8px; }
.fact {
  font-size: 0.8rem; font-weight: 500;
  background: var(--offwhite); border: 1px solid var(--sand);
  padding: 5px 14px; border-radius: var(--radius-pill);
}

/* ---------- Quote-Band ---------- */
.quoteband { text-align: center; }
.quoteband blockquote {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.3;
  max-width: 22em; margin: 0 auto;
}
.quoteband cite { display: block; margin-top: var(--s-24); font-style: normal; font-size: 0.95rem; opacity: 0.75; }

/* ---------- Foto-Band (Emotion) ---------- */
.photoband {
  position: relative;
  min-height: 74vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: clamp(72px, 10vw, 140px) 0;
}
.photoband > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
}
.photoband::after {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--charcoal) 60%, transparent);
}
.photoband .wrap { position: relative; z-index: 1; color: var(--offwhite); }
.photoband h2 { max-width: 15em; font-size: clamp(2rem, 5vw, 3.4rem); }
.photoband .kicker { color: var(--sand); }

/* ---------- Kontakt ---------- */
.contact-mail {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--terracotta); text-decoration: none;
}
.contact-mail:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { background: var(--charcoal); color: var(--sand); padding: var(--s-48) 0; font-size: 0.85rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-24); flex-wrap: wrap; }
footer a { color: inherit; }
footer .bars { display: flex; gap: 5px; }
footer .bars i { width: 26px; height: 8px; border-radius: var(--radius-pill); display: block; }
footer .bars i:nth-child(1) { background: var(--sage); }
footer .bars i:nth-child(2) { background: var(--terracotta); }
footer .bars i:nth-child(3) { background: var(--sand); }

/* ---------- Scroll-Reveal (nur mit JS aktiv, sonst alles sichtbar) ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

section .kicker + h2 { margin-bottom: var(--s-24); }
section h2 + .lead { margin-bottom: var(--s-48); }
