@import url("https://cdn-uicons.flaticon.com/4.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css");
@import url("https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&display=swap");


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #17365d;
  --primary-dark: #102744;

  --green: #6b963d;
  --green-dark: #3d6f2d;
  --green-light: #8eb55c;
  --green-soft: #eef5e8;
  --green-pale: #f7faf3;
  --green-border: #d9e6cf;

  --text: #2f3430;
  --text-light: #666f68;

  --background: #f7faf3;
  --page-background: rgba(247, 250, 243, 0.82);
  --white: #ffffff;
}

body {
  color: var(--text);
  line-height: 1.7;
  background-color: #f3efe7 !important;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}


/* ==========================================
   SEITENTITEL
========================================== */

.grau {
  background: linear-gradient(
    180deg,
    #f7f9fb 0%,
    #ffffff 100%
  );
}


/* ==========================================
   LINKS
========================================== */

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.25s;
}

a:hover {
  color: var(--primary-dark);
}

strong {
  font-weight: 700;
}

small {
  color: var(--text-light);
}


/* ==========================================
   MOBIL
========================================== */

@media (max-width: 991px) {
  .page-header,
  .frame-type-header,
  .ce-header {
    padding-left: 22px;
    margin-bottom: 2.8rem;
  }

  .page-header::before,
  .frame-type-header::before,
  .ce-header::before {
    width: 3px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.75;
  }


  /* Normale TYPO3-Inhaltsbilder, Card Group ausgenommen */

  main .frame:not(.sj-cg) .image {
    float: none;

    width: min(100%, 380px);
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-right: auto;
    margin-left: auto;

    aspect-ratio: auto;
  }

  main .frame:not(.sj-cg) .image figure,
  main .frame:not(.sj-cg) .image picture {
    display: block;

    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;

    aspect-ratio: auto;
  }

  main .frame:not(.sj-cg) .image img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: min(65svh, 520px);
    margin-right: auto;
    margin-left: auto;

    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
}


/* ==========================================
   BUTTONS
========================================== */

.btn,
.button,
.more,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  min-height: 54px;
  padding: 0 2rem;

  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;

  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 3px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover,
.button:hover,
.more:hover,
input[type="submit"]:hover,
button:hover,
.btn:focus-visible,
.button:focus-visible,
.more:focus-visible,
input[type="submit"]:focus-visible,
button:focus-visible {
  color: #fff !important;
  background: #1f3e60;
  border-color: #c7a76a;

  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(24, 58, 93, 0.22);
}

.btn:active,
.button:active,
.more:active,
button:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn i,
.button i,
.more i {
  transition: transform 0.25s ease;
}

.btn:hover i,
.button:hover i,
.more:hover i {
  transform: translateX(4px);
}

::selection {
  color: var(--white);
  background: var(--primary);
}


/* ==========================================
   HUNDERTER
========================================== */

.hunderter .megazeil,
.hunderter .ce-outer,
.hunderter .ce-row,
.hunderter .ce-gallery,
.hunderter .ce-textpic,
.hunderter .image {
  width: 100% !important;
}

.hunderter .container {
  padding: 0 !important;
}

.hunderter .frame {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.hunderter .ce-gallery[data-ce-columns="3"] .ce-column {
  width: 33.33333% !important;
}

.hunderter {
  z-index: 0;
  max-width: 100% !important;
  padding: 0 !important;
}

.hunderter .ce-gallery img {
  width: 100%;
  padding: 0;
}

.hunderter .ce-column {
  padding: 0 !important;
}

.hunderter .textmedia {
  gap: 0;
}

.hunderter hr {
  height: 0;
  padding: 2% 0;
  background: none !important;
}

.hunderter .frame-container-default {
  max-width: 100%;
  margin: 0;
  padding: 0;
}


/* ==========================================
   FRAME-ABSTÄNDE
========================================== */

.frame-space-before-extra-small {
  display: inline-block;
  margin-top: 0.5% !important;
}

.frame-space-before-small {
  display: inline-block;
  margin-top: 3% !important;
}

.frame-space-before-medium {
  display: inline-block;
  margin-top: 6% !important;
}

.frame-space-before-large {
  display: inline-block;
  margin-top: 9% !important;
}

.frame-space-after-extra-small {
  display: inline-block;
  margin-bottom: 0.5% !important;
}

.frame-space-after-small {
  display: inline-block;
  margin-bottom: 3% !important;
}

.frame-space-after-medium {
  display: inline-block;
  margin-bottom: 6% !important;
  padding-left: 5%;
}

.frame-space-after-large {
  display: inline-block;
  margin-bottom: 9% !important;
}


/* =========================================
   FRAME CUSTOM BILDGRÖSSEN
========================================= */

.frame-custom-22 .image {
  max-width: 80%;
}

.frame-custom-23 .image {
  max-width: 60%;
}

.frame-custom-24 .image {
  max-width: 40%;
}

.frame-custom-25 .image {
  max-width: 20%;
}

.frame-custom-26 .image {
  max-width: 10%;
}

.frame-custom-22 .image,
.frame-custom-23 .image,
.frame-custom-24 .image,
.frame-custom-25 .image,
.frame-custom-26 .image {
  float: none;
  overflow: hidden;
  border-radius: 20px;
}

.frame-custom-22 .textmedia-left .image,
.frame-custom-23 .textmedia-left .image,
.frame-custom-24 .textmedia-left .image,
.frame-custom-25 .textmedia-left .image,
.frame-custom-26 .textmedia-left .image {
  margin-right: auto;
  margin-left: 0;
}

.frame-custom-22 .textmedia-right .image,
.frame-custom-23 .textmedia-right .image,
.frame-custom-24 .textmedia-right .image,
.frame-custom-25 .textmedia-right .image,
.frame-custom-26 .textmedia-right .image {
  margin-right: 0;
  margin-left: auto;
}

.frame-custom-22 .image img,
.frame-custom-23 .image img,
.frame-custom-24 .image img,
.frame-custom-25 .image img,
.frame-custom-26 .image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}


/* ==========================================
   MAIN
========================================== */

main {
  padding-top: 2%;
  padding-bottom: 2%;
}

blockquote {
  position: relative;
  margin: 28px 0 0;
  padding: 24px 26px;

  background: rgba(215, 185, 135, 0.22);
  border: 0;
  border-left: 5px solid #bea06e;
  border-radius: 0 18px 18px 0;
}

blockquote strong {
  display: block;
  margin-bottom: 8px;

  color: #000;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

blockquote p {
  margin: 0;
  color: #000;
  font-style: italic;
}

@media (max-width: 767px) {
  blockquote {
    padding: 20px;
  }
}

.sj-dh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e3ded5;
}

.sj-dh::before {
  position: absolute;
  inset: 0;
  z-index: -1;

  content: "";

  background-image: url("/fileadmin/sj-dh.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  opacity: 0.15;
}


/* ==========================================
   SJ CARD GROUP
========================================== */

.sj-cg {
  counter-reset: sj-card;
}


/* Karte */

.sj-cg .card,
.sj-cg.card {
  position: relative;
  overflow: visible;
  counter-increment: sj-card;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  transition: transform 0.35s ease;
}


/* Bild – bleibt immer quadratisch gecroppt */

.sj-cg .card-img-top,
.sj-cg .card img,
.sj-cg.card .card-img-top,
.sj-cg.card img {
  display: block;

  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;

  border: 0;
  border-radius: 0;
}


/* Textfläche */

.sj-cg .card-body,
.sj-cg.card .card-body {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  min-height: 140px;
  margin: -28px 20px 0 0;
  padding: 28px 68px 22px 24px;

  text-align: left;

  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 35px rgba(44, 82, 91, 0.12);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}


/* Gerade Karten */

.sj-cg .card:nth-child(even) .card-body,
.sj-cg > *:nth-child(even) .card .card-body {
  align-items: flex-end;

  margin-right: 0;
  margin-left: 20px;
  padding-right: 24px;
  padding-left: 68px;

  text-align: right;
}


/* Goldene Linie */

.sj-cg .card-body::after,
.sj-cg.card .card-body::after {
  width: 38px;
  height: 1px;
  margin-top: 13px;

  content: "";
  background: #d7b987;

  order: 2;
}


/* Überschrift */

.sj-cg .card-title,
.sj-cg.card .card-title {
  width: 100%;
  margin: 0;

  color: #2c525b;
  font-size: clamp(1.4rem, 1.55vw, 1.65rem);
  font-weight: 500;
  line-height: 1.08;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;

  order: 1;
}


/* Beschreibung */

.sj-cg .card-text,
.sj-cg.card .card-text {
  width: 100%;
  margin: 12px 0 0;

  color: #2c525b;
  font-size: 0.95rem;
  line-height: 1.6;

  order: 3;
}


/* Link */

.sj-cg .card a,
.sj-cg .card .btn,
.sj-cg.card a,
.sj-cg.card .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: auto;
  margin: 10px 0 0;
  padding: 0;

  color: #b9955d;
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: none;
  text-decoration: none;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  order: 4;

  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.sj-cg .card a::after,
.sj-cg .card .btn::after,
.sj-cg.card a::after,
.sj-cg.card .btn::after {
  content: "→";
  font-size: 1rem;
}


/* Hover */

.sj-cg .card:hover .card-body,
.sj-cg.card:hover .card-body {
  transform: translateY(-7px);
  box-shadow: 0 22px 45px rgba(44, 82, 91, 0.18);
}

.sj-cg .card:hover img,
.sj-cg.card:hover img {
  filter: brightness(1.04);
}

.sj-cg .card a:hover,
.sj-cg .card a:focus-visible,
.sj-cg .card .btn:hover,
.sj-cg .card .btn:focus-visible,
.sj-cg.card a:hover,
.sj-cg.card a:focus-visible,
.sj-cg.card .btn:hover,
.sj-cg.card .btn:focus-visible {
  gap: 13px;

  color: #2c525b;

  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}


/* TYPO3-Card-Footer neutralisieren */

.sj-cg .card-footer,
.sj-cg.card .card-footer {
  padding: 0;
  background: transparent;
  border: 0;
}


/* Gerade Karten absenken */

@media (min-width: 992px) {
  .sj-cg .card:nth-child(even),
  .sj-cg > *:nth-child(even) .card {
    transform: translateY(22px);
  }
}


/* Kleinere Schrift bei vier schmaleren Spalten */

@media (min-width: 992px) and (max-width: 1399.98px) {
  .sj-cg .card-title,
  .sj-cg.card .card-title {
    font-size: 1.1rem;
    line-height: 1.15;
  }
}


/* Mobil ruhig und einheitlich */

@media (max-width: 991px) {
  .sj-cg .card,
  .sj-cg.card,
  .sj-cg .card:nth-child(even),
  .sj-cg > *:nth-child(even) .card {
    transform: none;
  }

  .sj-cg .card-body,
  .sj-cg.card .card-body,
  .sj-cg .card:nth-child(even) .card-body,
  .sj-cg > *:nth-child(even) .card .card-body {
    align-items: center;

    min-height: 125px;
    margin: -22px 12px 0;
    padding: 26px 52px 20px;

    text-align: center;
  }

  .sj-cg .card-title,
  .sj-cg.card .card-title {
    font-size: 1.55rem;
  }
}


/* ==========================================
   SABRINA JURKOWITSCH – FOOTER
========================================== */

:root {
  --sabrina-petrol: #2c525b;
  --sabrina-petrol-dark: #203f48;
  --sabrina-gold: #d7b987;
  --sabrina-gold-hover: #bea06e;
  --sabrina-white: #ffffff;
}


/* ==========================================
   FOOTER ALLGEMEIN
========================================== */

.sr-only {
  position: absolute !important;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;

  white-space: nowrap;

  border: 0;
  clip: rect(0, 0, 0, 0);
}

.site-footer {
  position: relative;
  overflow: hidden;

  color: var(--sabrina-white);
  font-family: inherit;

  background: var(--sabrina-petrol);
  border-top: 1px solid rgba(215, 185, 135, 0.65);
}

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

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--sabrina-gold);
  outline-offset: 5px;
}


/* Hintergründe */

.site-footer::before,
.site-footer::after {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  content: "";
}

.site-footer::before {
  top: -240px;
  right: -180px;

  width: 520px;
  height: 520px;

  border: 1px solid rgba(215, 185, 135, 0.14);
}

.site-footer::after {
  top: -120px;
  right: -60px;

  width: 280px;
  height: 280px;

  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* Hauptbereich */

.site-footer__main {
  position: relative;
  z-index: 1;
}

.site-footer__inner,
.site-footer__bottom-inner {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}

.site-footer__inner {
  display: grid;
  grid-template-columns:
    minmax(320px, 1.45fr)
    minmax(190px, 0.7fr)
    minmax(300px, 1fr);
  gap: clamp(55px, 7vw, 110px);
  align-items: start;

  padding: clamp(72px, 7vw, 105px) 0;
}


/* Logo und Beschreibung */

.site-footer__brand {
  max-width: 470px;
}

.site-footer__logo-link {
  display: block;
  width: 340px;
  max-width: 100%;
}

.site-footer__logo-link img,
.site-footer__logo-link svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__intro {
  max-width: 41ch;
  margin: 34px 0 0;

  color: var(--sabrina-white);
  font-size: 1rem;
  line-height: 1.8;

  opacity: 0.88;
}

.site-footer__intro::before {
  display: block;

  width: 48px;
  height: 1px;
  margin-bottom: 25px;

  background: var(--sabrina-gold);
  content: "";
}


/* Spaltenüberschriften */

.site-footer__column h3 {
  margin: 0 0 31px;

  color: var(--sabrina-white);
  font-family: "Cormorant", serif;
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.05;
}

.site-footer__column h3::after {
  display: block;

  width: 38px;
  height: 1px;
  margin-top: 16px;

  background: var(--sabrina-gold);
  content: "";
}


/* Footer-Navigation */

.site-footer__navigation ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__navigation li {
  margin: 0;
  padding: 0;

}

.site-footer__navigation li ul {
  display: none;
}

.site-footer__navigation li a {
  position: relative;

  display: inline-flex;
  align-items: center;

  min-height: 40px;
  padding: 7px 0;

  color: var(--sabrina-white);
  font-size: 0.98rem;
  line-height: 1.45;

  opacity: 0.82;

  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.site-footer__navigation li a::before {
  width: 0;
  height: 1px;
  margin-right: 0;

  background: var(--sabrina-gold);
  content: "";

  transition:
    width 180ms ease,
    margin-right 180ms ease;
}

.site-footer__navigation li a:hover,
.site-footer__navigation li a:focus-visible,
.site-footer__navigation li.active > a,
.site-footer__navigation li.current > a {
  color: var(--sabrina-gold);
  opacity: 1;
  transform: translateX(3px);
}

.site-footer__navigation li a:hover::before,
.site-footer__navigation li a:focus-visible::before,
.site-footer__navigation li.active > a::before,
.site-footer__navigation li.current > a::before {
  width: 16px;
  margin-right: 10px;
}


/* Kontaktbereich */

.site-footer__contact {
  padding: 7px 0 7px clamp(28px, 3vw, 42px);
  border-left: 1px solid rgba(215, 185, 135, 0.6);
}

.site-footer__contact > p {
  max-width: 35ch;
  margin: 0;

  color: var(--sabrina-white);
  line-height: 1.8;

  opacity: 0.86;
}

.site-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  min-height: 52px;
  margin-top: 30px;
  padding: 13px 27px;

  color: var(--sabrina-white) !important;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;

  background: var(--sabrina-gold);
  border: 1px solid var(--sabrina-gold);
  border-radius: 0;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.site-footer__button i {
  font-size: 0.75rem;
  transition: transform 180ms ease;
}

.site-footer__button:hover,
.site-footer__button:focus-visible {
  color: var(--sabrina-white) !important;
  background: var(--sabrina-gold-hover);
  border-color: var(--sabrina-gold-hover);
  transform: translateY(-2px);
}

.site-footer__button:hover i,
.site-footer__button:focus-visible i {
  transform: translateX(4px);
}


/* Unterer Footerbereich */

.site-footer__bottom {
  position: relative;
  z-index: 2;

  color: var(--sabrina-white);

  background: var(--sabrina-petrol-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  min-height: 72px;
}

.site-footer__bottom p {
  margin: 0;

  color: var(--sabrina-white);
  font-size: 0.9rem;

  opacity: 0.72;
}

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

.site-footer__bottom nav a {
  color: var(--sabrina-white);
  font-size: 0.9rem;

  opacity: 0.72;

  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.site-footer__bottom nav a + a::before {
  margin: 0 17px;
  color: var(--sabrina-gold);
  content: "·";
  opacity: 0.8;
}

.site-footer__bottom nav a:hover,
.site-footer__bottom nav a:focus-visible {
  color: var(--sabrina-gold);
  opacity: 1;
}


/* TYPO3-Abstände zurücksetzen */

footer .frame {
  padding-top: 0;
  padding-bottom: 0;
}

footer .frame-container {
  position: relative;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

footer .textmedia,
footer .textpic {
  gap: 0;
}

footer p {
  margin-bottom: 0;
}


/* Footer responsive */

@media (max-width: 1050px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px 50px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: 650px;
  }

  .site-footer__intro {
    max-width: 52ch;
  }
}

@media (max-width: 767.98px) {
  .site-footer__inner,
  .site-footer__bottom-inner {
    width: min(100% - 40px, 680px);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 62px 0;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__logo-link {
    width: 290px;
  }

  .site-footer__intro {
    margin-top: 28px;
  }

  .site-footer__contact {
    padding: 32px 0 0;

    border-top: 1px solid rgba(215, 185, 135, 0.6);
    border-left: 0;
  }

  .site-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;

    min-height: auto;
    padding: 24px 0;
  }
}

@media (max-width: 480px) {
  .site-footer__inner,
  .site-footer__bottom-inner {
    width: calc(100% - 32px);
  }

  .site-footer__inner {
    gap: 42px;
    padding: 52px 0;
  }

  .site-footer__column h3 {
    margin-bottom: 25px;
  }

  .site-footer__button {
    width: 100%;
  }

  .site-footer__bottom nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .site-footer__bottom nav a + a::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================
   STANDARD-BUTTON
========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 14px 25px;

  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: uppercase;

  background: #d7b987;
  border: 1px solid #d7b987;
  border-radius: 0;
  box-shadow: none;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.btn:hover,
.btn:focus {
  color: #fff !important;
  text-decoration: none !important;

  background: #bea06e;
  border-color: #bea06e;

  transform: translateY(-2px);
}


/* ==========================================
   BEMER – DREI MODERNE INFO-COLUMNS
========================================== */

.gefas {
  --green: #2c525b;
  --gold: #d7b987;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;

  margin: 55px 0;
}


/* Spalten */

.gefas > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}

.gefas > [class*="col-"]:first-child {
  display: flex;
  flex-direction: column;
}


/* Karten */

.gefas .frame {
  position: relative;

  width: 100%;
  padding: 38px 34px;

  background: #fff;
  border: 1px solid rgba(44, 82, 91, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(44, 82, 91, 0.07);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.gefas .frame:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 185, 135, 0.75);
  box-shadow: 0 24px 55px rgba(44, 82, 91, 0.11);
}

.gefas .frame::before {
  position: absolute;
  top: 0;
  left: 34px;

  width: 48px;
  height: 3px;

  background: var(--gold);
  content: "";
}


/* Zweite Backend-Reihe */

.gefas > [class*="col-"]:first-child .frame + .frame {
  flex: 1;

  width: calc(200% + 26px);
  margin-top: 26px;
  padding: 26px 30px;
}

.gefas > [class*="col-"]:first-child .frame + .frame p {
  margin: 0;
}


/* Texte */

.gefas h2 {
  margin-bottom: 24px;
}

.gefas p {
  margin: 0 0 20px;
  color: rgba(0, 0, 0, 0.68);
  line-height: 1.75;
}

.gefas p:last-child {
  margin-bottom: 0;
}

.gefas .list-normal + p {
  margin-top: 24px;
  padding-top: 20px;

  color: rgba(0, 0, 0, 0.57);
  border-top: 1px solid rgba(44, 82, 91, 0.1);
}


/* Listen */

.gefas .list-normal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gefas .list-normal li {
  position: relative;

  margin: 0;
  padding: 15px 0 15px 24px;

  color: rgba(0, 0, 0, 0.72);
  line-height: 1.65;

  border-bottom: 1px solid rgba(44, 82, 91, 0.09);
}

.gefas .list-normal li:first-child {
  padding-top: 0;
}

.gefas .list-normal li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.gefas .list-normal li::before {
  position: absolute;
  top: 23px;
  left: 0;

  width: 8px;
  height: 8px;

  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(215, 185, 135, 0.14);

  content: "";
}

.gefas .list-normal li:first-child::before {
  top: 8px;
}


/* Gefas Tablet */

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

  .gefas > [class*="col-"]:last-child {
    grid-column: 1 / -1;
  }

  .gefas > [class*="col-"]:first-child .frame + .frame {
    width: calc(200% + 26px);
  }
}


/* Gefas Mobile */

@media (max-width: 767.98px) {
  .gefas {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 35px 0;
  }

  .gefas > [class*="col-"]:last-child {
    grid-column: auto;
  }

  .gefas .frame {
    padding: 32px 26px;
    border-radius: 14px;
  }

  .gefas .frame::before {
    left: 26px;
  }

  .gefas .frame:hover {
    transform: none;
  }

  .gefas > [class*="col-"]:first-child .frame + .frame {
    width: 100%;
    margin-top: 20px;
    padding: 26px;
  }
}


/* ==========================================
   POWERMAIL – KONTAKTFORMULAR
========================================== */

.tx-powermail {
  --green: #2c525b;
  --gold: #d7b987;
  --gold-hover: #bea06e;

  width: 100%;
}

.tx-powermail .container-fluid {
  width: 100%;
  padding: 0;
}

.tx-powermail .powermail_form {
  width: 100%;
  padding: clamp(34px, 5vw, 58px);

  background: #fff;
  border: 1px solid rgba(44, 82, 91, 0.09);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(44, 82, 91, 0.08);
}


/* Doppelte Überschrift ausblenden */

.tx-powermail .powermail_form > h3 {
  display: none;
}


/* Fieldset */

.tx-powermail .powermail_fieldset {
  display: block;

  min-width: 0;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;

  border: 0;
}


/* Überschrift */

.tx-powermail legend.powermail_legend {
  float: none;
  display: block;

  width: 100%;
  max-width: none;
  margin: 0 0 28px;
  padding: 0 0 20px;

  color: inherit;
  font-family: "Cormorant", serif;
  font-size: 2rem;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;

  border: 0;
  border-bottom: 1px solid rgba(44, 82, 91, 0.12);
}


/* Zeilen */

.tx-powermail .powermail_fieldset > .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;

  width: 100%;
  margin: 0 0 24px;
}

.tx-powermail .powermail_fieldset > .row > .powermail_fieldwrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.tx-powermail .powermail_fieldset > .row:last-of-type {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}


/* Felder */

.tx-powermail .powermail_field {
  display: block;
  height: auto;
}

.tx-powermail .powermail_label {
  display: block;

  min-height: 20px;
  margin: 0 0 8px;

  color: var(--green);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.tx-powermail .mandatory {
  margin-left: 3px;
  color: var(--gold);
}


/* Eingabefelder */

.tx-powermail .form-control {
  display: block;

  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 16px;

  color: #222;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;

  background: #fff;
  border: 1px solid rgba(44, 82, 91, 0.2);
  border-radius: 10px;
  box-shadow: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tx-powermail textarea.form-control {
  min-height: 135px;
  resize: vertical;
}

.tx-powermail .form-control:hover {
  border-color: rgba(44, 82, 91, 0.42);
}

.tx-powermail .form-control:focus {
  color: #222;

  background: #fff;
  border-color: var(--gold);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(215, 185, 135, 0.18);
}

.tx-powermail .form-control::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.tx-powermail .powermail_date {
  cursor: pointer;
}


/* Fehlermeldungen */

.tx-powermail .form-control.parsley-error {
  border-color: #b94a48;
}

.tx-powermail .parsley-errors-list {
  margin: 7px 0 0;
  padding: 0;

  color: #b94a48;
  font-size: 0.88rem;

  list-style: none;
}


/* Absenden-Button */

.tx-powermail .powermail_fieldwrap_type_submit {
  width: 100%;
  margin: 6px 0 0;
}

.tx-powermail .powermail_fieldwrap_type_submit .powermail_field {
  align-items: flex-start;
}

.tx-powermail input.btn.btn-primary[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 14px 25px;

  color: #fff !important;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;

  background: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  border-radius: 0;
  box-shadow: none;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.tx-powermail input.btn.btn-primary[type="submit"]:hover,
.tx-powermail input.btn.btn-primary[type="submit"]:focus,
.tx-powermail input.btn.btn-primary[type="submit"]:focus-visible {
  color: #fff !important;

  background: var(--gold-hover) !important;
  border-color: var(--gold-hover) !important;
  box-shadow: none !important;
  outline: none;

  transform: translateY(-2px);
}

.tx-powermail input.btn.btn-primary[type="submit"]:active {
  color: #fff !important;

  background: var(--gold-hover) !important;
  border-color: var(--gold-hover) !important;
  box-shadow: none !important;

  transform: translateY(0);
}


/* Powermail Mobile */

@media (max-width: 767.98px) {
  .tx-powermail .powermail_form {
    padding: 30px 24px;
    border-radius: 14px;
  }

  .tx-powermail legend.powermail_legend {
    margin-bottom: 24px;
    font-size: 1.8rem;
  }

  .tx-powermail .powermail_fieldset > .row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .tx-powermail input.btn.btn-primary[type="submit"] {
    width: 100%;
  }
}



/* Bilder unten um ungefähr 1/6 beschneiden */
#c18 .textmedia-gallery picture,
#c3 .textmedia-gallery picture,
#c7 .textmedia-gallery picture {
  display: block;
  width: 100%;
  overflow: hidden;
}

/* Originalformat 1180 × 1770 → 5/6 sichtbar */
#c18 .textmedia-gallery picture,
#c3 .textmedia-gallery picture {
  aspect-ratio: 4 / 5;
}

/* Originalformat 1180 × 1507 → ungefähr 1/6 entfernt */
#c7 .textmedia-gallery picture {
  aspect-ratio: 7080 / 7535;
}

#c18 .textmedia-gallery img,
#c3 .textmedia-gallery img,
#c7 .textmedia-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* ==========================================
   MOBILE – Crop-Höhe erzwingen
========================================== */

@media (max-width: 767px) {

  #c18 .textmedia-gallery picture,
  #c3 .textmedia-gallery picture {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  #c7 .textmedia-gallery picture {
    width: 100%;
    height: auto;
    aspect-ratio: 7080 / 7535;
  }

  #c18 .textmedia-gallery img,
  #c3 .textmedia-gallery img,
  #c7 .textmedia-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

}
/* ========================================================
   UNTERSEITEN
   Animation bleibt, Hero-Inhalt verschwindet
   ======================================================== */

/* Nur Text / Buttons / Bild-Inhalt ausblenden */
body:not(#pageid1) .headerimage-inner {
    display: none;
}


/* Partikel / Animation bleiben sichtbar */
body:not(#pageid1) .hero-particles {
    display: block;
}


/* Header auf Unterseiten */
body:not(#pageid1) .headerimage-outer.kopfbild {
    position: relative;
    height: 320px;
    min-height: 320px;
    overflow: hidden;
}


/* Weißer weicher Verlauf zum Inhalt */
body:not(#pageid1) .headerimage-outer.kopfbild::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 180px;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.15) 25%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0.8) 100%,
  
    );

    pointer-events: none;
    z-index: 10;
}


/* Partikel unter dem Verlauf */
body:not(#pageid1) .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}


/* Main weiter nach oben */
body:not(#pageid1) main {
    position: relative;
    z-index: 20;
    margin-top: 0px;
}


/* ========================================================
   STARTSEITE
   ======================================================== */

#pageid1 .headerimage-inner {
    display: block;
}

#pageid1 .hero-particles {
    display: block;
}

#pageid1 main {
    margin-top: 0;
}

/* ========================================================
   MOBIL – UNTERSEITEN
   Header 50 % niedriger
   ======================================================== */

@media (max-width: 768px) {

    body:not(#pageid1) .headerimage-outer.kopfbild {
        height: 160px;
        min-height: 160px;
    }

    body:not(#pageid1) .headerimage-outer.kopfbild::after {
        height: 100px;
    }

    body:not(#pageid1) main {
        margin-top: -20px;
    }

}
