/* ============================================
   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: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-500italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-v37-latin-700italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@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: swap;
}
@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: swap;
}
@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: swap;
}

/* --- 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 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--accent);
}

.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 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.3px;
}

.footer-logo span {
  color: var(--accent);
}

.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;
  }
}