/* ========================================
   Biomeiler.at — Stylesheet
   ======================================== */

:root {
  --green: #2d6a4f;
  --green-light: #40916c;
  --green-dark: #1b4332;
  --earth: #8b6f47;
  --earth-light: #a68a5b;
  --warm: #d4a373;
  --warm-light: #e6c9a8;
  --bg: #fafaf7;
  --bg-alt: #f0ede6;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --text-light: #999;
  --border: #e0ddd5;
  --shadow: rgba(0,0,0,0.08);
  --shadow-hover: rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1140px;
  --nav-h: 72px;
  --transition: .3s ease;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Montserrat", var(--font);
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --bg-alt: #242420;
  --bg-card: #2a2a26;
  --text: #e8e4dc;
  --text-muted: #a09a8e;
  --text-light: #6e6960;
  --border: #3a3a34;
  --shadow: rgba(0,0,0,0.3);
  --shadow-hover: rgba(0,0,0,0.45);
  --green: #52b788;
  --green-light: #74c69d;
  --green-dark: #40916c;
  --earth: #c9a96e;
  --warm: #ddb892;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-light); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--green);
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  position: relative; padding: 4px 0; transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-links a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--green); transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language Switcher */
.lang-switch { display: flex; gap: 2px; margin-right: 4px; }
.lang-btn {
  background: none; border: 1px solid var(--border);
  padding: 2px 6px; font-size: 0.75rem;
  cursor: pointer; border-radius: 4px;
  color: var(--text-muted); font-weight: 500;
  font-family: var(--font); transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--green); color: var(--green); }
.lang-btn.active {
  background: var(--green); color: #fff;
  border-color: var(--green);
}

/* Theme Toggle */
.theme-toggle {
  background: none; border: 2px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all var(--transition); color: var(--text-muted);
}
.theme-toggle:hover { border-color: var(--green); color: var(--green); }
.theme-toggle svg { width: 20px; height: 20px; }

/* Burger */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 1001;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  position: absolute; left: 8px; transition: all var(--transition);
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 26px; }
.burger.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero {
  min-height: 85vh; display: flex; align-items: center; position: relative;
  overflow: hidden; margin-top: var(--nav-h);
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 40%, #40916c 70%, #8b6f47 100%);
}
.hero-content {
  position: relative; z-index: 1; max-width: 680px; color: #fff; padding: 60px 0;
}
.hero h1 { color: #fff; margin-bottom: 20px; font-size: clamp(2.4rem, 6vw, 3.6rem); }
.hero p { font-size: 1.2rem; line-height: 1.7; opacity: 0.9; margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px); padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.2);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 1rem; border: none; cursor: pointer; transition: all var(--transition);
  font-family: var(--font);
}
.btn-primary { background: var(--warm); color: #1b4332; }
.btn-primary:hover { background: var(--warm-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,163,115,0.3); color: #1b4332; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-light); color: #fff; transform: translateY(-2px); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; transition: all var(--transition); box-shadow: 0 2px 12px var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px var(--shadow-hover); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: #fff; font-size: 1.5rem;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); line-height: 1.7; }

/* Project Cards */
.project-card { padding: 0; overflow: hidden; }
.project-card .project-img {
  height: 220px;
  background: linear-gradient(135deg, var(--green-dark), var(--green), var(--earth));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 3rem; position: relative;
}
.project-card .project-body { padding: 28px; }
.project-card .project-meta {
  display: flex; gap: 16px; margin-top: 16px; font-size: 0.85rem; color: var(--text-muted);
}
.project-card .project-meta span { display: flex; align-items: center; gap: 6px; }

/* Section Headers */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header p { color: var(--text-muted); margin-top: 12px; font-size: 1.1rem; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--green); margin-bottom: 12px;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 48px 0; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700; color: var(--green); }
.stat-label { color: var(--text-muted); margin-top: 4px; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px;
  overflow: hidden; background: var(--bg-card);
}
.faq-q {
  width: 100%; padding: 20px 24px; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 1.05rem; font-weight: 600; color: var(--text); text-align: left;
  font-family: var(--font); transition: color var(--transition);
}
.faq-q:hover { color: var(--green); }
.faq-q .faq-icon { width: 24px; height: 24px; flex-shrink: 0; transition: transform var(--transition); color: var(--text-muted); }
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); color: var(--green); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 24px 20px; color: var(--text-muted); line-height: 1.8; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; background: var(--bg-card); color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { min-height: 160px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.success { display: block; background: #d4edda; color: #155724; }
.form-status.error { display: block; background: #f8d7da; color: #721c24; }
[data-theme="dark"] .form-status.success { background: #1a3a2a; color: #74c69d; }
[data-theme="dark"] .form-status.error { background: #3a1a1a; color: #e88; }

/* Contact Info */
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: 0 2px 12px var(--shadow);
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex; align-items: center; justify-content: center; color: #fff;
}

/* Content Pages */
.page-hero {
  margin-top: var(--nav-h); padding: 64px 0;
  background: linear-gradient(135deg, #1b4332, #2d6a4f); color: #fff;
}
.page-hero h1 { color: #fff; }
.page-hero p { opacity: 0.85; margin-top: 8px; }
.content { padding: 64px 0; }
.content h2 { margin: 40px 0 16px; }
.content h3 { margin: 28px 0 12px; }
.content p { margin-bottom: 16px; color: var(--text-muted); }
.content ul, .content ol { margin: 16px 0; padding-left: 24px; }
.content li { margin-bottom: 8px; color: var(--text-muted); list-style: disc; }
.content ol li { list-style: decimal; }
.content strong { color: var(--text); }

/* Info Box */
.info-box {
  background: var(--bg-alt); border-left: 4px solid var(--green);
  padding: 24px 28px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 28px 0;
}
.info-box p { color: var(--text); }

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.feature-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.feature-check { color: var(--green); font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* Process Steps */
.process-steps { counter-reset: step; margin: 32px 0; }
.process-step {
  display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.process-step::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-family: var(--font-heading);
}

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; font-size: 0.9rem; }
.footer h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer-links a { display: block; color: var(--text-muted); padding: 4px 0; font-size: 0.9rem; }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-muted);
}

/* Cookie Consent */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--bg-card); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px var(--shadow); padding: 20px 24px; display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.cookie-inner p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.cookie-inner a { color: var(--green); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.9rem; border: none; cursor: pointer; font-family: var(--font);
  transition: all var(--transition);
}
.cookie-accept { background: var(--green); color: #fff; }
.cookie-accept:hover { background: var(--green-light); }
.cookie-decline { background: var(--border); color: var(--text); }
.cookie-decline:hover { background: var(--text-muted); color: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0; background: var(--bg);
    justify-content: center; align-items: center; gap: 28px; z-index: 1000;
  }
  .nav-links.open a { font-size: 1.3rem; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 40px 0; }
  .section { padding: 48px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
