/* ===== Grundfarben ===== */

:root {
  --leben-bg-soft: #f4f8ef;
  --leben-bg-soft-strong: #e8f2dc;
  --leben-green: #2f6b3a;
  --leben-green-dark: #276238;
}

html,
body,
#page-wrapper,
#body-wrapper,
#start {
  background: var(--leben-bg-soft);
}

#header {
  background: var(--leben-bg-soft) !important;
}

#footer.section.bg-gray,
.section.bg-gray {
  background: var(--leben-bg-soft-strong) !important;
}

/* ===== Kartenbilder ===== */

.card-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

/* ===== Logo ===== */

.navbar-brand img {
  height: 75px !important;
  width: auto !important;
}

/* ===== Logo + Titel ===== */

.logo-with-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

/* Text neben Logo */

.site-title-text {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--leben-green-dark);
  flex: 0 0 auto;
}

#header .navbar-section.logo {
  flex: 0 0 auto;
}

#header a,
.dropmenu ul li a,
.dropmenu ul li a:visited {
  color: var(--leben-green-dark) !important;
  font-weight: 600 !important;
}

.dropmenu ul li a:not(.active):hover,
.dropmenu ul li a:not(.active):focus-visible,
#header a:not(.active):hover {
  color: var(--leben-green) !important;
  font-weight: 800 !important;
}

.dropmenu ul li a {
  border-bottom: 3px solid transparent;
}

.dropmenu ul li a:hover,
.dropmenu ul li a:focus-visible {
  border-bottom-color: var(--leben-green);
  background: rgba(47, 107, 58, 0.08);
}

.dropmenu ul li a.active,
body.leben-is-home .dropmenu > ul > li:first-child > a,
body.leben-page-aktuelles .dropmenu > ul > li:nth-child(2) > a,
body.leben-page-horste-termine .dropmenu > ul > li:nth-child(3) > a,
body.leben-page-horste-netzwerk-1 .dropmenu > ul > li:nth-child(4) > a,
body.leben-page-downloads .dropmenu > ul > li:nth-child(5) > a,
body.leben-page-impressum-1 .dropmenu > ul > li:nth-child(6) > a,
body.leben-page-datenschutzerklarung-1 .dropmenu > ul > li:nth-child(7) > a {
  color: var(--leben-green-dark) !important;
  font-weight: 900 !important;
  border-bottom-color: transparent;
  background: transparent !important;
}

.dropmenu ul li a.active:hover,
body.leben-is-home .dropmenu > ul > li:first-child > a:hover,
body.leben-page-aktuelles .dropmenu > ul > li:nth-child(2) > a:hover,
body.leben-page-horste-termine .dropmenu > ul > li:nth-child(3) > a:hover,
body.leben-page-horste-netzwerk-1 .dropmenu > ul > li:nth-child(4) > a:hover,
body.leben-page-downloads .dropmenu > ul > li:nth-child(5) > a:hover,
body.leben-page-impressum-1 .dropmenu > ul > li:nth-child(6) > a:hover,
body.leben-page-datenschutzerklarung-1 .dropmenu > ul > li:nth-child(7) > a:hover,
.dropmenu ul li a.active:focus-visible,
body.leben-is-home .dropmenu > ul > li:first-child > a:focus-visible,
body.leben-page-aktuelles .dropmenu > ul > li:nth-child(2) > a:focus-visible,
body.leben-page-horste-termine .dropmenu > ul > li:nth-child(3) > a:focus-visible,
body.leben-page-horste-netzwerk-1 .dropmenu > ul > li:nth-child(4) > a:focus-visible,
body.leben-page-downloads .dropmenu > ul > li:nth-child(5) > a:focus-visible,
body.leben-page-impressum-1 .dropmenu > ul > li:nth-child(6) > a:focus-visible,
body.leben-page-datenschutzerklarung-1 .dropmenu > ul > li:nth-child(7) > a:focus-visible {
  border-bottom-color: var(--leben-green);
}

body.leben-is-home #header .dropmenu > ul > li:first-child > a,
body.leben-is-home #header .dropmenu > ul > li:first-child > a:hover,
body.leben-is-home #header .dropmenu > ul > li:first-child > a:focus-visible,
body.leben-page-aktuelles #header .dropmenu > ul > li:nth-child(2) > a,
body.leben-page-aktuelles #header .dropmenu > ul > li:nth-child(2) > a:hover,
body.leben-page-aktuelles #header .dropmenu > ul > li:nth-child(2) > a:focus-visible,
body.leben-page-horste-termine #header .dropmenu > ul > li:nth-child(3) > a,
body.leben-page-horste-termine #header .dropmenu > ul > li:nth-child(3) > a:hover,
body.leben-page-horste-termine #header .dropmenu > ul > li:nth-child(3) > a:focus-visible,
body.leben-page-horste-netzwerk-1 #header .dropmenu > ul > li:nth-child(4) > a,
body.leben-page-horste-netzwerk-1 #header .dropmenu > ul > li:nth-child(4) > a:hover,
body.leben-page-horste-netzwerk-1 #header .dropmenu > ul > li:nth-child(4) > a:focus-visible,
body.leben-page-downloads #header .dropmenu > ul > li:nth-child(5) > a,
body.leben-page-downloads #header .dropmenu > ul > li:nth-child(5) > a:hover,
body.leben-page-downloads #header .dropmenu > ul > li:nth-child(5) > a:focus-visible,
body.leben-page-impressum-1 #header .dropmenu > ul > li:nth-child(6) > a,
body.leben-page-impressum-1 #header .dropmenu > ul > li:nth-child(6) > a:hover,
body.leben-page-impressum-1 #header .dropmenu > ul > li:nth-child(6) > a:focus-visible,
body.leben-page-datenschutzerklarung-1 #header .dropmenu > ul > li:nth-child(7) > a,
body.leben-page-datenschutzerklarung-1 #header .dropmenu > ul > li:nth-child(7) > a:hover,
body.leben-page-datenschutzerklarung-1 #header .dropmenu > ul > li:nth-child(7) > a:focus-visible {
  color: var(--leben-green-dark) !important;
  font-weight: 900 !important;
  background: transparent !important;
}

#header .navbar,
#header .navbar-section,
#header .logo,
.logo-with-title {
  color: var(--leben-green-dark);
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
  .site-title-text {
    font-size: 20px;
  }
}

/* ===== Mobile Navigation ===== */

.mobile-menu {
  display: block !important;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
}

@media (min-width: 1361px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu .button_container span {
  background: var(--leben-green-dark) !important;
}

.mobile-menu .button_container {
  position: fixed !important;
  top: 1.45rem !important;
  right: 1.25rem !important;
  z-index: 1001 !important;
  display: block !important;
  padding: 8px;
  border-radius: 4px;
  background: rgba(244, 248, 239, 0.92);
}

.mobile-menu .button_container.active .top,
.mobile-menu .button_container.active .middle,
.mobile-menu .button_container.active .bottom {
  background: var(--leben-green-dark) !important;
}

@media (max-width: 1360px) {
  #header .navbar-section.desktop-menu {
    display: none !important;
  }

  #header .navbar-section.logo {
    margin-right: 4rem;
  }
}

.overlay {
  background: var(--leben-bg-soft-strong) !important;
}

.overlay.open {
  opacity: 0.98;
}

.mobile-logo {
  background: var(--leben-bg-soft-strong);
}

.treemenu li {
  background: rgba(47, 107, 58, 0.12) !important;
}

.treemenu li a {
  color: var(--leben-green-dark) !important;
}

.treemenu li a:hover,
.treemenu li a:focus,
.treemenu li a.active {
  color: var(--leben-green) !important;
  text-decoration: none;
}

.treemenu li a.active {
  font-weight: 800;
}

/* ===== Vorstand ===== */

.vorstand-wrapper {
  max-width: 900px;
}

.vorstand-img {
  width: 30%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.vorstand-table {
  border-collapse: collapse;
}

.vorstand-table td {
  padding: 0.4rem 1rem 0.4rem 0;
  vertical-align: top;
}

/* Mobile */
@media (max-width: 768px) {
  .vorstand-img {
    width: 100%;
  }
}

/* ===== Vorstand Cards (2x2) ===== */

.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.vorstand-card {
  background: #fff;
  border-top: 6px solid #333;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 2.2rem 1.8rem;
  text-align: center;
}

.vorstand-card .name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
}

.vorstand-card .role {
  font-size: 1.2rem;
  opacity: 0.7;
  margin: 0 0 2rem 0;
}

.vorstand-card .details {
  font-size: 1.05rem;
  line-height: 1.7;
  white-space: pre-line;
}

@media (max-width: 900px) {
  .vorstand-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1000px) {
  img.vorstand {
    max-width: 800px;
    display: block;
    margin: 0 auto;
  }
}

table.preise {
  border-collapse: collapse;
  margin-bottom: 20px;
}

table.preise th,
table.preise td {
  border: 1px solid #444;
  padding: 8px 12px;
}

table.preise th {
  background: #f2f2f2;
}

/* ===== Startseite (Ionos-Layout) ===== */

.leben-home-body {
  padding-top: 0;
}

.leben-home-body #body-wrapper.section {
  padding-top: 0;
}

.leben-hero-wrap {
  position: relative;
  margin-bottom: 2rem;
  background-color: #f5f7f4;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: min(42vh, 520px);
}

.leben-hero-overlay {
  position: absolute;
  inset: 0;
  /* wie Ionos: leichtes Aufhellen, nicht „fotos auswaschen“ (0,78 war zu stark) */
  background: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.leben-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  padding: 2.5rem 0 3rem;
}

.leben-hero-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.leben-hero-text {
  flex: 1 1 280px;
  max-width: 420px;
  text-align: center;
  color: #6d2c2c;
  font-size: 1.05rem;
  line-height: 1.45;
}

.leben-hero-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-transform: none;
}

.leben-block {
  margin-bottom: 2rem;
}

.leben-3cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .leben-3cols {
    grid-template-columns: 1fr;
  }

  .leben-3cols-img {
    flex-direction: row;
    justify-content: center;
  }
}

.leben-brand-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #2f6b3a;
  line-height: 1.15;
  margin: 0;
}

.leben-mission-list {
  margin: 0;
  padding-left: 1.2rem;
}

.leben-mission-list li {
  margin-bottom: 0.65rem;
}

.leben-3cols-img {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: flex-start;
}

.leben-narrow-img {
  max-width: 48%;
  width: calc(50% - 0.375rem);
  height: auto;
  border-radius: 6px;
}

.leben-rule {
  border: none;
  border-top: 3px solid #e4c419;
  margin: 2rem 0;
}

.leben-caption {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.leben-team-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.leben-team-photos img:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 600px) {
  .leben-team-photos {
    grid-template-columns: 1fr;
  }
}

.leben-banner {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.leben-claim-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.leben-claim-title .lc-green {
  color: #2f6b3a;
}

.leben-claim-title .lc-lime {
  color: #6cb33f;
}

.leben-claim-title .lc-dark {
  color: #333;
}

.leben-lead {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.leben-vierklang-intro {
  margin-top: 1.25rem;
}

.leben-vierklang {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

@media (max-width: 1024px) {
  .leben-vierklang {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .leben-vierklang {
    grid-template-columns: 1fr;
  }
}

.leben-vierklang h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  text-transform: none;
}

.vk-wissen h3 {
  color: #2d6a37;
}

.vk-kultur h3 {
  color: #7a2638;
}

.vk-termine h3 {
  color: #b38b00;
}

.vk-netzwerk h3 {
  color: #2a6d7c;
}

.leben-vierklang p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.leben-img-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .leben-img-row-3 {
    grid-template-columns: 1fr;
  }
}

.leben-img-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .leben-img-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .leben-img-grid-6 {
    grid-template-columns: 1fr;
  }
}

.leben-img-row-3 img,
.leben-img-grid-6 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.leben-form-strip {
  margin-top: 2rem;
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, var(--leben-bg-soft) 0%, var(--leben-bg-soft-strong) 100%);
  border-top: 1px solid #d8e7ca;
}

.leben-form-hinweis {
  margin-bottom: 1rem;
}

.leben-form-strip form {
  max-width: 560px;
  margin: 0 auto;
}

.leben-form-strip .form-group label {
  font-weight: 600;
}

.leben-form-strip [type="submit"],
.leben-form-strip button[type="submit"],
.leben-form-strip .button {
  width: 100%;
  max-width: 100%;
  background: #2c5282;
  border-color: #2c5282;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.leben-form-strip [type="submit"]:hover,
.leben-form-strip button[type="submit"]:hover {
  background: #234468;
  border-color: #234468;
}

.termine-monat {
  max-width: 980px;
  margin: 2rem auto;
}

.termine-monat h3 {
  margin: 0 0 0.5rem 0;
  padding: 0.65rem 1rem;
  background: #dfe8d2;
  border-top: 4px solid #d92c20;
  color: #2f3b2f;
}

.termine-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.termine-table th,
.termine-table td {
  border: 1px solid #d9dfcf;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.termine-table thead th {
  background: #edf3e2;
  color: #2f3b2f;
  font-weight: 700;
}

.termine-table tbody tr:nth-child(even) {
  background: #f8faf5;
}

.termine-table td:first-child {
  width: 90px;
  white-space: nowrap;
  font-weight: 700;
  background: #edf3e2;
}

.termine-table td:nth-child(2) {
  width: 180px;
  white-space: normal;
}

.termine-table td:nth-child(2) .termine-zeit-teil {
  white-space: nowrap;
}

.termine-table td:nth-child(3) {
  font-weight: 600;
}

.termine-hinweis {
  text-align: right;
  color: #b54848;
  font-size: 0.95rem;
  margin: 0.25rem 0 0 0;
}

.netzwerk-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
}

.netzwerk-table th,
.netzwerk-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #d9dfcf;
}

.netzwerk-table thead th {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  border-top: 3px solid #3db5e6;
  border-bottom: 2px solid #3db5e6;
  background: transparent;
}

.netzwerk-table td:first-child {
  width: 42%;
  color: #8a5a22;
  font-weight: 500;
}

.netzwerk-table td:last-child {
  color: #556b3d;
}

.netzwerk-table a {
  color: inherit;
  text-decoration: none;
}

.netzwerk-table a:hover {
  text-decoration: underline;
}

.hero-small {
  width: 50%;
  display: block;
  margin: 0 auto; /* optional: zentriert */
}

@media (max-width: 768px) {
  .hero-small {
    width: 100%;
  }
}

.leben-form-strip .container.grid-lg {
  max-width: 976px;
}

.leben-form-strip .kontaktformular {
  width: 100%;
  max-width: none;
  margin: 0;
}

.leben-form-strip .kontaktformular .form-field {
  margin-bottom: 18px;
}

.leben-form-strip .kontaktformular .form-label {
  margin-bottom: 8px;
}

.leben-form-strip .kontaktformular .form-label label {
  display: block;
  font-size: 16px;
  color: #4a5568;
  line-height: 1.4;
}

.leben-form-strip .kontaktformular .form-input-wrapper,
.leben-form-strip .kontaktformular .form-textarea-wrapper,
.leben-form-strip .kontaktformular .form-data {
  width: 100%;
}

.leben-form-strip .kontaktformular input[type="text"],
.leben-form-strip .kontaktformular input[type="email"],
.leben-form-strip .kontaktformular textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #cbd5e0;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

.leben-form-strip .kontaktformular textarea {
  min-height: 180px;
  resize: vertical;
}

.leben-form-strip .kontaktformular input[type="text"]:focus,
.leben-form-strip .kontaktformular input[type="email"]:focus,
.leben-form-strip .kontaktformular textarea:focus {
  outline: none;
  border-color: #35527a;
}

.leben-form-strip .kontaktformular .form-field:has(input[type="checkbox"]) .form-label {
  display: none;
}

.leben-form-strip .kontaktformular .form-field .form-input-wrapper label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  font-size: 15px;
  color: #4a5568;
  max-width: 100%;
}

.leben-form-strip .kontaktformular input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
}

.leben-form-strip .kontaktformular .buttons {
  margin-top: 22px;
  width: 100%;
  max-width: 100%;
}

.leben-form-strip .kontaktformular .buttons .button,
.leben-form-strip .kontaktformular .buttons .form-button,
.leben-form-strip .kontaktformular .buttons button[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: #35527a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.leben-form-strip .kontaktformular .buttons .button:hover,
.leben-form-strip .kontaktformular .buttons .form-button:hover,
.leben-form-strip .kontaktformular .buttons button[type="submit"]:hover {
  background: #2c4568;
}

.leben-form-strip .kontaktformular .required {
  color: #d97706;
}

.leben-form-strip .kontaktformular .buttons .button {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #35527a, #2c4568);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leben-form-strip .kontaktformular .buttons .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .leben-form-strip .container.grid-lg,
  .leben-form-strip .kontaktformular,
  .leben-form-strip .kontaktformular .buttons,
  .leben-form-strip .kontaktformular .buttons .button {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
}

/* ===== Aktuelles: IONOS-nahe Bildbreiten ===== */

.aktuelles-original-layout {
  width: min(1280px, calc(100vw - 32px));
  max-width: none;
  margin-left: 50%;
  padding: 40px 0;
  transform: translateX(-50%);
}

.aktuelles-news-column {
  width: 50%;
  max-width: 640px;
}

.aktuelles-news-column img,
.aktuelles-dorffest-image img {
  display: block;
  width: 100%;
  height: auto;
}

.aktuelles-news-column .leben-rule,
.aktuelles-dorffest .leben-rule {
  margin: 0 0 4px;
  border-top-color: #730313;
}

.aktuelles-news-column h3:first-child + .leben-rule {
  border-top-color: #3f5979;
}

.aktuelles-news-column h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.35;
}

.aktuelles-news-column h3 a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  background: #3f5979;
  color: #fff;
  text-decoration: none;
}

.aktuelles-news-column h3:first-child a {
  background: #941196;
}

.aktuelles-news-column h3:last-of-type a {
  background: #036403;
}

.aktuelles-dorffest {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.aktuelles-dorffest-text h2 {
  margin-top: 0;
  font-size: 20px;
}

.aktuelles-dorffest-text p {
  font-size: 14px;
}

.aktuelles-dorffest-image {
  border-top: 3px solid #e96f05;
  padding-top: 4px;
}

@media (max-width: 767px) {
  .aktuelles-original-layout,
  .aktuelles-dorffest {
    padding: 24px 0;
  }

  .aktuelles-original-layout {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .aktuelles-news-column,
  .aktuelles-dorffest {
    width: 100%;
    max-width: none;
  }

  .aktuelles-dorffest {
    grid-template-columns: 1fr;
  }
}
