@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');

:root {
  --green: #184418;
  --green-2: #173c20;
  --text: #4d4d4d;
  --muted: #79797c;
  --bg: #ffffff;
  --footer: #dedede;
  --container: 1020px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.description-main {
  max-width: 660px;
  margin: auto !important;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: .9;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 10px 0 16px 18px;
}

li {
  margin: .5em 0;
}

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

/* .section {
  padding: 46px 0;
} */

.section--tight {
  padding: 26px 0;
}
.form-error{
  color: #fff;
    background-color: #ce2c30;
    align-items: center;
    column-gap: 10px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 400;
    display: none;
    width: fit-content;
    margin: 0 0 8px;
}
.form-error svg{
  flex-shrink: 0;
    width: 15px;
    height: 15px;
}
#contactform .field.is-error .form-error {
  display: flex;
}
#contactform .field.is-error input,
#contactform .field.is-error textarea {
  border: 1px solid #c62828;
  background: #fdeaea;
  outline: none;
}
#contactform .form-error--summary.is-visible {
  display: flex;
}
/* .h-eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
} */

h1,
h2,
h3 {
  font-family: "Playfair Display SC", serif;
  color: var(--green);
  font-weight: 400;

  /* margin: 0 0 14px; */
  margin: 0px;
  white-space: pre-wrap;
  text-rendering: optimizeLegibility;
  line-height: 1.2em;
}

* h1:not(:first-child),
* h2:not(:first-child),
* h3:not(:first-child) {
  margin: 1em 0 .5em;
}

h1 {
  text-transform: none;
  font-size: 25px;
  font-style: normal;
  letter-spacing: 0px;
}

h2 {
  text-transform: none;
  letter-spacing: .05em;
  font-size: 17px;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  color: var(--muted);
}

h3 {
  font-size: 18px;
}

.small,
p {
  font-weight: 400;
  letter-spacing: 0px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2em;
  font-style: normal;
  color: var(--muted);
  margin: 0px;
}

.small+.small,
p {
  margin-top: 1em;
  margin-bottom: 1em;
}

.btn {
  padding: 13px 26px;
  text-transform: none;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  color: #fff;
  background-color: #184418;
  border-color: #184418;
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  line-height: normal;
  transition: .1s opacity linear;
  cursor: pointer;
  border: none !important;
  min-width: 137px;
}

.btn[type="submit"] {
  padding: 1em 2.5em;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 3px;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  line-height: normal;
  font-size: 14px;
}

.btn:hover {
  opacity: .8;
}

.btn--ghost {
  background: transparent;
  color: var(--green);
}

.hr {
  height: 1px;
  background: #eee;
  border: 0;
  margin: 0;
}

.sqs-block {
  padding: 17px 0px;
  margin: 0px;
}

* .sqs-block:first-child {
  padding-top: 0;
}

/* =========================
   Header
========================= */
.header {
  background: #fff;
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.brand__logo {
  width: 250px;
  height: auto;
}

.brand__text {
  display: none;
}

/* keep logo image like screenshot */

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  line-height: 1em;
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 14px;
  padding: .75em 1em;
}

.nav a:last-child {
  padding-right: 0px;
}

.nav a:hover {
  color: var(--green);
}

.menu-btn {
  display: none;
  width: 24px;
  height: 25px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0px;
  margin-right: -1px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #666;
  margin: 5px auto;
}

/* Mobile nav drawer */
.drawer {
  display: none;
}

.drawer.is-open {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 100;
}

.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(320px, 88vw);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.drawer__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.drawer__close {
  border: 0;
  background: transparent;
  cursor: pointer;
  height: 29px;
  padding: 0px;
  width: 29px;
}

.drawer__close svg {
  width: 100%;
  height: 100%;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.drawer__nav a {
  padding: 12px 0px;
  text-transform: none;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  line-height: 1em;
  color: #79797c;
  color: var(--muted);
}

.drawer__nav a.is-active {
  color: var(--green);
  border-color: rgba(31, 77, 42, .25);
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  width: 100%;
  height: clamp(324px, 36vw, 324px);
  overflow: hidden;
  background: #ddd;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, .3);
  z-index: 2;
  width: 100%;
  height: 100%;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__spacer {
  height: 12px;
  /* small white gap like screenshot */
  background: #fff;
}

main {
  box-sizing: border-box;
  width: auto;
  margin: auto;
  max-width: 1020px;
  padding: 96px 32px;
}

/* =========================
   Page content layout
========================= */
.page-intro {
  /* max-width: 720px; */
  /* margin: 0 auto; */
  text-align: left;
}

.page-intro--center {
  text-align: center;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 22px;
}

/* image + overlay green box */
.media-overlay {
  position: relative;
  max-width: 100%;
  padding: 17px 0px;
  display: flex;
  align-items: center;
}

.media-overlay .media-overlay__img_main {
  width: 50%;
}

.media-overlay__img {
  border: 0;
  width: 150%;
  left: -50%;
  position: relative;
  max-width: none;
}

.media-overlay__box {
  width: 50%;
  z-index: 2;
}

.media-overlay__box .media_overly__box_inner {
  width: 104%;
  margin-right: -4%;
  background: var(--green);
  color: #fff;
  padding: 12%;
}

.media_overly__box_inner p:last-child {
  margin-bottom: 0px;
}

.media-stack:not(.firstinverse) .media-overlay:nth-child(even) .media-overlay__box .media_overly__box_inner {
  margin-right: 0%;
  margin-left: -4%;
}

.media-stack:not(.firstinverse) .media-overlay:nth-child(even) .media-overlay__img {
  right: -50%;
  left: 0%;
}

.media-stack.firstinverse .media-overlay:nth-child(odd) .media-overlay__box .media_overly__box_inner {
  margin-right: 0%;
  margin-left: -4%;
}

.media-stack.firstinverse .media-overlay:nth-child(odd) .media-overlay__img {
  right: -50%;
  left: 0%;
}

.media-stack.firstinverse .media-overlay:nth-child(odd) {
  flex-direction: row-reverse;
}

.media-stack:not(.firstinverse) .media-overlay:nth-child(even) {
  flex-direction: row-reverse;
}

.media-overlay__box h3 {
  color: #fff;
  font-family: Playfair Display SC;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0em;
  text-transform: none;
  line-height: 1.2em;
  text-transform: uppercase;
  font-size: 19.097px;
}

.media-overlay__box p,
.media-overlay__box li {
  color: #fff;
  font-size: 13px;
  margin-top: 3%;
  line-height: 1.4em;
}

.media-overlay__box ul {
  margin-left: 16px;
}

/* stacked blocks like Hauswartung page */
.media-stack {
  display: grid;
  padding-top: 17px;
}

/* =========================
   Footer
========================= */
.footer {
  background: var(--footer);
}

.footer .container {
  padding: 64px 32px;
}

.footer__toplinks {
  display: flex;
  justify-content: flex-start;
  padding: 0 0 21px;
  gap: 6px;
}

.footer__toplinks a {
  color: var(--muted);
  line-height: 1.25em;
  padding: .75em 1em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 14px;
  font-family: "Playfair Display SC", serif;
  font-style: normal;
}

.footer__toplinks a:first-child {
  padding-left: 0px;
}

.footer__toplinks a:last-child {
  padding-right: 0px;
}

.footer__cols {
  margin-top: 1.5em;
}

.footer__cols small {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
}

.footer__cols div+div {
  margin-top: 1em;
}

.footer__cols a {
  border-bottom: 1px solid #79797c;
}

/* =========================
   Contact form
========================= */
.form {
  max-width: 720px;
  margin: 18px auto 0;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* .field label {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 6px;
} */

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form__actions {
  margin-top: 14px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 767px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .brand__logo {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    height: auto;
  }

  .media-overlay {
    flex-direction: column-reverse !important;
  }

  .media-overlay .media-overlay__img_main {
    width: 90%;
    position: relative;
    left: 5%;
    right: 0%;
  }

  .media-overlay .media-overlay__img {
    width: 100%;
    left: 0%;
    right: 0%;
  }

  .media-overlay__box {
    width: 90%;
    margin-top: calc(-10% - 12%);
    position: relative;
    right: 5%;
  }

  .media-overlay__box .media_overly__box_inner {
    margin: 0px;
    width: 100%;
  }

  .media-stack:not(.firstinverse) .media-overlay:nth-child(even) .media-overlay__box .media_overly__box_inner {
    margin-right: 0%;
    margin-left: 0%;
  }

  .media-stack:not(.firstinverse) .media-overlay:nth-child(even) .media-overlay__img_main {
    left: -5%;
  }

  .media-stack:not(.firstinverse) .media-overlay:nth-child(even) .media-overlay__box {
    right: -5%;
  }

  .media-stack.firstinverse .media-overlay:nth-child(odd) .media-overlay__box .media_overly__box_inner {
    margin-right: 0%;
    margin-left: 0%;
  }

  .media-stack.firstinverse .media-overlay:nth-child(odd) .media-overlay__box {
    right: -5%;
  }

  .media-stack.firstinverse .media-overlay:nth-child(odd) .media-overlay__img_main {
    left: -5%;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .media-overlay__box h3 {
    font-size: max(0.75rem, 60%);
  }

  main {
    padding: 32px;
  }

  .first-block {
    padding-top: 17px;
  }

  .footer .container {
    padding: 20px;
  }

  .footer__toplinks {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
  }

  .footer__toplinks a {
    padding: .7em 0;
  }

  .footer__cols {
    padding: 17px 0px;
    text-align: center;
  }

}

@media only screen and (max-width: 640px) {
  main {
    padding: 40px 20px;
  }
}

/* =========================
   SIMPLE PAGES (Partner/Jobs/etc.) – closer to screenshots
========================= */
.page-simple {
  max-width: 640px;
  margin: 0 auto;
}

.page-simple .small {
  font-size: 12px;
  line-height: 1.55;
}

.simple-list {
  margin-top: 14px;
}

.simple-item {
  margin: 16px 0;
}

/* =========================
   CONTACT FORM – match screenshot (thin inputs, required text, checkbox)
========================= */

.form--sqs .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
margin-bottom: 18px;
    line-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.form--sqs .field label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 4px;
  font-weight: 400;
  letter-spacing: 0px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2em;
  font-style: normal;
}

.form--sqs .req {
  color: #9a9a9a;
  font-size: 12px;
  margin-left: 6px;
}

.form-row label {
  margin-bottom: 0px !important;
  font-size: 12px !important;
}

.form--sqs input,
.form--sqs textarea {
  outline: none;
  box-sizing: border-box;
  color: #000;
  background-color: #fafafa;
  border: 1px solid #a9a9a9;
  width: 100%;
  height: auto;
  padding: 10px;
  position: relative;
}

.form--sqs textarea {
  min-height: 140px;
}

.form--sqs .check-row {
  display: flex;
  gap: 10px;
  align-items:center;
  margin: 6px 0 4px;
  font-size: 13px;
}

.form--sqs .check-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0px;
  background-color: #fafafa;
  border: 1px solid #a9a9a9;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.form--sqs .check-row input[type="checkbox"]:checked {
  background-color: #000;
  width: 16px;
  height: 16px;
}

.checkboxalert {
  padding: 0;
  font-size: 12px;
  opacity: 0.7;
  margin: 0 0 4px;
  color: var(--muted);
}

.spacer {
  padding-top: 16.8px;
}

/* mobile */
@media (max-width: 767px) {
  .page-simple {
    max-width: 720px;
  }

  .form--sqs .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   IMPRESSUM / DATENSCHUTZ pages
========================= */
.legal-grid {
  display: grid;
  grid-template-columns: 33.3333% 58.3333%;
  gap: 8.3333%;
  align-items: start;
}

.legal-ul {
  margin: 8px 0 12px 18px;
  padding: 0;
}

* p:last-child {
  margin-bottom: 0px;
}

.legal-li {
  margin: 6px 0;
}

.legal-logo {
  margin-top: 10px;
  max-width: 260px;
  height: auto;
  display: block;
}

/* mobile: single column like screenshot */
@media (max-width: 767px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .legal-logo {
    margin: auto;
  }
}