/* ==========================================================
   lejomilou.de – warm & wohnlich
   ========================================================== */

:root {
  --cream: #FBF5EE;
  --cream-alt: #F4E9DB;
  --terracotta: #C97B4A;
  --terracotta-dark: #A85F35;
  --sage: #8A9A6E;
  --sage-dark: #6E7F55;
  --brown: #4A3C31;
  --brown-soft: #7A6A5C;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(74, 60, 49, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  /* Bewusst System-Fonts statt Google Fonts: so lädt die Seite keine
     Schriften von externen Google-Servern nach – das umgeht die in
     Deutschland bekannte DSGVO-Abmahnproblematik rund um eingebundene
     Google Fonts komplett (keine IP-Übertragung an Google beim Seitenaufruf). */
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--brown);
  line-height: 1.2;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: .35em; }

p { margin: 0 0 1em; color: var(--brown-soft); }

a { color: var(--terracotta-dark); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: .5em;
}

.section { padding: 88px 0; }
.section-alt { background: var(--cream-alt); }
.section-lead {
  max-width: 640px;
  margin: 0 auto 2.5em;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-ghost:hover {
  background: var(--brown);
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 238, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(74,60,49,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--terracotta-dark);
  text-decoration: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--brown);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--terracotta-dark); }
.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--sage-dark); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-lead { font-size: 1.15rem; }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.5em;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-photo {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 280px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-card-icon { font-size: 2.5rem; display: block; margin-bottom: .4em; }
.hero-card p { margin: 0; font-weight: 600; color: var(--brown); }

/* ---------- Photo gallery (Produkt-Sektion) ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin: 40px 0 8px;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.gallery-img-tall { grid-row: 1 / 3; aspect-ratio: 3 / 4; height: auto; align-self: start; }
.photo-gallery .gallery-img:nth-child(2),
.photo-gallery .gallery-img:nth-child(3) { height: 100%; }

/* ---------- Proof photo (Funktion-Sektion) ---------- */
.proof-photo {
  margin: 48px auto 0;
  max-width: 560px;
  text-align: center;
}
.proof-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.proof-photo figcaption {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--brown-soft);
  font-style: italic;
}

/* ---------- Über mich ---------- */
.about-container {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}
.about-text h2 { margin-top: 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.feature-icon { font-size: 2rem; display: block; margin-bottom: .4em; }
.feature-card p { font-size: .95rem; margin: 0; }

/* ---------- Benefit list ---------- */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
  margin: 48px auto 0;
}
.benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.benefit-icon { font-size: 2rem; line-height: 1; }
.benefit-row p { margin: 0; font-size: .97rem; }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  text-align: center;
  padding: 12px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.step-card p { font-size: .95rem; }

/* ---------- Quiz ---------- */
.section-quiz { background: var(--cream-alt); }
.quiz-container { max-width: 720px; }

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
  gap: 4px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .78rem;
  color: var(--brown-soft);
  font-weight: 700;
  min-width: 64px;
}
.progress-step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brown-soft);
  margin-bottom: 6px;
  color: var(--brown-soft);
  font-family: var(--font-heading);
}
.progress-step.active span {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}
.progress-step.active { color: var(--terracotta-dark); }
.progress-step.done span {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--brown-soft);
  opacity: .3;
  min-width: 24px;
  margin-bottom: 24px;
}

#quiz-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.quiz-step { display: none; border: none; padding: 0; margin: 0; }
.quiz-step.active { display: block; }

.quiz-step legend {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1em;
  padding: 0;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin: 1.2em 0 .4em;
  color: var(--brown);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(74,60,49,0.15);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--brown);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.option-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.option-card {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(74,60,49,0.15);
  cursor: pointer;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease;
}
.option-card input { display: none; }
.option-card:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(201,123,74,0.1);
  color: var(--terracotta-dark);
}

.checkbox-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: .6em;
}
.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid rgba(74,60,49,0.15);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
}
.checkbox-pill:has(input:checked) {
  border-color: var(--sage);
  background: rgba(138,154,110,0.12);
}
.datenschutz-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--radius-sm);
  font-weight: 400;
  font-size: .85rem;
  margin-top: 1.5em;
  padding: 14px 16px;
}
.datenschutz-label input { margin-top: 3px; }

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2em;
}
.step-actions .btn { flex: none; }
.quiz-step[data-step="1"] .step-actions { justify-content: flex-end; }

.form-success {
  text-align: center;
  background: var(--sage);
  color: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-top: 24px;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .9rem;
}
.footer-inner p { color: var(--cream); margin: 0; }
.footer-nav a {
  color: var(--cream);
  margin-left: 20px;
  text-decoration: none;
  opacity: .85;
}
.footer-nav a:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(74,60,49,0.08);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease;
  }
  .main-nav.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a:not(.nav-cta) {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  .main-nav .nav-cta { margin-top: 8px; }
  #quiz-form { padding: 28px; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
  .gallery-img-tall { grid-row: auto; grid-column: 1 / 3; }
  .about-container { grid-template-columns: 1fr; }
  .about-photo img { max-height: 420px; }
}
