/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-primary: #4CAF50;
  --green-dark: #388E3C;
  --green-light: #66BB6A;
  --green-lighter: #A5D6A7;
  --green-bg: #E8F5E9;
  --text-dark: #1a1a1a;
  --text-muted: #555;
  --text-light: #fff;
  --bg-white: #fff;
  --bg-light: #f5f5f5;
  --bg-footer: #2d2d2d;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-dark);
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Section ===== */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1.1;
}

.navbar-logo .logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-logo .logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: -0.01em;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-primary);
  transition: width var(--transition);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a:hover {
  color: var(--green-primary);
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: url('img/hero.png') center/cover no-repeat;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

/* Decorative wheat SVG overlay */
.hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 75% 60%, 50% 20%, 25% 70%, 0 30%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
  color: var(--green-lighter);
}

.hero-text {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-light);
  border-color: rgba(255,255,255,0.8);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Services (Dienstleistungen) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid #e8e8e8;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-light);
}

.service-card--photo {
  background-size: cover;
  background-position: center;
  min-height: 280px;
  padding: 0;
  border: none;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-align: left;
  cursor: pointer;
}

.service-card--photo .service-card__overlay {
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 100%);
  padding: 2rem;
  width: 100%;
  color: white;
}

.service-card--photo .service-card__overlay h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.service-card--photo .service-card__overlay p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-card--photo:hover {
  border-color: transparent;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--green-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Gebrauchtmaschinen ===== */
.machines-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.machines-intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.machines-intro .btn {
  margin-top: 0.5rem;
}

.machines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.machine-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid #e8e8e8;
}

.machine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.machine-img {
  width: 100%;
  height: 200px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
}

.machine-img.img-1 {
  background: linear-gradient(135deg, #a5d6a7, #66bb6a);
  color: #1b5e20;
}

.machine-img.img-2 {
  background: linear-gradient(135deg, #c8e6c9, #81c784);
  color: #2e7d32;
}

.machine-img.img-3 {
  background: linear-gradient(135deg, #e8f5e9, #a5d6a7);
  color: #388e3c;
}

.machine-card-body {
  padding: 1.25rem;
}

.machine-card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.machine-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== About (Ueber Uns) ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-services-list {
  list-style: none;
  margin-top: 1.5rem;
}

.about-services-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  height: 180px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.85rem;
  font-weight: 500;
}

.about-gallery-item--wide {
  grid-column: span 2;
  height: 250px;
}

/* ===== Contact ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--green-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-detail-text a:hover {
  color: var(--green-primary);
}

.contact-hours {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--green-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--green-primary);
}

.contact-hours strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-hours span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--green-primary);
  margin-bottom: 2rem;
  height: 280px;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact form */
.contact-form {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e8e8e8;
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--green-primary);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-footer);
  color: #ccc;
  padding: 2rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #ccc;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--green-light);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .machines-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links li {
    border-bottom: 1px solid #eee;
  }

  .navbar-links li:last-child {
    border-bottom: none;
  }

  .navbar-links a {
    display: block;
    padding: 0.75rem 0;
  }

  .navbar-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .machines-grid {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-gallery-item {
    height: 160px;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Scroll animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
