:root {
  --primary: #166534;
  --primary-dark: #14532d;
  --secondary: #059669;
  --accent: #dc2626;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(15, 23, 42, 0.08);
  --shadow-lg: rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  padding: 0;
}

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-white);
  box-shadow: 0 4px 24px var(--shadow-lg);
}

/* HEADER */
header {
  background: linear-gradient(135deg, #14532d 0%, #166534 100%);
  color: white;
  padding: 3rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.header-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.header-text {
  flex: 1;
  min-width: 280px;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-bottom: 1rem;
  font-weight: 500;
}

.subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.6;
}

.hero-image {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  max-height: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* NAVIGATION */
.main-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.main-nav a {
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  display: block;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--bg-light);
  border-bottom-color: var(--primary);
}

/* MAIN */
main {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

section {
  scroll-margin-top: 80px;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

section p:last-child {
  margin-bottom: 0;
}

.note {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

.note a {
  color: var(--primary);
  text-decoration: none;
  font-style: italic;
}

.note a:hover {
  text-decoration: underline;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 1.5rem;
  max-width: 680px;
  line-height: 1.6;
}

.subsection-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

/* NATURPRODUKTE */
.natur-showcase {
  margin: 1.25rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.natur-showcase img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* SERVICE BLOCKS */
.service-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.robotics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.robotics-grid .service-block--plain-wide {
  grid-column: 1 / -1;
  max-width: 520px;
}

.robotics-grid .service-block--accent {
  grid-template-columns: 1fr 110px;
}

.service-block--accent .block-body {
  min-width: 12rem;
}

.service-block {
  background: var(--bg-light);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.service-block--accent {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 1rem;
  align-items: center;
  overflow: hidden;
}

.block-body {
  min-width: 0;
}

.block-accent {
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.72;
  align-self: stretch;
  display: flex;
}

.block-accent img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.compact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compact-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.compact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.cards-grid--compact {
  margin-top: 0;
}

/* PILLS */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--primary);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

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

.card--accent {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
}

.card-body {
  min-width: 0;
}

.card-accent {
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.72;
  align-self: stretch;
  display: flex;
}

.card-accent img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* FEATURE LIST */
.feature-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.feature-list li {
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* PHOTO GRID */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.photo-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-light);
}

.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* CONTACT */
.contact-items {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-item {
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

.contact-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

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

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

/* IMPRESSUM */
.impressum-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.impressum-col p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.impressum-col p:last-child {
  margin-bottom: 0;
}

.impressum-col a {
  color: var(--primary);
  text-decoration: none;
}

.impressum-col a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    height: 60px;
  }

  .main-nav {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav a {
    padding: 1rem 1rem;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  main {
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .cards-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .service-columns,
  .robotics-grid {
    grid-template-columns: 1fr;
  }

  .robotics-grid .service-block--plain-wide {
    max-width: none;
  }

  .service-block--accent {
    grid-template-columns: 1fr;
  }

  .card--accent {
    grid-template-columns: 1fr;
  }

  .block-accent,
  .card-accent {
    max-height: 72px;
    opacity: 0.6;
  }

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

  .hero-image {
    max-height: 220px;
  }

  .natur-showcase img {
    max-height: 180px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1.5rem 1rem 1rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }
}
