/* 
  Der Gesunde Mann - Official CSS Stylesheet
  Geo: Germany (DE) | Theme: White, Red, Yellow Accents
*/

:root {
  --primary-red: #D32F2F;
  --primary-red-hover: #B71C1C;
  --accent-yellow: #FFC107;
  --accent-yellow-light: #FFECB3;
  --dark-text: #1F2937;
  --light-bg: #F9FAFB;
  --white: #FFFFFF;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --success-green: #10B981;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
}

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

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

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

a:hover {
  color: var(--primary-red-hover);
}

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

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

/* Header & Navigation */
.header-top-bar {
  background-color: var(--dark-text);
  color: var(--white);
  font-size: 13px;
  padding: 6px 0;
}

.header-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.de-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.de-flag span {
  display: inline-block;
  width: 18px;
  height: 12px;
  background: linear-gradient(to bottom, #000 33.3%, #DD0000 33.3%, #DD0000 66.6%, #FFCC00 66.6%);
  border-radius: 2px;
}

.main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent-yellow);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: var(--primary-red);
  color: var(--accent-yellow);
  font-weight: 900;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1.2;
}

.logo-text span {
  color: var(--primary-red);
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.nav-link {
  color: var(--dark-text);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-red);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

.btn-accent {
  background-color: var(--accent-yellow);
  color: var(--dark-text);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-accent:hover {
  background-color: #E6A100;
  color: var(--dark-text);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--dark-text);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--gray-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-yellow-light);
  color: #856404;
  border: 1px solid #FFEBAA;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark-text);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary-red);
}

.hero-text {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 30px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

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

.hero-image {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.hero-experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--primary-red);
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-red);
  line-height: 1;
}

.badge-lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-white {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px auto;
}

.section-tag {
  color: var(--primary-red);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-600);
}

/* Quiz Widget */
.quiz-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--accent-yellow);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.quiz-header {
  background: linear-gradient(135deg, var(--primary-red), #B71C1C);
  color: var(--white);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-header h3 {
  font-size: 22px;
  font-weight: 700;
}

.quiz-progress-bar-bg {
  width: 150px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  overflow: hidden;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: var(--accent-yellow);
  width: 25%;
  transition: width 0.3s ease;
}

.quiz-body {
  padding: 36px 32px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-question-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--dark-text);
}

.quiz-options {
  display: grid;
  gap: 14px;
}

.quiz-option-btn {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  padding: 16px 20px;
  border-radius: 10px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option-btn:hover {
  border-color: var(--primary-red);
  background: var(--white);
}

.quiz-option-btn.selected {
  border-color: var(--primary-red);
  background: #FFF5F5;
  color: var(--primary-red);
}

.quiz-footer {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.quiz-result-box {
  text-align: center;
  padding: 20px 0;
}

.quiz-score-badge {
  display: inline-block;
  background: var(--accent-yellow);
  color: var(--dark-text);
  font-weight: 900;
  font-size: 36px;
  padding: 12px 28px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* Articles Cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.article-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-img-container {
  height: 200px;
  background: #E5E7EB;
  position: relative;
  overflow: hidden;
}

.article-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-red);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-date {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.article-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-excerpt {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Product Section */
.product-showcase {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  color: var(--white);
  padding: 80px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.product-img-box {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
}

.product-badge-seal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-yellow);
  color: var(--dark-text);
  font-weight: 900;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.product-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.product-subtitle {
  font-size: 20px;
  color: var(--accent-yellow);
  font-weight: 700;
  margin-bottom: 24px;
}

.product-features-list {
  list-style: none;
  margin-bottom: 36px;
  display: grid;
  gap: 14px;
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* Certificate Cards */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cert-card {
  background: var(--white);
  padding: 24px 20px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px auto;
  background: var(--accent-yellow-light);
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
}

.cert-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cert-sub {
  font-size: 13px;
  color: var(--gray-600);
}

/* Lead Form Page Specifics */
.lead-form-box {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--primary-red);
  max-width: 550px;
  margin: 0 auto;
}

.lead-form-header {
  text-align: center;
  margin-bottom: 30px;
}

.lead-form-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.lead-form-header p {
  color: var(--gray-600);
  font-size: 15px;
}

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

.form-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.form-error {
  color: var(--primary-red);
  font-size: 13px;
  margin-top: 6px;
  display: none;
  font-weight: 600;
}

.privacy-check {
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.privacy-check input {
  margin-top: 3px;
}

/* Footer */
.main-footer {
  background: #111827;
  color: #9CA3AF;
  padding: 60px 0 30px 0;
  font-size: 14px;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #9CA3AF;
}

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

.disclaimer-box {
  background: #1F2937;
  border-left: 4px solid var(--accent-yellow);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 30px;
  font-size: 12px;
  line-height: 1.5;
  color: #D1D5DB;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--dark-text);
  color: var(--white);
  padding: 20px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  z-index: 999;
  border-top: 4px solid var(--primary-red);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.cookie-text a {
  color: var(--accent-yellow);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Modal Popup for Certificates */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-600);
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-grid, .product-grid {
    grid-template-columns: 1fr;
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  .hero-title {
    font-size: 32px;
  }
}
