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

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #79b814;
  color: #1f3305;
  line-height: 1.5;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #84c218;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

/* Linke Seitenleiste */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #86c41a 0%, #78b512 100%);
  border-right: 2px solid #b5e05c;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-title-img {
  width: 100%;
  max-width: 245px;
  height: auto;
  margin-bottom: 14px;
  cursor: pointer;
}

.brand-clover-img {
  width: 185px;
  height: auto;
  margin: 6px 0 14px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.brand-clover-img:hover {
  transform: scale(1.04);
}

.brand-subtitle {
  color: #ffffff;
  font-style: italic;
  font-weight: bold;
  font-size: 1.05rem;
  line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
}

.sidebar-divider {
  width: 100%;
  border: none;
  border-top: 2px solid #b5e05c;
  margin: 10px 0 18px;
}

.nav-menu {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: #0e4a6b;
  font-weight: bold;
  font-size: 0.96rem;
  letter-spacing: 0.5px;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.nav-btn:hover,
.nav-btn.active {
  background-color: rgba(255, 255, 255, 0.35);
  border-color: #ffffff;
  color: #082d42;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.footer-link:hover {
  color: #0e4a6b;
}

/* Hauptbereich rechts */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #84c218;
}

/* Kopfbereich oben */
.top-header {
  background-color: #ffffff;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid #5e960a;
}

.partner-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.partner-logo-ww {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.partner-logo-wws {
  height: 76px;
  width: auto;
  object-fit: contain;
}

.header-badge {
  background-color: #f2f9e6;
  border: 1px solid #84c218;
  color: #3a6303;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: bold;
}

/* Inhaltsbereich */
.content-container {
  padding: 26px 28px;
  flex: 1;
}

.section-view {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.section-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-banner {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 24px;
}

.hero-image-box {
  position: relative;
  background: linear-gradient(135deg, #4b6334 0%, #6d8549 50%, #3d5229 100%);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 24px;
  border-bottom: 6px solid #599409;
}

.hero-image-box img.custom-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.hero-overlay-controls {
  padding: 12px 18px;
  background-color: #f6fbec;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.upload-btn {
  background-color: #599409;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.85rem;
}

.upload-btn:hover {
  background-color: #467606;
}

.card-box {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  margin-bottom: 22px;
}

.card-box h1 {
  color: #3d6b04;
  font-size: 1.65rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #d4ed9e;
  padding-bottom: 8px;
}

.card-box h2 {
  color: #3d6b04;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card-box p {
  margin-bottom: 12px;
  color: #2c3e10;
}

/* Kleeblatt-Spuren Grid */
.trails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.trail-card {
  background-color: #f9fdf2;
  border: 2px solid #b5e05c;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.trail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.trail-clover-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.trail-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #294a02;
}

.trail-meta {
  font-size: 0.85rem;
  color: #557a1d;
  font-weight: bold;
}

.gpx-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0e4a6b;
  color: #ffffff;
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gpx-btn:hover {
  background-color: #09334a;
}

/* Info-Listen */
.feature-list {
  margin: 12px 0 16px 20px;
  color: #2c3e10;
}

.feature-list li {
  margin-bottom: 8px;
}

/* Kontaktformular */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-weight: bold;
  color: #294a02;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #96c93d;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

.submit-btn {
  background-color: #599409;
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
}

.submit-btn:hover {
  background-color: #447206;
}

.form-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background-color: #e6f7cc;
  border: 1px solid #79b814;
  color: #244202;
  display: none;
}

/* Responsive Anpassung */
@media (max-width: 820px) {
  .page-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #b5e05c;
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-btn {
    width: auto;
    font-size: 0.85rem;
    padding: 7px 10px;
  }

  .sidebar-footer {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
  }
}
