/* ==========================================================================
   German Men's Vitality Blog & Product Showcase Stylesheet
   Theme: German Flag Accent (Black, Red #D62828, Gold #FFB703) + Modern Dark UI
   ========================================================================== */

:root {
  --bg-main: #0d0f12;
  --bg-card: #161920;
  --bg-card-hover: #1f2430;
  --bg-secondary: #12141a;
  
  --flag-black: #000000;
  --flag-red: #d62828;
  --flag-red-hover: #b71c1c;
  --flag-gold: #ffb703;
  --flag-gold-hover: #e0a000;
  
  --text-main: #f8f9fa;
  --text-secondary: #c5cbd3;
  --text-muted: #8c96a4;
  
  --border-color: #272d3a;
  --border-highlight: #3a4356;
  
  --success-color: #2a9d8f;
  --danger-color: #e63946;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* --- GERMAN FLAG TOP STRIPE --- */
.de-flag-bar {
  height: 5px;
  width: 100%;
  background: linear-gradient(to right, #000000 0%, #000000 33.33%, #d62828 33.33%, #d62828 66.66%, #ffb703 66.66%, #ffb703 100%);
  position: sticky;
  top: 0;
  z-index: 1001;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  background-color: rgba(18, 20, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 5px;
  z-index: 1000;
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-badge {
  background: linear-gradient(135deg, var(--flag-red), #9e1b1b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-cta-btn {
  background-color: var(--flag-red);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.nav-cta-btn:hover {
  background-color: var(--flag-red-hover) !important;
  transform: translateY(-1px);
}

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

/* --- CONTAINER LAYOUT --- */
.main-layout {
  max-width: 1140px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

.single-column-layout {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* --- ARTICLE HEADER --- */
.article-header {
  margin-bottom: 30px;
}

.category-tag {
  display: inline-block;
  background-color: rgba(255, 183, 3, 0.15);
  color: var(--flag-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.author-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--flag-gold);
}

.meta-info {
  display: flex;
  flex-direction: column;
}

.meta-author {
  color: var(--text-main);
  font-weight: 700;
}

.meta-date {
  color: var(--text-muted);
}

/* --- HERO IMAGE / MEDIA --- */
.featured-media-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 35px;
}

.featured-media-box img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.media-caption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- GOOGLE POLICY DISCLAIMER BOX --- */
.compliance-disclaimer-box {
  background: rgba(214, 40, 40, 0.08);
  border: 1px solid rgba(214, 40, 40, 0.3);
  border-left: 4px solid var(--flag-red);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 25px 0;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.compliance-disclaimer-box h5 {
  color: var(--flag-gold);
  margin-bottom: 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- ARTICLE CONTENT TYPOGRAPHY --- */
.article-content p {
  margin-bottom: 22px;
  color: var(--text-secondary);
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 35px 0 18px 0;
  color: var(--text-main);
  border-left: 4px solid var(--flag-gold);
  padding-left: 14px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 25px 0 14px 0;
  color: var(--text-main);
}

.highlight-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 30px 0;
}

.quote-box {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.05), rgba(214, 40, 40, 0.05));
  border-left: 4px solid var(--flag-gold);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 30px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-main);
}

/* --- PRODUCT PROMO CARD (IN CONTENT) --- */
.product-showcase-card {
  background: linear-gradient(145deg, #181b22, #111319);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
  position: relative;
  text-align: center;
}

.product-img-wrapper img {
  width: 100%;
  max-width: 240px;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

.product-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--flag-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(214, 40, 40, 0.5);
  text-transform: uppercase;
}

.product-details h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: var(--text-main);
  border: none;
  padding: 0;
}

.product-subtitle {
  color: var(--flag-gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.product-bullets {
  list-style: none;
  margin-bottom: 24px;
}

.product-bullets li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.product-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 20px;
}

.price-current {
  font-size: 2rem;
  font-weight: 800;
  color: var(--flag-gold);
}

.price-old {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.price-save {
  background-color: rgba(42, 157, 143, 0.2);
  color: var(--success-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--flag-red), #b71c1c);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e63946, #c1121f);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 40, 40, 0.6);
}

.btn-gold {
  background: linear-gradient(135deg, var(--flag-gold), #e0a000);
  color: #121417;
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffc324, #d49500);
  box-shadow: 0 8px 25px rgba(255, 183, 3, 0.5);
}

/* --- INTERACTIVE VITALITY QUIZ --- */
.quiz-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
}

.quiz-header {
  text-align: center;
  margin-bottom: 25px;
}

.quiz-header h3 {
  color: var(--flag-gold);
  font-size: 1.5rem;
  margin-bottom: 8px;
  border: none;
  padding: 0;
}

.quiz-progress-bar {
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 25px;
}

.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(to right, var(--flag-red), var(--flag-gold));
  transition: width 0.3s ease;
}

.quiz-step {
  display: none;
}

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

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

.quiz-question {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-option-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.quiz-option-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--flag-gold);
}

.quiz-result-box {
  display: none;
  text-align: center;
  padding: 20px 10px;
}

.quiz-score-badge {
  display: inline-block;
  background-color: rgba(255, 183, 3, 0.2);
  color: var(--flag-gold);
  font-size: 1.8rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  margin: 15px 0;
  border: 1px solid var(--flag-gold);
}

/* --- SIDEBAR --- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--flag-red);
}

.author-profile-widget {
  text-align: center;
}

.author-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 3px solid var(--flag-gold);
  display: block;
}

.author-profile-name {
  font-weight: 700;
  font-size: 1.15rem;
}

.author-profile-role {
  color: var(--flag-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.author-profile-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cert-badges-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cert-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.cert-item span {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* --- COMMENTS SECTION --- */
.comments-section {
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.comment-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-author-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.verified-badge {
  background-color: rgba(42, 157, 143, 0.2);
  color: var(--success-color);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.stars {
  color: var(--flag-gold);
  font-size: 0.9rem;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.add-comment-form {
  background-color: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 30px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--flag-gold);
}

/* --- ORDER CHECKOUT PAGE STYLING --- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  margin: 30px 0;
}

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

.countdown-banner {
  background: linear-gradient(135deg, rgba(214, 40, 40, 0.2), rgba(255, 183, 3, 0.2));
  border: 1px solid var(--flag-red);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 25px;
}

.timer-digits {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--flag-gold);
  letter-spacing: 2px;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #08090c;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px 0;
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--flag-gold);
}

.footer-legal-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1a1e27;
  padding-top: 20px;
  color: #525b68;
}

/* --- DSGVO COOKIE BANNER --- */
.cookie-banner-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 420px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slideUp 0.4s ease;
}

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

.cookie-banner-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  flex: 1;
  background-color: var(--flag-gold);
  color: #121417;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-cookie-decline {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

/* --- MODAL DIALOGS --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.75);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  padding: 30px;
  text-align: center;
  position: relative;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .product-showcase-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .product-img-wrapper img {
    margin: 0 auto;
  }
  
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .article-title {
    font-size: 1.7rem;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}
