/* ==========================================================================
   Anpassungen für WordPress/Kadence – damit das Original-CSS (lami.css)
   mit Block-Markup genauso aussieht wie die PHP-Version.
   ========================================================================== */

/* ---------- Kadence-Grundwerte neutralisieren ---------- */
body.lami {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: normal;
}
body.lami #wrapper, body.lami .site, body.lami #inner-wrap,
body.lami .content-bg, body.lami .entry.single-entry { background: transparent; box-shadow: none; }
body.lami #inner-wrap, body.lami .content-container,
body.lami .content-area, body.lami .site-main,
body.lami .entry-content-wrap, body.lami .single-content { margin: 0; padding: 0; max-width: none; }
body.lami .entry-content { margin: 0; }
:where(body.lami) a { color: inherit; text-decoration: none; }
:where(body.lami) :is(h1, h2, h3, h4) { font-family: 'Inter', sans-serif; line-height: normal; letter-spacing: normal; }
/* Browser-Standardgrößen wie im Original (Kadence setzt eigene) */
:where(body.lami) h1 { font-size: 2em; } :where(body.lami) h2 { font-size: 1.5em; }
:where(body.lami) h3 { font-size: 1.17em; } :where(body.lami) h4 { font-size: 1em; }
body.lami .nav a, body.lami .footer a { text-decoration: none; }

/* Seiteninhalt: nur Original-CSS + Browser-Standard (Kadence-.single-content ist per Filter entfernt).
   Klassisches Theme: WordPress legt in jede Gruppe einen __inner-container –
   er wird aus dem Layout genommen, damit Grid/Flex des Originals direkt auf die Kinder wirken. */
body.lami .lami-content .wp-block-group__inner-container { display: contents; }
body.lami .lami-content figure { margin: 0; }
body.lami .lami-content .wp-block-buttons { margin: 0; }
body.lami .lami-content .family-cta { margin-top: clamp(32px, 5vw, 48px); }
body.lami .lami-content .lifestyle-text .wp-block-buttons { margin-top: 10px; }

/* Admin-Leiste: Sticky-Navigation darunter */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* ---------- Überschriften/Absätze aus Blöcken ---------- */
body.lami p.kicker { margin-top: 0; }
body.lami .section-head p.kicker { margin-bottom: 12px; }
body.lami .product-highlight-inner p.kicker, body.lami .lifestyle-text p.kicker { margin-bottom: 14px; }
body.lami .hero p.eyebrow { margin-top: 0; }
body.lami .hero p.lead { margin-top: 0; }
body.lami .section-head p:last-child { margin-bottom: 0; }
body.lami .product-highlight-inner p:not(.kicker) { margin: 0 auto; }
body.lami .lifestyle-text p:not(.kicker) { margin: 0 0 18px; }

/* Kennzahlen (Absatz mit fettem Wert statt <b>/<span>) */
body.lami p.stat { margin: 0; font-size: 11.5px; color: var(--ink-faint); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
body.lami .stat strong { display: block; font-family: 'Inter', sans-serif; font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; color: var(--ink); letter-spacing: 0; text-transform: none; }
body.lami .hero p.stat { color: rgba(255,255,255,.65); }
body.lami .hero .stat strong { color: #fff; }
@media (max-width: 767.98px) {
  body.lami p.stat { font-size: 11px; line-height: 1.35; letter-spacing: .04em; }
}

/* Duftfamilien: Beschreibung als Absatz statt <span> */
body.lami .family-card p { margin: 0; font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }

/* Staffelung der Einblendung (Original: style="--i:n") */
.reveal-stagger .wp-block-group__inner-container > :nth-child(2) { --i: 1; }
.reveal-stagger .wp-block-group__inner-container > :nth-child(3) { --i: 2; }
.reveal-stagger .wp-block-group__inner-container > :nth-child(4) { --i: 3; }
.reveal-stagger .wp-block-group__inner-container > :nth-child(5) { --i: 4; }
.reveal-stagger .wp-block-group__inner-container > :nth-child(6) { --i: 5; }
.reveal-stagger.in > .wp-block-group__inner-container > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Bilder aus der Mediathek (figure statt img) ---------- */
body.lami .hero-photo { margin: 0; }
body.lami .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
@media (max-width: 767.98px) { body.lami .hero-photo img { object-position: center; } }
body.lami .product-photo img, body.lami .lifestyle-image img { display: block; width: 100%; height: auto; }

/* ---------- Buttons (Block „Buttons“ mit Stil LAMI) ---------- */
body.lami .wp-block-buttons { gap: 16px; }
body.lami .wp-block-button { margin: 0; }
body.lami .wp-block-button__link.btn { border-radius: 999px; font-size: 13px; font-weight: 700; line-height: normal; padding: 13px 24px; box-shadow: none; }
body.lami .wp-block-button__link.btn-primary { background: var(--ink); color: var(--bg) !important; box-shadow: 0 10px 26px -12px rgba(0,0,0,.35); }
body.lami .wp-block-button__link.btn-outline { background: none; border: 1.5px solid var(--line); color: var(--ink) !important; }
body.lami .wp-block-button__link.btn-outline:hover { border-color: var(--ink); }
body.lami .hero .wp-block-button__link.btn-primary { padding: 15px 30px; }
body.lami .hero .wp-block-button__link.btn-outline { border-color: rgba(255,255,255,.4); color: #fff !important; }
body.lami .hero .wp-block-button__link.btn-outline:hover { border-color: #fff; }
body.lami .lifestyle-text .wp-block-button__link.btn-primary { background: #fff; color: var(--noir) !important; box-shadow: 0 10px 26px -12px rgba(0,0,0,.6); }
body.lami .lifestyle-text .wp-block-buttons { margin-top: 10px; }
body.lami .family-cta { justify-content: center; }
body.lami .family-cta .btn { min-width: 220px; justify-content: center; min-height: 48px; }
body.lami .contact-actions { margin: 8px 0 0; }
body.lami .contact-actions .btn { min-width: 180px; min-height: 48px; justify-content: center; }
body.lami .btn.btn-primary:hover { color: var(--bg) !important; }
body.lami .nav .btn.btn-primary { color: var(--bg) !important; }
@media (max-width: 767.98px) {
  body.lami .hero-actions .wp-block-button, body.lami .family-cta .wp-block-button,
  body.lami .lifestyle-text .wp-block-button, body.lami .contact-actions .wp-block-button { width: 100%; }
  body.lami .hero-actions .btn, body.lami .family-cta .btn,
  body.lami .lifestyle-text .btn, body.lami .contact-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Zitat (Block „Zitat“) ---------- */
body.lami .quote-band .wp-block-quote { border: 0; padding: 0; margin: 0; font-style: normal; background: none; font-size: clamp(20px, 3vw, 28px); line-height: 1.4; color: var(--ink); font-weight: 500; max-width: 760px; }
body.lami .quote-band .wp-block-quote p { margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; font-style: normal; }
body.lami .quote-band .wp-block-quote cite { display: block; margin-top: 20px; font-size: 12.5px; font-style: normal; color: var(--ink-faint); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
body.lami .quote-band .wp-block-quote::before, body.lami .quote-band .wp-block-quote::after { display: none; }

/* ---------- Kontakt: Adressdaten aus Absätzen ---------- */
body.lami .contact-row p { margin: 0; }
body.lami .contact-row a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
body.lami .contact-row a:hover { text-decoration-color: var(--ink); }
body.lami .contact-row .opening-status { margin: 0 0 5px; }
body.lami .contact-row .opening-status[hidden] { display: none; }

/* ---------- Kontaktformular (Fluent Forms) im Original-Stil ---------- */
body.lami .lami-form { margin-top: clamp(40px, 6vw, 64px); max-width: 680px; }
body.lami .lami-form h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; margin: 0 0 6px; color: var(--ink); text-transform: uppercase; letter-spacing: .1em; }
body.lami .lami-form > p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
body.lami .fluentform .ff-el-group { margin-bottom: 16px; }
body.lami .fluentform .ff-el-input--label label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
body.lami .fluentform .ff-el-form-control {
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-family: inherit; font-size: 15px; box-shadow: none;
}
body.lami .fluentform .ff-el-form-control:focus { border-color: var(--ink); outline: none; }
body.lami .fluentform .ff-el-tc label, body.lami .fluentform .ff_t_c { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
body.lami .fluentform .ff-el-tc a, body.lami .fluentform .ff_t_c a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
body.lami .fluentform .ff-btn-submit {
  background: var(--ink) !important; color: var(--bg) !important; border: 0; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase;
  padding: 15px 30px; min-height: 48px; box-shadow: 0 10px 26px -12px rgba(0,0,0,.35); cursor: pointer;
}
body.lami .fluentform .ff-btn-submit:hover { transform: translateY(-2px); opacity: 1; }
body.lami .ff-message-success { border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink); box-shadow: none; }
@media (max-width: 767.98px) { body.lami .fluentform .ff-btn-submit { width: 100%; } }

/* ---------- Rechtsseiten ---------- */
body.lami .legal h1.display { margin: 0 0 8px; }
body.lami .legal p.legal-lead { margin-top: 0; }
body.lami .legal h2 { margin: clamp(28px, 4vw, 40px) 0 10px; }
body.lami .legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; overflow-wrap: anywhere; }
body.lami .legal a:hover { text-decoration-color: var(--ink); }
body.lami .legal ul { list-style: disc; }

/* ---------- Fußzeile ---------- */
body.lami .footer { margin-top: 20px; }
body.lami .footer small { color: var(--ink-faint); font-size: 12px; }
