/*
Theme Name: Chamer Land Theme
Theme URI: https://eblix.com.au
Author: e Blix Technologies
Description: A Custom Wordpress theme for chamer-land.de.
Text Domain: chamer-land-theme
Version: 1.0.0
Requires at least: 7.0
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
  --container: 1140px;
  --text: #222d25;
  --muted: #5d6c61;
  --bg: #f3f4f1;
  --surface: #ffffff;
  --line: #d9ded8;
  --brand: #5f7e66;
  --brand-dark: #476250;
  --footer-bg: #173726;
  --footer-line: #2e5240;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 38, 22, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

.site-main,
.site-header__inner,
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-main {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e4e8e3;
  backdrop-filter: blur(6px);
}

.site-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
}

.site-branding {
  min-width: 0;
  align-self: center;
}

.site-header__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.45rem;
  justify-self: end;
}

.site-header__lang-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  width: 100%;
}

.site-title {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 700;
}

.site-title a {
  color: var(--text);
  display: inline-block;
}

.site-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 68px;
}

.site-description {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: auto;
}

.site-header__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-lang-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 32px;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: #5d6c61;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
}

.site-lang-switcher__link:hover {
  color: var(--brand-dark);
  background: #edf1ec;
}

.site-lang-switcher__link.is-active {
  color: var(--brand-dark);
  background: #edf1ec;
}

.site-lang-switcher__sep {
  color: #c5cdc5;
  font-size: 0.82rem;
  line-height: 1;
  user-select: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  color: #2b372f;
  font-size: 0.93rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  background: #edf1ec;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 38px;
  padding: 0.42rem 0.9rem;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-header__cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d5dbd4;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.site-header__burger,
.site-header__burger::before,
.site-header__burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #2b372f;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__burger {
  position: relative;
}

.site-header__burger::before,
.site-header__burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header__burger::before {
  top: -6px;
}

.site-header__burger::after {
  top: 6px;
}

.site-header.is-menu-open .site-header__burger {
  background: transparent;
}

.site-header.is-menu-open .site-header__burger::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .site-header__burger::after {
  transform: translateY(-6px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: -2rem calc(50% - 50vw) 2.25rem;
  min-height: 510px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(238, 243, 237, 0.93) 0%, rgba(238, 243, 237, 0.82) 42%, rgba(238, 243, 237, 0.35) 100%),
    url("assets/images/chamer-land-banner.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(243, 244, 241, 0) 0%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  text-align: center;
}

.hero h1,
.hero__title {
  max-width: 650px;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  margin: 0 auto 1rem;
}

.hero p {
  max-width: 620px;
  font-size: 1.05rem;
  color: #324138;
  margin: 0 auto 1.45rem;
}

.hero__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.home-description {
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2.5rem;
  padding: 2.5rem 0;
  background: var(--surface);
}

.home-description__content {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.home-description__content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto 1rem;
  text-align: center;
}

.home-description__content > :last-child {
  margin-bottom: 0;
}

.home-description__content :is(h2, h3, h4, h5, h6, strong) {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

.button--primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.button--light {
  background: #fff;
  border-color: #d5ddd4;
  color: #2b382f;
}

.button--light:hover {
  background: #f0f4ef;
}

.button--small {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}

.button--large {
  min-height: 48px;
  padding: 0.75rem 1.7rem;
  font-size: 1rem;
}

.front-section {
  margin-bottom: 1.7rem;
}

.section-intro p {
  color: var(--muted);
}

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

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}

.info-card--topic {
  display: flex;
  flex-direction: column;
}

.info-card__image-link {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  line-height: 0;
}

.info-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.info-card__image--placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(0deg, rgba(243, 244, 241, 0.2), rgba(243, 244, 241, 0.2)),
    url("assets/images/home-hero.png") center/cover no-repeat;
}

.info-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.info-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d6ddd6;
  color: #6a7b6d;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.info-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.info-card h4 a {
  color: inherit;
}

.info-card h4 a:hover {
  color: var(--brand-dark);
}

.info-card p {
  color: var(--muted);
  min-height: 3.2em;
  flex: 1;
}

.info-card__body .button {
  align-self: flex-start;
  margin-top: auto;
}

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

.project-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-card__media {
  min-height: 100%;
  background:
    linear-gradient(0deg, rgba(243, 244, 241, 0.15), rgba(243, 244, 241, 0.15)),
    url("assets/images/home-hero.png") center/cover no-repeat;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__body {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

.project-card h4 {
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.event-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 8px;
  background: #edf1ec;
  color: var(--brand-dark);
  text-align: center;
  line-height: 1.1;
}

.event-card__month {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-card__day {
  font-size: 1.6rem;
  font-weight: 700;
}

.event-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.event-card__title a {
  color: inherit;
}

.event-card__title a:hover {
  color: var(--brand-dark);
}

.event-card__time,
.event-card__venue {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.front-section__empty,
.front-section__more {
  color: var(--muted);
}

.front-section__more {
  margin-top: 1rem;
  margin-bottom: 0;
}

.front-section--map {
  background: #e9ede8;
  border-top: 1px solid #dde3dc;
  border-bottom: 1px solid #dde3dc;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2rem 0;
}

.front-section--events {
  background: var(--surface);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2.5rem 0;
}

.front-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.map-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.4rem;
  align-items: center;
}

.map-preview {
  min-height: 260px;
  border-radius: var(--radius);
  border: 1px solid #ccd5cc;
  box-shadow: var(--shadow);
  background:
    linear-gradient(0deg, rgba(243, 244, 241, 0.12), rgba(243, 244, 241, 0.12)),
    url("assets/images/home-hero.png") center/cover no-repeat;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.doc-card strong {
  font-size: 0.95rem;
}

.doc-card a {
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 600;
}

.front-section--cta {
  text-align: center;
  background: #ecefea;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 3rem 1.25rem;
}

.front-section--cta h3 {
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
}

.front-section--cta p {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
  color: var(--muted);
}

.front-content {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.site-footer {
  margin-top: 2.8rem;
  background: var(--footer-bg);
  color: #d5e0d8;
}

.site-footer__inner {
  padding-top: 2rem;
  padding-bottom: 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  padding-bottom: 1.4rem;
}

.footer-grid h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: #c7d5cb;
  font-size: 0.93rem;
}

.footer-grid a:hover {
  color: #fff;
}

.site-footer__copyright {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--footer-line);
  font-size: 0.9rem;
  color: #c4d2c8;
}

article,
.no-results,
.error-404,
.comments-area {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.entry-summary,
.entry-content,
.archive-description {
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem;
  border: 1px solid #cdd4ce;
  border-radius: 6px;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  color: #273329;
  background: #fff;
}

button,
input[type="submit"],
.wp-element-button {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.wp-element-button:hover {
  background: var(--brand-dark);
}

.participation-intro {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.participation-privacy-note {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: #f7f8f6;
  border: 1px solid #e0e5df;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.participation-privacy-note p {
  margin: 0;
}

.participation-privacy-note a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.participation-notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.participation-notice--success {
  background: #e8f3ea;
  border: 1px solid #b9d7bf;
  color: #2f5f3a;
}

.participation-notice--info {
  background: #eef3f8;
  border: 1px solid #c5d4e4;
  color: #35506b;
}

.participation-notice--error {
  background: #fdeeee;
  border: 1px solid #efc2c2;
  color: #7a2f2f;
}

.participation-form {
  margin-top: 0.5rem;
}

.participation-form__field {
  margin: 0 0 0.25rem;
}

.participation-form__field label {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.participation-form__field .required {
  color: #b42318;
}

.participation-form__field--consent {
  margin-top: 0.5rem;
}

.participation-consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400 !important;
  color: var(--muted) !important;
  line-height: 1.5;
}

.participation-consent-label input {
  width: auto;
  margin: 0.2rem 0 0;
}

.participation-consent-label a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.participation-form__field--captcha {
  margin-top: 0.25rem;
}

.participation-form__actions {
  margin: 1rem 0 0;
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-top: 0.8rem;
    padding-bottom: 0.85rem;
  }

  .site-header__controls {
    align-items: flex-end;
  }

  .site-header__lang-row {
    gap: 0.45rem;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  .site-header__menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e4e8e3;
    box-shadow: 0 8px 24px rgba(15, 38, 22, 0.08);
  }

  .site-header.is-menu-open .site-header__menu {
    display: flex;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav a {
    width: 100%;
    font-size: 0.95rem;
  }

  .site-header__cta {
    width: 100%;
    margin-top: 0.75rem;
  }

  .hero {
    min-height: 430px;
    margin-top: -2rem;
  }

  .info-grid,
  .doc-grid,
  .projects-grid,
  .events-list {
    grid-template-columns: 1fr 1fr;
  }

  .map-content,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-title {
    font-size: 1.2rem;
  }

  .hero {
    min-height: 390px;
  }

  .hero h1,
  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero__actions {
    gap: 0.5rem;
  }

  .button {
    width: 100%;
  }

  .info-grid,
  .doc-grid,
  .projects-grid,
  .events-list,
  .map-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card__media {
    min-height: 160px;
  }

  .project-card__body {
    padding: 1rem 1.25rem 1.25rem;
  }

  .front-section--cta {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
  }
}
