/* =========================================================
   PISTALAND.DE – Main Stylesheet
   ========================================================= */

:root {
  --primary: #4A7C3F;
  --primary-dark: #2F5225;
  --primary-light: #7AAB6B;
  --accent: #C8A84B;
  --accent-light: #E8D08A;
  --bg: #F8FAF6;
  --bg-alt: #EEF4EB;
  --text: #1C2B19;
  --text-light: #5A7052;
  --white: #FFFFFF;
  --border: #D6E5D0;
  --success: #3A9E4C;
  --error: #D93025;
  --shadow: 0 4px 24px rgba(74,124,63,0.10);
  --shadow-lg: 0 8px 40px rgba(74,124,63,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--primary-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
main { flex: 1; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 16px rgba(74,124,63,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(74,124,63,0.4); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-accent {
  background: var(--accent); color: var(--white);
  box-shadow: 0 4px 16px rgba(200,168,75,0.35);
}
.btn-accent:hover { background: #A8882E; transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── HEADER ── */
#header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(248,250,246,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1.5rem;
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-serif); font-size: 1.55rem;
  font-weight: 700; color: var(--primary-dark);
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--white);
}
nav { display: flex; align-items: center; gap: 0.25rem; }
nav a {
  padding: 0.45rem 0.85rem; border-radius: 8px;
  font-size: 0.87rem; font-weight: 500; color: var(--text-light);
  transition: all var(--transition);
}
nav a:hover, nav a.active { color: var(--primary); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switcher { display: flex; gap: 0.25rem; }
.lang-btn {
  padding: 0.28rem 0.6rem; border-radius: 6px;
  font-size: 0.76rem; font-weight: 700;
  color: var(--text-light); transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover { background: var(--primary); color: var(--white); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary-dark); transition: all var(--transition); border-radius: 2px; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1A3A12 0%, #2F5225 50%, #4A7C3F 100%);
  color: var(--white); min-height: 88vh;
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shapes span {
  position: absolute; border-radius: 50%;
  background: rgba(200,168,75,0.07);
}
.hero-shapes span:nth-child(1) { width: 520px; height: 520px; top: -120px; right: -100px; }
.hero-shapes span:nth-child(2) { width: 320px; height: 320px; bottom: -60px; left: 8%; }
.hero-shapes span:nth-child(3) { width: 200px; height: 200px; top: 30%; left: -60px; background: rgba(255,255,255,0.03); }
.hero-content {
  position: relative; z-index: 1;
  max-width: 660px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(200,168,75,0.15); border: 1px solid rgba(200,168,75,0.3);
  color: var(--accent-light); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat span:first-child {
  display: block; font-size: 1.8rem; font-weight: 700;
  font-family: var(--font-serif); color: var(--accent-light);
}
.hero-stat span:last-child { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── FEATURES ── */
.features { background: var(--bg-alt); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem;
}
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.75rem; border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-alt), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 0.98rem; margin-bottom: 0.4rem; font-family: var(--font-sans); font-weight: 700; }
.feature-card p { font-size: 0.84rem; color: var(--text-light); }

/* ── PRODUCTS SECTION ── */
.products-section .section-header { text-align: center; margin-bottom: 2.5rem; }
.products-section .section-header p { color: var(--text-light); margin-top: 0.5rem; font-size: 1rem; }
.filter-bar {
  display: flex; justify-content: center; gap: 0.5rem;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 50px;
  font-size: 0.84rem; font-weight: 600; color: var(--text-light);
  border: 1.5px solid var(--border); transition: all var(--transition);
  background: var(--white);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem;
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: all var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.product-img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-alt);
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--primary-light); gap: 0.5rem;
}
.product-img-placeholder span { font-size: 4rem; }
.product-img-placeholder p { font-size: 0.8rem; font-weight: 500; color: var(--text-light); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 0.28rem 0.8rem; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-bestseller { background: var(--primary); color: var(--white); }
.badge-new { background: var(--success); color: var(--white); }
.badge-popular { background: var(--accent); color: var(--white); }
.product-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.08rem; margin-bottom: 0.35rem; font-family: var(--font-sans); font-weight: 700; }
.product-body p { font-size: 0.82rem; color: var(--text-light); flex: 1; margin-bottom: 1.1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-unit {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem; font-size: 0.8rem; color: var(--text-light);
}
.product-unit strong { color: var(--primary-dark); }
.product-unit-icon { font-size: 1rem; }
.inquiry-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1rem; border-radius: 50px;
  background: var(--primary); color: var(--white);
  font-size: 0.84rem; font-weight: 600;
  transition: all var(--transition);
  width: 100%;
}
.inquiry-btn:hover { background: var(--primary-dark); transform: scale(1.02); }

/* ── ABOUT SECTION ── */
.about-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white); padding: 5rem 0;
}
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-inner h2 { color: var(--white); margin-bottom: 1rem; }
.about-inner p { color: rgba(255,255,255,0.82); margin-bottom: 1.1rem; font-size: 0.97rem; }
.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.5rem;
}
.about-feat {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.9);
}
.about-feat::before {
  content: '✓'; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(200,168,75,0.3); color: var(--accent-light);
  font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.about-visual-item {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,0.1); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.about-visual-item:first-child { grid-row: 1/3; aspect-ratio: auto; min-height: 240px; font-size: 4rem; }

/* ── CONTACT SECTION ── */
.contact-section { background: var(--bg-alt); padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info h2 { margin-bottom: 0.75rem; }
.contact-info > p { color: var(--text-light); margin-bottom: 2rem; font-size: 0.95rem; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.2rem; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 0.75rem;
}
.contact-detail-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.2rem; }
.contact-detail-text span { font-size: 0.9rem; color: var(--text); }
.contact-form-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 1rem; border-radius: 8px;
  border: 1.5px solid var(--border); font-size: 0.9rem;
  font-family: var(--font-sans); background: var(--bg);
  color: var(--text); transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: var(--white); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--primary-dark); color: var(--white);
  padding: 0.9rem 1.5rem; border-radius: 12px;
  font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
  transform: translateY(100px); opacity: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg); max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }

/* ── PAGE TRANSITION ── */
.page { display: none; animation: fadeIn 0.28s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── FOOTER ── */
footer {
  background: var(--text); color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.84rem; margin-bottom: 0; }
.footer-col h4 {
  color: var(--white); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-family: var(--font-sans);
}
.footer-col a { display: block; font-size: 0.84rem; margin-bottom: 0.45rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--accent-light); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav {
    display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem;
  }
  nav.mobile-open { display: flex; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .about-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .hero { min-height: auto; padding: 4rem 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
