/* ===== ERM GmbH - Modernes Redesign ===== */
/* Farben inspiriert vom Original-Theme: Erdtöne, Grün, Professionell */

:root {
  --primary: #2c5f2d;        /* Waldgrün */
  --primary-light: #4a8b4c;
  --primary-dark: #1a3d1b;
  --accent: #a67c37;         /* Goldbraun / Erdton */
  --accent-light: #c9a054;
  --text-dark: #2d2d2d;
  --text-medium: #555;
  --text-light: #777;
  --bg-light: #f8f7f4;
  --bg-white: #ffffff;
  --bg-dark: #1a3d1b;
  --border: #e0ddd5;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-medium);
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.3rem;
}

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

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

.top-bar a {
  color: rgba(255,255,255,0.8);
}

.top-bar a:hover {
  color: #fff;
}

/* ===== Header ===== */
.site-header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link img {
  height: 60px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .company-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.logo-text .company-slogan {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===== Navigation ===== */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.nav-list > li {
  position: relative;
  margin: 0;
}

.nav-list > li > a {
  display: block;
  padding: 0.7rem 1.1rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--primary);
  background: rgba(44, 95, 45, 0.06);
}

/* Dropdown */
.nav-list .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 220px;
  box-shadow: 0 8px 24px var(--shadow-lg);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  list-style: none;
  z-index: 100;
  border-top: 3px solid var(--primary);
}

.nav-list > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.55rem 1.2rem;
  color: var(--text-medium);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.dropdown li a:hover {
  color: var(--primary);
  background: var(--bg-light);
  padding-left: 1.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

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

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 61, 27, 0.85) 0%, rgba(44, 95, 45, 0.7) 50%, rgba(166, 124, 55, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding: 3rem 0;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-content .btn {
  margin-top: 1.5rem;
}

/* Page Hero (smaller) */
.page-hero {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.page-hero .hero-content h1 {
  font-size: 2rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(166, 124, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* ===== Content Sections ===== */
.section {
  padding: 4rem 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

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

.section-title p {
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--text-light);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.5rem;
}

.card-body {
  padding: 1.8rem;
}

.card-body h3 {
  margin-bottom: 0.8rem;
}

.card-body h3 a {
  color: var(--text-dark);
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all var(--transition);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-lg);
}

.feature-item .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

/* ===== Welcome / Intro ===== */
.welcome-section {
  padding: 4rem 0;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.welcome-text h2 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.welcome-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.welcome-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-lg);
}

.welcome-image img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.welcome-image:hover img {
  transform: scale(1.03);
}

.image-caption {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

/* ===== Page Content ===== */
.page-content {
  padding: 3rem 0 4rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.content-main {
  min-width: 0;
}

.content-main h2 {
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.content-main img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px var(--shadow);
}

.content-main ul {
  margin-bottom: 1.5rem;
}

.content-main ul li {
  padding: 0.3rem 0;
  color: var(--text-medium);
}

/* ===== Sidebar ===== */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.sidebar-widget h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav li a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--text-medium);
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all var(--transition);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--primary);
  background: rgba(44, 95, 45, 0.06);
  padding-left: 1.2rem;
}

/* ===== Publication List ===== */
.pub-list {
  list-style: none;
  padding: 0;
}

.pub-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pub-list li:last-child {
  border-bottom: none;
}

.pub-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.pub-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.pub-info h4 a {
  color: var(--text-dark);
}

.pub-info h4 a:hover {
  color: var(--primary);
}

.pub-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-nav li a {
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-nav li a:hover {
  color: var(--accent-light);
  padding-left: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--border);
}

/* ===== Contact Form ===== */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
}

.contact-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
  color: var(--text-medium);
}

/* ===== Image Gallery ===== */
.figure-container {
  margin: 2rem 0;
  text-align: center;
}

.figure-container img {
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
}

.figure-container figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.8rem;
}

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    padding: 0.6rem 1rem;
  }

  .logo-link img {
    height: 45px;
  }

  .logo-text .company-name {
    font-size: 0.95rem;
  }

  .logo-text .company-slogan {
    font-size: 0.7rem;
  }

  /* Mobile Navigation */
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -4px 0 20px var(--shadow-lg);
    transition: right var(--transition);
    z-index: 1000;
    padding: 4rem 1.5rem 2rem;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list > li > a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-list .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    padding: 0 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-list > li.dropdown-open > .dropdown {
    max-height: 300px;
  }

  .dropdown li a {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .mobile-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 300px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

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

  /* Welcome */
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-info {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .top-bar {
    display: none;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}

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

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== Print ===== */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .top-bar {
    display: none;
  }

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

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

