:root {
  --green-main: #2f8a24;
  --green-dark: #246e1c;
  --green-soft: #f3faf0;
  --cream: #fbfdf8;

  --bg: #f7fbf5;
  --surface: #ffffff;
  --line: #d7e6d2;
  --text: #22301f;
  --muted: #667561;
  --danger: #a64d47;
  --ok: #eef8ec;
  --ok-line: #cde2c8;

  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.08);
  --shadow-green: 0 14px 34px rgba(47, 138, 36, 0.1);

  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--cream) 100%);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.mb1 {
  margin-bottom: 1rem;
}

.small {
  font-size: 0.96rem;
  color: var(--muted);
}

/* Header */
.site-header {
  width: 100%;
  background: #fbfdf8;
  border-bottom: 1px solid var(--line);
}

.site-header .top {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

.brand {
  display: block;
  width: 100%;
  background: var(--green-main);
  padding: 1.05rem 0 1.05rem 2rem;
}

.brand h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
}

.brand-sub {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
}

.nav > a {
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  color: var(--text);
}

.nav > a:hover {
  background: var(--green-main);
  border-color: var(--green-main);
  color: #fff;
}

.header-login {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-login input {
  min-width: 190px;
  padding: 0.78rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.header-login input::placeholder {
  color: var(--muted);
}

.header-login button {
  padding: 0.78rem 1rem;
  border: 1px solid var(--green-main);
  border-radius: 999px;
  background: var(--green-main);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.header-login button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* Hero */
.hero {
  padding: 2.8rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.2rem;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--green-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.hero-copy p {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 58ch;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  background: var(--green-soft);
}

.hero-image img {
  width: 100%;
  height: auto;
  opacity: 0.72;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Panels */
.panel,
.form-panel,
.post,
.feature {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel.pad,
.form-panel,
.feature,
.post {
  padding: 1.25rem;
}

/* Banner */
.banner-ok {
  padding: 1rem 1.15rem;
  background: var(--ok);
  border: 1px solid var(--ok-line);
  border-radius: var(--radius-md);
  color: var(--green-dark);
}

/* Gast CTA */
.top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.guest-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: var(--green-main);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.guest-jump:hover {
  background: var(--green-dark);
}

.guest-jump-note {
  color: var(--muted);
}

/* Suche */
.search-panel {
  margin-top: 1rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.search-form input,
.search-form select,
.search-form button,
.search-form .reset {
  width: 100%;
  min-height: 48px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.search-form input,
.search-form select {
  background: #fff;
  color: var(--text);
  outline: none;
}

.search-form button {
  background: var(--green-main);
  border-color: var(--green-main);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.search-form button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.search-form .reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* Labels */
.section-label {
  margin: 2rem 0 1rem;
}

.section-label span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

/* Formulare */
.form-panel h3,
.guest-panel h3,
.feature h3 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.hint {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.form-submit {
  justify-self: start;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--green-main);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.form-submit:hover {
  background: var(--green-dark);
}

/* Fokus */
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.search-form input:focus,
.search-form select:focus,
.header-login input:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(47, 138, 36, 0.12);
}

/* Highlight */
.feature {
  position: relative;
  background: linear-gradient(180deg, #f3faf0 0%, #ffffff 100%);
  border: 2px solid var(--green-main);
  border-radius: 22px;
  box-shadow: var(--shadow-green);
  padding: 1.35rem;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--green-main);
  border-radius: 22px 22px 0 0;
}

.feature-meta,
.post-meta,
.post-top,
.actions,
.entry-link-wrap,
.pager {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.feature-meta,
.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature h3 {
  margin-top: 0.45rem;
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
}

.feature .txt,
.post-body {
  margin-top: 1rem;
}

.author {
  margin-top: 1rem;
  color: var(--muted);
}

.tag-hl,
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-hl {
  background: var(--green-main);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 138, 36, 0.18);
}

.cat-badge {
  background: var(--green-soft);
  color: var(--green-dark);
}

/* Bilder */
.feature-imgs,
.post-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 110px));
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: start;
}

.feature-imgs img,
.post-imgs img {
  width: 110px;
  height: 110px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--green-soft);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-imgs img:hover,
.post-imgs img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
  border-color: var(--green-main);
}

/* Posts */
.posts {
  display: grid;
  gap: 1rem;
}

.post {
  padding: 1.2rem;
}

.post-top {
  justify-content: space-between;
  align-items: flex-start;
}

.post h4 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.dot {
  opacity: 0.55;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #dcebd7;
}

.entry-link:hover {
  background: #e8f5e4;
}

/* Admin */
.actions {
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}

.pill-grn {
  background: var(--green-main);
}

.pill-grn:hover {
  background: var(--green-dark);
}

.pill-red {
  background: var(--danger);
}

/* Pagination */
.pager {
  justify-content: center;
  margin: 1.5rem 0 0.25rem;
}

.pager a,
.pager span {
  min-width: 42px;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pager a:hover {
  background: var(--green-soft);
}

.pager .cur {
  background: var(--green-main);
  border-color: var(--green-main);
  color: #fff;
}

/* Footer */
.foot {
  margin-top: 2.5rem;
  padding: 1.6rem 1rem 2.4rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 28, 17, 0.84);
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner,
  .row2 {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .site-header .top,
  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav,
  .header-login {
    width: 100%;
    justify-content: stretch;
  }

  .nav > a,
  .header-login input,
  .header-login button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 20px));
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .brand h1 {
    font-size: 1.7rem;
  }

  .panel.pad,
  .form-panel,
  .feature,
  .post {
    padding: 1rem;
  }

  .feature-imgs,
  .post-imgs {
    grid-template-columns: repeat(auto-fill, minmax(88px, 88px));
  }

  .feature-imgs img,
  .post-imgs img {
    width: 88px;
    height: 88px;
  }

  #lightbox {
    padding: 1rem;
  }
}