/* =========================================
   Kontakt Sektion
   class="kontakt"
   TYPO3 2 Columns / Text & Medien / Text and Icon / Powermail
   KEINE IDs
   Textgröße wird NICHT angegriffen
   ========================================= */

.kontakt {
  position: relative;
  margin: 0;
  padding: 2.5rem 0;
}

/* Nur die erste Kontakt-Gruppe mit Formular */
.kontakt > .container:first-of-type {
  position: relative;
}

/* TYPO3-Wrapper ruhigstellen */
.kontakt > .container:first-of-type :is(
  .frame-group-container,
  .frame-group-inner,
  .frame-container,
  .frame-inner
) {
  margin: 0;
  padding: 0;
}

/* Hauptlayout */
.kontakt > .container:first-of-type > .row {
  align-items: flex-start;
  row-gap: 2rem;
}

/* Spalten */
.kontakt > .container:first-of-type > .row > [class*="col-"] {
  position: relative;
}

.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child {
  padding-right: 3.5rem;
}

.kontakt > .container:first-of-type > .row > [class*="col-"]:last-child {
  padding-left: 1.5rem;
}

/* Frames neutralisieren */
.kontakt > .container:first-of-type .frame {
  margin: 0;
  padding: 0;
}

/* Verschachtelte .kontakt beim Intro neutralisieren */
.kontakt > .container:first-of-type .kontakt {
  margin: 0;
  padding: 0;
  background: none;
}

/* Leere Medienbereiche ausblenden */
.kontakt > .container:first-of-type .textmedia-gallery {
  display: none;
}

/* Textmedia neutral */
.kontakt > .container:first-of-type :is(
  .textmedia,
  .textmedia-text,
  .ce-bodytext
) {
  margin: 0;
  padding: 0;
}

/* Header neutral */
.kontakt > .container:first-of-type :is(
  header,
  .frame-header,
  .ce-header
) {
  margin: 0;
  padding: 0;
}

/* Globale Heading-Linien entfernen, aber Text selbst nicht ändern */
.kontakt > .container:first-of-type :is(h1, h2, h3, h4, h5)::after {
  display: none;
}


/* =========================================
   Linke Spalte: Kontakt Intro
   ========================================= */

.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child > .kontakt {
  margin-bottom: 2.1rem;
}

/* Nur Abstand der Überschrift, keine Textgröße */
.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child .frame-type-textmedia :is(h1, h2, h3) {
  margin: 0 0 0.55rem;
  padding: 0;
}

/* Untertitel nur Abstand */
.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child .frame-type-textmedia p {
  margin: 0;
}


/* =========================================
   Linke Spalte: Kontaktzeilen mit Icons
   ========================================= */

.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child > .frame-type-texticon {
  margin-top: 1.45rem;
}

.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child .texticon {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

/* Icon-Kreis */
.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child .texticon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0.1rem 0 0;
  padding: 0;
  color: #315f47;
  background: #e8f0e4;
  border-radius: 50%;
}

.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child .texticon-inner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
}

.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child .texticon-icon :is(svg, img) {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  color: #315f47;
  stroke: currentColor;
  object-fit: contain;
}

/* Text rechts vom Icon nur positionieren */
.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child .texticon-content {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child .texticon-content p {
  margin: 0;
}

.kontakt > .container:first-of-type > .row > [class*="col-"]:first-child .texticon-content strong {
  display: block;
  margin: 0 0 0.18rem;
}


/* =========================================
   Rechte Spalte: Formular-Card
   ========================================= */

.kontakt > .container:first-of-type > .row > [class*="col-"]:last-child .frame-type-powermail_pi1 {
  width: 100%;
  max-width: 620px;
  margin-left: auto;
}

/* Powermail Container neutral */
.kontakt > .container:first-of-type :is(
  .tx-powermail,
  .tx-powermail > .container-fluid
) {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Weiße Formular-Card */
.kontakt > .container:first-of-type .powermail_form {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.6rem 1.8rem;
  background: #fcfaf8;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(40, 50, 45, 0.13);
  backdrop-filter: blur(3px);
}

/* Formular-Überschrift wie H2 */
.kontakt > .container:first-of-type .powermail_form > h3 {
  margin: 0 0 1.1rem;
  padding: 0;
  color: #164936;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: none;
}

/* Keine globale Linie unter der Formular-H3 */
.kontakt > .container:first-of-type .powermail_form > h3::after {
  display: none;
}

/* Doppelte Legende ausblenden */
.kontakt > .container:first-of-type .powermail_legend {
  display: none;
}

.kontakt > .container:first-of-type .powermail_fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Powermail Rows */
.kontakt > .container:first-of-type .powermail_fieldset > .row {
  margin-right: -0.4rem;
  margin-left: -0.4rem;
}

/* Felder */
.kontakt > .container:first-of-type .powermail_fieldwrap {
  margin: 0 0 0.9rem;
  padding-right: 0.4rem;
  padding-left: 0.4rem;
}

/* Name + Telefon nebeneinander */
.kontakt > .container:first-of-type :is(
  .powermail_fieldwrap_ihrname,
  .powermail_fieldwrap_telefonnummer
) {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
}

/* E-Mail, Anliegen, Datenschutz volle Breite */
.kontakt > .container:first-of-type :is(
  .powermail_fieldwrap_telefonnummer_01,
  .powermail_fieldwrap_ihranliegen,
  .powermail_fieldwrap_marker
) {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.kontakt > .container:first-of-type .powermail_field {
  margin: 0;
  padding: 0;
}

/* Labels nur Abstand, keine Textgröße */
.kontakt > .container:first-of-type .powermail_label {
  display: block;
  margin: 0 0 0.3rem;
  padding: 0;
}

.kontakt > .container:first-of-type .mandatory {
  color: inherit;
}

/* Inputs / Textarea / Select */
.kontakt > .container:first-of-type :is(
  .powermail_input,
  .powermail_textarea,
  .powermail_select,
  .form-control
) {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 0.6rem;
  color: #202020;
  background: #ffffff;
  border: 1px solid rgba(30, 30, 30, 0.18);
  border-radius: 3px;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kontakt > .container:first-of-type :is(
  .powermail_input,
  .powermail_select,
  input.form-control
) {
  min-height: 2.2rem;
}

.kontakt > .container:first-of-type :is(
  .powermail_textarea,
  textarea.form-control
) {
  min-height: 6.5rem;
  resize: vertical;
}

.kontakt > .container:first-of-type :is(
  .powermail_input,
  .powermail_textarea,
  .powermail_select,
  .form-control
):focus {
  border-color: #315f47;
  box-shadow: 0 0 0 3px rgba(49, 95, 71, 0.12);
}

/* Datenschutz / Radio */
.kontakt > .container:first-of-type .powermail_fieldwrap_marker {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.kontakt > .container:first-of-type .powermail_fieldwrap_marker > .powermail_field > .powermail_label {
  margin-bottom: 0.5rem;
}

/* Radio/Checkbox-Zeile */
.kontakt > .container:first-of-type :is(
  .powermail_radiowrap,
  .form-check
) {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.kontakt > .container:first-of-type :is(
  .powermail_radio,
  .form-check-input
) {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  border-color: rgba(30, 30, 30, 0.28);
  accent-color: #315f47;
}

.kontakt > .container:first-of-type .form-check-label {
  margin: 0;
}

/* Datenschutz Link */
.kontakt > .container:first-of-type :is(
  .form-check-label,
  .powermail_fieldwrap_marker
) a {
  color: #315f47;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Fehlercontainer */
.kontakt > .container:first-of-type :is(
  .powermail_field_error_container,
  .parsley-errors-list,
  .powermail_message_error
) {
  margin: 0.35rem 0 0;
  padding: 0;
  color: #8f2f2f;
  list-style: none;
}

/* Submit */
.kontakt > .container:first-of-type :is(
  .powermail_submit,
  input[type="submit"],
  button[type="submit"]
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  margin-top: 0.1rem;
  padding: 0.7rem 1.1rem;
  color: #ffffff;
  background: #164936;
  border: 1px solid #164936;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kontakt > .container:first-of-type :is(
  .powermail_submit,
  input[type="submit"],
  button[type="submit"]
):hover {
  background: #315f47;
  border-color: #315f47;
  transform: translateY(-1px);
}

/* Links */
.kontakt > .container:first-of-type a {
  color: inherit;
}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1199.98px) {
  .kontakt > .container:first-of-type > .row > [class*="col-"]:first-child {
    padding-right: 2rem;
  }

  .kontakt > .container:first-of-type > .row > [class*="col-"]:last-child {
    padding-left: 1rem;
  }
}

@media (max-width: 991.98px) {
  .kontakt {
    padding: 2rem 0;
  }

  .kontakt > .container:first-of-type > .row > [class*="col-"]:first-child,
  .kontakt > .container:first-of-type > .row > [class*="col-"]:last-child {
    padding-right: 0;
    padding-left: 0;
  }

  .kontakt > .container:first-of-type > .row > [class*="col-"]:last-child .frame-type-powermail_pi1 {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .kontakt > .container:first-of-type :is(
    .powermail_fieldwrap_ihrname,
    .powermail_fieldwrap_telefonnummer
  ) {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .kontakt {
    padding: 1.7rem 0;
  }

  .kontakt > .container:first-of-type .powermail_form {
    padding: 1.25rem;
  }

  .kontakt > .container:first-of-type > .row > [class*="col-"]:first-child > .frame-type-texticon {
    margin-top: 1.25rem;
  }
}

/* =========================================
   Kontakt Map Section
   Grüner Hintergrund + Text neben Map
   ========================================= */

.kontakt-map-section {
  --kontakt-green: #164633;
  --kontakt-green-dark: #0f3325;
  --kontakt-dot: #dbead3;
  --kontakt-muted: #6f8f77;
  --kontakt-text: #303030;
  --kontakt-shadow: 0 20px 55px rgba(20, 50, 38, 0.12);

  margin: 0;
  padding: clamp(1.5rem, 3vw, 3rem) 0;
  background: var(--kontakt-bg);
}

.kontakt-map-section__inner {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.kontakt-map-section__text {
  padding: clamp(2rem, 3.5vw, 3rem);
  border: 1px solid rgba(22, 70, 51, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--kontakt-shadow);

  overflow: visible;
}

.kontakt-map-section__text span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;

  margin-bottom: 1rem;

  color: var(--kontakt-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kontakt-map-section__text span::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 0.7rem;

  border-radius: 50%;
  background: var(--kontakt-dot);
  box-shadow: 0 0 0 6px rgba(219, 234, 211, 0.55);
}

.kontakt-map-section__text h2 {
  margin: 0 0 1.25rem;

  color: var(--kontakt-green);
  font-size: clamp(1.85rem, 2.7vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.025em;

  overflow: visible;
  overflow-wrap: break-word;
  hyphens: auto;
}

.kontakt-map-section__text p {
  margin: 0 0 1.75rem;

  color: var(--kontakt-text);
  font-size: 1rem;
  line-height: 1.65;
}

.kontakt-map-section__text a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0.8rem 1.3rem;

  border-radius: 999px;
  background: #faf8f6;
  color: var(--kontakt-green);

  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  box-shadow: 0 12px 26px rgba(22, 70, 51, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.kontakt-map-section__text a:hover,
.kontakt-map-section__text a:focus-visible {
  background: #e8f0e4;
  color: var(--kontakt-green);
  text-decoration: none;
  transform: translateY(-1px);
}

.kontakt-map-section__map {
  position: relative;

  min-height: clamp(330px, 33vw, 460px);

  border-radius: 28px;
  overflow: hidden;

  background: #e6e2dc;
  box-shadow: var(--kontakt-shadow);
}

.kontakt-map-section__map iframe {
  position: absolute;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

  border: 0;
  filter: saturate(0.82) contrast(0.95) brightness(1.03);
}

/* =========================================
   Tablet + Mobile
   ========================================= */

@media (max-width: 991.98px) {
  .kontakt-map-section {
    padding: 2.5rem 0;
  }

  .kontakt-map-section__inner {
    grid-template-columns: 1fr;
  }

  .kontakt-map-section__map {
    min-height: 360px;
  }
}

@media (max-width: 575.98px) {
  .kontakt-map-section {
    padding: 2rem 0;
  }

  .kontakt-map-section__inner {
    width: min(100% - 1.5rem, 1280px);
    gap: 1.25rem;
  }

  .kontakt-map-section__text {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .kontakt-map-section__text h2 {
    font-size: 1.85rem;
    line-height: 1.16;
  }

  .kontakt-map-section__text a {
    width: 100%;
  }

  .kontakt-map-section__map {
    min-height: 300px;
    border-radius: 22px;
  }
}

div#c162 {
  padding: 0;
  background: #fcfaf8;
}