/* own.css — generated by scripts/build_own_css.py. Do not edit; edit the sources:
   animations.css, site-custom.css, menu.css, map.css, gallery.css */

/* ---- animations.css ---- */
/* animations.css — Keyframes der CSS-gesteuerten Reveals (zoomIn, bounceInUp, bounceInLeft).
   Stammen aus Elementors lib/animations; die Elementor-Runtime hat sie zur Laufzeit nachgeladen.
   Ausgelöst werden sie von animations.js (ScrollTrigger setzt die Klassen). */
@keyframes zoomIn{from{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{animation-name:zoomIn}
@keyframes bounceInUp{60%,75%,90%,from,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}from{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translate3d(0,0,0)}}.bounceInUp{animation-name:bounceInUp}
@keyframes bounceInLeft{60%,75%,90%,from,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}.bounceInLeft{animation-name:bounceInLeft}

/* ---- site-custom.css ---- */
/* site-custom.css — Handgeschriebene Overrides. Steht im suffix-Bundle
   (site-b.css) und damit NACH allen Elementor-Regeln. */

/* Scroll-Reveals (GSAP): Elemente mit _animation initial ausblenden.
   Die .gsap-Klasse setzt ein Inline-Script im <head>; ohne JS bleibt
   alles sichtbar (progressive enhancement). */
.gsap [data-settings*='"_animation"'],
.gsap [data-settings*='"animation"'] {
    opacity: 0;
}

/* 404-Seite */
.gb-404 .elementor-heading-title {
    font-size: 2.2em;
}

/* Fullscreen-Mobilmenü: Elementor-Dropdown auf Mobil ausblenden
   (ersetzt durch #fullscreen-menu, siehe menu.css/menu.js) */
@media (max-width: 1024px) {
    .elementor-nav-menu--dropdown {
        display: none !important;
    }
}

/* Scroll-Sperre bei offenem Vollbild-Menü */
html.fs-menu-lock,
html.fs-menu-lock body {
    overflow: hidden;
}

/* Text-Widgets, die im Original reinen Text ohne <p> enthielten: ParsedownExtra
   setzt sie in <p>, dessen Kit-Rand (14,4px) die Seite sonst nach unten schiebt.
   Markierung per scripts/mark_bare_text_widgets.py. */
.elementor-widget-container[data-bare] > p {
    margin: 0;
}

/* Galerie: Elementors Masonry hat keinen Restabstand unter der letzten Reihe. */
.gb-gallery {
    margin-bottom: -10px;
}

/* Rechtstext-Titel: das zusammengeschriebene Wort "Barrierefreiheitserklärung" darf auf
   schmalen Displays umbrechen (sonst scrollt die Seite seitwärts). */
.page-header .entry-title {
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Nichts darf die Seite seitwärts scrollen lassen (zwei Seiten hatten das schon im
   Original: Fassadenisolierungen mobil, Über uns Tablet). clip erzeugt keinen
   Scroll-Container, Sticky/Fixed bleiben unberührt. */
#content {
    overflow-x: clip;
}

/* Über uns: Spalte der fünften Team-Reihe (geklont) — gleiche Tablet-Breite wie die übrigen Team-Spalten. */
@media (max-width: 1024px) and (min-width: 768px) {
    .elementor-219 .elementor-element.elementor-element-d8e1f47 {
        width: 50%;
    }
}

/* ---- menu.css ---- */
/* menu.css — Fullscreen-Mobilmenü (Graumann Bedachungen)
 *
 * Modernes Vollbild-Menü auf Mobil (< 1025px). Helle Fläche, große dunkle
 * Menüpunkte (Mulish), beim Hover rote Unterlegung (#E71D27) mit weißer
 * Schrift — animiert (Füllung von links). Dachdecker-Signet unten links.
 *
 * Desktop (> 1024px) bleibt unberührt (normales Elementor-Menü).
 */

/* ------------------------------------------------------------------ */
/* Overlay                                                            */
/* ------------------------------------------------------------------ */
.fs-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: calc(72px + env(safe-area-inset-top)) 28px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow: hidden;
}

.fs-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ------------------------------------------------------------------ */
/* Schließen-Button                                                   */
/* ------------------------------------------------------------------ */
/* Eigener Button im Overlay: der Elementor-Hamburger liegt hinter dem
   Menü (z-index 10000) und ist bei offenem Menü nicht anklickbar. Ohne
   diesen Button käme man auf Touchgeräten nur per Menülink oder Reload
   wieder heraus — ESC gibt es dort nicht. */
/* Spezifität: `.elementor-kit-29 button` (0,1,1) setzt Hintergrund, Farbe und
   border-radius des Kits. Deshalb hier durchgehend `.fs-menu button.fs-menu__close`
   (0,2,1) — sonst gewinnt das Kit und der Button wird ein rot gefülltes Rechteck. */
.fs-menu button.fs-menu__close {
    position: absolute;
    top: calc(18px + env(safe-area-inset-top));
    right: 22px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #e71d27;
    border-radius: 50%;
    background-color: transparent;
    color: #e71d27;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.25s ease, color 0.25s ease;
}

.fs-menu.is-open button.fs-menu__close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.12s;
}

.fs-menu button.fs-menu__close:hover,
.fs-menu button.fs-menu__close:focus-visible {
    background-color: #e71d27;
    color: #ffffff;
}

.fs-menu button.fs-menu__close:focus-visible {
    outline: 2px solid #27282a;
    outline-offset: 3px;
}

.fs-menu.is-open button.fs-menu__close:active {
    transform: scale(0.92);
}

/* Das SVG darf keine Klicks abfangen — sonst zielt elementFromPoint auf das
   Icon statt auf den Button (Klick funktioniert zwar per Bubbling, aber
   Treffertests und manche Touch-Handler laufen darüber). */
.fs-menu button.fs-menu__close svg {
    pointer-events: none;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .fs-menu button.fs-menu__close {
        transition: none;
    }
}

/* ------------------------------------------------------------------ */
/* Menüpunkte                                                         */
/* ------------------------------------------------------------------ */
.fs-menu__nav {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.fs-menu__list {
    list-style: none;
    margin: auto 0;
    padding: 0;
}

.fs-menu__item {
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* gestaffeltes Einblenden beim Öffnen */
.fs-menu.is-open .fs-menu__item {
    opacity: 1;
    transform: translateY(0);
}
.fs-menu.is-open .fs-menu__item:nth-child(1) { transition-delay: 0.05s; }
.fs-menu.is-open .fs-menu__item:nth-child(2) { transition-delay: 0.10s; }
.fs-menu.is-open .fs-menu__item:nth-child(3) { transition-delay: 0.15s; }
.fs-menu.is-open .fs-menu__item:nth-child(4) { transition-delay: 0.20s; }
.fs-menu.is-open .fs-menu__item:nth-child(5) { transition-delay: 0.25s; }

/* Haupt-Link: großer dunkler Text, rote Füllung beim Hover */
#fullscreen-menu .fs-menu__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #27282A;
    font-family: 'Mulish', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 8.2vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    padding: 9px 18px;
    margin: 2px -18px;
    border-radius: 2px;
}

#fullscreen-menu .fs-menu__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #E71D27;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 2px;
    z-index: 0;
}

#fullscreen-menu .fs-menu__label {
    position: relative;
    z-index: 1;
    transition: color 0.22s ease;
}

#fullscreen-menu .fs-menu__link:hover,
#fullscreen-menu .fs-menu__link:focus-visible {
    color: #ffffff;
}

#fullscreen-menu .fs-menu__link:hover::before,
#fullscreen-menu .fs-menu__link:focus-visible::before {
    transform: scaleX(1);
}

/* Untermenü (kleiner, eingerückt) */
.fs-menu__sub {
    list-style: none;
    margin: 2px 0 10px;
    padding: 0 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#fullscreen-menu .fs-menu__sub a {
    display: inline-block;
    text-decoration: none;
    color: #27282A;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.4;
    padding: 4px 10px;
    border-radius: 2px;
    transition: color 0.2s ease;
}

#fullscreen-menu .fs-menu__sub a:hover,
#fullscreen-menu .fs-menu__sub a:focus-visible {
    color: #E71D27;
}

/* ------------------------------------------------------------------ */
/* Signet unten links                                                 */
/* ------------------------------------------------------------------ */
.fs-menu__footer {
    flex: 0 0 auto;
    padding-top: 16px;
    border-top: 1px solid #DCDCDE;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease 0.3s, transform 0.45s ease 0.3s;
}

.fs-menu.is-open .fs-menu__footer {
    opacity: 1;
    transform: translateY(0);
}

.fs-menu__signet {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.fs-menu__signet img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}

#fullscreen-menu .fs-menu__brand {
    color: #27282A;
    font-family: 'Mulish', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------ */
/* Hover-/Aktiv-Zustand nur auf Geräten mit Hover                    */
/* ------------------------------------------------------------------ */
@media (hover: none) {
    #fullscreen-menu .fs-menu__link:hover { color: #27282A; }
    #fullscreen-menu .fs-menu__link:hover::before { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .fs-menu,
    .fs-menu__item,
    .fs-menu__footer,
    .fs-menu__link::before,
    .fs-menu__label {
        transition: none !important;
    }
}

/* Nur Mobil/Tablet anzeigen */
@media (min-width: 1025px) {
    .fs-menu {
        display: none;
    }
}

/* Barrierefreiheit-Widget (a11y-widget.js) im offenen Vollbild-Menü ausblenden. */
html.fs-menu-lock #a11yw-root {
    display: none !important;
}

/* ---- map.css ---- */
/* map.css — selbst gehostete Standortkarte (Anthrazit/Rot) auf der Kontaktseite.
   Ersetzt die Google-Maps-Einbindung; keine externe Verbindung. */

.gb-map {
    display: block;
    width: 100%;
    height: 450px;
    background: #16181a;
}

/* Sonar-Ringe: weiten sich aus und verblassen */
.gb-map__sonar {
    fill: none;
    stroke: #E71D27;
    stroke-width: 2.5;
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
    animation: gb-sonar 3.2s ease-out infinite;
}

.gb-map__sonar--2 {
    animation-delay: 1.07s;
}

.gb-map__sonar--3 {
    animation-delay: 2.13s;
}

@keyframes gb-sonar {
    0%   { transform: scale(0.35); opacity: 0.9; }
    70%  { opacity: 0.25; }
    100% { transform: scale(3.4); opacity: 0; }
}

/* Markierung: roter Kreis mit weißem Dachdecker-Signet */
.gb-map__pin {
    fill: #E71D27;
    stroke: #ffffff;
    stroke-width: 3;
}

.gb-map__icon {
    pointer-events: none;
}

/* OSM/CARTO-Attribution (Lizenzpflicht) */
.gb-map__attr {
    fill: rgba(255, 255, 255, 0.55);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
}

@media (max-width: 767px) {
    .gb-map {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gb-map__sonar {
        animation: none;
    }
}

/* ---- gallery.css ---- */
/* gallery.css — native Masonry-Galerien (ersetzt die defekte Elementor-e-gallery).
   CSS-columns-Masonry, 10px Abstand, 15px Radius. Lightbox siehe gallery.js. */

.gb-gallery {
    column-count: 4;
    column-gap: 10px;
    width: 100%;
}

.gb-gallery__item {
    display: block;
    margin: 0 0 10px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    border-radius: 15px;
    overflow: hidden;
    line-height: 0;
}

.gb-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gb-gallery__item:hover img {
    transform: scale(1.03);
}

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */
.gb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 11, 12, 0.92);
    padding: 24px;
    cursor: zoom-out;
}

.gb-lightbox.is-open {
    display: flex;
}

.gb-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gb-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
}

.gb-lightbox__close:hover {
    background: #E71D27;
}

@media (max-width: 1024px) {
    .gb-gallery {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .gb-gallery {
        column-count: 1;
    }
}

/* Masonry-Modus (gallery.js): absolut positioniert, Höhe setzt das Skript. */
.gb-gallery.is-masonry {
    position: relative;
    margin-bottom: 0;
}

.gb-gallery.is-masonry .gb-gallery__item {
    position: absolute;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .gb-gallery__item img {
        transition: none;
    }
}

/* ------------------------------------------------------------------ */
/* Video-Lightbox (site.js, "Über uns"): Overlay wie im Original —     */
/* schwarz 80 %, Video 85 % der Breite, Schließen-Kreuz oben rechts.   */
/* ------------------------------------------------------------------ */
.gb-vlightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.gb-vlightbox video {
    width: min(85vw, calc(85vh * 16 / 9));
    aspect-ratio: 16 / 9;
    max-height: 85vh;
    background: #000;
}

.gb-vlightbox button.gb-vlightbox__close {
    position: absolute;
    top: 8px;
    right: 15px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: 400 32px/40px Helvetica, Arial, sans-serif;
    cursor: pointer;
    opacity: 0.8;
}

.gb-vlightbox button.gb-vlightbox__close:hover,
.gb-vlightbox button.gb-vlightbox__close:focus-visible {
    opacity: 1;
    background: transparent;
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* Team-Popup (site.js teamPopup): Overlay wie Magnific Popup          */
/* ------------------------------------------------------------------ */
.gb-team-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.8);
}

.gb-team-overlay .elementskit-team-popup.is-open {
    display: block;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
}
