/* ==========================================================
   FoodGenius Labs – Dunkelrotes Farbschema
   Palette inspiriert von tiefem Weinrot und warmem Gold
   ========================================================== */

:root {
  /* ---- Dunkelrote Hintergrundtöne ---- */
  --bg-deep:       hsl(0, 28%, 6%);
  --bg-surface:    hsl(358, 24%, 11%);
  --bg-raised:     hsl(356, 22%, 16%);
  --border-subtle: hsl(355, 18%, 22%);

  /* ---- Rottöne ---- */
  --red-mid:       hsl(355, 40%, 30%);
  --red-bright:    hsl(354, 55%, 45%);
  --red-light:     hsl(356, 45%, 60%);

  /* ---- Akzent – warmer Goldton ---- */
  --accent:        hsl(36, 58%, 52%);
  --accent-hover:  hsl(36, 62%, 60%);

  /* ---- Textfarben ---- */
  --text-primary:  hsl(0, 12%, 88%);
  --text-muted:    hsl(355, 10%, 62%);
  --text-heading:  hsl(0, 14%, 94%);

  /* ---- Typografie ---- */
  --ff-heading: 'DM Serif Display', 'Georgia', serif;
  --ff-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
  --fs-base:    1rem;
  --lh-body:    1.72;
  --lh-heading: 1.18;
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a   { color: var(--red-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ---------- Hilfsklassen ---------- */
.container {
  width: 90%;
  max-width: 960px;
  margin-inline: auto;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: var(--ff-heading);
  font-size: 1.35rem;
  color: var(--text-heading);
  letter-spacing: .02em;
}

.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
}

nav a {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

nav a:hover {
  color: var(--text-heading);
}

nav a:hover::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -18%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(355, 40%, 18%) 0%, transparent 72%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  max-width: 18ch;
  margin-bottom: 1.2rem;
  position: relative;
}

.hero p {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 2rem;
  position: relative;
}

.btn-primary {
  display: inline-block;
  padding: .72rem 1.8rem;
  font-family: var(--ff-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--bg-deep);
  background: var(--accent);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  position: relative;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-deep);
  transform: translateY(-1px);
}

/* ---------- Leistungen ---------- */
.features {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.features-heading {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 2.4rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2rem 1.6rem;
  transition: border-color .25s, box-shadow .25s;
}

.feature-card:hover {
  border-color: var(--red-mid);
  box-shadow: 0 2px 18px hsl(355, 30%, 8%);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--red-bright);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: .55rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: .94rem;
}

/* ---------- Über uns ---------- */
.about {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.about h2 {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.about p {
  max-width: 64ch;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

/* ---------- Kontakt ---------- */
.contact {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.contact h2 {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.contact p {
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 1.6rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 440px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--ff-body);
  font-size: .95rem;
  padding: .65rem .85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-primary);
  transition: border-color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red-bright);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ---------- Responsiv ---------- */
@media (max-width: 600px) {
  nav ul { gap: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .features-grid { grid-template-columns: 1fr; }
}
