/* ==========================================================================
   Metallbau Rock – Komponenten
   ========================================================================== */

.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; fill: currentColor; }

/* ---------------------------------------------------------------- Header: Topbar */
.topbar {
  --padding-top: 0px; --padding-bottom: 0px; --padding-left: 30px; --padding-right: 30px;
  background-color: var(--color-grey-bar);
  border-top: 5px solid var(--color-primary);
}
.topbar__row, .mainbar__row, .footer-bottom__row { max-width: 1216.8px; margin-left: -2%; margin-right: -2%; }
.topbar__col--phone  { --width-large: 11.82%; --spacing-left-large: 16.243654822335%; --spacing-right-large: 0%; --width-medium: 13.83%; --spacing-left-medium: 13.882863340564%; --spacing-right-medium: 0%; --width-small: 33.333333%; --spacing-left-small: 5.76%; --spacing-right-small: 0%; }
.topbar__col--mail   { --width-large: 33.333333%; --spacing-left-large: 0%; --spacing-right-large: 5.76%; --width-medium: 25%; --spacing-left-medium: 0%; --spacing-right-medium: 7.68%; --width-small: 50%; --spacing-left-small: 0%; --spacing-right-small: 3.84%; }
.topbar__col--social { --width-large: 35.19%; --spacing-left-large: 5.4560954816709%; --spacing-right-large: 5.4560954816709%; --width-medium: 34.71%; --spacing-left-medium: 5.5315471045808%; --spacing-right-medium: 0%; --width-small: 16.666667%; --spacing-left-small: 11.52%; --spacing-right-small: 0%; }
.topbar__col--legal  { --width-large: 19.17%; --spacing-left-large: 0%; --spacing-right-large: 10.015649452269%; --width-medium: 25%; --spacing-left-medium: 0%; --spacing-right-medium: 7.68%; --width-small: 100%; --spacing-left-small: 0%; --spacing-right-small: 1.92%; }
.topbar__text { margin: 14px 0; font-size: 14px; line-height: 1.8; color: var(--color-primary); text-align: left; }
.topbar__text a { color: var(--color-link); }
.topbar__col--phone .topbar__text a { color: var(--color-primary); }
.topbar__ico { width: 14px; height: 14px; margin-right: 4px; vertical-align: -1px; color: var(--color-primary); }
.social { display: flex; justify-content: flex-end; }
.social__link { display: inline-flex; color: #333; font-size: 16px; line-height: 1; transition: color .2s ease; }
.social__link .ico { width: 16px; height: 16px; }
.social__link:hover { color: rgba(158, 160, 164, .8); }

/* Rechtliches-Menü (Topbar + Footer) */
.legal-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: stretch; min-height: 64px; column-gap: 20px; }
.legal-nav__list li { display: flex; align-items: center; }
.legal-nav__list a { font-size: 16px; font-weight: 400; line-height: 1.8; color: var(--color-topbar-link); transition: color .2s ease; }
.legal-nav__list a:hover, .legal-nav__list a[aria-current="page"] { color: var(--color-primary); }

/* ---------------------------------------------------------------- Header: Hauptleiste */
.mainbar {
  --padding-top: 0px; --padding-bottom: 0px; --padding-left: 30px; --padding-right: 30px;
  --padding-top-medium: 50px; --padding-top-small: 20px; --padding-bottom-small: 20px;
  position: sticky; top: 0; z-index: 152;
  background-color: var(--color-primary);
  border-top: 1px solid var(--color-primary);
}
.mainbar__col--logo { --width-large: 25%; --spacing-left-large: 7.68%; --spacing-right-large: 7.68%; --width-medium: 100%; --spacing-left-medium: 1.92%; --spacing-right-medium: 1.92%; --width-small: 50%; --spacing-left-small: 3.84%; --spacing-right-small: 3.84%; }
.mainbar__col--nav  { --width-large: 75%; --spacing-left-large: 2.56%; --spacing-right-large: 2.56%; --width-medium: 100%; --spacing-left-medium: 1.92%; --spacing-right-medium: 1.92%; --width-small: 50%; --spacing-left-small: 3.84%; --spacing-right-small: 3.84%; }
.logo { display: block; max-width: 75%; line-height: 0; }
.logo img { width: 100%; height: auto; }

/* Hauptnavigation */
.nav { position: static; }
.nav__toggle { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; align-items: stretch; min-height: 100px; }
.nav__item { display: flex; margin: 0 15px; }
.nav__item:first-child { margin-left: 0; }
.nav__item:last-child { margin-right: 0; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 0; margin: 0; background: none; border: 0;
  border-top: 3px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1.8;
  color: #fff; transition: color .3s ease, border-color .3s ease;
}
.nav__caret { width: 10px; height: 16px; }
.nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link, .nav__item.is-active > .nav__link { color: var(--color-grey-bar); border-top-color: var(--color-grey-bar); }

/* Megamenü „Leistungen“ (Desktop) */
.mega {
  position: absolute; left: 50%; top: 100%; z-index: 200;
  width: 1100px; max-width: 100vw;
  transform: translateX(-50%);
  background: var(--color-primary-alt);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 3px 10px 0 rgba(0, 0, 0, .03);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.nav__item--mega:hover > .mega, .nav__item--mega:focus-within > .mega, .nav__item--mega.is-open > .mega { opacity: 1; visibility: visible; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.mega__item { display: flex; flex-direction: column; align-items: center; height: 220px; padding: 17px 34px 10px; }
.mega__title { display: block; width: 100%; font-size: 15.6px; line-height: 1.52; color: #fff; text-align: center; margin-bottom: 16px; }
.mega__title:hover, .mega__item.is-active .mega__title { color: var(--color-grey-bar); }
.mega__img { display: block; width: 100%; line-height: 0; }
.mega__img img { width: 100%; height: auto; aspect-ratio: 300 / 153; object-fit: cover; }

/* Megamenü und Mobilmenü beziehen sich auf die gesamte (sticky) Hauptleiste, nicht auf die Spalte */
.mainbar .r, .mainbar .col, .mainbar .col__in, .mainbar .nav { position: static; }

@media (max-width: 1024px) {
  .mega { width: calc(100vw - 40px); }
  .mega__item { height: auto; padding: 17px 17px 10px; }
}

/* Mobile Navigation (≤ 640px, wie Referenz) */
@media (max-width: 640px) {
  .nav__toggle {
    display: flex; align-items: center; justify-content: center;
    margin-left: auto; padding: 12px 20px; background: transparent; border: 0;
    color: #fff; font-size: 25px; line-height: 1;
  }
  .nav__toggle .ico { width: 25px; height: 25px; }
  .nav__toggle-close { display: none; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-open { display: none; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-close { display: inline; }
  .nav__list {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 300;
    display: none; flex-direction: column; min-height: 0;
    background: var(--color-primary-alt);
  }
  .nav.is-open .nav__list { display: flex; }
  .nav__item { flex-direction: column; margin: 0; border-bottom: 1px solid #fff; }
  .nav__link, .nav__link--parent {
    width: 100%; min-height: 55px; padding: 0 24px; border-top: 0;
    justify-content: space-between; background: var(--color-primary);
  }
  .nav__link--parent { background: var(--color-primary-alt); }
  .nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link, .nav__item.is-active > .nav__link { color: #fff; border-top-color: transparent; }
  .nav__link--parent .nav__caret { width: 12px; height: 18px; transition: transform .2s ease; }
  .nav__link--parent[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
  .mega { position: static; transform: none; width: 100%; max-width: none; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; display: none; }
  .nav__item--mega.is-open > .mega { display: block; }
  .nav__item--mega:hover > .mega, .nav__item--mega:focus-within > .mega { opacity: 1; }
  .mega__list { display: block; }
  .mega__item { height: auto; padding: 0; border-top: 1px solid #fff; display: block; }
  .mega__title { text-align: left; padding: 0 24px 0 40px; margin: 0; line-height: 55px; font-size: 16px; }
  .mega__img { display: none; }
}

/* ---------------------------------------------------------------- Hero (Slider-Nachbau) */
.hero { position: relative; overflow: hidden; container-type: inline-size; background: #c0c0c0; }
.hero__stage {
  --grid-w: 2048; --grid-h: 800;
  --s: calc(100cqw / var(--grid-w));
  position: relative; height: calc(100cqw * var(--grid-h) / var(--grid-w));
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; animation: hero-zoom 1.59s cubic-bezier(.65, 0, .35, 1) both; }
.hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.hero__layers { position: absolute; inset: 0; color: #fff; text-align: center; }
.hero__title, .hero__subtitle, .hero__btn { position: absolute; left: 50%; top: 50%; margin: 0; white-space: nowrap; }
.hero__title {
  --y: 0;
  font-size: calc(70 * var(--s)); line-height: calc(70 * var(--s)); font-weight: 800; letter-spacing: 0;
  padding: calc(10 * var(--s)) 0;
  transform: translate(-50%, calc(-50% + var(--y) * var(--s)));
  animation: hero-fade .9s ease .35s both;
}
.hero__subtitle {
  --y: 51;
  font-size: calc(20 * var(--s)); line-height: calc(30 * var(--s)); font-weight: 500; letter-spacing: calc(4 * var(--s));
  transform: translate(-50%, calc(-50% + var(--y) * var(--s)));
  clip-path: inset(0);
  animation: hero-fade .9s ease .55s both;
}
.hero__btn {
  --y: 124;
  font-size: 14px; line-height: 14px; font-weight: 500; letter-spacing: 3px; color: #fff;
  padding: calc(10 * var(--s)) calc(30 * var(--s));
  border: 1px solid rgba(255, 255, 255, .5);
  transform: translate(-50%, calc(-50% + var(--y) * var(--s)));
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  animation: hero-rise .9s ease .75s both;
}
.hero__btn:hover, .hero__btn:focus-visible { background: #fff; color: #000; border-color: #fff; }
@media (max-width: 1023px) and (min-width: 778px) {
  .hero__stage { --grid-h: 600; }
  .hero__subtitle { --y: 52; font-size: calc(13 * var(--s)); line-height: calc(20 * var(--s)); }
}
@media (max-width: 777px) {
  .hero__stage { --grid-w: 778; --grid-h: 400; }
  .hero__title { --y: -22; }
  .hero__subtitle { --y: 28; font-size: calc(13 * var(--s)); line-height: calc(20 * var(--s)); }
  .hero__btn { --y: 80; }
}
@media (max-width: 479px) {
  .hero__stage { --grid-w: 480; --grid-h: 270; }
  .hero__title { --y: -29; font-size: calc(50 * var(--s)); line-height: calc(50 * var(--s)); }
  .hero__subtitle { --y: 13; }
  .hero__btn { --y: 65; }
}
@keyframes hero-zoom { from { transform: scale(1.6); } to { transform: scale(1); } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-rise { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }

/* ---------------------------------------------------------------- Titel */
.t {
  --margin-top: initial; --margin-right: initial; --margin-bottom: initial; --margin-left: initial;
  --margin-top-small: initial; --margin-right-small: initial; --margin-bottom-small: initial; --margin-left-small: initial;
  --text-color: initial; --fs: 16;
  margin: var(--margin-top, 0px) var(--margin-right, 0px) var(--margin-bottom, 20px) var(--margin-left, 0px);
  text-align: left;
}
.t--one { --fs: 34; } .t--two { --fs: 24; } .t--three { --fs: 22; } .t--four { --fs: 18; } .t--five { --fs: 16; } .t--six { --fs: 12; }
.t--center, .t__h--center { text-align: center; }
.t__h--right { text-align: right; }
.t__h {
  margin: 0; padding: 0;
  font-size: calc(14.4px + (var(--fs) - 14.4) * var(--rt-span));
  color: var(--text-color, var(--color-heading));
}
@media (max-width: 640px) {
  .t {
    margin: var(--margin-top-small, 0px) var(--margin-right-small, 0px) var(--margin-bottom-small, 20px) var(--margin-left-small, 0px);
  }
}
h4.t__h { font-weight: 500; }
h5.t__h { letter-spacing: 1px; }

/* ---------------------------------------------------------------- Text */
.tx {
  --content-alignment: initial; --font-size: initial; --line-height: initial; --text-color: initial;
  --margin-top: initial; --margin-bottom: initial;
  font-size: var(--font-size, inherit);
  line-height: var(--line-height, inherit);
  color: var(--text-color, inherit);
  text-align: var(--content-alignment, inherit);
  margin-top: var(--margin-top, 0px);
  margin-bottom: var(--margin-bottom, 0px);
}
.tx > p:first-child { margin-top: 0; }
.tx--nm > p:last-child { margin-bottom: 0; }
.tx h3 { --fs: 22; font-size: calc(14.4px + (var(--fs) - 14.4) * var(--rt-span)); }
.tx img.align-left { float: left; margin: 0 20px 10px 0; }
.tx img.align-right { float: right; margin: 0 0 10px 20px; }

/* ---------------------------------------------------------------- Trenner */
.sep { --amount: initial; display: flex; align-self: center; width: 100%; }
.sep__line { width: 100%; height: 0; border-top: 0 solid var(--color-sep); }
.sep__line--single { border-top-width: 1px; }
.sep--full .sep__line { border-top-width: 0; }

/* Abschnittstrenner (Halbkreis / Dreieck) – SVG volle Viewport-Breite */
.secsep { --divider-height: initial; --spacer-height: initial; position: relative; width: 100%; }
.secsep__svg { position: absolute; top: 0; left: 50%; display: block; width: 100vw; height: var(--divider-height, 99px); transform: translateX(-50%); }
.secsep__spacer { height: var(--spacer-height, var(--divider-height, 99px)); }
.secsep--triangle { --margin-top: initial; --margin-bottom: initial; --border-bottom: initial; --arrow-color: initial; height: 1px; margin: var(--margin-top, 0px) 0 var(--margin-bottom, 0px); }
.secsep__line { position: absolute; top: 0; left: 50%; width: 100vw; transform: translateX(-50%); border-bottom: var(--border-bottom, 1px solid var(--color-primary)); }
.secsep__arrow { position: absolute; top: 1px; left: 50%; width: 0; height: 0; margin-left: -29px; border-style: solid; border-width: 29px 29px 0; border-color: var(--arrow-color, var(--color-primary)) transparent transparent; }

/* ---------------------------------------------------------------- Bilder */
.img { display: block; max-width: 100%; overflow: hidden; line-height: 0; }
.img img { width: 100%; height: auto; }
.img--zoom img { transition: transform .3s ease-in-out; }
.img--zoom:hover img { transform: scale(1.1); }
.imgel { --max-width: initial; width: 100%; max-width: var(--max-width, 100%); margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-gradient-top-color: var(--color-accent); --btn-gradient-bottom-color: var(--color-accent);
  --btn-gradient-top-color-hover: #333333; --btn-gradient-bottom-color-hover: #333333;
  --btn-accent-color: #333333; --btn-accent-hover-color: #ffffff;
  --btn-border-color: #333333; --btn-border-hover-color: #ffffff; --btn-bevel: #333333;
  position: relative; display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  padding: 13px 29px; border: 0; border-radius: 0;
  font-family: var(--font-button); font-size: 14px; font-weight: 400; line-height: 17px; letter-spacing: 2px; text-transform: uppercase; text-align: center;
  background: linear-gradient(180deg, var(--btn-gradient-top-color) 0%, var(--btn-gradient-bottom-color) 100%);
  color: var(--btn-accent-color);
  cursor: pointer; text-decoration: none;
  transition: all .2s ease;
}
.btn span { color: inherit; }
.btn:hover, .btn:focus-visible {
  background: linear-gradient(180deg, var(--btn-gradient-top-color-hover) 0%, var(--btn-gradient-bottom-color-hover) 100%);
  color: var(--btn-accent-hover-color);
}
.btn--small { padding: 9px 20px; line-height: 14px; font-size: 12px; }
.btn--xlarge { padding: 17px 40px; line-height: 21px; font-size: 18px; }
@media (max-width: 1024px) { .btn--xlarge { padding: 13px 29px; } }
.btn--block { display: flex; width: 100%; }
.btn--3d { box-shadow: inset 0 1px 0 #fff, 0 .15em 0 var(--btn-bevel), .1em .2em .2em .15em rgba(0, 0, 0, .3); }
.btn--3d:active { transform: translateY(calc(.15em - 1px)); box-shadow: inset 0 1px 0 #fff, 0 1px 0 var(--btn-bevel), .05em .1em .1em .07em rgba(0, 0, 0, .3); }
.btn--flat { box-shadow: none; }
.btn--darkgray { background: linear-gradient(to top, #9e9e9e, silver); border: 1px solid #434c50; color: #434c50; --btn-bevel: #434c50; }
.btn--darkgray:hover, .btn--darkgray:focus-visible { background: linear-gradient(to top, silver, #9e9e9e); color: #434c50; }
.btn--primary { --btn-gradient-top-color: var(--color-primary); --btn-gradient-bottom-color: var(--color-primary); --btn-accent-color: #fff; --btn-accent-hover-color: #fff; }
.col__in > .btn { align-self: center; }
.col__in--row > .btn { align-self: center; }

/* ---------------------------------------------------------------- Flip-Boxen (Startseite) */
.flips { display: flex; flex-wrap: wrap; align-items: stretch; margin: 0 -15px 25px; }
.flip { position: relative; width: 25%; padding: 0 15px; margin-bottom: 15px; perspective: 1000px; outline-offset: -2px; }
.flip__inner { position: relative; height: 100%; }
.flip__face {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 27px 20px; text-align: center;
  background: var(--color-light); border: 1px solid rgba(255, 255, 255, 0); border-radius: 10px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .4s var(--ease-flip);
}
.flip__front { position: relative; z-index: 2; height: 100%; color: var(--color-text); transform: rotateY(0); }
.flip__back { position: absolute; inset: 0; z-index: 1; color: #555; transform: rotateY(-180deg); }
.flip:hover .flip__front, .flip:focus-within .flip__front, .flip.is-flipped .flip__front { transform: rotateY(180deg); }
.flip:hover .flip__back, .flip:focus-within .flip__back, .flip.is-flipped .flip__back { transform: rotateY(0); z-index: 3; }
.flip__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 10px; border: 1px solid var(--color-primary); border-radius: 50%; background: var(--color-primary); color: #fff; }
.flip__icon .ico { width: 24px; height: 24px; }
.flip__title { --fs: 24; margin: 0 0 9px; font-size: calc(14.4px + (var(--fs) - 14.4) * var(--rt-span)); }
.flip__text { font-size: 16px; line-height: 1.8; }
.flip__back-title { --fs: 22; margin: 0 0 9px; font-size: calc(14.4px + (var(--fs) - 14.4) * var(--rt-span)); }
.flip__back .btn { margin: 20px auto 0; align-self: center; }
@media (max-width: 800px) { .flip { width: 100%; } }
/* Avada: Hochformat-Tablets (768–1024 px) zeigen 2 Spalten */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) { .flip { width: 50%; } }


/* ---------------------------------------------------------------- Tabs (Hauseingangstüren, Avada „vertical tabs / classic“) */
.tabs {
  --background-color: #ffffff; --inactive-color: #f5f5f5; --border-color: #f5f5f5; --active-border-color: var(--color-primary); --border-size: 1px;
  display: flex; align-items: flex-start; margin-bottom: 20px;
}
.tabs__nav { display: flex; flex-direction: column; flex: 0 0 205px; width: 205px; border: var(--border-size) solid var(--border-color); border-right: 0; background: var(--background-color); }
.tabs__tab {
  position: relative; display: flex; align-items: center; width: 100%;
  padding: 10px 35px 10px 32px; margin: 0 0 1px; border: 0; border-left: 3px solid transparent;
  background: var(--inactive-color); text-align: left;
  --fs: 18; font-family: var(--font-heading); font-size: calc(14.4px + (var(--fs) - 14.4) * var(--rt-span)); font-weight: 500; line-height: 1.52; color: var(--color-heading);
  transition: background-color .3s ease, border-color .3s ease;
}
.tabs__tab:last-child { margin-bottom: 0; }
.tabs__tab:hover, .tabs__tab[aria-selected="true"] { background: var(--background-color); border-left-color: var(--active-border-color); }
.tabs__panes { flex: 1; min-width: 0; border: var(--border-size) solid var(--border-color); background: var(--background-color); }
.tabs__pane { padding: 30px; }
.tabs__pane::after { content: ""; display: block; clear: both; }
.tabs__pane img { width: 150px; height: auto; }
.tabs__pane img.align-left { float: left; margin: 0 20px 10px 0; }
.tabs__pane p:last-child { margin-bottom: 0; }
.tabs__mtab { display: none; }
@media (max-width: 1024px) {
  .tabs__nav { flex-basis: 163px; width: 163px; }
  .tabs__tab { padding: 14px 15px 14px 12px; }
}
@media (max-width: 640px) {
  .tabs { display: block; }
  .tabs__nav { display: none; }
  .tabs__panes { border: 0; background: none; }
  .tabs__mtab {
    display: flex; align-items: center; width: 100%; padding: 10px 35px 10px 32px; margin-top: 1px; border: 0; border-left: 3px solid transparent;
    background: var(--inactive-color); text-align: left;
    font-family: var(--font-heading); font-size: 15px; font-weight: 500; line-height: 1.52; color: var(--color-heading);
  }
  .tabs__mtab[aria-expanded="true"] { background: var(--background-color); border-left-color: var(--active-border-color); }
  .tabs__pane { background: var(--background-color); }
}

/* ---------------------------------------------------------------- Content-Boxen / Chronik (Über uns) */
.cboxes { --title-color: var(--color-primary); --item-margin-bottom: 40px; position: relative; display: flex; flex-direction: column; }
.cbox { --content-padding-left: initial; position: relative; display: flow-root; margin-bottom: var(--item-margin-bottom); }
.cbox::before {
  content: ""; position: absolute; left: 30px; top: 34px; width: 0; height: calc(100% + var(--item-margin-bottom));
  border-left: 1px solid #000; z-index: 0;
}
.cbox:last-child::before { display: none; }
.cbox__title {
  --fs: 22;
  position: relative; display: flex; align-items: center; min-height: 60px; margin: 4px 0 -1px;
  font-size: calc(14.4px + (var(--fs) - 14.4) * var(--rt-span)); line-height: normal; color: var(--title-color);
}
.cbox__title::before {
  content: ""; flex: 0 0 auto; width: 52px; height: 52px; margin-right: 24px;
  border: 4px solid #000; border-radius: 50%; box-sizing: content-box;
  background: var(--color-primary) url("../icons/home-white.svg") center / 26px 26px no-repeat;
  position: relative; z-index: 1;
}
.cbox__body { padding-left: var(--content-padding-left, 0px); margin-bottom: 20px; }
.cbox__body > p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .cbox { margin-bottom: 0; }
  .cbox::before { height: calc(100% + 1px); }
  .cbox__title { margin-top: 1px; }
}
@media (max-width: 799px) { .cbox__title { margin-bottom: -4px; } }

/* ---------------------------------------------------------------- Checkliste (Footer, Kontakt) */
.check {
  --size: 14px; --iconcolor: #333333; --line-height: 23.8px; --icon-width: 23.8px; --icon-height: 23.8px; --icon-margin: 9.8px; --content-margin: 33.6px;
  list-style: none; margin: 0 0 20px; padding: 0;
  font-size: var(--size); line-height: var(--line-height);
}
.check__item { position: relative; display: flex; align-items: flex-start; padding: .35em 0; }
.check__icon { position: absolute; left: 0; top: .35em; display: flex; align-items: center; justify-content: center; width: var(--icon-width); height: var(--icon-height); color: var(--iconcolor); }
.check__icon .ico { width: var(--size); height: var(--size); }
.check__content { margin-left: var(--content-margin); }
.check__content p { margin: 0; }

/* ---------------------------------------------------------------- Kontaktformular */
.cf { --form-bg: #f4f4f4; --form-border: #aaaaaa; --form-focus: #88af7b; padding: 0 30px; }
.cf__row { display: flex; flex-wrap: wrap; width: 104%; margin: 0 -2%; }
.cf__col { width: 100%; padding: 0 1.92%; }
/* Avada: Spaltenabstand 5,76 % der Spaltenbreite (= 1,92 % der Zeilenbreite bei 1/3-Spalten) */
.cf__col--third { width: 33.333333%; padding: 0 1.92%; }
.cf__field { margin: 16px 0; }
.cf__input {
  display: block; width: 100%; height: 50px; padding: 0 13px;
  background: var(--form-bg); border: 1px solid var(--form-border); border-radius: 0;
  font-size: 13px; font-weight: 400; color: #000; line-height: normal;
  transition: border-color .2s ease;
}
.cf__textarea { height: auto; min-height: 88px; padding: 13px; resize: vertical; }
.cf__input::placeholder { color: rgba(0, 0, 0, .5); opacity: 1; }
.cf__input:focus { outline: 0; border-color: var(--form-focus); }
.cf__input:focus-visible { outline: 2px solid var(--form-focus); outline-offset: 0; }
.cf__input[aria-invalid="true"] { border-color: #c0392b; }
.cf__field--check { position: relative; margin: 16px 0 24px; }
.cf__checkbox { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0; accent-color: #65bc7b; }
.cf__check-label { display: block; padding-left: 21.44px; font-size: 16px; line-height: 1.8; color: var(--color-text); }
.cf__check-label a { color: inherit; text-decoration: underline; }
.cf__error { width: 100%; margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #c0392b; font-weight: 600; }
.cf__field--check .cf__error { padding-left: 21.44px; }
.cf__alert { position: relative; margin: 20px 0 0; padding: 20px 50px 20px 20px; border: 1px solid; text-align: center; font-size: 16px; line-height: 1.5; }
.cf__alert--success { background: rgba(101, 188, 123, .1); border-color: #65bc7b; color: #2f6b3e; }
.cf__alert--error { background: rgba(219, 75, 104, .1); border-color: #db4b68; color: #9a2038; }
.cf__alert-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 22px; line-height: 1; color: inherit; }
.cf__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf .btn--block { width: 100%; }
.cf.is-sending .btn { opacity: .7; pointer-events: none; }
@media (max-width: 1024px) {
  .cf__col--third { width: 100%; }
}

/* ---------------------------------------------------------------- Google-Maps-Platzhalter (Optik wie Referenz) */
.map-blocker { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 330px; overflow: hidden; border-radius: 4px; font-size: 14px; line-height: 1.25; color: var(--color-consent-text); }
.map-blocker__thumb { position: absolute; inset: 0; background: #e5e3df url("../images/maps-placeholder.jpg") center / cover no-repeat; }
.map-blocker__main { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin: auto 0; padding: 16px; background: rgba(250, 250, 250, .85); }
.map-blocker__content { flex: 1; text-align: center; }
.map-blocker__text { margin: 0 0 16px; }
.map-blocker__more { background: none; border: 0; padding: 0; color: var(--color-consent); font-size: 14px; }
.map-blocker__more:hover { text-decoration: underline; }
.map-blocker__info { margin-top: 10px; font-size: 12.5px; text-align: left; }
.map-blocker__info a { color: var(--color-consent); text-decoration: underline; }
.map-blocker__buttons { display: flex; flex-direction: column; gap: 16px; flex: 0 0 auto; width: 239px; }
.map-blocker__btn { padding: 12px 20px; border: 0; border-radius: 4px; background: var(--color-mapbtn); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; transition: background-color .2s ease; }
.map-blocker__btn:hover { background: #1a66ff; }
.map-blocker__noscript { position: relative; z-index: 1; text-align: center; }
.map-frame { display: block; width: 100%; height: 330px; border: 0; }
@media (max-width: 640px) {
  .map-blocker__main { flex-direction: column; }
  .map-blocker__buttons { width: 100%; }
}

/* Cookie-Einstellungen-Button im Footer */
.consent-open-btn { align-self: flex-start; padding: 12px 20px; border: 0; border-radius: 0; background: var(--color-consent); color: #fff; font-size: 14px; font-weight: 600; line-height: 21px; transition: background-color .2s ease; }
.consent-open-btn:hover { background: #1d4ed8; }

/* ---------------------------------------------------------------- Footer */
.footer-main .t__h { font-weight: 500; }
.footer-main .sep { margin: 10px auto; }
.footer-main .map-blocker { min-height: 372px; }
.footer-bottom { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 40px; --padding-right: 40px; background: #000; }
.footer-bottom__col { --width-large: 50%; --spacing-left-large: 3.84%; --spacing-right-large: 3.84%; --width-medium: 100%; --spacing-left-medium: 1.92%; --spacing-right-medium: 1.92%; --width-small: 100%; --spacing-left-small: 1.92%; --spacing-right-small: 1.92%; }
.footer-bottom__credit { margin: 16px 0; }
.footer-bottom__credit a:hover span { opacity: .85; }
.footer-bottom__col--nav .col__in { flex-direction: row; justify-content: flex-end; }
.legal-nav--footer .legal-nav__list a, .legal-nav--footer .legal-nav__list a[aria-current="page"] { color: #fff; }
.legal-nav--footer .legal-nav__list a:hover { color: var(--color-grey-bar); }

/* Nach-oben-Button (Avada „to top“) */
.to-top {
  position: fixed; right: 75px; bottom: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; width: 48px; height: 35px;
  border-radius: 4px 4px 0 0; background: #333; color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease, background-color .2s ease;
}
.to-top .ico { width: 16px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--color-primary); color: #fff; }
@media (max-width: 640px) { .to-top { display: none; } }

/* ---------------------------------------------------------------- Rechtstexte (Impressum, Datenschutz, 404) */
.main--padded { padding: 80px 0; }
.legal { --padding-top: 0px; --padding-bottom: 0px; }
.legal h1 { --fs: 34; } .legal h2 { --fs: 24; } .legal h3 { --fs: 22; } .legal h4 { --fs: 18; }
.legal h1, .legal h2, .legal h3, .legal h4 { font-size: calc(14.4px + (var(--fs) - 14.4) * var(--rt-span)); }
.legal .todo { padding: 0 4px; background: #fff3b0; color: #5c4a00; font-weight: 600; }
.consent-open-btn--inline { display: inline-block; margin-top: 8px; }
.legal__col { --width-large: 100%; --spacing-left-large: 0%; --spacing-right-large: 0%; }
.legal h2 { margin-top: 0; }
.legal ul { margin: 0 0 20px; padding-left: 1.2em; }
.legal a { text-decoration: underline; }
.legal .review-note { padding: 12px 16px; margin: 0 0 24px; border-left: 4px solid var(--color-accent); background: #fffbea; color: #5c4a00; font-size: 14px; line-height: 1.6; }

/* ---------------------------------------------------------------- Consent-Banner */
.consent { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 99999; font-family: var(--font-body); color: var(--color-consent-text); }
.consent__box {
  position: relative; max-height: calc(100vh - 16px); overflow: auto;
  padding: 24px 24px 24px 28px; background: #fff; border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .06);
  font-size: 12.25px; line-height: 1.45;
}
.consent__view--start { display: grid; grid-template-columns: 48px minmax(0, 1fr) 326px; gap: 24px; align-items: center; }
.consent__logo { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-consent); color: #fff; }
.consent__logo .ico { width: 20px; height: 20px; }
.consent__title { margin: 0 0 8px; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--color-consent-text); }
.consent__text p, .consent__intro { margin: 0 0 8px; }
.consent__small { padding-top: 8px; border-top: 1px solid #e5e5e5; }
.consent__text a, .consent__legal a, .consent__link, .consent__details a { color: var(--color-consent); text-decoration: underline; }
.consent__link { padding: 0; border: 0; background: none; font-size: inherit; }
.consent__actions { display: flex; flex-direction: column; gap: 8px; }
.consent__btn {
  width: 100%; min-height: 45px; padding: 12px 20px; border: 0; border-radius: 4px;
  background: var(--color-consent); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center;
  transition: background-color .2s ease;
}
.consent__btn:hover { background: #1d4ed8; }
.consent__btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.consent__close { position: absolute; right: 8px; top: 8px; display: flex; padding: 6px; border: 0; background: none; color: var(--color-consent); }
.consent__close .ico { width: 14px; height: 14px; }
.consent__view--prefs { max-width: 900px; margin: 0 auto; }
.consent__groups { margin: 16px 0; padding: 0; border: 0; display: grid; gap: 12px; }
.consent__group { padding: 14px 16px; border: 1px solid #e5e5e5; border-radius: 4px; }
.consent__group p { margin: 6px 0; }
.consent__switch { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #333; cursor: pointer; }
.consent__switch input { width: 18px; height: 18px; accent-color: var(--color-consent); }
.consent__details summary { cursor: pointer; color: var(--color-consent); }
.consent__details dt { margin-top: 8px; font-weight: 700; }
.consent__details dd { margin: 2px 0 0; }
.consent__actions--prefs { flex-direction: row; flex-wrap: wrap; }
.consent__actions--prefs .consent__btn { flex: 1 1 200px; width: auto; }
.consent__legal { margin: 12px 0 0; text-align: center; }
@media (max-width: 1024px) {
  .consent__view--start { grid-template-columns: 40px minmax(0, 1fr); }
  .consent__actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .consent__box { padding: 20px 16px; }
  .consent__view--start { grid-template-columns: 1fr; gap: 12px; }
  .consent__logo { display: none; }
}

/* Schwebender Button zum erneuten Öffnen der Einstellungen (Referenz: Borlabs-Widget unten links) */
.consent-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 9000;
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border: 3px solid #fff; border-radius: 50%; background: #777; color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .3); transition: background-color .2s ease;
}
.consent-fab .ico { width: 22px; height: 22px; }
.consent-fab:hover { background: var(--color-primary); }

/* ---------------------------------------------------------------- Einblend-Animationen (Avada „fusion-animated“) */
.js [data-anim] { opacity: 0; }
.js [data-anim].is-animated { animation-duration: var(--anim-dur, .6s); animation-fill-mode: both; animation-timing-function: ease; }
.js [data-anim="fadeIn"].is-animated { animation-name: fx-fade; }
.js [data-anim="slideInLeft"].is-animated { animation-name: fx-left; }
.js [data-anim="slideInRight"].is-animated { animation-name: fx-right; }
.js [data-anim="slideInUp"].is-animated, .js [data-anim="fadeInUp"].is-animated { animation-name: fx-up; }
.js [data-anim="slideInDown"].is-animated { animation-name: fx-down; }
.js [data-anim="zoomIn"].is-animated { animation-name: fx-zoom; }
.js [data-anim].is-animated:not([data-anim="fadeIn"]):not([data-anim="slideInLeft"]):not([data-anim="slideInRight"]):not([data-anim="slideInUp"]):not([data-anim="fadeInUp"]):not([data-anim="slideInDown"]):not([data-anim="zoomIn"]) { animation-name: fx-fade; }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-left { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fx-right { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fx-up { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fx-down { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fx-zoom { from { opacity: 0; transform: scale3d(.3, .3, .3); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1; }
  .hero__bg, .hero__title, .hero__subtitle, .hero__btn { animation: none; }
}

/* Parallax-Container („parallax up“): Bild + Farb-Overlay auf eigenem Layer, Verschiebung per JS über --parallax-y */
.c.c--parallax { --parallax-ext: 20%; background-image: none; background-color: transparent; isolation: isolate; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .c.c--parallax { --parallax-ext: 0px; } }
.c--parallax::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--parallax-ext)); bottom: calc(-1 * var(--parallax-ext)); /* % bezieht sich auf die Containerhöhe */ z-index: -1;
  background-color: var(--background-color, transparent);
  background-image: var(--background-image, none);
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  background-blend-mode: var(--background-blend-mode, normal);
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
@media (max-width: 1024px) { .c--parallax::before { background-image: var(--background-image-medium, var(--background-image, none)); } }
@media print {
  .site-header .mainbar { position: static; }
  .consent, .consent-fab, .to-top, .nav__toggle { display: none !important; }
}
