/* 
  PROST AKTIV Trainer Blog - Stylesheet
  Color Palette: Blue & Slate Gray (#0f172a, #1e3a8a, #2563eb, #475569, #f8fafc)
*/

:root {
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-brand: #1e3a8a;
  --color-brand-active: #2563eb;
  --color-accent-red: #dc2626;
  --color-accent-gold: #d97706;
  --color-success: #16a34a;
  --color-text: #1e293b;
  --color-text-muted: #475569;
  --color-bg-light: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-border: #e2e8f0;
  --color-white: #ffffff;
  
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1140px;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-brand-active);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

/* Compliance Top Banner */
.compliance-bar {
  background-color: #1e293b;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 6px 16px;
  text-align: center;
  border-bottom: 1px solid #334155;
}

.compliance-bar a {
  color: #cbd5e1;
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: var(--max-width);
  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;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand-active);
  text-decoration: none;
  border-bottom: 2px solid var(--color-brand-active);
}

.btn-cta-nav {
  background-color: var(--color-brand-active);
  color: var(--color-white) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.btn-cta-nav:hover {
  background-color: var(--color-brand);
  text-decoration: none !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Main Container Layout */
.page-wrapper {
  max-width: var(--max-width);
  margin: 30px auto;
  padding: 0 20px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
}

.layout-full {
  display: block;
}

/* Article Styling */
.main-content {
  background-color: var(--color-white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 24px;
}

.category-tag {
  display: inline-block;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 2.1rem;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 800;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}

.author-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-brand-active);
}

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

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

.author-role {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.post-date {
  font-size: 0.8rem;
  color: #64748b;
}

/* Article Body Typography */
.article-body h2 {
  font-size: 1.55rem;
  color: var(--color-primary);
  margin: 32px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-bg-alt);
}

.article-body h3 {
  font-size: 1.25rem;
  color: var(--color-primary-light);
  margin: 24px 0 12px 0;
}

.article-body p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.7;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #334155;
}

/* Highlight Quote Box */
.quote-box {
  background-color: #eff6ff;
  border-left: 4px solid var(--color-brand-active);
  padding: 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #1e3a8a;
  font-size: 1.08rem;
}

/* Product Showcase Box */
.product-card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.product-card-featured::before {
  content: "AKTION: 49 EUR";
  position: absolute;
  top: 16px;
  right: -30px;
  background-color: var(--color-accent-red);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

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

.product-img-wrapper img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}

.product-details h3 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.product-badge-sub {
  font-weight: 700;
  color: #2563eb;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.product-features-list {
  list-style: none !important;
  margin: 0 0 20px 0 !important;
}

.product-features-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px !important;
}

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

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.price-current {
  font-size: 2.1rem;
  font-weight: 900;
  color: #dc2626;
}

.price-old {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: #94a3b8;
}

.price-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.btn-primary-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.guarantee-text {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

/* --- OFFICIAL CERTIFICATES STYLES --- */
.certificates-section {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}

.certificates-header {
  text-align: center;
  margin-bottom: 20px;
}

.certificates-header h3 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.certificates-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.cert-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
}

.cert-badge-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px auto;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.cert-card h4 {
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.cert-card p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.3;
}

/* Certificate Document Box */
.cert-doc-box {
  background: #ffffff;
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cert-doc-icon {
  font-size: 2.8rem;
  color: #1e3a8a;
}

.cert-doc-details h4 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.cert-doc-details p {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 8px;
}

.cert-verify-tag {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 4px;
}

/* --- LEAD ORDER FORM STYLES --- */
.lead-order-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 36px 0;
  box-shadow: var(--shadow-lg);
  border: 2px solid #2563eb;
}

.lead-order-box h3 {
  font-size: 1.7rem;
  color: white;
  margin-bottom: 8px;
  text-align: center;
}

.lead-order-box p.lead-subtext {
  text-align: center;
  color: #cbd5e1;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.order-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #f1f5f9;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.05rem;
  border: 2px solid #475569;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Phone input container with fixed country code flag / prefix */
.phone-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #475569;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  overflow: hidden;
}

.phone-prefix {
  background-color: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 14px;
  border-right: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.phone-wrapper input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.phone-wrapper input:focus {
  box-shadow: none;
}

.phone-wrapper.error {
  border-color: #dc2626 !important;
}

/* Warning message badge */
.field-warning {
  display: none;
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 600;
}

.field-warning.show {
  display: block;
}

.digit-counter {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 4px;
}

/* Success Order State */
.order-success-card {
  display: none;
  background-color: #10b981;
  color: white;
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 20px;
}

.order-success-card.show {
  display: block;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background-color: var(--color-white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-brand-active);
  font-weight: 700;
}

.trainer-card {
  text-align: center;
}

.trainer-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
}

.trainer-card h4 {
  font-size: 1.15rem;
  color: var(--color-primary);
}

.trainer-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 8px 0 16px 0;
}

.sidebar-product {
  text-align: center;
}

.sidebar-product img {
  max-width: 180px;
  margin: 12px 0;
}

.rating-stars {
  color: var(--color-accent-gold);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Tables for ingredients & comparisons */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.info-table th {
  background-color: var(--color-primary);
  color: white;
  padding: 12px;
  text-align: left;
}

.info-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}

.info-table tr:nth-child(even) {
  background-color: var(--color-bg-alt);
}

/* Comments Section */
.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--color-border);
}

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

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

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

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

/* Disclaimers & Google Compliance Footnote */
.disclaimer-box {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #475569;
  margin-top: 36px;
}

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

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq-question {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-brand-active);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding-top: 12px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: #94a3b8;
  padding: 40px 20px 20px 20px;
  margin-top: 60px;
  font-size: 0.88rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #334155;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 20px auto 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Cookie Consent Modal Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0f172a;
  color: white;
  padding: 16px 24px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  border-top: 2px solid var(--color-brand-active);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-btn {
  background-color: var(--color-brand-active);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn:hover {
  background-color: var(--color-brand);
}

/* Responsiveness */
@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card-featured {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .product-img-wrapper img {
    max-height: 220px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .cert-doc-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border);
  }
  
  .main-nav.show {
    display: flex;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .article-title {
    font-size: 1.6rem;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}
