/* =========================================================================
   Holzbau und Bedachungen Brauner – Child-CSS zu den Elementor-Vorlagen
   Generator: /root/projekte/143748-brauner/build (Klassen br-*). Werte 1:1 aus dem
   Design-Export (assets/css/site.css). Farben, Typografie und Abstände stehen nativ
   in Elementor; hier nur, was Elementor nicht abbildet: Pseudo-Formen, Seiten-
   verhältnisse, Sticky-Leiste, Mobilmenü, Header-Umbruch 1080 px, Formular-Details.
   Farben über die Kit-Variablen (Website-Einstellungen), Hex nur als Fallback.
   ========================================================================= */

/* ---------- Basis ---------- */
html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased}
::selection{background:var(--e-global-color-secondary,#FFD500);color:#000}
.elementor .elementor-heading-title a{color:inherit}
.elementor svg[stroke="currentColor"]{fill:none!important}
.br-text p{margin:0}
.br-balance .elementor-heading-title{text-wrap:balance}
.br-pretty p{text-wrap:pretty}
.br-mw-30 p{max-width:30ch}
.br-mw-46 p{max-width:46ch}
.br-mw-48 p{max-width:48ch}
.br-mw-52 p{max-width:52ch}
.br-mw-56 p{max-width:56ch}
.br-mw-62 p{max-width:62ch}
.elementor-widget.br-wmax46{max-width:46ch!important}
.br-nowrap .elementor-heading-title{white-space:nowrap}
.br-anywhere .elementor-heading-title{overflow-wrap:anywhere}
.br-mt-auto{margin-top:auto!important}
#kontakt{scroll-margin-top:88px}

/* Flex-Basis der umbrechenden Zeilen (Design: flex: 1 1 Npx) */
.br-f240{flex:1 1 240px!important}
.br-f320{flex:1 1 320px!important}
.br-f340{flex:1 1 340px!important}
.br-f360{flex:1 1 360px!important}
.br-f420{flex:1 1 420px!important}
.br-f480{flex:1 1 480px!important}
.br-f480x{flex:1.5 1 480px!important}
.br-f520{flex:1 1 520px!important}
.br-f560{flex:3 1 560px!important}

/* Icon im Kreis: keine Zeilen-Unterlänge */
.br-ico .elementor-icon-wrapper{display:flex}
.br-ico .elementor-icon{display:flex;align-items:center;justify-content:center}

/* ---------- Buttons (Höhe = min-height des Designs, Hover sofort) ---------- */
.br-btn{line-height:0}
.br-btn .elementor-button{display:inline-flex;align-items:center;transition:none}
.br-btn .elementor-button-text{text-align:left}
.br-btn--primary .elementor-button,.br-btn--outline .elementor-button{min-height:54px}
.br-btn--dark .elementor-button,.br-btn--light .elementor-button,.br-btn--ghost .elementor-button{min-height:48px;white-space:nowrap}
.br-btn--cta .elementor-button{min-height:46px;white-space:nowrap}
.br-btn--cta-sm .elementor-button{min-height:42px;white-space:nowrap}
.br-btn--tel .elementor-button,.br-btn--mcta .elementor-button{min-height:50px}
.br-btn .elementor-button-icon{font-size:18px}
.br-btn .elementor-button-icon svg{width:18px;height:18px}

/* ---------- Kicker, Eyebrow, Markierung ---------- */
.br-kicker .elementor-heading-title,.br-dot .elementor-heading-title{display:flex;align-items:center;gap:8px}
.br-kicker .elementor-heading-title::before,.br-dot .elementor-heading-title::before{content:"";width:8px;height:8px;flex:none;border-radius:999px;background:var(--e-global-color-primary,#F07D00)}
.br-kicker--dunkel .elementor-heading-title::before{background:var(--e-global-color-secondary,#FFD500)}
.br-eyebrow .elementor-heading-title{display:flex;align-items:center;gap:12px}
.br-eyebrow .elementor-heading-title::before{content:"";width:10px;height:10px;flex:none;background:var(--e-global-color-primary,#F07D00)}
.br-h1 .br-hl{display:inline-block;margin-top:.06em;padding:0 .16em .04em;background:var(--e-global-color-primary,#F07D00);color:#000}

/* ---------- Bildrahmen mit Seitenverhältnis + Badges ---------- */
.br-media{position:relative}
.br-ratio-43{aspect-ratio:4/3}
.br-ratio-169{aspect-ratio:16/9}
.br-media>.elementor-widget-image{position:absolute!important;inset:0;width:100%;height:100%}
.br-media>.elementor-widget-image img{width:100%;height:100%;object-fit:cover;display:block}
.br-pos-fachwerk img{object-position:50% 70%}
.br-pos-lattung img{object-position:38% 30%}
.br-pos-ziegel img{object-position:50% 50%}
.br-pos-kran img{object-position:50% 55%}
.br-pos-karriere img{object-position:60% 40%}
.br-pos-about img{object-position:30% 50%}
.br-badge{position:absolute!important;z-index:1;width:auto!important}
.br-badge--tl{top:14px;left:14px}
.br-badge--bl{left:14px;bottom:14px}

/* ---------- Header ---------- */
.br-logo a{display:block;line-height:0}
.br-logo img{width:auto!important;max-width:none;display:block}
.br-nav .elementor-nav-menu::after,.br-snav .elementor-nav-menu::after{display:none}
.br-nav .elementor-nav-menu{gap:clamp(20px,2.2vw,30px)}
.br-snav .elementor-nav-menu{gap:26px}
.br-nav .elementor-item,.br-snav .elementor-item{white-space:nowrap}
.br-nav .elementor-item,.br-snav .elementor-item,.br-mnav .elementor-item{transition:none!important}
.br-nav .elementor-item{text-decoration-line:underline;text-decoration-thickness:2px;text-underline-offset:8px;text-decoration-color:transparent}
.br-nav--hell .elementor-item:hover,.br-nav--hell .elementor-item:focus{text-decoration-color:var(--e-global-color-primary,#F07D00)}
.br-nav--dunkel .elementor-item:hover,.br-nav--dunkel .elementor-item:focus{text-decoration-color:var(--e-global-color-secondary,#FFD500)}

/* Umbruch des Designs bei 1080 px: darunter Menü-Button statt Navigation + CTA */
@media (max-width:1079px){.br-hide-lt1080{display:none!important}}
@media (min-width:1080px){.br-show-lt1080{display:none!important}}

/* Sticky-Leiste: fixiert, erscheint ab 420 px Scrollhöhe (Child-JS setzt .is-visible). Im Editor statisch. */
.br-pill{width:100%!important;max-width:1320px!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body:not(.elementor-editor-active) .br-sticky{position:fixed!important;top:12px;left:12px;right:12px;width:auto!important;z-index:60;pointer-events:none}
body:not(.elementor-editor-active) .br-pill{transform:translateY(-160%);opacity:0;pointer-events:none;transition:transform .35s ease,opacity .35s ease}
body:not(.elementor-editor-active) .br-sticky.is-visible .br-pill{transform:none;opacity:1;pointer-events:auto}

/* Mobilmenü: Overlay + Panel, ohne Animation (Child-JS setzt .is-open). Im Editor statisch. */
.br-mnav .elementor-item{border-bottom:1px solid var(--e-global-color-brrahmen,#ECE8E1)}
body:not(.elementor-editor-active) .br-mmenu{display:none!important}
body:not(.elementor-editor-active) .br-mmenu.is-open{display:block!important}
body:not(.elementor-editor-active) .br-mmenu__overlay{position:fixed!important;inset:0;width:auto!important;z-index:80}
body:not(.elementor-editor-active) .br-mmenu__panel{position:fixed!important;top:12px;left:12px;right:12px;width:auto!important;z-index:90}

/* Eingeloggt: Adminleiste */
body.admin-bar:not(.elementor-editor-active) .br-sticky,body.admin-bar:not(.elementor-editor-active) .br-mmenu__panel{top:44px}
@media (max-width:782px){body.admin-bar:not(.elementor-editor-active) .br-sticky,body.admin-bar:not(.elementor-editor-active) .br-mmenu__panel{top:58px}}

/* ---------- Hero: Streifen + schräg beschnittenes Foto (README › 6) ---------- */
.br-hero__media{position:relative}
.br-hero__frame{position:absolute!important;inset:0;width:auto!important}
.br-hero__frame>.e-con,.br-hero__frame>.elementor-widget-image{position:absolute!important;inset:0;width:100%!important;height:100%}
.br-hero__stripe--orange{clip-path:polygon(16% 0,calc(16% + 18px) 0,18px 100%,0 100%)}
.br-hero__stripe--gelb{clip-path:polygon(calc(16% + 28px) 0,calc(16% + 40px) 0,40px 100%,28px 100%)}
.br-hero__frame img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:10% 40%;clip-path:polygon(calc(16% + 50px) 0,100% 0,100% 100%,50px 100%);display:block}
@media (max-width:1023px){
  .br-hero__frame{position:relative!important;inset:auto;width:100%!important;aspect-ratio:3/2}
  .br-hero__stripe--orange{clip-path:polygon(8% 0,calc(8% + 8px) 0,8px 100%,0 100%)}
  .br-hero__stripe--gelb{clip-path:polygon(calc(8% + 13px) 0,calc(8% + 19px) 0,19px 100%,13px 100%)}
  .br-hero__frame img{object-position:50% 40%;clip-path:polygon(calc(8% + 24px) 0,100% 0,100% 100%,24px 100%)}
}

/* ---------- Über uns: Eck-Badge „seit 1947“ mit Innenradius-Ecken ---------- */
.br-about-badge{position:absolute!important;top:0;right:0;z-index:1}
.br-about-badge::before,.br-about-badge::after{content:""!important;display:block;position:absolute;width:24px!important;height:24px!important;opacity:1;mix-blend-mode:normal;border-radius:0;transition:none;background:radial-gradient(circle at 0 100%,transparent 24px,var(--e-global-color-brweiss,#FFFFFF) 24.5px)!important}
.br-about-badge::before{top:0!important;left:-24px!important;right:auto!important;bottom:auto!important}
.br-about-badge::after{bottom:-24px!important;right:0!important;top:auto!important;left:auto!important}

/* ---------- Kontaktkarte ---------- */
/* Elementor stapelt die Image-Box mobil (Foto über Text) – Design: Foto links auf allen Breiten */
.br-person .elementor-image-box-wrapper{display:flex!important;align-items:center;text-align:start!important}
.br-person .elementor-image-box-img{flex:0 0 64px;margin:0 14px 0 0!important;line-height:0}
.br-person .elementor-image-box-img img{width:64px;height:64px;object-fit:cover;display:block}
.br-person .elementor-image-box-content{min-width:0}
.br-info .elementor-icon-box-content{min-width:0}
/* Links in der Icon-Box-Beschreibung: Spezifität über der Kit-Linkfarbe (.elementor-kit-N a) */
.br-info .br-ilink{color:var(--e-global-color-brweiss,#FFFFFF);text-decoration:none;overflow-wrap:anywhere}
.br-info .br-ilink:hover,.br-info .br-ilink:focus{color:var(--e-global-color-secondary,#FFD500)}
.br-info .br-area{color:var(--e-global-color-brweiss,#FFFFFF);text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:var(--e-global-color-brunter,#77756E)}
.br-info .br-area:hover,.br-info .br-area:focus{color:var(--e-global-color-secondary,#FFD500);text-decoration-color:var(--e-global-color-secondary,#FFD500)}

/* ---------- Formular (Pro Form, Feldmaße wie im Design) ---------- */
.br-form .elementor-field-group>.elementor-field-label{display:flex}
.br-form .elementor-field-textual{height:52px!important;min-height:52px!important;padding:0 16px!important;line-height:normal!important}
.br-form textarea.elementor-field-textual{height:auto!important;padding:14px 16px!important;line-height:1.5!important}
.br-form select.elementor-field-textual{padding:0 14px!important;-webkit-appearance:auto;appearance:auto;cursor:pointer}
.br-form .select-caret-down-wrapper{display:none}
.br-form .elementor-field-textual:focus{border-color:var(--e-global-color-text,#171716)!important;box-shadow:0 0 0 3px var(--e-global-color-secondary,#FFD500)!important;outline:none}
.br-form .elementor-field-textual::placeholder{color:var(--e-global-color-text,#171716);opacity:.6}
/* Formular-Gap 20 statt Raster-Gap 14 vor Nachricht, Einwilligung und Button */
.br-form .elementor-field-group-nachricht,.br-form .elementor-field-group-einwilligung,.br-form .elementor-field-type-submit{margin-top:6px!important}
.br-form .elementor-field-type-acceptance>.elementor-field-label{display:none}
.br-form .elementor-field-type-acceptance .elementor-field-option{display:flex;align-items:flex-start;gap:12px}
.br-form .elementor-field-type-acceptance input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--e-global-color-primary,#F07D00)}
.br-form .elementor-field-type-acceptance .elementor-field-subgroup label{font-size:14px!important;font-weight:400!important;line-height:1.55!important;color:var(--e-global-color-accent,#55554F)!important;padding:0!important;cursor:pointer}
.br-form .elementor-field-type-acceptance label a{color:var(--e-global-color-text,#171716);font-weight:600;text-decoration:underline}
.br-form .elementor-field-type-submit .elementor-button{flex:0 0 auto!important;width:auto!important;min-height:52px;transition:none}
.br-form .elementor-message-success{display:none}
.br-form-alert{display:none!important}
.br-form-alert.is-shown{display:block!important}
.br-form .br-form-alert{flex:0 0 calc(100% - 14px);margin:6px 7px 14px!important}
.br-success{display:none!important}
.br-fpanel.is-success .br-formwrap{display:none!important}
.br-fpanel.is-success .br-success{display:flex!important}

/* ---------- Footer ---------- */
.br-flinks .elementor-icon-list-text{transition:none}
.br-flegal .elementor-icon-list-items{gap:24px;flex-wrap:wrap;margin:0!important}
.br-flegal .elementor-icon-list-item{margin:0!important}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .br-pill,.br-scard{transition:none!important}
}
