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

:root {
  --primary-yellow: #FFD700; /* Sonnengelb */
  --secondary-yellow: rgb(252, 208, 74);
  --primary-green: #2d5016;
  --secondary-green: #4a7c3f;
  --light-green: #8bc34a;
  --accent-green: #66bb6a;
  --light-bg: #f5f7f2;
  --dark-text: #1a1a1a;
  --gray-text: #555;
  --border-gray: #ddd;
  --footer-gray: #2C3E50; /* Anthrazit */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-text);
  background-color: #fff;
}

/* Banner */
.banner {
  background-color: var(--primary-green);
  color: var(--primary-yellow);
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.banner p {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .banner {
    font-size: 0.75rem;
  }
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
  color: var(--primary-green);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: padding 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  flex: 1;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.logo.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.logo p {
  color: var(--secondary-green);
  font-size: 1.2rem;
  opacity: 0.95;
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

nav a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  opacity: 0.8;
  border-bottom-color: var(--primary-green);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/header-grab.jpg');
  background-size: cover;
  background-position: center 20%;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  line-height: 1.8;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

section {
  margin-bottom: 4rem;
  scroll-margin-top: 160px;
}

.section-title {
  color: var(--primary-green);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--light-green);
}

/* About Section */
.about {
  background: var(--light-bg);
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  margin: 1rem 0;
  color: var(--gray-text);
}

.about .emphasis {
  color: var(--primary-green);
  font-weight: 600;
  font-size: 1.15rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--light-green);
  box-shadow: 0 8px 20px rgba(74, 124, 63, 0.15);
  transform: translateY(-5px);
}

.service-card::before {
  display: none;
}

.service-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--accent-green);
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: white;
  opacity: 0.6;
}

.service-card h3 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item a {
  text-decoration: none;
}

/* Additional styles */
.extended-line-height {
    line-height: 1.8;
}

.external-link {
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: 500;
}

.external-link:hover {
    text-decoration: underline;
    color: var(--primary-green);
}

/* Footer */
footer {
  background: var(--footer-gray);
  color: white;
  margin-top: 0rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-yellow);
}

.footer-section p {
  line-height: 1.8;
  opacity: 0.9;
  font-size: 0.95rem;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.contact-info a {
  color: var(--primary-yellow);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--primary-yellow);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  section {
    scroll-margin-top: 90px;
  }

  header {
    padding: 2rem 0;
  }

  header.scrolled {
    padding: 0.75rem 0;
  }

  header.scrolled .logo {
    display: none;
  }

  .header-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  header.scrolled .header-content {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }

  nav ul {
    justify-content: space-between;
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  main {
    padding: 2rem 1rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
