/* ============================================
   MENTAMAP — style.css
   Gemeinsame Styles für alle Seiten
   ============================================ */

/* --- LOKALE FONTS --- */
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: fallback;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-700italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: fallback;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-v17-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-v17-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: fallback;
}

/* --- VARIABLEN --- */
:root {
  --bg:           #faf8f5;
  --bg-warm:      #f5ede0;
  --bg-hero:      linear-gradient(160deg, #fdf6ee 0%, #f5ede0 70%, #faf8f5 100%);
  --white:        #ffffff;

  --accent:       #c4773a;
  --accent-light: #fdf0e4;
  --accent-border:#e8d0b0;

  --text-dark:    #1e1810;
  --text-body:    #2c2416;
  --text-muted:   #6b5d4f;
  --text-faint:   #a0907e;
  --text-label:   #8a7a68;

  --border:       #e8e0d4;

  --font-serif:   'Georgia', 'Times New Roman', serif;
  --font-sans:    'Helvetica Neue', 'Arial', sans-serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    20px;
  --radius-pill:  50px;

  --shadow-sm:    0 2px 12px rgba(44,36,22,0.06);
  --shadow-md:    0 8px 28px rgba(44,36,22,0.09);
  --shadow-lg:    0 12px 40px rgba(44,36,22,0.12);

  --nav-height:   62px;
  --max-width:    1000px;
  --side-pad:     48px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- NAVIGATION --- */
.site-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--side-pad);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-label);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-dark);
}

.nav-cta {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  transition: opacity 0.2s, transform 0.15s;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Hamburger — Mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-body);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- FOOTER --- */
.site-footer {
  background: #1e1810;
  padding: 40px var(--side-pad) 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 20px;
}

.footer-logo img {
  display: block;
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  margin-top: 6px;
  letter-spacing: 0.2px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  text-align: center;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 44px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,119,58,0.3);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--text-label);
  color: var(--text-body);
}

/* --- LAYOUT HELPERS --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  width: 100%;
}

.section {
  padding: 64px var(--side-pad);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.section-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* --- TRUST STRIP --- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 22px var(--side-pad);
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  font-size: 15px;
}

.trust-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
}

.trust-text strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* --- TEST CARDS --- */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.test-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.test-card:not(.locked):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.test-card.featured {
  border-color: var(--accent);
  border-width: 1.5px;
}

.test-card.locked {
  opacity: 0.6;
  cursor: default;
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--accent-border);
  letter-spacing: 0.5px;
}

.lock-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f5f0ea;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
}

.test-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.test-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.test-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.test-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.test-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.test-pill {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-label);
  background: #f5f0ea;
  padding: 4px 12px;
  border-radius: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root {
    --side-pad: 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px var(--side-pad);
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .trust-strip {
    gap: 20px;
    justify-content: flex-start;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    gap: 16px;
  }

  .section {
    padding: 48px var(--side-pad);
  }
}

@media (max-width: 480px) {
  .tests-grid {
    grid-template-columns: 1fr;
  }
}

/* --- REF BANNER --- */
.ref-banner {
  background: #2c2416;
  padding: 18px 24px;
  text-align: center;
}
.ref-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  max-width: 720px;
  margin: 0 auto;
}
.ref-banner-label {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a08060;
  width: 100%;
}
.ref-banner-typ {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  color: #f0c896;
}
.ref-banner-sub {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  color: #c4a882;
}
.ref-banner-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #c4773a;
  color: #fff;
  border-radius: 8px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ref-banner-btn:hover { background: #a8622e; }

/* --- TEST INTRO SCREEN --- */
.intro-tip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #fdf6ee;
  border: 1px solid #e8d8c4;
  border-radius: 12px;
}
.intro-tip-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1810;
}
.intro-tip-desc {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 13px;
  color: #6b5d4f;
  line-height: 1.5;
}

/* =====================================================
   HERO ATMOSPHERE
   Animierter Mesh-Gradient + Grain-Overlay + Ambient-Glow
   Greift für alle Hero-Varianten quer über alle Seiten.
   Wichtig: !important wird gebraucht, da seitenspezifische
   <style>-Blöcke im body source-order später kommen.
   ===================================================== */

.hero,
.bc-hero,
.methodik-hero,
.result-hero,
.pro-hero-inner {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}

/* --- Light Heros (Creme-Hintergrund) --- */
.hero,
.bc-hero,
.methodik-hero {
  background:
    radial-gradient(at 18% 22%, rgba(216, 153, 104, 0.22) 0%, transparent 42%),
    radial-gradient(at 82% 18%, rgba(196, 119, 58, 0.16) 0%, transparent 45%),
    radial-gradient(at 75% 88%, rgba(170, 100, 120, 0.14) 0%, transparent 50%),
    radial-gradient(at 12% 78%, rgba(232, 200, 160, 0.28) 0%, transparent 55%),
    linear-gradient(160deg, #fdf6ee 0%, #f5ede0 70%, #faf0e6 100%) !important;
  background-size: 180% 180%, 200% 200%, 220% 220%, 200% 200%, 100% 100% !important;
  background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0% !important;
  animation: hero-mesh-drift 28s ease-in-out infinite alternate;
}

@keyframes hero-mesh-drift {
  0% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%;
  }
  50% {
    background-position: 30% 25%, 70% 35%, 60% 65%, 35% 55%, 0% 0%;
  }
  100% {
    background-position: 60% 45%, 40% 65%, 25% 35%, 65% 25%, 0% 0%;
  }
}

/* --- Grain-Overlay (alle Heros) --- */
.hero::before,
.bc-hero::before,
.methodik-hero::before,
.result-hero::before,
.pro-hero-inner::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  pointer-events: none;
  z-index: 0 !important;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") !important;
  background-size: 200px 200px !important;
  background-repeat: repeat !important;
}

/* --- Ambient Glow (atmend) --- */
.hero::after,
.bc-hero::after,
.methodik-hero::after,
.result-hero::after,
.pro-hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 60% 55% at 50% 45%,
    rgba(196, 119, 58, 0.10) 0%,
    rgba(196, 119, 58, 0.04) 38%,
    transparent 72%
  );
  animation: hero-glow-breathe 7s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.06); }
}

/* --- Dark Heros (Ergebnis & Pro-Ergebnis) --- */
.result-hero,
.pro-hero-inner {
  background:
    radial-gradient(at 20% 25%, rgba(196, 119, 58, 0.28) 0%, transparent 45%),
    radial-gradient(at 80% 20%, rgba(216, 153, 104, 0.16) 0%, transparent 50%),
    radial-gradient(at 75% 85%, rgba(120, 60, 80, 0.32) 0%, transparent 55%),
    radial-gradient(at 15% 80%, rgba(196, 119, 58, 0.20) 0%, transparent 50%),
    linear-gradient(160deg, #2c1a08 0%, #1c1308 100%) !important;
  background-size: 180% 180%, 200% 200%, 220% 220%, 200% 200%, 100% 100% !important;
  background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0% !important;
  animation: hero-mesh-drift 28s ease-in-out infinite alternate;
}

.result-hero::before,
.pro-hero-inner::before {
  opacity: 0.7 !important;
  mix-blend-mode: soft-light !important;
}

.result-hero::after,
.pro-hero-inner::after {
  background: radial-gradient(
    ellipse 65% 60% at 50% 40%,
    rgba(196, 119, 58, 0.30) 0%,
    rgba(196, 119, 58, 0.10) 40%,
    transparent 75%
  );
}

/* Inhalt über die Pseudo-Elemente heben */
.hero > *,
.bc-hero > *,
.methodik-hero > *,
.result-hero > *,
.pro-hero-inner > * {
  position: relative;
  z-index: 1;
}

/* Hero-Network Canvas: hinter Inhalt, über Mesh/Grain */
.hero-network-canvas {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0 !important;
  display: block;
}

/* Akzent-Farben in Light-Heros abdunkeln (Kontrast gegen Mesh) */
.hero .hero-eyebrow,
.bc-hero .bc-hero-label,
.methodik-hero .methodik-section-label {
  color: #7a3d12 !important;
}

.hero h1 em,
.bc-hero h1 em,
.methodik-hero h1 em {
  color: #8a4518 !important;
}

/* Body- und Meta-Text in Light-Heros abdunkeln */
.hero .hero-sub,
.bc-hero p,
.methodik-hero .methodik-lead {
  color: #3d2f1f !important;
}

.hero .hero-meta,
.bc-hero .bc-hero-meta {
  color: #5a4632 !important;
}

/* Reduced-Motion respektieren */
@media (prefers-reduced-motion: reduce) {
  .hero, .bc-hero, .methodik-hero,
  .result-hero, .pro-hero-inner,
  .hero::after, .bc-hero::after, .methodik-hero::after,
  .result-hero::after, .pro-hero-inner::after {
    animation: none !important;
  }
}