/* ── shared.css ── Design system for abovergleich.com ─��────────────── */

:root {
  /* Brand Gold */
  --accent: #fed001;
  --accent-hover: #ffe033;
  --accent-dark: #c9a400;
  --accent-text: #7a6200;
  --accent-bg: rgba(254,208,1,0.08);
  --accent-bg2: rgba(254,208,1,0.14);
  --badge: #fef9e0;
  --badge-text: #8a6d00;

  /* Surfaces */
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface2: #f5f5f4;
  --border: rgba(0,0,0,0.06);
  --border2: rgba(0,0,0,0.12);

  /* Text */
  --text: #1c1917;
  --text2: #292524;
  --muted: #78716c;

  /* Dark sections */
  --dark: #1c1917;
  --dark2: #141210;
  --dark-text: #f5f5f4;
  --dark-muted: #a8a29e;

  /* Vertical accent colors */
  --blue: #2563eb;
  --blue-bg: rgba(37,99,235,0.06);
  --teal: #0d9488;
  --teal-bg: rgba(13,148,136,0.06);
  --purple: #7c3aed;
  --purple-bg: rgba(124,58,237,0.06);
  --green: #16a34a;
  --green-bg: rgba(22,163,74,0.06);
  --red: #dc2626;
  --red-bg: rgba(220,38,38,0.06);
  --orange: #ea580c;
  --orange-bg: rgba(234,88,12,0.06);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.1; color: var(--text); }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  max-width: 100vw;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 20px;
  color: var(--text);
  letter-spacing: -.5px;
}
.logo span { color: var(--accent-dark); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-back { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-back:hover { color: var(--text); }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span {
  display: block; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all .2s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(2.5px, 2.5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(2.5px, -2.5px); }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 16px;
  text-align: center;
}
.section-headline {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800; letter-spacing: -1.5px;
  text-align: center; margin-bottom: 48px;
}
.section-sub {
  font-size: 16px; color: var(--muted); text-align: center;
  max-width: 580px; margin: 0 auto 48px; line-height: 1.7;
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 40px;
  text-align: center;
}
.cta-inner {
  max-width: 560px; margin: 0 auto;
}
.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px; color: var(--muted);
  margin-bottom: 32px; line-height: 1.7;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--text);
  padding: 16px 32px; border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 16px;
  transition: all .2s; border: none; cursor: pointer;
  text-decoration: none;
}
.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254,208,1,0.35);
}

/* ── CTA BOX (in-article) ── */
.cta-box {
  background: var(--dark); color: var(--dark-text); border-radius: 16px;
  padding: 32px; margin: 40px 0; text-align: center;
}
.cta-box h3 { color: var(--dark-text); font-size: 20px; margin-bottom: 8px; }
.cta-box p { color: var(--dark-muted); font-size: 14px; margin-bottom: 16px; }
.cta-box a {
  display: inline-block; background: var(--accent); color: var(--text);
  padding: 12px 28px; border-radius: 10px; font-weight: 600;
  font-size: 15px; text-decoration: none; transition: background .2s;
}
.cta-box a:hover { background: var(--accent-hover); }

/* ── FOOTER ── */
footer {
  padding: 48px 40px;
  background: var(--dark2);
  color: var(--dark-text);
}
footer > div { max-width: 1000px; }
.footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 16px;
  color: var(--dark-text);
}
.footer-logo span { color: var(--accent); }
.footer-note {
  font-size: 12px; color: var(--dark-muted);
  max-width: 400px; line-height: 1.6;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px; color: var(--dark-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--dark-text); }

/* ── ARTICLE (blog & methode) ── */
.article {
  max-width: 680px; margin: 0 auto; padding: 120px 40px 80px;
}
.article-badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--accent-dark); background: rgba(254,208,1,0.15);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: .05em;
}
.article h1 {
  font-size: 36px; font-weight: 800; margin-bottom: 16px; line-height: 1.15;
}
.article-meta {
  font-size: 13px; color: var(--muted); margin-bottom: 40px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.article h2 {
  font-size: 22px; font-weight: 700; margin-top: 48px; margin-bottom: 16px;
}
.article h3 {
  font-size: 17px; font-weight: 600; margin-top: 32px; margin-bottom: 10px;
}
.article p {
  font-size: 16px; color: var(--text2); line-height: 1.8; margin-bottom: 18px;
}
.article ul, .article ol {
  margin-bottom: 18px; padding-left: 24px;
}
.article li {
  font-size: 16px; color: var(--text2); line-height: 1.8; margin-bottom: 6px;
}
.article strong { color: var(--text); }
.article a { color: var(--accent-dark); text-decoration: underline; }
.article blockquote {
  border-left: 3px solid var(--accent); margin: 24px 0;
  padding: 16px 20px; background: rgba(254,208,1,0.06); border-radius: 0 8px 8px 0;
  font-size: 15px; color: var(--text2); line-height: 1.7;
}
.article blockquote strong { color: var(--text); }

/* ── LEGAL PAGE (datenschutz, impressum, kontakt) ── */
.legal-page {
  max-width: 700px; margin: 0 auto;
  padding: 120px 40px 80px;
}
.legal-page h1 {
  font-size: 32px; font-weight: 800; margin-bottom: 12px;
}
.legal-page .legal-date {
  font-size: 13px; color: var(--muted); margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 20px; font-weight: 700; margin-top: 40px; margin-bottom: 12px;
}
.legal-page h3 {
  font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 8px;
}
.legal-page p, .legal-page li {
  font-size: 15px; color: var(--muted); line-height: 1.8;
}
.legal-page p {
  margin-bottom: 16px;
}
.legal-page ul {
  margin-bottom: 16px; padding-left: 20px;
}
.legal-page li {
  margin-bottom: 6px;
}
.legal-page strong { color: var(--text); }
.legal-page a { color: var(--accent-dark); text-decoration: underline; }
.legal-page table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px;
}
.legal-page table th, .legal-page table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.legal-page table th {
  color: var(--text); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── DATA TABLE (shared by blog + methode) ── */
.data-table {
  width: 100%; border-collapse: collapse; margin: 20px 0 24px;
  font-size: 14px; line-height: 1.6;
}
.data-table th, .data-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.data-table th {
  color: var(--text); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .5px; background: rgba(0,0,0,0.02);
}
.data-table td { color: var(--text2); }
.data-table .win { color: var(--green); font-weight: 600; }
.data-table .lose { color: var(--red); font-weight: 600; }
.data-table .warn { color: var(--orange); font-weight: 600; }

/* ── TIP BOX (shared by blog pages) ── */
.tip-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px; margin: 24px 0;
}
.tip-box-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 15px; margin-bottom: 8px;
}
.tip-box p { font-size: 14px; margin-bottom: 8px; }
.tip-box p:last-child { margin-bottom: 0; }

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

/* ── RESPONSIVE: SHARED ── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-burger { display: flex; }
  .nav-right {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(250,250,248,0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav-right.open { display: flex; }
  .nav-right .nav-link {
    padding: 14px 20px; font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .article { padding: 100px 20px 60px; }
  .article h1 { font-size: 28px; }
  .article h2 { font-size: 20px; }
  .legal-page { padding: 100px 20px 60px; }
  .legal-page h1 { font-size: 26px; }
  .legal-page h2 { font-size: 18px; }
  .legal-page table { font-size: 13px; }
  .legal-page table th, .legal-page table td { padding: 8px 6px; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 6px; }
  .cta-section { padding: 60px 20px; }
  footer { padding: 40px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-note { max-width: 100%; }
}
