/* Gold-Alternativen.com – Finance/Gold theme palette */
:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --bg-body: #f5f2eb;
  --accent-gold: #c9a227;
  --accent-gold-light: #e8d48b;
  --accent-gold-dark: #9a7b1a;
  --text-dark: #1a2332;
  --text-muted: #5c6b7a;
  --border-subtle: rgba(201, 162, 39, 0.2);
  --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.15);
  --gradient-hero: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
  --gradient-gold: linear-gradient(135deg, #c9a227 0%, #e8d48b 100%);
  --header-height: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-dark);
  overflow-x: hidden;
  padding-top: 0;
}

/* Obere Reklamzeile – ganz oben auf der Seite */
.promo-strip {
  background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%);
  color: var(--accent-gold-light);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  position: relative;
  z-index: 1029;
}
.promo-strip-text { opacity: 0.95; }
.promo-strip-warning { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.85); }
.promo-strip-warning .promo-strip-text { color: inherit; }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,0.06);
  z-index: 1031;
  overflow: hidden;
}
.reading-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(201,162,39,0.5);
}

/* Header – выровненная сетка, логотип, нав */
.site-header {
  background: var(--gradient-hero);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--header-height);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header .navbar {
  padding: 0.5rem 0;
  min-height: var(--header-height);
  align-items: center;
}
.site-header .container-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.site-header .brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-gold-light) !important;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-header .brand-wrap:hover { color: var(--accent-gold) !important; transform: translateY(-1px); }
.site-header .brand-icon {
  font-size: 0.75rem;
  opacity: 0.9;
  color: var(--accent-gold);
}
.site-header .navbar-collapse-end {
  justify-content: flex-end;
}
.site-header .nav-list {
  align-items: center;
  gap: 0.25rem;
}
.site-header .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.site-header .nav-link:hover { color: var(--accent-gold) !important; background: rgba(255,255,255,0.06); }
.site-header .nav-link-legal { opacity: 0.9; }


/* Hero / lead section */
.article-hero {
  background: var(--bg-card);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at right, rgba(201,162,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  animation: heroShine 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(0deg); }
}
.article-hero h1,
.article-hero .hero-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  max-width: 800px;
}
.article-hero .lead,
.article-hero .hero-subtitle { opacity: 0.9; font-size: 1.05rem; }

/* Hero-Bild: Rahmen, Overlay, weicher Übergang */
.hero-image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
  aspect-ratio: 4/3;
  max-width: 100%;
  margin-left: auto;
  background: var(--bg-dark);
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,0.4) 0%, transparent 50%, rgba(15,20,25,0.2) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-image-frame .hero-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s ease;
}
.hero-image-frame:hover .hero-image-img { transform: scale(1.03); }
.hero-image-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  opacity: 0.9;
  z-index: 1;
}

.hero-title.animate-reveal { opacity: 0; transform: translateY(24px); }
.hero-title.animate-reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.hero-subtitle.animate-delay-1 { transition-delay: 0.2s; }
.hero-subtitle.animate-reveal { opacity: 0; transform: translateY(16px); }
.hero-subtitle.animate-reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s; }

/* Scroll reveal – общий класс для появления при скролле */
.reveal-el {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-el.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-el.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-el.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-el.reveal-delay-3 { transition-delay: 0.24s; }

/* Article content */
.article-body {
  max-width: 820px;
  margin: 0 auto 3rem;
}
.article-body p { margin-bottom: 1.25rem; line-height: 1.7; }
.article-body .section-title {
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  background: linear-gradient(to right, var(--accent-gold), var(--accent-gold-light)) left bottom no-repeat;
  background-size: 120px 2px;
  transition: background-size 0.5s ease;
}
.article-body .section-title.reveal-el.is-visible { background-size: 100% 2px; }
.article-body .img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
  margin: 1.5rem 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.article-body .img-wrap:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(201,162,39,0.2); }
.article-body .img-wrap img { width: 100%; height: auto; display: block; }

/* Comparison table */
.comparison-table-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(26,35,50,0.08);
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  transform: translateY(20px);
}
.comparison-table-wrap.animate-in { transform: translateY(0); }
.comparison-table {
  margin: 0;
  width: 100%;
}
.comparison-table thead th {
  background: var(--bg-dark);
  color: var(--accent-gold-light);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border: none;
  font-size: 0.95rem;
}
.comparison-table thead th:first-child {
  background: var(--bg-card);
  color: #fff;
}
.comparison-table tbody tr {
  transition: background 0.25s ease, transform 0.2s ease;
}
.comparison-table tbody tr.table-row-reveal {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.25s ease;
}
.comparison-table tbody tr.table-row-reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.comparison-table tbody tr:nth-child(odd) { background: rgba(245,242,235,0.6); }
.comparison-table tbody tr:hover { background: rgba(201,162,39,0.08); }
.comparison-table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-color: var(--border-subtle);
}
.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 28%;
}
.comparison-table .param-name { font-size: 0.9rem; }
.table-caption {
  padding: 0.75rem 1.25rem;
  background: var(--bg-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

/* Bullet list section */
.thoughts-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.thoughts-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  transition: transform 0.3s ease, padding-left 0.3s ease;
}
.thoughts-list li:hover { padding-left: 2.25rem; }
.thoughts-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.thoughts-list li:hover::before {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.4);
}
.thoughts-list-stagger .reveal-el { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Quiz section */
.quiz-section {
  background: var(--bg-card);
  color: #fff;
  padding: 2.5rem 0;
  margin: 3rem 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.quiz-section::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 40%; height: 100%;
  background: radial-gradient(ellipse at left, rgba(201,162,39,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.quiz-section-glow {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: quizGlow 6s ease-in-out infinite;
}
@keyframes quizGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.quiz-section h2,
.quiz-section .quiz-heading {
  color: var(--accent-gold-light);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}
.quiz-section .quiz-intro { opacity: 0.9; margin-bottom: 1.5rem; }
.quiz-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.quiz-card:hover,
.quiz-card-animate.is-visible { box-shadow: 0 8px 40px rgba(0,0,0,0.2); border-color: rgba(201,162,39,0.25); }
.quiz-card .form-label { color: rgba(255,255,255,0.95); font-weight: 500; }
.quiz-options label {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  transform: translateZ(0);
}
.quiz-options label:hover { background: rgba(255,255,255,0.1); transform: translateX(4px); }
.quiz-options input:checked + span { font-weight: 600; }
.quiz-options label:has(input:checked) {
  border-color: var(--accent-gold);
  background: rgba(201,162,39,0.15);
  box-shadow: 0 0 0 1px rgba(201,162,39,0.2);
}
.quiz-step { transition: opacity 0.35s ease, transform 0.35s ease; }
.quiz-step.quiz-step-next { animation: quizSlideOut 0.3s ease forwards; }
.quiz-step.quiz-step-enter { animation: quizSlideIn 0.4s ease forwards; }
@keyframes quizSlideOut {
  to { opacity: 0; transform: translateX(-20px); }
}
@keyframes quizSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.quiz-result-box {
  background: rgba(201,162,39,0.2);
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  display: none;
  animation: fadeIn 0.5s ease;
}
.quiz-result-box.show { display: block; }
.quiz-result-partner {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201,162,39,0.35);
}
.quiz-result-partner-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}
.quiz-result-partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--gradient-gold);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(201,162,39,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
.quiz-result-partner-btn:hover { color: var(--bg-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(201,162,39,0.45); }
.quiz-result-partner-btn-arrow { font-size: 1.2em; }
.quiz-result-partner-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.quiz-result-box .result-link {
  color: var(--accent-gold-light);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.quiz-result-box .result-link:hover { color: #fff; }

/* Footer – ровная сетка, акцентная полоска */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.78);
  padding: 0 0 2rem;
  margin-top: 3rem;
  position: relative;
}
.footer-top-accent {
  height: 4px;
  background: var(--gradient-gold);
  width: 100%;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.site-footer .footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}
.site-footer .footer-col-links { min-width: 0; }
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.site-footer .footer-links a {
  color: var(--accent-gold-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-footer .footer-links a:hover { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.site-footer .footer-col-disclaimer { min-width: 0; }
.site-footer .disclaimer {
  font-size: 0.85rem;
  opacity: 0.9;
  max-width: 720px;
  margin: 0;
  line-height: 1.5;
}
.site-footer .footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer .copyright { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* Cookie-Einwilligung – kleine Meldung seitlich */
.cookie-consent {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  max-width: 320px;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateX(120%);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}
.cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.cookie-consent-inner {
  background: var(--bg-card);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.cookie-consent-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin: 0 0 0.75rem 0;
}
.cookie-consent-link {
  color: var(--accent-gold-light);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-consent-link:hover { color: var(--accent-gold); }
.cookie-consent-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  background: var(--gradient-gold);
  color: var(--bg-dark);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cookie-consent-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,162,39,0.3); }
@media (max-width: 400px) {
  .cookie-consent { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
}

/* Modals */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
  background: var(--bg-dark);
  color: var(--accent-gold-light);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 12px 12px 0 0;
}
.modal-header .btn-close { filter: invert(1); opacity: 0.8; }
.modal-body { padding: 1.5rem; }
.modal-body-text { font-size: 0.95rem; line-height: 1.6; }
.modal-body-text h6 { margin-top: 1.25rem; margin-bottom: 0.35rem; font-weight: 600; color: var(--text-dark); }
.modal-body-text h6:first-child { margin-top: 0; }
.modal-body-text p { margin-bottom: 0.9rem; }
.modal-body-text p:last-child { margin-bottom: 0; }
.modal-body-text a { color: var(--accent-gold-dark); text-decoration: underline; }
.modal-body-text a:hover { color: var(--accent-gold); }

/* Buttons – с анимацией нажатия */
.btn-gold {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-gold:hover {
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-gold:active { transform: translateY(0) scale(0.98); }
.btn-outline-gold {
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}
.btn-outline-gold:active { transform: translateY(0) scale(0.98); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Stagger для строк таблицы (JS выставит --row-i) */
.comparison-table tbody tr.table-row-reveal.is-visible { transition-delay: calc(var(--row-i, 0) * 0.06s); }

@media (max-width: 768px) {
  .comparison-table thead th,
  .comparison-table tbody td { padding: 0.75rem; font-size: 0.9rem; }
  .comparison-table tbody td:first-child { width: 32%; }
  .site-header .nav-list { gap: 0; }
}
