:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #13213a;
  --muted: #6b7890;
  --line: #dfe7f1;
  --primary: #315cf3;
  --primary-dark: #2344bf;
  --green: #45af49;
  --green-soft: #eaf8eb;
  --orange: #f6a81a;
  --orange-soft: #fff5df;
  --red: #f05c45;
  --purple: #8258e8;
  --shadow-sm: 0 6px 18px rgba(20, 42, 80, 0.07);
  --shadow-md: 0 18px 45px rgba(20, 42, 80, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1460px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(49, 92, 243, 0.08), transparent 34%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(222, 230, 240, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 9px 3px 9px 3px;
  background: linear-gradient(145deg, #66c84f, #23953c);
  box-shadow: 0 6px 14px rgba(44, 158, 62, 0.24);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  font-size: 0.91rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding-block: 28px;
}

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

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--primary);
}

.login-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-mini input {
  width: 112px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.login-mini input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(49, 92, 243, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4777ff);
  box-shadow: 0 10px 24px rgba(49, 92, 243, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-light {
  color: var(--primary);
  background: #eef3ff;
}

/* STARTSEITE */
.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 56px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 4.6vw, 5.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.step-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.step-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: #edf2ff;
  font-size: 1.2rem;
  font-weight: 900;
}

.step-item strong {
  display: block;
  margin-bottom: 3px;
}

.step-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-photo {
  width: min(100%, 500px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 10px solid #101722;
  border-radius: 46px;
  background:
    linear-gradient(rgba(10, 18, 30, 0.08), rgba(10, 18, 30, 0.08)),
    url("images/hero-meal.jpg") center / cover,
    linear-gradient(145deg, #f6b16e, #80b664);
  box-shadow: 0 34px 70px rgba(20, 35, 62, 0.25);
}

.hero-photo::after {
  content: "Foto-Platzhalter\A images/hero-meal.jpg";
  white-space: pre;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(11, 32, 50, 0.15), rgba(18, 70, 40, 0.18));
}

.floating-stat {
  position: absolute;
  min-width: 110px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 220, 232, 0.95);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.floating-stat small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
}

.floating-stat strong {
  font-size: 1.1rem;
}

.stat-protein {
  top: 40px;
  left: 0;
  color: #238f36;
}

.stat-omega {
  top: 190px;
  right: -12px;
  color: #2859c7;
}

.stat-calories {
  right: 20px;
  bottom: 54px;
  color: #e56b16;
}

.try-ai {
  margin-top: 34px;
  padding: 30px;
  text-align: center;
}

.try-ai h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.try-ai p {
  margin: 0 0 20px;
  color: var(--muted);
}

.section {
  padding: 44px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 0 5px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.goal-card {
  min-height: 148px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.goal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 92, 243, 0.38);
}

.goal-icon {
  font-size: 2.3rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card {
  padding: 26px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: #eef3ff;
  font-size: 1.5rem;
}

.benefit-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 54px;
  color: #d8e1ef;
  background: #12213a;
}

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.86rem;
}

/* LEBENSMITTELSEITE */
.profile-strip {
  margin-top: 22px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.profile-field label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.profile-field input,
.profile-field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 7px 1px 9px;
  color: var(--text);
  background: transparent;
  font-weight: 800;
  outline: none;
}

.profile-field input:focus,
.profile-field select:focus {
  border-color: var(--primary);
}

.food-main {
  padding: 24px 0 48px;
}

.food-shell {
  padding: 22px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.food-top {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.35fr);
  gap: 28px;
}

.food-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background:
    url("images/salmon-main.jpg") center / cover,
    linear-gradient(145deg, #ef9c5f, #f6c87c);
}

.food-gallery-main::after {
  content: "Foto-Platzhalter\A images/salmon-main.jpg";
  white-space: pre;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  font-weight: 900;
  background: rgba(35, 32, 28, 0.12);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumb {
  aspect-ratio: 1.45 / 1;
  border-radius: 9px;
  border: 2px solid transparent;
  background: linear-gradient(145deg, #f1b06b, #7fae59);
}

.thumb.active {
  border-color: var(--primary);
}

.food-title h1 {
  margin: 2px 0 3px;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  letter-spacing: -0.045em;
}

.food-title p {
  margin: 0;
  color: var(--muted);
}

.portion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.portion-chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-weight: 800;
}

.portion-chip.active {
  color: var(--primary);
  border-color: var(--primary);
  background: #f4f7ff;
}

.macro-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.highlight-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.highlight-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 700;
}

.highlight-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.5rem;
}

.highlight-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.progress {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.progress > span {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  border-radius: inherit;
  background: var(--bar, var(--primary));
}

.nutrition-section {
  margin-top: 34px;
}

.nutrition-section h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.nutrition-section h2 span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.macro-table {
  border-top: 1px solid var(--line);
}

.macro-row {
  display: grid;
  grid-template-columns: 180px minmax(150px, 1fr) 100px 70px;
  gap: 16px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid #eef2f7;
}

.macro-row .name {
  font-weight: 800;
}

.macro-row .amount,
.macro-row .percent {
  color: var(--muted);
  text-align: right;
  font-size: 0.9rem;
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nutrient-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.nutrient-card summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
}

.nutrient-card summary::-webkit-details-marker {
  display: none;
}

.nutrient-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.nutrient-head strong {
  font-size: 0.91rem;
}

.nutrient-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nutrient-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.nutrient-value b {
  font-size: 1.28rem;
}

.info-box {
  padding: 0 16px 16px;
  color: #4d5b73;
  border-top: 1px solid #eef2f7;
  background: #fbfdff;
}

.info-box h3 {
  margin: 15px 0 6px;
  color: var(--text);
  font-size: 0.96rem;
}

.info-box p {
  margin: 0 0 10px;
  font-size: 0.88rem;
}

.study-link {
  display: inline-flex;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--primary);
  background: #edf2ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.details-panel {
  margin-top: 28px;
  padding: 20px;
}

.details-panel h2 {
  margin: 0 0 5px;
  font-size: 1.18rem;
}

.details-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-chip.active {
  color: var(--primary);
  border-color: #cbd7ff;
  background: #edf2ff;
}

/* TABLET */
@media (max-width: 1120px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 22px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding-block: 10px 14px;
    white-space: nowrap;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 28px;
  }

  .goal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* MOBILE */
@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    gap: 12px;
  }

  .login-mini {
    margin-left: auto;
  }

  .login-mini input {
    display: none;
  }

  .main-nav {
    gap: 18px;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 38px;
  }

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

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-photo {
    width: min(80vw, 350px);
    border-width: 7px;
    border-radius: 34px;
  }

  .floating-stat {
    min-width: 96px;
    padding: 9px 11px;
  }

  .stat-protein {
    left: 2px;
  }

  .stat-omega {
    right: 1px;
  }

  .stat-calories {
    right: 3px;
  }

  .try-ai {
    padding: 24px 18px;
  }

  .btn {
    width: 100%;
  }

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

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

  .footer-inner {
    padding-block: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-field:last-child {
    grid-column: 1 / -1;
  }

  .food-shell {
    padding: 14px;
  }

  .food-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .macro-highlight-grid {
    grid-template-columns: 1fr;
  }

  .macro-row {
    grid-template-columns: minmax(110px, 1fr) 80px 54px;
    gap: 10px;
  }

  .macro-row .progress {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }

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

@media (max-width: 430px) {
  .logo span:last-child {
    font-size: 0.9rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-copy > p {
    font-size: 1rem;
  }

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

  .profile-strip {
    grid-template-columns: 1fr;
  }

  .profile-field:last-child {
    grid-column: auto;
  }

  .food-title h1 {
    font-size: 2rem;
  }

  .portion-chip {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}

.food-search-section {
  min-height: 70vh;
}

.food-search-heading {
  max-width: 850px;
  margin: 0 auto 32px;
  text-align: center;
}

.food-search-heading h1 {
  margin-bottom: 16px;
}

.food-search-heading p {
  max-width: 760px;
  margin: 0 auto 12px;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary, #19764d);
}

.food-search-card {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 32px;
  text-align: center;
}

.food-search-form {
  margin-top: 24px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #d9e2dc;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(24, 72, 51, 0.08);
}

.search-icon {
  padding-left: 10px;
  font-size: 1.25rem;
}

.search-input-wrapper input {
  flex: 1;
  min-width: 0;
  padding: 14px 6px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
}

.search-button {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 24px;
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.9rem;
}

.popular-searches span {
  font-weight: 600;
}

.popular-searches a {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f0f7f3;
  color: #165d3e;
  text-decoration: none;
}

.popular-searches a:hover {
  background: #dcefe4;
}

.food-benefits {
  margin-bottom: 64px;
}

.food-categories {
  padding-top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .food-search-card {
    padding: 22px 16px;
  }

  .search-input-wrapper {
    flex-wrap: wrap;
  }

  .search-icon {
    display: none;
  }

  .search-input-wrapper input {
    width: 100%;
    flex-basis: 100%;
    padding: 14px;
  }

  .search-button {
    width: 100%;
  }
}

.contact-page {
  background: #f6f9f7;
}

.contact-hero {
  padding: 80px 20px 145px;
  background:
    radial-gradient(
      circle at top right,
      rgba(75, 170, 116, 0.24),
      transparent 35%
    ),
    linear-gradient(135deg, #123f2d 0%, #176343 55%, #21865d 100%);
  color: #ffffff;
}

.contact-hero-inner {
  max-width: 760px;
  text-align: center;
}

.contact-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
}

.contact-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  line-height: 1.75;
}

.contact-content {
  position: relative;
  z-index: 2;
  margin-top: -85px;
  padding: 0 20px 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.5fr);
  gap: 28px;
  align-items: start;
}

.contact-sidebar-card,
.contact-form-card {
  border: 1px solid rgba(24, 74, 51, 0.09);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 66, 42, 0.1);
}

.contact-sidebar-card {
  padding: 30px;
}

.contact-sidebar-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.contact-sidebar-card > p {
  margin: 0 0 28px;
  color: #617068;
  line-height: 1.65;
}

.contact-topic {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #edf1ee;
}

.contact-topic:last-of-type {
  border-bottom: none;
}

.contact-topic-icon {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  background: #edf8f2;
  font-size: 1.2rem;
}

.contact-topic strong,
.contact-topic span {
  display: block;
}

.contact-topic strong {
  margin-bottom: 4px;
  color: #183c2b;
}

.contact-topic span {
  color: #718078;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-note {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding: 16px;
  border-radius: 15px;
  background: #f5f8f6;
}

.contact-note p {
  margin: 0;
  color: #65736b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.contact-form-card {
  padding: 38px;
}

.contact-form-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #edf1ee;
}

.contact-form-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #e9f7ef;
  color: #176744;
  font-size: 1.45rem;
}

.contact-form-heading h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.contact-form-heading p {
  margin: 0;
  color: #748078;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #273b31;
  font-size: 0.92rem;
  font-weight: 700;
}

.optional-label {
  margin-left: 5px;
  color: #8b9690;
  font-size: 0.78rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9e2dc;
  border-radius: 13px;
  background: #fbfcfb;
  color: #1f3027;
  font-family: inherit;
  font-size: 0.97rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group input,
.form-group select {
  min-height: 52px;
  padding: 0 15px;
}

.form-group textarea {
  min-height: 180px;
  padding: 15px;
  resize: vertical;
  line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #24845b;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(36, 132, 91, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9aa49e;
}

.form-help {
  display: block;
  margin-top: 7px;
  color: #808b85;
  font-size: 0.8rem;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 25px;
  color: #66736c;
  font-size: 0.87rem;
  line-height: 1.55;
  cursor: pointer;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1c7952;
}

.privacy-check a {
  color: #176c49;
  font-weight: 600;
}

.contact-submit {
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.contact-bottom {
  padding: 0 20px 80px;
}

.contact-bottom-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border: 1px solid #dfe8e2;
  border-radius: 22px;
  background: #ffffff;
}

.contact-bottom-label {
  display: block;
  margin-bottom: 7px;
  color: #188058;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-bottom-card h2 {
  margin: 0 0 7px;
  font-size: 1.45rem;
}

.contact-bottom-card p {
  margin: 0;
  color: #718078;
}

.contact-email {
  flex-shrink: 0;
  padding: 13px 20px;
  border-radius: 12px;
  background: #edf8f2;
  color: #176c49;
  font-weight: 700;
  text-decoration: none;
}

.contact-email:hover {
  background: #dff2e7;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    order: 2;
  }

  .contact-form-card {
    order: 1;
  }
}

@media (max-width: 650px) {
  .contact-hero {
    padding-top: 60px;
    padding-bottom: 125px;
  }

  .contact-content {
    margin-top: -70px;
  }

  .contact-form-card,
  .contact-sidebar-card {
    padding: 24px 19px;
    border-radius: 19px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-bottom-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 27px 22px;
  }

  .contact-email {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* WISSENSCHAFTSSEITE */

.science-page {
  overflow: hidden;
}

.science-hero {
  padding: 82px 0 74px;
  background:
    radial-gradient(
      circle at top right,
      rgba(49, 92, 243, 0.13),
      transparent 34%
    ),
    linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border-bottom: 1px solid var(--line);
}

.science-hero-inner {
  max-width: 920px;
  text-align: center;
}

.science-label,
.evidence-type {
  display: inline-block;
  color: var(--primary);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.science-hero h1 {
  max-width: 850px;
  margin: 14px auto 20px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.science-hero p {
  max-width: 790px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.science-hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.science-hero-facts span {
  padding: 9px 15px;
  border: 1px solid #d6e0fb;
  border-radius: 999px;
  color: #284baf;
  background: #edf2ff;
  font-size: 0.84rem;
  font-weight: 800;
}

.science-heading {
  max-width: 820px;
}

.science-heading h2 {
  margin-top: 7px;
}

.science-heading p {
  max-width: 760px;
  line-height: 1.7;
}

.science-table-card {
  overflow: hidden;
}

.science-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.science-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.science-table th {
  padding: 17px 22px;
  color: #44536c;
  background: #f6f9fd;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.science-table th:first-child {
  width: 24%;
}

.science-table th:nth-child(2) {
  width: 34%;
}

.science-table td {
  padding: 24px 22px;
  border-bottom: 1px solid #eaf0f6;
  color: #536178;
  vertical-align: middle;
  font-size: 0.92rem;
  line-height: 1.65;
}

.science-table tbody tr:last-child td {
  border-bottom: none;
}

.science-table tbody tr:hover {
  background: #fbfdff;
}

.science-topic {
  display: flex;
  align-items: center;
  gap: 13px;
}

.science-topic-icon {
  display: grid;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 14px;
  background: #eef3ff;
  font-size: 1.25rem;
}

.science-topic strong,
.science-topic small {
  display: block;
}

.science-topic strong {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 1rem;
}

.science-topic small {
  color: var(--muted);
  font-size: 0.78rem;
}

.science-table .filter-row {
  gap: 7px;
}

.science-warning {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  padding: 22px;
  border-top: 1px solid #f2dba9;
  background: var(--orange-soft);
}

.science-warning-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: #8c5b00;
  background: #ffe5a9;
  font-size: 1.25rem;
  font-weight: 900;
}

.science-warning strong {
  display: block;
  margin-bottom: 6px;
  color: #5f430b;
}

.science-warning p {
  margin: 4px 0;
  color: #735b2c;
  font-size: 0.88rem;
  line-height: 1.6;
}

.science-process {
  background: rgba(255, 255, 255, 0.46);
  border-top: 1px solid rgba(223, 231, 241, 0.8);
  border-bottom: 1px solid rgba(223, 231, 241, 0.8);
}

.science-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.science-process-card {
  position: relative;
  min-height: 245px;
  padding: 25px;
}

.science-process-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #d8e2f7;
  font-size: 1.4rem;
  font-weight: 900;
}

.science-process-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 23px;
  place-items: center;
  border-radius: 15px;
  background: #edf2ff;
  font-size: 1.45rem;
}

.science-process-card h3 {
  margin: 0 0 9px;
  font-size: 1.05rem;
}

.science-process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.evidence-list {
  display: grid;
  gap: 13px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 23px 25px;
}

.evidence-rank {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: var(--primary);
  background: #edf2ff;
  font-size: 1.25rem;
  font-weight: 900;
}

.evidence-copy h3 {
  margin: 4px 0 6px;
  font-size: 1.08rem;
}

.evidence-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

.science-global-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  align-items: center;
  padding: 44px;
  background:
    radial-gradient(
      circle at right,
      rgba(49, 92, 243, 0.11),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.96);
}

.science-global-content {
  max-width: 850px;
}

.science-global-content h2 {
  margin: 7px 0 15px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.035em;
}

.science-global-content p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.science-small-note {
  padding-top: 8px;
  font-size: 0.82rem;
}

.science-global-icon {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border-radius: 50%;
  background: #edf2ff;
  font-size: 5.2rem;
}

.science-feedback {
  padding-bottom: 70px;
}

.science-feedback .try-ai {
  margin-top: 0;
}


/* TABLET */

@media (max-width: 1120px) {
  .science-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* MOBILE */

@media (max-width: 760px) {
  .science-hero {
    padding: 55px 0 48px;
  }

  .science-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .science-hero p {
    font-size: 1rem;
  }

  .science-table-card {
    border-radius: 15px;
  }

  .science-warning {
    grid-template-columns: 1fr;
  }

  .science-process-grid {
    grid-template-columns: 1fr;
  }

  .science-process-card {
    min-height: auto;
  }

  .evidence-item {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 17px;
  }

  .evidence-rank {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .science-global-card {
    grid-template-columns: 1fr;
    padding: 28px 21px;
  }

  .science-global-icon {
    display: none;
  }
}

.register-link {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.9rem;
}

.register-link a {
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}
