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

:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fdba74;
  --primary-bg: #fff7ed;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
}

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

/* Navigation */
nav {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  max-width: 1100px;
  margin: 10px auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--gray-700);
  border-radius: 3px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 20px;
}

.hero nav {
  margin-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1020px;
  margin: 0 auto;
  padding: 40px 0;
  gap: 80px;
  position: relative;
  z-index: 5;
}

.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .subtitle {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.badge-icon {
  font-size: 1rem;
}

/* Calculator */
.calculator-container {
  width: 420px;
  flex-shrink: 0;
}

.calculator-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.calc-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 24px;
  text-align: center;
}

.calc-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.calc-header p {
  font-size: 0.875rem;
  opacity: 0.9;
}

.calc-content {
  padding: 24px;
}

.calc-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.calc-input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.calc-input-wrapper {
  position: relative;
}

.calc-input-wrapper input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  font-size: 1.125rem;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  transition: all 0.2s ease;
  background: var(--gray-50);
  -moz-appearance: textfield;
}

.calc-input-wrapper input::-webkit-outer-spin-button,
.calc-input-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.calc-input-wrapper input:focus::placeholder {
  opacity: 0;
}

.calc-unit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
}

.calc-btn-group {
  display: flex;
  gap: 12px;
}

.calc-btn {
  flex: 1;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.calc-btn-secondary {
  background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-700) 100%);
}

.calc-btn-secondary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.calc-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  display: none;
  text-align: center;
}

.calc-result.show {
  display: block;
  animation: slideIn 0.3s ease;
}

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

.calc-result.untergewicht { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); border: 1px solid #93c5fd; }
.calc-result.untergewicht .bmi-category { color: #1d4ed8; }
.calc-result.normalgewicht { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); border: 1px solid #86efac; }
.calc-result.normalgewicht .bmi-category { color: #16a34a; }
.calc-result.uebergewicht { background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%); border: 1px solid #fde047; }
.calc-result.uebergewicht .bmi-category { color: #ca8a04; }
.calc-result.adipositas-1 { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); border: 1px solid #fdba74; }
.calc-result.adipositas-1 .bmi-category { color: #ea580c; }
.calc-result.adipositas-2 { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); border: 1px solid #fca5a5; }
.calc-result.adipositas-2 .bmi-category { color: #dc2626; }
.calc-result.adipositas-3 { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); border: 1px solid #f9a8d4; }
.calc-result.adipositas-3 .bmi-category { color: #be185d; }

.bmi-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 8px;
}

.bmi-category {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.bmi-scale {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.scale-bar {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right,
    #3b82f6 0%, #3b82f6 9.6%,
    #22c55e 9.6%, #22c55e 34.6%,
    #eab308 34.6%, #eab308 53.8%,
    #f97316 53.8%, #f97316 73%,
    #ef4444 73%, #ef4444 92%,
    #ec4899 92%, #ec4899 100%
  );
  position: relative;
  margin-bottom: 8px;
}

.scale-marker {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 20px;
  background: var(--gray-900);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.scale-labels {
  display: flex;
  font-size: 0.625rem;
  color: var(--gray-500);
  position: relative;
  height: 14px;
}

.scale-labels span {
  position: absolute;
  transform: translateX(-50%);
}

.scale-labels span:nth-child(1) { left: 0%; transform: translateX(0); }
.scale-labels span:nth-child(2) { left: 9.6%; }
.scale-labels span:nth-child(3) { left: 34.6%; }
.scale-labels span:nth-child(4) { left: 53.8%; }
.scale-labels span:nth-child(5) { left: 73%; }
.scale-labels span:nth-child(6) { left: 92%; }

.calc-result-details {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  text-align: left;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.result-row .label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.result-row .value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
}

.calc-privacy {
  margin-top: 20px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.privacy-icon {
  font-size: 1rem;
  color: var(--gray-500);
}

.calc-privacy p {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

/* Section Styles */
section {
  padding: 100px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.section-intro {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Trust Section */
.trust-section {
  background: white;
  padding: 60px 20px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.trust-item {
  text-align: center;
}

.trust-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.trust-label {
  color: var(--gray-500);
  font-weight: 500;
}

/* How it works */
.how-it-works {
  background: var(--gray-50);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.step p {
  color: var(--gray-500);
  line-height: 1.7;
}

/* Features Section */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 32px;
  background: var(--gray-50);
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.feature-card p {
  color: var(--gray-500);
  line-height: 1.7;
}

/* Content Section */
.content-section {
  background: var(--primary-bg);
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.content-main h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.content-main h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--gray-900);
}

.content-main p {
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-main ul {
  list-style: none;
  margin: 16px 0;
}

.content-main li {
  padding: 8px 0;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.list-icon {
  color: var(--primary);
  font-weight: bold;
}

.info-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 100px;
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.info-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.info-card p {
  color: var(--gray-500);
  line-height: 1.7;
}

/* BMI Table Section */
.bmi-table-section {
  background: white;
}

.bmi-table-container {
  max-width: 900px;
  margin: 0 auto;
}

.bmi-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bmi-table th,
.bmi-table td {
  padding: 16px 24px;
  text-align: left;
}

.bmi-table th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 600;
}

.bmi-table tr:nth-child(even) {
  background: var(--gray-50);
}

.bmi-table td:first-child {
  font-weight: 500;
}

.category-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
}

.dot-untergewicht { background: #3b82f6; }
.dot-normalgewicht { background: #22c55e; }
.dot-uebergewicht { background: #eab308; }
.dot-adipositas1 { background: #f97316; }
.dot-adipositas2 { background: #ef4444; }
.dot-adipositas3 { background: #dc2626; }

/* FAQ Section */
.faq-section {
  background: var(--gray-50);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.faq-item p {
  color: var(--gray-500);
  line-height: 1.7;
}

/* Tips Section */
.tips-section {
  background: white;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.tip-card {
  background: var(--gray-50);
  padding: 24px;
  border-radius: 12px;
}

.tip-number {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.tip-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.tip-card p {
  color: var(--gray-500);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 20px;
}

.cta-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta-card p {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  background: white;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 40px 30px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255,255,255,0.85);
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.footer-credit a {
  color: white;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Page Header for subpages */
.page-header {
  background: var(--gray-50);
  padding-top: 10px;
  padding-bottom: 40px;
}

.page-header nav {
  background: white;
}

/* Content Pages */
.content-page {
  min-height: calc(100vh - 200px);
  padding: 20px 20px 60px;
  background: var(--gray-50);
}

.content-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.content-card h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--gray-900);
}

.content-card h2 {
  font-size: 1.25rem;
  margin: 32px 0 16px;
  color: var(--gray-900);
}

.content-card h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
  color: var(--gray-900);
}

.content-card p {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-card ul {
  margin: 16px 0;
  padding-left: 24px;
}

.content-card li {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 8px;
}

.content-card a {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-badges {
    justify-content: center;
  }

  .calculator-container {
    width: 100%;
    max-width: 420px;
  }

  .calc-input-row {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 10px;
    min-width: 200px;
  }

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

  .hamburger {
    display: flex;
  }

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

  .content-sidebar {
    order: -1;
  }

  .info-card {
    position: static;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  section {
    padding: 60px 20px;
  }
}
