/* ==========================================================================
   Ingenieurbüro Bähr – Styles für Joomla (Beiträge + Header/Footer-Module)
   In das Werbeagentur-Hoffmann-Template einbinden (siehe README.md).
   Farbwelt: Text #474747 · Akzent #AE0000 · Button-Rot #e71919 · Footer #484848
   ========================================================================== */

:root{
  --baehr-text:#474747;
  --baehr-heading:#383838;
  --baehr-accent:#ae0000;
  --baehr-btn:#e71919;
  --baehr-footer:#484848;
  --baehr-light:#f7f7f7;
  --baehr-border:#e2e2e2;
  --baehr-maxw:1140px;
}

/* --- Basis nur für Bähr-Inhaltsbereiche (kollidiert nicht global) --- */
.hero,.section,.footer-inner,.brand-inner{
  font-family:'Poppins',Arial,sans-serif;
  color:var(--baehr-text);
}
.section img,.hero img,.footer-inner img,.brand-inner img{max-width:100%;height:auto}

.section h1,.section h2,.section h3,.hero h1,.hero h2{
  font-family:'Poppins',Arial,sans-serif;margin:0 0 10px;line-height:1.25}
.section h1,.hero h1{font-size:40px;font-weight:400;text-transform:uppercase;color:var(--baehr-heading);padding-bottom:10px}
.section h2{font-size:34px;font-weight:400;color:var(--baehr-heading)}
.section h3{font-size:20px;font-weight:400;color:var(--baehr-accent)}
.section h4{font-size:19px;font-weight:600;color:var(--baehr-heading);margin-top:22px}
.section p{margin:0 0 16px}
.section a{color:var(--baehr-accent)}
.section ul,.section ol{margin:0 0 16px;padding-left:22px}
.section li{margin-bottom:6px}

/* --- Grid (Full-Width-Sektionen sprengen bewusst den Beitrags-Container) --- */
.section{
  padding:55px 0;
  width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
}
.section > .row-cols{max-width:var(--baehr-maxw);margin:0 auto;padding:0 20px;
  display:flex;flex-wrap:wrap;align-items:flex-start}
.section .col{padding:0 15px;margin-bottom:24px;width:100%}
.text-center{text-align:center}

/* --- Buttons (qx-btn-default) --- */
.btn{display:inline-block;cursor:pointer;font-family:'Poppins',Arial,sans-serif;font-size:20px;
  padding:15px 30px;border-radius:0;text-decoration:none;transition:.2s;border:2px solid var(--baehr-btn)}
.btn-default{color:#333;background:transparent}
.btn-default:hover{background:var(--baehr-btn);color:#fff;text-decoration:none}

/* --- Hero / Slider (Full-Width, Hintergrund per Klasse statt Inline-Style) --- */
.hero{
  width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
  min-height:520px;display:flex;align-items:center;justify-content:center;
  background-size:cover;background-position:center;color:#333}
.hero::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.30)}
.hero-inner{position:relative;z-index:2;max-width:640px;text-align:center;
  background:rgba(255,255,255,.30);padding:38px 30px;margin:0 20px}
.hero-kicker{display:block;font-size:18px;font-weight:300;color:#1890d7;margin-bottom:14px}
.hero h1,.hero h2{color:#333;text-transform:uppercase;font-size:36px;line-height:1.2;margin-bottom:18px}
.hero p{font-size:18px;font-weight:300;color:#282828;margin-bottom:26px}
.hero-startseite{background-image:url('/images/slider2/fotolia_296695460.jpeg')}
.hero-buero{background-image:url('/images/slider2/Produktionsplanung-Baeckereistubenplanung.jpeg')}

/* --- Team / Person --- */
.person-img{width:100%;aspect-ratio:1/1;object-fit:cover;margin-bottom:14px;background:#eee}
.person-name{font-size:20px;font-weight:600;color:var(--baehr-heading);margin:6px 0 2px}
.person-pos{font-size:15px;color:#777;margin-bottom:10px}
.person ul{font-size:15px;line-height:1.5}

/* --- Projekte / Galerie --- */
.gal-title{min-height:52px}
.gal-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.gal-grid.single{grid-template-columns:1fr}
.gal-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;cursor:pointer;transition:.25s;background:#eee}
.gal-grid img:hover{opacity:.85;transform:scale(1.02)}

/* Lightbox (per JS erzeugt) */
.baehr-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;
  align-items:center;justify-content:center;z-index:2000}
.baehr-lightbox.open{display:flex}
.baehr-lightbox img{max-width:90vw;max-height:86vh}
.baehr-lightbox button{position:absolute;color:#fff;background:rgba(0,0,0,.4);border:0;
  font-size:34px;cursor:pointer;padding:6px 16px;line-height:1}
.baehr-lightbox .lb-close{top:18px;right:22px}
.baehr-lightbox .lb-prev{left:18px;top:50%;transform:translateY(-50%)}
.baehr-lightbox .lb-next{right:18px;top:50%;transform:translateY(-50%)}

/* --- Kontakt-Blurbs + Maps --- */
.blurb{padding:10px 0}
.blurb .b-icon{font-size:30px;color:var(--baehr-accent);margin-bottom:12px}
.blurb h3{margin-bottom:8px}
.gmap-container{width:100%;min-height:450px}
.gmap-container iframe{width:100%;height:450px;border:0;display:block}

/* --- Header-Modul (mo_header) --- */
.brand-inner{max-width:var(--baehr-maxw);margin:0 auto;padding:14px 20px}
.brand{display:flex;align-items:center;gap:16px;color:#000;text-decoration:none}
.brand-logo{width:64px;height:auto;flex:none}
.brand-title{font-size:26px;font-weight:800;text-transform:uppercase;color:#000;line-height:1.1}
.brand-sub{display:block;font-size:13px;font-weight:300;color:#333;line-height:1.35;margin-top:4px}

/* --- Footer-Modul (mo_footer) --- */
.footer-inner{background:var(--baehr-footer);color:#fff;padding:45px 0 0}
.footer-inner .row-cols{max-width:var(--baehr-maxw);margin:0 auto;padding:0 20px;display:flex;flex-wrap:wrap}
.footer-inner .col{padding:0 15px;width:100%;margin-bottom:10px}
.footer-inner h2{font-size:20px;font-weight:400;color:#fff;padding:15px 0;line-height:1.4;text-transform:none}
.footer-inner p,.footer-inner li{color:#fff;font-size:16px}
.footer-inner a{color:#fff}
.footer-inner a:hover{color:#ddd}
.footer-bottom{border-top:1px solid #5c5c5c;margin-top:20px;padding:16px 20px;font-size:14px;color:#ccc;text-align:center}
.footer-bottom a{color:#fff}

/* --- To-Top + Cookie (per JS) --- */
.baehr-totop{position:fixed;right:22px;bottom:22px;width:46px;height:46px;border:0;border-radius:3px;
  background:var(--baehr-accent);color:#fff;font-size:20px;cursor:pointer;opacity:0;pointer-events:none;transition:.3s;z-index:150}
.baehr-totop.show{opacity:1;pointer-events:auto}
.baehr-cookie{position:fixed;left:0;right:0;bottom:0;background:#333;color:#fff;padding:16px 20px;z-index:1500;
  display:none;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap;font-size:15px}
.baehr-cookie.show{display:flex}
.baehr-cookie a{color:#fff;text-decoration:underline}
.baehr-cookie .btn{font-size:15px;padding:8px 18px}
.baehr-cookie .btn-red{background:var(--baehr-btn);color:#fff;border-color:var(--baehr-btn)}

/* --- Spaltenbreiten (Desktop) --- */
@media (min-width:769px){
  .col-50{width:50%}
  .col-33{width:33.3333%}
  .col-25{width:25%}
  .col-vcenter{align-self:center}
}
@media (min-width:769px) and (max-width:1000px){
  .col-25{width:50%}
}
@media (max-width:768px){
  .section h1,.hero h1,.hero h2{font-size:30px;line-height:1.25}
  .brand-title{font-size:20px}
  .brand-sub{font-size:12px}
}

/* ============ Template-Wrapper (werbeagentur index.php) ============ */
#container{width:100%}
.site-header{background:#fff;border-bottom:1px solid var(--baehr-border);position:sticky;top:0;z-index:100}
.header-row{max-width:var(--baehr-maxw);margin:0 auto;padding:8px 20px;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.header-row .brand-inner{max-width:none;margin:0;padding:6px 0}
.site-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0}
.site-nav li{margin:0}
.site-nav a{display:block;padding:10px 16px;color:#333;font-size:20px;font-weight:300;
  text-decoration:none;border-bottom:3px solid transparent;transition:.2s}
.site-nav a:hover,.site-nav .current > a,.site-nav .active > a{
  color:var(--baehr-accent);border-bottom-color:var(--baehr-accent)}
.site-footer{width:100%}
@media (max-width:768px){
  .header-row{justify-content:center;text-align:center}
  .site-nav ul{justify-content:center}
  .site-nav a{font-size:17px;padding:8px 12px}
}


/* ===== FIX 2026: Spalten-Layout + 100vw-Overflow ===== */
/* .section/.hero waren mit width:100vw + -50vw-Margins gesetzt -> horizontaler Scrollbalken. */
.section,.hero{width:auto;left:auto;right:auto;margin-left:0;margin-right:0;max-width:100%}
/* .section .col / .footer-inner .col {width:100%} war spezifischer als .col-50/33/25 ->
   Mehrspalter griffen nie und alles stapelte volle Breite (Team-Fotos riesig). */
@media (min-width:769px){
  .section .col-50,.footer-inner .col-50{width:50%}
  .section .col-33,.footer-inner .col-33{width:33.3333%}
  .section .col-25{width:25%}
}
@media (min-width:769px) and (max-width:1000px){
  .section .col-25{width:50%}
}


/* ===== FIX 2026b: box-sizing (Grundursache: content-box + Padding sprengt Spalten) ===== */
.section .col,.footer-inner .col,.header-row .brand-inner,.hero-inner{box-sizing:border-box}
