:root {
  --color-bg: #f7f6f1;
  --color-surface: #ffffff;
  --color-text: #26312a;
  --color-muted: #5b6a5f;
  --color-primary: #3f6b3c;
  --color-primary-dark: #2c4c2a;
  --color-accent: #c97f3a;
  --color-border: #dfe3d8;
  --radius: 14px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: var(--color-primary-dark);
}

header.site-header {
  position: relative;
  background: linear-gradient(160deg, #24391f 0%, #3f6b3c 55%, #517f49 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

header.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27240%27%20height%3D%27240%27%3E%0A%3Cpath%20d%3D%27M10%20230%20C%2040%20190%2C%2030%20150%2C%2060%20120%20C%2090%2090%2C%2080%2050%2C%20110%2010%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%272.5%27%20fill%3D%27none%27%20opacity%3D%270.55%27/%3E%0A%3Cpath%20d%3D%27M10%20230%20C%2040%20190%2C%2030%20150%2C%2060%20120%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.5%27%20fill%3D%27none%27%20opacity%3D%270.4%27/%3E%0A%3Cpath%20d%3D%27M35%20205%20C%2055%20195%2C%2060%20175%2C%2080%20165%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.2%27%20fill%3D%27none%27%20opacity%3D%270.4%27/%3E%0A%3Cpath%20d%3D%27M55%20155%20C%2075%20148%2C%2080%20130%2C%20100%20122%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.2%27%20fill%3D%27none%27%20opacity%3D%270.4%27/%3E%0A%3Cpath%20d%3D%27M80%2095%20C%20100%2090%2C%20105%2072%2C%20122%2062%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.2%27%20fill%3D%27none%27%20opacity%3D%270.4%27/%3E%0A%3Cpath%20d%3D%27M150%20230%20C%20180%20195%2C%20165%20160%2C%20190%20130%20C%20210%20105%2C%20200%2065%2C%20225%2030%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%272%27%20fill%3D%27none%27%20opacity%3D%270.3%27/%3E%0A%3Ccircle%20cx%3D%27185%27%20cy%3D%2755%27%20r%3D%272.5%27%20fill%3D%27%23ffffff%27%20opacity%3D%270.35%27/%3E%0A%3Ccircle%20cx%3D%2745%27%20cy%3D%2795%27%20r%3D%272%27%20fill%3D%27%23ffffff%27%20opacity%3D%270.3%27/%3E%0A%3Ccircle%20cx%3D%27205%27%20cy%3D%27185%27%20r%3D%272%27%20fill%3D%27%23ffffff%27%20opacity%3D%270.3%27/%3E%0A%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.16;
  pointer-events: none;
}

header.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #f4c95d 0%, #f4c95d 33%, #49b6ac 33%, #49b6ac 66%, #2c4c2a 66%);
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1rem;
}

.site-logo {
  display: inline-block;
  margin: 0 0 0.75rem;
}

.site-logo img {
  display: block;
  height: 210px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  display: inline-block;
  padding: 0.4rem 0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

body.home {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 8% 15%, rgba(244, 201, 93, 0.28), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(73, 182, 172, 0.24), transparent 46%),
    radial-gradient(circle at 85% 85%, rgba(63, 107, 60, 0.2), transparent 48%),
    radial-gradient(circle at 10% 88%, rgba(224, 112, 58, 0.16), transparent 42%);
  background-attachment: fixed;
}

.hero {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.hero h2 {
  margin-top: 0;
  padding-bottom: 0.7rem;
}

.hero h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.65rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #f4c95d, #49b6ac, #3f6b3c);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}

.card-hobby .card-image {
  object-position: center bottom;
}

.card-body {
  padding: 1.5rem;
  border-top: 3px solid var(--card-accent, var(--color-accent));
}

.card-body h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--card-accent, var(--color-accent));
}

.card-hobby {
  --card-accent: #e0703a;
}

.card-naturgarten {
  --card-accent: #2f8f86;
}

.card-hobby:hover {
  box-shadow: 0 10px 24px rgba(224, 112, 58, 0.25);
}

.card-naturgarten:hover {
  box-shadow: 0 10px 24px rgba(47, 143, 134, 0.25);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 61, 45, 0.12);
}

.card h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
}

section.content-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}

section.content-block h2 {
  margin-top: 0;
  color: var(--color-primary-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eef4ea;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-decoration: none;
}

.badge-icon {
  flex-shrink: 0;
}

a.badge:hover,
a.badge:focus-visible {
  background: #e3ecdd;
  border-color: var(--color-primary);
}

.species-label {
  margin: 1rem 0 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.species-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0 0 0.5rem;
  padding: 0;
}

.species-list li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  background: repeating-linear-gradient(
    45deg,
    #f0efe9,
    #f0efe9 10px,
    #e9e8e0 10px,
    #e9e8e0 20px
  );
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 26, 20, 0.92);
  padding: 2rem 1.25rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-caption {
  color: #f2f4ef;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-text);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.button-primary {
  align-self: flex-start;
  font: inherit;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

footer.site-footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 2rem 1.25rem;
}

footer.site-footer .social-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
}

footer.site-footer .social-links .badge {
  margin-bottom: 0;
}

footer.site-footer .copyright-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

footer.site-footer .copyright-note a {
  color: inherit;
  text-decoration: underline;
}
