/* ============================================================
   BESSER SPRECHEN — Global Stylesheet · Noir Sonic Editorial
   ============================================================ */

:root {
  --primary:       #F5C640;
  --secondary:     #C8A82E;
  --accent:        #FFD95A;
  --bg:            #0D0C09;
  --surface:       #1C1A15;
  --text:          #F2EDE4;
  --text-muted:    #9A8F7E;
  --font-display:  'Bricolage Grotesque', sans-serif;
  --font-body:     'Outfit', sans-serif;
  --nav-height:    72px;
  --container-max: 1280px;
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection { background-color: rgba(245,198,64,0.22); color: var(--text); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245,198,64,0.18); }

/* ============================================================
   TYPOGRAPHY BASE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.75rem, 6vw,   5rem); }
h2 { font-size: clamp(2rem,    4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem,  3vw,   2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 2rem;
  width: 100%;
}

.section {
  padding-block: 6rem;
  position: relative;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(13, 12, 9, 0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(245, 198, 64, 0.10);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 2rem;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.82; }
.nav-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.015em;
  border-radius: 5px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.65rem;
  right: 0.65rem;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
  background-color: rgba(245, 198, 64, 0.05);
}
.nav-link:hover::after { transform: scaleX(1); }

/* Active — applied by per-page JS targeting [data-slug] */
.nav-link.active {
  color: var(--primary);
  background-color: rgba(245, 198, 64, 0.07);
}
.nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(245, 198, 64, 0.18);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav-hamburger:hover {
  border-color: rgba(245, 198, 64, 0.45);
  background-color: rgba(245, 198, 64, 0.04);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.32s var(--ease-out), opacity 0.22s ease, background-color 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg);  background-color: var(--primary); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background-color: var(--primary); }

/* Mobile overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: var(--nav-height);
  inset-inline: 0;
  bottom: 0;
  background-color: rgba(13, 12, 9, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  padding: 1.5rem 1.25rem 4rem;
  overflow-y: auto;
  flex-direction: column;
  border-top: 1px solid rgba(245, 198, 64, 0.07);
}
.nav-mobile-overlay.is-open { display: flex; }

.nav-mobile-overlay .nav-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 1rem;
  width: 100%;
  border-radius: 0;
  border-bottom: 1px solid rgba(245, 198, 64, 0.05);
  color: var(--text-muted);
}
.nav-mobile-overlay .nav-link:last-child { border-bottom: none; }
.nav-mobile-overlay .nav-link::after { display: none; }
.nav-mobile-overlay .nav-link:hover,
.nav-mobile-overlay .nav-link.active {
  color: var(--primary);
  background-color: rgba(245, 198, 64, 0.05);
  padding-left: 1.5rem;
  transition: padding-left 0.22s var(--ease-out), color 0.2s ease, background-color 0.2s ease;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 2rem;
  padding-block: 4rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 198, 64, 0.07);
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-brand a { display: inline-block; transition: opacity 0.2s ease; }
.footer-brand a:hover { opacity: 0.78; }
.footer-brand img { height: 30px; width: auto; object-fit: contain; filter: brightness(0.9); }

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 260px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.375rem 1.5rem;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  padding-block: 0.2rem;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.footer-link:hover { color: var(--primary); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-link:hover { color: var(--primary); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.display-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.035em;
  color: var(--text);
}
.display-heading em,
.display-heading .highlight { color: var(--primary); font-style: normal; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

.body-text {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.label-text {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: var(--primary);
  color: #0D0C09;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.22s var(--ease-out), box-shadow 0.22s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background-color: var(--accent);
  color: #0D0C09;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(245, 198, 64, 0.28);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid rgba(245, 198, 64, 0.38);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease,
              color 0.2s ease, transform 0.22s var(--ease-out);
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--primary);
  background-color: rgba(245, 198, 64, 0.07);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }

/* ============================================================
   CARD
   ============================================================ */
.card {
  background-color: var(--surface);
  border: 1px solid rgba(245, 198, 64, 0.08);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 198, 64, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(245, 198, 64, 0.20);
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 198, 64, 0.07);
}

/* ============================================================
   WAVEFORM DIVIDER — Signature Detail
   A single golden waveform line rendered like an actual audio
   recording with variable amplitude threads horizontally through
   every section: swelling near key messages, narrowing to a
   hairline in the silence between — making visual rhythm sonic.
   ============================================================ */
.waveform-divider {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
  display: block;
}

.waveform-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30Q15,27,30,30Q45,34,60,30Q75,25,90,30Q105,36,120,30Q135,21,150,30Q165,42,180,30Q195,14,210,30Q225,50,240,30Q255,6,270,30Q285,56,300,30Q315,5,330,30Q345,52,360,30Q375,12,390,30Q405,44,420,30Q435,20,450,30Q465,36,480,30Q495,27,510,30Q525,31,540,30Q555,29,570,30Q585,32,600,30Q615,27,630,30Q645,36,660,30Q675,20,690,30Q705,44,720,30Q735,13,750,30Q765,46,780,30Q795,17,810,30Q825,40,840,30Q855,23,870,30Q885,35,900,30Q915,26,930,30Q945,36,960,30Q975,22,990,30Q1005,40,1020,30Q1035,22,1050,30Q1065,36,1080,30Q1095,26,1110,30Q1125,33,1140,30Q1155,28,1170,30Q1185,31,1200,30Q1215,29,1230,30Q1245,32,1260,30Q1275,27,1290,30Q1305,34,1320,30Q1335,27,1350,30Q1365,32,1380,30Q1395,29,1410,30Q1425,31,1440,30' stroke='%23F5C640' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.75;
}

/* Accent glow beneath the line */
.waveform-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30Q15,27,30,30Q45,34,60,30Q75,25,90,30Q105,36,120,30Q135,21,150,30Q165,42,180,30Q195,14,210,30Q225,50,240,30Q255,6,270,30Q285,56,300,30Q315,5,330,30Q345,52,360,30Q375,12,390,30Q405,44,420,30Q435,20,450,30Q465,36,480,30Q495,27,510,30Q525,31,540,30Q555,29,570,30Q585,32,600,30Q615,27,630,30Q645,36,660,30Q675,20,690,30Q705,44,720,30Q735,13,750,30Q765,46,780,30Q795,17,810,30Q825,40,840,30Q855,23,870,30Q885,35,900,30Q915,26,930,30Q945,36,960,30Q975,22,990,30Q1005,40,1020,30Q1035,22,1050,30Q1065,36,1080,30Q1095,26,1110,30Q1125,33,1140,30Q1155,28,1170,30Q1185,31,1200,30Q1215,29,1230,30Q1245,32,1260,30Q1275,27,1290,30Q1305,34,1320,30Q1335,27,1350,30Q1365,32,1380,30Q1395,29,1410,30Q1425,31,1440,30' stroke='%23F5C640' stroke-width='6' fill='none'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.06;
  filter: blur(3px);
}

/* ============================================================
   PAGE HERO — Shared Inner Page Header
   ============================================================ */
.page-hero {
  position: relative;
  padding-block: 4rem 3.5rem;
  background-color: var(--surface);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at -5% 60%, rgba(245, 198, 64, 0.055) 0%, transparent 65%),
    linear-gradient(180deg, rgba(245, 198, 64, 0.025) 0%, transparent 100%);
  pointer-events: none;
}

/* Subtle left accent bar */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--primary) 30%, var(--secondary) 70%, transparent 100%);
  opacity: 0.6;
}

.page-hero-inner {
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 2rem;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background-color: var(--primary);
  opacity: 0.7;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--text);
  max-width: 18ch;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 198, 64, 0); }
  50%       { box-shadow: 0 0 28px 4px rgba(245, 198, 64, 0.18); }
}

.fade-in          { animation: fadeIn 0.8s var(--ease-out) both; }
.fade-in-delay-1  { animation-delay: 0.10s; }
.fade-in-delay-2  { animation-delay: 0.20s; }
.fade-in-delay-3  { animation-delay: 0.32s; }
.fade-in-delay-4  { animation-delay: 0.44s; }
.fade-in-delay-5  { animation-delay: 0.56s; }

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .container       { padding-inline: 1.5rem; }
  .nav-inner       { padding-inline: 1.5rem; }
  .footer-inner    { padding-inline: 1.5rem; }
  .page-hero-inner { padding-inline: 1.5rem; }

  /* Switch to hamburger — 9 nav items are too tight below 1024px */
  .nav-links      { display: none; }
  .nav-hamburger  { display: flex; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .container       { padding-inline: 1.25rem; }
  .nav-inner       { padding-inline: 1.25rem; }
  .footer-inner    { padding-inline: 1.25rem; }
  .page-hero-inner { padding-inline: 1.25rem; }

  .section { padding-block: 4rem; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .page-hero        { padding-block: 3rem 2.5rem; }
  .page-hero-title  { max-width: none; }

  .waveform-divider { height: 44px; }

  .display-heading  { letter-spacing: -0.025em; }
}

/* ── Image quality defaults ── */
img { object-fit: cover; max-width: 100%; height: auto; }
img[class*="logo"], img[class*="icon"], img[class*="flag"] { object-fit: contain; }
