/*
Theme Name: Lavendel gegen Motten
Theme URI: https://lavendel-gegen-motten.de
Author: Dieter Grill
Author URI: https://lavendel-gegen-motten.de
Description: Modernes, natürliches Design für Lavendel gegen Motten – mit Unsplash-Fotos, SEO-Optimierung und Online-Shop-Bereich.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: lavendel-motten
*/

:root {
  --lavender:       #7c5f8a;
  --lavender-mid:   #a07ab0;
  --lavender-light: #e8dff0;
  --lavender-pale:  #f5f0f9;
  --cream:          #faf8f4;
  --green:          #5c7a52;
  --text:           #2e2533;
  --text-soft:      #6b5e78;
  --white:          #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }

/* NAV */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(250,248,244,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124,95,138,0.1);
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--lavender); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-soft); font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--lavender); }
.nav-cta { background: var(--lavender); color: white; padding: .55rem 1.4rem; border-radius: 2rem; text-decoration: none; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; transition: background .2s; }
.nav-cta:hover { background: var(--lavender-mid); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--lavender); }

/* HERO */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 8rem 4rem 4rem; position: relative; overflow: hidden; }
.hero-bg-img { position: absolute; inset: 0; z-index: 0; background: url('https://images.unsplash.com/photo-1564419320461-6870880221ad?w=1600&auto=format&fit=crop&q=60') center/cover no-repeat; opacity: 0.07; }
.hero-bg-grad { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(160,122,176,0.15) 0%, transparent 70%); }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--lavender); margin-bottom: 1.5rem; }
.hero-eyebrow::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--lavender); }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 5.5vw, 5rem); line-height: 1.08; font-weight: 600; color: var(--text); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--lavender); font-style: italic; }
.hero-sub { font-size: 1.05rem; line-height: 1.7; color: var(--text-soft); max-width: 30rem; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--lavender); color: white; padding: .85rem 2rem; border-radius: 3rem; text-decoration: none; font-size: .9rem; font-weight: 500; box-shadow: 0 4px 20px rgba(124,95,138,0.3); transition: background .2s, transform .15s; display: inline-block; }
.btn-primary:hover { background: var(--lavender-mid); transform: translateY(-2px); color: white; }
.btn-secondary { border: 1.5px solid var(--lavender); color: var(--lavender); padding: .85rem 2rem; border-radius: 3rem; text-decoration: none; font-size: .9rem; font-weight: 500; transition: all .2s; display: inline-block; }
.btn-secondary:hover { background: var(--lavender-pale); color: var(--lavender); }

.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; height: 540px; }
.hero-img-main { width: 320px; height: 420px; border-radius: 50% 50% 40% 40% / 40% 40% 60% 60%; overflow: hidden; box-shadow: 0 30px 80px rgba(124,95,138,0.28); border: 4px solid white; }
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-secondary { position: absolute; top: 2rem; right: 1rem; width: 160px; height: 160px; border-radius: 50%; overflow: hidden; box-shadow: 0 12px 40px rgba(124,95,138,0.22); border: 3px solid white; animation: float 7s ease-in-out infinite; }
.hero-img-secondary img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-tertiary { position: absolute; bottom: 3rem; left: 0; width: 130px; height: 130px; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 10px 35px rgba(124,95,138,0.2); border: 3px solid white; animation: float 9s ease-in-out infinite reverse; }
.hero-img-tertiary img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; bottom: 5rem; right: -1rem; background: var(--lavender); color: white; border-radius: 1rem; padding: .8rem 1.2rem; font-size: .78rem; font-weight: 500; box-shadow: 0 8px 24px rgba(124,95,138,0.35); line-height: 1.4; }
.hero-badge strong { display: block; font-size: 1.1rem; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* TRUST BAR */
.trust-bar { background: var(--lavender); padding: 1.2rem 4rem; display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,0.9); font-size: .85rem; letter-spacing: .05em; }

/* SECTIONS */
.site-section { padding: 6rem 4rem; position: relative; }
.inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); margin-bottom: .8rem; }
h2.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.15; color: var(--text); margin-bottom: 1rem; }
h2.section-title em { color: var(--lavender); font-style: italic; }
.section-intro { font-size: 1rem; line-height: 1.75; color: var(--text-soft); max-width: 40rem; }

/* WHY */
.why-section { background: var(--lavender-pale); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 4rem; }
.why-facts { display: flex; flex-direction: column; gap: 2rem; }
.fact-card { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.5rem; background: white; border-radius: 1.2rem; box-shadow: 0 2px 16px rgba(124,95,138,0.07); transition: transform .2s, box-shadow .2s; }
.fact-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(124,95,138,0.14); }
.fact-icon { font-size: 1.5rem; flex-shrink: 0; background: var(--lavender-pale); width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; border-radius: .8rem; }
.fact-text h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: .3rem; }
.fact-text p { font-size: .88rem; line-height: 1.6; color: var(--text-soft); }
.why-visual { position: relative; border-radius: 4rem 1rem 4rem 1rem; overflow: hidden; height: 500px; box-shadow: 0 20px 60px rgba(124,95,138,0.22); }
.why-visual img { width: 100%; height: 100%; object-fit: cover; }
.why-visual-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(124,95,138,0.55) 0%, transparent 50%); }
.why-visual-text { position: absolute; bottom: 2rem; left: 2rem; right: 2rem; color: white; }
.why-visual-text p { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-style: italic; line-height: 1.4; }

/* PRODUCTS */
.products-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product-card { background: white; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 2px 20px rgba(124,95,138,0.08); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(124,95,138,0.18); }
.product-img { height: 240px; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(124,95,138,0.12) 100%); }
.product-body { padding: 1.5rem 1.8rem 2rem; }
.product-badge { display: inline-block; background: var(--lavender-pale); color: var(--lavender); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 2rem; margin-bottom: .8rem; }
.product-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.product-body p { font-size: .88rem; line-height: 1.65; color: var(--text-soft); }
.product-price { margin-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--lavender); }
.price-note { font-size: .75rem; color: var(--text-soft); }
.buy-btn { background: var(--lavender-pale); color: var(--lavender); border: none; padding: .55rem 1.2rem; border-radius: 2rem; font-family: 'Jost', sans-serif; font-size: .82rem; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.buy-btn:hover { background: var(--lavender); color: white; }

/* GALLERY STRIP */
.gallery-strip { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: .5rem; height: 280px; }
.gallery-item { overflow: hidden; border-radius: .8rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* HOW IT WORKS */
.howto-section { background: var(--lavender-pale); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 2rem; left: calc(12.5% + 1.5rem); right: calc(12.5% + 1.5rem); height: 1px; background: repeating-linear-gradient(90deg, var(--lavender-mid) 0, var(--lavender-mid) 8px, transparent 8px, transparent 16px); }
.step { text-align: center; position: relative; z-index: 1; }
.step-num { width: 4rem; height: 4rem; border-radius: 50%; background: var(--lavender); color: white; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; box-shadow: 0 4px 16px rgba(124,95,138,0.3); }
.step-icon { width: 100%; height: 120px; border-radius: 1rem; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 4px 16px rgba(124,95,138,0.12); }
.step-icon img { width: 100%; height: 100%; object-fit: cover; }
.step h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.step p { font-size: .83rem; line-height: 1.6; color: var(--text-soft); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 2rem; }
.about-visual { position: relative; }
.about-photo { width: 100%; height: 500px; border-radius: 6rem 2rem 6rem 2rem; overflow: hidden; box-shadow: 0 24px 70px rgba(124,95,138,0.18); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-small { position: absolute; top: 2rem; right: -2rem; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; border: 4px solid white; box-shadow: 0 8px 30px rgba(124,95,138,0.2); }
.about-photo-small img { width: 100%; height: 100%; object-fit: cover; }
.about-quote { position: absolute; bottom: 1.5rem; left: -2rem; background: white; border-radius: 1rem; padding: 1.2rem 1.5rem; max-width: 260px; box-shadow: 0 8px 30px rgba(124,95,138,0.15); border-left: 3px solid var(--lavender); }
.about-quote p { font-size: .85rem; line-height: 1.55; color: var(--text-soft); font-style: italic; }
.about-quote cite { font-size: .75rem; color: var(--lavender); font-style: normal; font-weight: 500; margin-top: .4rem; display: block; }
.stats-row { display: flex; gap: 2rem; margin: 2rem 0; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 600; color: var(--lavender); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-soft); margin-top: .2rem; }

/* MARKET */
.market-section { background: var(--lavender); color: white; }
.market-section h2.section-title, .market-section h2.section-title em { color: white; }
.market-section .section-label { color: rgba(255,255,255,0.6); }
.market-section .section-intro { color: rgba(255,255,255,0.8); }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.market-card { background: rgba(255,255,255,0.12); border-radius: 1.5rem; padding: 2rem; border: 1px solid rgba(255,255,255,0.2); }
.market-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: white; margin-bottom: 1rem; }
.market-detail { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,0.85); font-size: .88rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.market-detail:last-child { border-bottom: none; }
.day-chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.day-chip { background: rgba(255,255,255,0.2); color: white; padding: .4rem 1rem; border-radius: 2rem; font-size: .8rem; font-weight: 500; }
.day-chip.active { background: white; color: var(--lavender); }
.market-banner { margin-top: 3rem; border-radius: 1.5rem; overflow: hidden; height: 280px; position: relative; }
.market-banner img { width: 100%; height: 100%; object-fit: cover; }
.market-banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(124,95,138,0.75) 0%, transparent 65%); display: flex; align-items: center; padding: 3rem; }
.market-banner-text { color: white; }
.market-banner-text h3 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; margin-bottom: .5rem; }
.market-banner-text p { font-size: .95rem; opacity: .85; max-width: 300px; line-height: 1.6; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; align-items: start; }
.contact-info h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.contact-info p { font-size: .9rem; line-height: 1.75; color: var(--text-soft); margin-bottom: 1.2rem; }
.contact-img { width: 100%; height: 220px; border-radius: 1.2rem; overflow: hidden; margin-bottom: 1.5rem; }
.contact-img img { width: 100%; height: 100%; object-fit: cover; }

/* WP Contact Form 7 styling */
.wpcf7 .wpcf7-form { display: flex; flex-direction: column; gap: 1.2rem; }
.wpcf7 p { margin: 0; }
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 textarea {
  width: 100%; padding: .85rem 1.1rem; border: 1.5px solid var(--lavender-light);
  border-radius: .8rem; background: white; font-family: 'Jost', sans-serif;
  font-size: .9rem; color: var(--text); outline: none; transition: border-color .2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--lavender); }
.wpcf7 textarea { resize: vertical; min-height: 120px; }
.wpcf7 input[type=submit] {
  background: var(--lavender); color: white; border: none;
  padding: 1rem 2rem; border-radius: 3rem; font-family: 'Jost', sans-serif;
  font-size: .9rem; font-weight: 500; cursor: pointer; letter-spacing: .05em;
  transition: background .2s, transform .15s; width: auto; display: inline-block;
}
.wpcf7 input[type=submit]:hover { background: var(--lavender-mid); transform: translateY(-2px); }
.contact-form-native { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.form-group input, .form-group textarea { padding: .85rem 1.1rem; border: 1.5px solid var(--lavender-light); border-radius: .8rem; background: white; font-family: 'Jost', sans-serif; font-size: .9rem; color: var(--text); outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--lavender); }
.form-group textarea { resize: vertical; min-height: 120px; }
.privacy-check { display: flex; align-items: flex-start; gap: .7rem; }
.privacy-check input[type=checkbox] { margin-top: .2rem; accent-color: var(--lavender); }
.privacy-check label { font-size: .8rem; color: var(--text-soft); line-height: 1.5; }
.privacy-check a { color: var(--lavender); }
.form-submit { background: var(--lavender); color: white; border: none; padding: 1rem 2rem; border-radius: 3rem; font-family: 'Jost', sans-serif; font-size: .9rem; font-weight: 500; cursor: pointer; letter-spacing: .05em; transition: background .2s, transform .15s; }
.form-submit:hover { background: var(--lavender-mid); transform: translateY(-2px); }

/* FOOTER */
.site-footer { background: var(--text); color: rgba(255,255,255,0.6); padding: 3rem 4rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: white; font-weight: 600; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: .82rem; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-copy { font-size: .78rem; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav.site-nav { padding: 1rem 2rem; }
  .site-section { padding: 4rem 2rem; }
  .hero { padding: 7rem 2rem 4rem; grid-template-columns: 1fr; }
  .hero-visual { height: 300px; }
  .hero-img-main { width: 200px; height: 260px; }
  .hero-img-secondary { width: 100px; height: 100px; right: 2rem; }
  .hero-img-tertiary { width: 90px; height: 90px; }
  .why-grid, .about-grid, .contact-grid, .market-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-visual { height: 300px; }
  .about-photo-small { right: 0; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .trust-bar { gap: 1.5rem; padding: 1rem 2rem; }
  .gallery-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery-item { height: 160px; }
  .site-footer { padding: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: rgba(250,248,244,0.97); padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--lavender-light); z-index: 99; }
  .nav-toggle { display: block; }
  .products-grid, .steps, .gallery-strip { grid-template-columns: 1fr; }
  .gallery-item { height: 200px; }
  h1, .hero h1 { font-size: 2.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-badge { right: 0; bottom: 0; font-size: .7rem; }
}
