/* ============================================
   auenwerk - Stylesheet
   Modern + Warm Design
   ============================================ */

:root {
  --color-primary: #5a7a4e;        /* Sage Green - Auen/Natur */
  --color-primary-dark: #3f5a37;
  --color-accent: #b08968;          /* Warmer Bronze - Holz */
  --color-accent-dark: #8a6849;
  --color-bg: #faf7f2;              /* Off-white warm */
  --color-bg-alt: #f0ebe0;
  --color-text: #2a2825;
  --color-text-soft: #6b6660;
  --color-border: #e3ddd0;
  --color-white: #ffffff;
  --color-success: #5a7a4e;
  --shadow-sm: 0 2px 8px rgba(42, 40, 37, 0.06);
  --shadow-md: 0 4px 20px rgba(42, 40, 37, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 40, 37, 0.12);
  --radius: 12px;
  --max-width: 1200px;
  --header-height: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--color-text-soft); }
p.lead { font-size: 1.15rem; color: var(--color-text); }

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-tight { padding: 50px 0; }

.section-alt {
  background: var(--color-bg-alt);
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  line-height: 0;
}

.logo svg, .logo img {
  height: 52px;
  width: auto;
  display: block;
}

.site-footer .logo {
  color: white;
  margin-bottom: 12px;
}

.site-footer .logo svg, .site-footer .logo img {
  height: 60px;
  filter: brightness(0) invert(1);
}

nav.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--color-primary);
}

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.nav-cta {
  background: var(--color-primary);
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

@media (max-width: 768px) {
  nav.main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    transition: transform 0.3s;
    box-shadow: var(--shadow-md);
  }
  nav.main-nav.open { transform: translateY(0); }
  .mobile-menu-btn { display: block; }
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(90, 122, 78, 0.85) 0%, rgba(63, 90, 55, 0.85) 100%),
    url('../img/hero-bg.jpg') center/cover;
  color: white;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0;
}

.hero h1 { color: white; margin-bottom: 1.5rem; }
.hero p.lead { color: rgba(255,255,255,0.95); font-size: 1.3rem; max-width: 600px; }

.hero-content { max-width: 720px; }

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-accent);
  color: white !important;
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: white !important;
  border: 2px solid white;
}
.btn-secondary:hover { background: white; color: var(--color-primary) !important; }

.btn-outline {
  background: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: white !important; }

.btn-block { width: 100%; text-align: center; }

/* Cards / Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 48px;
  align-items: center;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.card-body { padding: 24px; }

.card-tag {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.card-tag.tag-holz { background: #8a6849; }
.card-tag.tag-metall { background: #5a6470; }
.card-tag.tag-glas { background: #5a7a8a; }

.card-price {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price .price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
}

.price-note { font-size: 0.85rem; color: var(--color-text-soft); }

/* Section heading */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-heading p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Features list */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: block;
}

/* Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(90, 122, 78, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 24px;
}

.site-footer h4 { color: white; margin-bottom: 20px; font-size: 1.05rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: white; }
.site-footer p { color: rgba(255,255,255,0.7); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  transition: background 0.2s;
}

.social-links a:hover { background: var(--color-primary); }

/* Instagram preview */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.instagram-grid a {
  display: block;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.instagram-grid a:hover img { transform: scale(1.05); }

/* Filter buttons */
.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover { border-color: var(--color-primary); }
.filter-btn.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 40, 37, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--color-bg-alt); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-primary);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-8 { margin-top: 4rem; }
.divider { height: 1px; background: var(--color-border); margin: 40px 0; }

/* Print */
@media print {
  .site-header, .site-footer, .mobile-menu-btn, .hero-cta { display: none; }
}

/* Confirmation-Box nach Form-Submit (V13) */
.form-success-box {
  padding: 40px 32px;
  background: #fff;
  border-radius: var(--radius, 10px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  border-top: 4px solid #5a7a4e;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
}
.form-success-box h2 {
  color: #5a7a4e;
  font-family: 'Playfair Display', serif;
  margin: 0 0 12px 0;
}
.form-success-box p {
  color: #5a5142;
  line-height: 1.55;
  margin: 0 0 8px 0;
}
