:root {
  --color-primary: #4CAF6E;
  --color-text: #4a4a4a;
  --color-text-light: #707070;
  --color-bg: #ffffff;
  --font-base: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
}
a, a:link, a:visited {
  color: var(--color-text-light);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  flex-wrap: wrap;
}
.site-header__logo img { max-height: 60px; display: block; }
.site-header__contact {
  font-style: normal;
  font-size: 0.85rem;
  text-align: center;
  color: #fff;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
}
.site-header__badge img { max-height: 50px; display: block; }
.page-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 90px);
}
.site-nav {
  background: #f4f8f5;
  border-right: 1px solid #dcdcdc;
  padding: 1rem 0;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.site-nav a:hover, .site-nav a:focus {
  background: var(--color-primary);
  color: #fff;
}
.site-nav a[aria-current="page"] {
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
  border-left: 4px solid var(--color-text);
}
.site-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 1.5rem 2rem;
  align-items: start;
}
.content__hero {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  border-radius: 6px;
}
.content__partners {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.content__partners img { max-width: 100%; height: auto; }

/* Bildergalerien: einheitliches Grid statt loser Flex-Reihe */
.content__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.content__gallery img {
  width: 100%;
  height: 140px;
  object-fit: scale-down;
  object-position: center;
  background: #fff;
  border-radius: 6px;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.content__gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
/* Galerien mit wenigen, größeren Bildern (z. B. 2-3) dürfen größer sein */
.content__gallery:has(> :nth-child(2):last-child),
.content__gallery:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.content__gallery:has(> :nth-child(2):last-child) img,
.content__gallery:has(> :nth-child(3):last-child) img {
  height: 220px;
}

.content__figure {
  margin: 1.5rem 0;
  text-align: center;
}
.content__figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.content__figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.content__table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.content__table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dcdcdc;
  vertical-align: middle;
}
/* Nur Zellen mit Bild bekommen eine feste, kompakte Breite - reine Textzellen nutzen den Rest der Breite */
.content__table td:has(img) {
  width: 1%;
  white-space: nowrap;
}
.content__table img {
  width: 120px;
  height: 90px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 6px;
  display: block;
}
.content__table tr:last-child td {
  border-bottom: none;
}
.content__list {
  padding-left: 1.25rem;
  margin: 1rem 0;
}
.content__list li {
  margin-bottom: 0.4rem;
}
.content__form {
  max-width: 640px;
  margin-top: 1.5rem;
}
.content__form fieldset {
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.content__form legend {
  padding: 0 0.5rem;
  font-weight: bold;
  color: var(--color-text-light);
}
.content__form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}
.content__form label:first-of-type {
  margin-top: 0;
}
.content__form input,
.content__form select,
.content__form textarea {
  width: 100%;
  padding: 0.5rem;
  font-family: var(--font-base);
  font-size: 0.95rem;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  background: #fff;
  color: var(--color-text);
}
.content__form textarea {
  resize: vertical;
}
.content__form button {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.content__form button:hover,
.content__form button:focus {
  background: #3d9a5c;
}
.content__form-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}
.content__sidebar { font-size: 0.9rem; }
.content__sidebar img { max-width: 100%; height: auto; }
.content__highlight { color: var(--color-text-light); }
.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  padding: 1rem;
  border-top: 1px solid #dcdcdc;
}
@media (max-width: 800px) {
  .page-body { grid-template-columns: 1fr; }
  .site-header { padding: 0.5rem 1rem; gap: 0.5rem; }
  .site-header__logo img { max-height: 44px; }
  .site-header__contact { font-size: 0.7rem; }
  .site-header__badge img { max-height: 36px; }
  .site-nav { border-right: none; border-bottom: 1px solid #dcdcdc; padding: 0.5rem 0; }
  .site-nav ul { display: flex; flex-wrap: wrap; }
  .site-nav a { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
  .site-main { grid-template-columns: 1fr; padding: 1rem; }
  .content__partners { flex-direction: column; gap: 1rem; }
  .content__table img { width: 90px; height: 70px; }
  .content__form { max-width: 100%; }
  .content__gallery,
  .content__gallery:has(> :nth-child(2):last-child),
  .content__gallery:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .content__gallery img,
  .content__gallery:has(> :nth-child(2):last-child) img,
  .content__gallery:has(> :nth-child(3):last-child) img {
    height: 100px;
  }
}
@media (max-width: 480px) {
  .site-header { padding: 0.4rem 0.75rem; }
  .site-header__logo img { max-height: 36px; }
  .site-header__contact { font-size: 0.65rem; }
  .site-header__badge img { max-height: 28px; }
  .site-nav a { padding: 0.3rem 0.5rem; font-size: 0.75rem; }
  .content__gallery,
  .content__gallery:has(> :nth-child(2):last-child),
  .content__gallery:has(> :nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }
  .content__gallery img,
  .content__gallery:has(> :nth-child(2):last-child) img,
  .content__gallery:has(> :nth-child(3):last-child) img {
    height: 160px;
  }
  .content__table,
  .content__table tbody,
  .content__table tr,
  .content__table td {
    display: block;
    width: 100%;
  }
  .content__table td:has(img) {
    width: 100%;
    white-space: normal;
  }
  .content__table img {
    width: 100%;
    max-width: 200px;
    height: 140px;
  }
  .content__table tr {
    margin-bottom: 1rem;
    border-bottom: 1px solid #dcdcdc;
  }
  .content__table td {
    border-bottom: none;
    padding: 0.4rem 0;
  }
}