/* ==========================================================================
   Style.css - VitalFit Blog (Elena Weber & Prost Aktiv)
   Design: Modern Premium Dark Theme mit Flagge Deutschland Akzenten
   ========================================================================== */

:root {
  --bg-dark: #0d0f12;
  --bg-card: #161820;
  --bg-card-alt: #1c1f2b;
  --border-color: #2a2e3d;
  
  --text-main: #f3f4f8;
  --text-muted: #9fa6b8;
  --text-dark: #121316;
  
  /* Deutschland Akzentfarben */
  --de-black: #121212;
  --de-red: #d62828;
  --de-red-hover: #b81d1d;
  --de-gold: #ffb703;
  --de-gold-hover: #e5a300;
  
  --de-flag-gradient: linear-gradient(90deg, #111 0%, #111 33%, #d62828 33%, #d62828 66%, #ffb703 66%, #ffb703 100%);
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --gold-glow: 0 0 20px rgba(255, 183, 3, 0.3);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--de-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #fff;
}

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

/* ==========================================================================
   Header & Top Banner
   ========================================================================== */

.top-flag-bar {
  height: 4px;
  background: var(--de-flag-gradient);
  width: 100%;
}

.notice-banner {
  background: rgba(214, 40, 40, 0.15);
  border-bottom: 1px solid rgba(214, 40, 40, 0.3);
  color: #f88;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

header {
  background-color: rgba(22, 24, 32, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-badge {
  background: var(--de-red);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--de-gold);
}

.btn-nav-cta {
  background: var(--de-gold);
  color: var(--text-dark) !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(255, 183, 3, 0.2);
}

.btn-nav-cta:hover {
  background: var(--de-gold-hover);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Main Layout Components
   ========================================================================== */

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--de-gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero h1 span.gold-text {
  color: var(--de-gold);
  background: linear-gradient(135deg, #ffb703, #ffe394);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.author-meta-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--de-gold);
}

.author-info h4 {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 700;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
}

.hero-floating-card i {
  font-size: 2rem;
  color: var(--de-red);
}

.hero-floating-card strong {
  display: block;
  font-size: 0.95rem;
}

.hero-floating-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--de-gold), var(--de-gold-hover));
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.4);
  color: #000;
}

.btn-secondary {
  background: var(--bg-card-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  color: #fff;
}

.btn-red {
  background: linear-gradient(135deg, var(--de-red), var(--de-red-hover));
  color: #fff;
  box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
  color: #fff;
}

/* Feature Grid & Cards */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 183, 3, 0.4);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 183, 3, 0.1);
  color: var(--de-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Interactive Quiz / Vitalitäts-Check
   ========================================================================== */

.quiz-container {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-alt));
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 800px;
  margin: 60px auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.quiz-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--de-flag-gradient);
}

.quiz-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: 30px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--de-red), var(--de-gold));
  transition: width 0.4s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.quiz-option-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option-btn:hover, .quiz-option-btn.selected {
  border-color: var(--de-gold);
  background: rgba(255, 183, 3, 0.08);
  color: #fff;
}

.quiz-option-btn.selected::after {
  content: '✓';
  color: var(--de-gold);
  font-weight: 800;
}

.quiz-result {
  text-align: center;
}

.quiz-score-badge {
  font-size: 3rem;
  font-weight: 900;
  color: var(--de-gold);
  margin-bottom: 10px;
}

/* ==========================================================================
   Product Spotlight Section
   ========================================================================== */

.product-spotlight {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  margin: 60px 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.product-image-container {
  text-align: center;
  position: relative;
}

.product-image-container img {
  max-height: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
  transition: var(--transition);
}

.product-image-container img:hover {
  transform: scale(1.03);
}

.product-badge-made-in-de {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--de-gold);
  margin-bottom: 16px;
}

.product-details h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.stars {
  color: var(--de-gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin: 20px 0 30px;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--de-gold);
  font-weight: 900;
  font-size: 1.1rem;
}

/* ==========================================================================
   Certificates & Trust Seals
   ========================================================================== */

.trust-section {
  text-align: center;
  padding: 40px 0;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.trust-badge-item {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.trust-badge-item:hover {
  border-color: var(--de-gold);
  transform: translateY(-3px);
}

.trust-badge-icon {
  font-size: 2rem;
  color: var(--de-gold);
}

.trust-badge-text {
  text-align: left;
}

.trust-badge-text strong {
  display: block;
  font-size: 0.95rem;
}

.trust-badge-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Blog Article Styling
   ========================================================================== */

.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-category {
  color: var(--de-red);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
  color: var(--de-gold);
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 30px 0 15px;
}

.article-quote {
  border-left: 4px solid var(--de-red);
  background: var(--bg-card);
  padding: 24px 30px;
  margin: 30px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-main);
}

.article-image-box {
  margin: 35px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.article-image-box figcaption {
  background: var(--bg-card);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Disclaimers & Compliance Notice
   ========================================================================== */

.disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 40px 0;
}

.disclaimer-box strong {
  color: var(--text-main);
}

/* ==========================================================================
   Modals (Cookie & Certificate)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--de-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1900;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Switch styling for cookies */
.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background-color: #08090b;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer-column h5 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--de-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-meta-box {
    justify-content: center;
  }

  .product-spotlight {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }

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

  .mobile-menu-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
