/* DIO-NOTE: bbfassaden – Theme */
/* DIO-NOTE: Custom, lean theme layer built on top of Bootstrap 5. */
/* DIO-NOTE: All colors/fonts/spacing come from tokens.css (CSS variables). */
/* DIO-NOTE: Components are grouped by section and cut so each section can later be moved into its own TYPO3/Mask element. */

/* DIO-NOTE: Base */
body {
  font-family: var(--bb-font-body);
  font-size: var(--bb-fs-base);
  line-height: var(--bb-lh-base);
  color: var(--bb-body);
  background: var(--bb-white);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--bb-font-heading);
  color: var(--bb-heading);
  font-weight: var(--bb-fw-semibold);
  line-height: 1.22;
  letter-spacing: -.01em;   /* DIO-NOTE: more precise, modern typesetting */
}

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

/* DIO-NOTE: WCAG 1.4.1: additionally mark content links with an underline. */
/* DIO-NOTE: Navigation, button, footer and list links are clearly recognizable by context and stay without underline. */
a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.navbar-brand, .nav-link, .dropdown-item, .btn,
.topbar a, .site-footer a, .breadcrumb-bb a, .bb-card-media {
  text-decoration: none;
}

p { margin-bottom: 1rem; }
.lead { font-size: 1.125rem; }

::selection { background: var(--bb-primary); color: #fff; }

/* DIO-NOTE: Clear, brand-consistent keyboard focus (modern & accessible) */
:focus-visible { outline: 2px solid var(--bb-primary); outline-offset: 2px; }
/* DIO-NOTE: On dark bands the red ring has too little contrast -> lighter focus ring */
.hero :focus-visible, .page-header :focus-visible, .site-footer :focus-visible,
.topbar :focus-visible, .cta-band :focus-visible, .bg-secondary-dk :focus-visible {
  outline-color: #fff;
}

.container { max-width: var(--bb-container-max); }

/* DIO-NOTE: Reusable utilities */
.section          { padding-top: var(--bb-section-py); padding-bottom: var(--bb-section-py); }
.section-sm       { padding-top: var(--bb-section-py-sm); padding-bottom: var(--bb-section-py-sm); }
.bg-light-soft    { background-color: var(--bb-light); }
.bg-light-soft-2  { background-color: var(--bb-light-2); }
.bg-secondary-dk  { background-color: var(--bb-secondary); color: rgba(255,255,255,.8); }
.bg-secondary-dk h1, .bg-secondary-dk h2, .bg-secondary-dk h3 { color: #fff; }

.text-primary-bb  { color: var(--bb-primary) !important; }
.text-secondary-bb{ color: var(--bb-secondary) !important; }
.bg-primary-bb    { background-color: var(--bb-primary) !important; }

/* DIO-NOTE: Section heading block (eyebrow + title + divider) */
.section-head { margin-bottom: 3.75rem; }
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--bb-font-heading);
  font-weight: var(--bb-fw-semibold);
  font-size: .78rem;
  letter-spacing: .22em;   /* DIO-NOTE: technical blueprint look */
  text-transform: uppercase;
  color: var(--bb-primary);
  margin-bottom: .85rem;
}
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: var(--bb-fw-bold);
  letter-spacing: -.02em; margin-bottom: 1.15rem; }
.section-head p  { max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head.text-start p { margin-left: 0; }

/* DIO-NOTE: decorative divider below headlines */
.divider-mark {
  width: 48px; height: 2px; border: 0; opacity: 1;
  background: var(--bb-primary); border-radius: 0; margin: 1.25rem 0;   /* DIO-NOTE: exact edge */
}
.text-center .divider-mark,
.section-head.text-center .divider-mark { margin-left: auto; margin-right: auto; }

/* DIO-NOTE: Buttons */
.btn { font-family: var(--bb-font-heading); font-weight: var(--bb-fw-semibold);
  letter-spacing: .03em; padding: .75rem 1.6rem; border-radius: var(--bb-radius);
  transition: all var(--bb-transition); }
.btn-lg { padding: .95rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.1rem; }

.btn-primary {
  --bs-btn-bg: var(--bb-primary); --bs-btn-border-color: var(--bb-primary);
  --bs-btn-hover-bg: var(--bb-primary-dark); --bs-btn-hover-border-color: var(--bb-primary-dark);
  --bs-btn-active-bg: var(--bb-primary-dark); --bs-btn-active-border-color: var(--bb-primary-dark);
  --bs-btn-disabled-bg: var(--bb-primary); --bs-btn-disabled-border-color: var(--bb-primary);
  color: #fff;
}
.btn-primary:hover { color: #fff; box-shadow: var(--bb-shadow-sm); }

.btn-outline-light-bb { color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline-light-bb:hover { background: #fff; color: var(--bb-secondary); border-color:#fff; }

.btn-outline-primary-bb { color: var(--bb-primary); border: 1.5px solid var(--bb-primary); background: transparent; }
.btn-outline-primary-bb:hover { background: var(--bb-primary); color: #fff; }

/* DIO-NOTE: Header: Top-Bar */
.topbar {
  background: var(--bb-topbar-bg);
  color: var(--bb-topbar-color);
  font-size: .82rem;
}
.topbar a { color: var(--bb-topbar-color); }
.topbar a:hover { color: #fff; }
/* DIO-NOTE: WCAG 2.5.8: minimum click target for the small language switcher links */
.topbar .nav-link { min-height: 24px; display: inline-flex; align-items: center; }
.topbar .topbar-info li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .topbar-info li + li { margin-left: 1.5rem; }
.topbar i { color: var(--bb-primary-light); }
.topbar .social a { width: 30px; height: 30px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; }
.topbar .social a:hover { background: var(--bb-primary); color:#fff; }

/* DIO-NOTE: Header: Navbar */
.site-header { position: sticky; top: 0; z-index: 1030; }
.navbar.bb-navbar {
  background: #fff;
  border-bottom: 1px solid var(--bb-border);
  padding-top: .5rem; padding-bottom: .5rem;
}
.navbar.bb-navbar .navbar-brand { font-family: var(--bb-font-heading); font-weight: var(--bb-fw-bold);
  font-size: 1.5rem; color: var(--bb-secondary); display:flex; align-items:center; gap:.6rem; }
.navbar.bb-navbar .navbar-brand .brand-mark { color: var(--bb-primary); }
.navbar.bb-navbar .navbar-brand img { height: 56px; width: auto; }

.bb-navbar .nav-link {
  font-family: var(--bb-font-heading);
  font-weight: var(--bb-fw-semibold);
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--bb-secondary);
  padding: .85rem .95rem !important;
  position: relative;
}
.bb-navbar .nav-link:hover,
.bb-navbar .nav-item.active > .nav-link,
.bb-navbar .nav-link.active { color: var(--bb-primary); }
/* DIO-NOTE: Active underline via ::before, drawn under the linked parent text. */
.bb-navbar .nav-link.active::before {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .35rem;
  height: 2px; background: var(--bb-primary);
}
/* DIO-NOTE: Split nav toggle — linked parent text plus a separate caret button that opens the dropdown. */
.bb-navbar .nav-item.dropdown > .nav-link { display: inline-flex; vertical-align: middle; align-items: center; }
.bb-navbar .dropdown-toggle-split { padding-left: .2rem !important; padding-right: .7rem !important; cursor: pointer; }
.bb-navbar .dropdown-menu {
  border: 0; border-top: 3px solid var(--bb-primary);
  box-shadow: var(--bb-shadow); border-radius: 0 0 var(--bb-radius) var(--bb-radius);
  padding: .5rem 0; margin-top: 0;
}
.bb-navbar .dropdown-item { font-size: .875rem; font-weight: var(--bb-fw-medium);
  padding: .5rem 1.25rem; color: var(--bb-body); }
.bb-navbar .dropdown-item:hover,
.bb-navbar .dropdown-item:focus { background: var(--bb-light); color: var(--bb-primary); }
/* DIO-NOTE: Do NOT highlight the current page in the dropdown (no Bootstrap blue): */
/* DIO-NOTE: subpage dropdown should look exactly like on the start page. */
.bb-navbar .dropdown-item.active,
.bb-navbar .dropdown-item:active {
  background: transparent; color: var(--bb-body); font-weight: var(--bb-fw-medium);
}
.bb-navbar .dropdown-item.active:hover,
.bb-navbar .dropdown-item.active:focus,
.bb-navbar .dropdown-item:active:hover,
.bb-navbar .dropdown-item:active:focus {
  background: var(--bb-light); color: var(--bb-primary);
}
/* DIO-NOTE: two-column mega dropdown for the many element pages */
.dropdown-menu.mega { min-width: 480px; }
.dropdown-menu.mega .mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1200px) { .dropdown-menu.mega { min-width: 640px; }
  .dropdown-menu.mega .mega-grid { grid-template-columns: repeat(3, 1fr); } }

/* DIO-NOTE: hover dropdown on desktop (Bootstrap otherwise opens only on click) */
@media (min-width: 992px) {
  .bb-navbar .dropdown:hover > .dropdown-menu { display: block; }
}

/* DIO-NOTE: Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(34,51,29,.95) 0%, rgba(45,68,39,.82) 52%, rgba(143,19,37,.58) 100%),
    var(--bb-secondary-dark);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero::after { /* DIO-NOTE: subtle diagonal texture */
  content:""; position:absolute; inset:0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px);
  pointer-events:none;
}
.hero .hero-inner { position: relative; z-index: 2; padding: 130px 0; }
.hero .eyebrow { color: #f2a0a8; letter-spacing:.24em; text-transform:uppercase;
  font-weight:var(--bb-fw-semibold); font-size:.82rem; }
.hero h1 { color:#fff; font-weight: var(--bb-fw-bold); font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height:1.08; letter-spacing:-.02em; margin: 1.15rem 0 1.4rem; }
.hero p.lead { color: rgba(255,255,255,.85); max-width: 560px; }
.hero .hero-actions { margin-top: 2rem; display:flex; flex-wrap:wrap; gap:1rem; }

/* DIO-NOTE: Intro (text + image) */
.intro-img { border-radius: var(--bb-radius-lg); box-shadow: var(--bb-shadow); width:100%; height:auto; }
.intro-list { list-style:none; padding:0; margin: 1.25rem 0 0; }
.intro-list li { position:relative; padding-left: 1.9rem; margin-bottom:.65rem; font-weight: var(--bb-fw-medium); color: var(--bb-heading); }
.intro-list li i { position:absolute; left:0; top:.25rem; color: var(--bb-primary); }

/* DIO-NOTE: Process / Steps */
.step-card { text-align:center; padding: 2.5rem 1.5rem; height:100%; }
.step-card .step-icon {
  width: 84px; height: 84px; margin: 0 auto 1.5rem; border-radius: var(--bb-radius);
  display:flex; align-items:center; justify-content:center;
  background: rgba(var(--bb-primary-rgb), .12); color: var(--bb-primary);
  font-size: 2rem; transition: all var(--bb-transition); position:relative;
}
.step-card .step-num {
  position:absolute; top:-6px; right:-6px; width:28px; height:28px; border-radius:50%;
  background: var(--bb-primary); color:#fff; font-size:.8rem; font-weight:var(--bb-fw-bold);
  display:flex; align-items:center; justify-content:center; font-family:var(--bb-font-heading);
}
.step-card:hover .step-icon { background: var(--bb-primary); color:#fff; transform: translateY(-4px); }
.step-card h3 { font-size: 1.2rem; margin-bottom:.75rem; }

/* DIO-NOTE: Feature / Service Icon-Box */
.feature-box { display:flex; gap:1.25rem; align-items:flex-start; }
.feature-box .fb-icon {
  flex: 0 0 auto; width: 60px; height:60px; border-radius: var(--bb-radius);
  background: var(--bb-secondary); color:#fff; display:flex; align-items:center;
  justify-content:center; font-size:1.5rem; transition: all var(--bb-transition);
}
.feature-box:hover .fb-icon { background: var(--bb-primary); }
.feature-box h3 { font-size: 1.15rem; margin-bottom:.4rem; }

/* DIO-NOTE: Cards */
.bb-card { background:#fff; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-lg);
  overflow:hidden; height:100%; transition: all var(--bb-transition); }
.bb-card:hover { box-shadow: var(--bb-shadow-sm); transform: translateY(-2px); border-color: var(--bb-muted); }
.bb-card .card-body { padding: 2rem; }

/* DIO-NOTE: Counters / Stats */
.stat { text-align:center; padding: 1rem; }
.stat .stat-num { font-family: var(--bb-font-heading); font-weight: var(--bb-fw-bold);
  font-size: clamp(2.2rem, 4vw, 3rem); line-height:1; color:#fff; }
.stat .stat-num .suffix { color: var(--bb-primary-light); }
.stat .stat-label { text-transform: uppercase; letter-spacing:.14em; font-size:.8rem;
  margin-top:.5rem; color: rgba(255,255,255,.7); }
.stat .stat-icon { font-size:1.8rem; color: var(--bb-primary-light); margin-bottom:.75rem; }

/* DIO-NOTE: Logo/Partner carousel (CSS marquee) */
.logo-marquee { overflow:hidden; position:relative; }
.logo-marquee .track { display:flex; gap:4rem; width:max-content; align-items:center;
  animation: bb-marquee 28s linear infinite; }
.logo-marquee:hover .track { animation-play-state: paused; }
.logo-marquee .logo-item { color: var(--bb-muted); font-family:var(--bb-font-heading);
  font-weight:var(--bb-fw-bold); font-size:1.4rem; opacity:.65; white-space:nowrap;
  display:flex; align-items:center; gap:.5rem; transition: opacity var(--bb-transition); }
.logo-marquee .logo-item:hover { opacity:1; color: var(--bb-secondary); }
@keyframes bb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* DIO-NOTE: CTA-Band */
.cta-band {
  background: linear-gradient(100deg, var(--bb-primary) 0%, var(--bb-primary-dark) 100%);
  color:#fff;
}
.cta-band h2 { color:#fff; font-weight: var(--bb-fw-bold); }
.cta-band .btn-light { color: var(--bb-primary); font-weight: var(--bb-fw-semibold); }

/* DIO-NOTE: Testimonials */
.testimonial { background:#fff; border:1px solid var(--bb-border); border-radius: var(--bb-radius-lg);
  padding: 2rem; height:100%; }
.testimonial .quote { font-size:1.05rem; color: var(--bb-heading); font-style:italic; }
.testimonial .stars { color: var(--bb-warning); margin-bottom: 1rem; }
.testimonial .person { display:flex; align-items:center; gap:.85rem; margin-top:1.25rem; }
.testimonial .person .avatar { width:48px; height:48px; border-radius:50%; background:var(--bb-light-2);
  display:flex; align-items:center; justify-content:center; color:var(--bb-primary); font-weight:var(--bb-fw-bold); }
.testimonial .person .name { font-weight:var(--bb-fw-semibold); color:var(--bb-heading); line-height:1.2; }
.testimonial .person .role { font-size:.82rem; color:var(--bb-muted); }

/* DIO-NOTE: Footer */
.site-footer { background: var(--bb-secondary-dark); color: rgba(255,255,255,.6); }
.site-footer .footer-main { padding: 72px 0 48px; }
.site-footer h4 { color:#fff; font-size:.95rem; text-transform:uppercase; letter-spacing:.12em;
  margin-bottom:1.25rem; position:relative; padding-bottom:.65rem; }
.site-footer h4::after { content:""; position:absolute; left:0; bottom:0; width:36px; height:2px; background:var(--bb-primary-light); }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--bb-primary-light); }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:.6rem; }
.footer-links li a { display:inline-flex; align-items:center; gap:.5rem; }
.footer-contact li { display:flex; gap:.75rem; margin-bottom:.85rem; }
.footer-contact i { color: var(--bb-primary-light); margin-top:.25rem; }
.footer-brand { font-family:var(--bb-font-heading); font-weight:var(--bb-fw-bold); font-size:1.5rem; color:#fff; }
.footer-brand .brand-mark { color: var(--bb-primary-light); }
.site-footer .footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding:1.25rem 0; font-size:.85rem; }
.site-footer .footer-bottom .social a { width:34px; height:34px; border-radius:50%;
  border:1px solid rgba(255,255,255,.15); display:inline-flex; align-items:center; justify-content:center; }
.site-footer .footer-bottom .social a:hover { background:var(--bb-primary); border-color:var(--bb-primary); color:#fff; }

/* DIO-NOTE: Back-to-top */
.to-top { position:fixed; right:24px; bottom:24px; width:46px; height:46px; border-radius:50%;
  background:var(--bb-primary); color:#fff; display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform: translateY(12px); transition: all var(--bb-transition); z-index:1040; border:0; }
.to-top.show { opacity:1; visibility:visible; transform:none; }
.to-top:hover { background: var(--bb-primary-dark); color:#fff; }

/* DIO-NOTE: Reveal animation (lightweight) */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  .logo-marquee .track { animation:none; }
  html { scroll-behavior: auto; }
  .bb-card:hover, .step-card:hover .step-icon { transform: none; }
  .bb-card:hover .bb-card-media img { transform: none; }
}

/* DIO-NOTE: Responsive fine-tuning */
@media (max-width: 991.98px) {
  :root { --bb-section-py: var(--bb-section-py-sm); }
  .hero .hero-inner { padding: 90px 0; }
  .bb-navbar .navbar-collapse { background:#fff; margin-top:.5rem; padding:.5rem 0;
    border-top:1px solid var(--bb-border); }
  .bb-navbar .dropdown-menu { box-shadow:none; border-top:0; padding-left:1rem; }
  .dropdown-menu.mega { min-width:auto; }
  .dropdown-menu.mega .mega-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .topbar .topbar-info li + li { margin-left:0; }
  .topbar { text-align:center; }
}

/* DIO-NOTE: Page-Header (banner for subpages) */
.page-header {
  position: relative; color:#fff; padding: 70px 0;
  background: linear-gradient(115deg, var(--bb-secondary-dark) 0%, var(--bb-secondary) 70%, rgba(143,19,37,.55) 130%),
              var(--bb-secondary-dark);
}
.page-header::after { content:""; position:absolute; inset:0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px); }
.page-header .ph-inner { position:relative; z-index:2; }
.page-header h1 { color:#fff; font-weight: var(--bb-fw-bold); font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing:-.02em; margin:0; }
.page-header .ph-sub { color: rgba(255,255,255,.85); max-width: 680px; font-size: 1.05rem; }
.breadcrumb-bb { --bs-breadcrumb-divider: '/'; margin:.5rem 0 0; font-size:.875rem; }
.breadcrumb-bb .breadcrumb-item, .breadcrumb-bb .breadcrumb-item a { color: rgba(255,255,255,.7); }
.breadcrumb-bb .breadcrumb-item a:hover { color:#fff; }
.breadcrumb-bb .breadcrumb-item.active { color: #f2a0a8; }
.breadcrumb-bb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* DIO-NOTE: Card image (uniform crop + zoom hint) */
.bb-card .bb-card-media { display:block; overflow:hidden; position:relative; cursor: zoom-in; }
.bb-card .bb-card-media img { display:block; width:100%; height:auto; transition: transform .4s ease; }
.bb-card:hover .bb-card-media img { transform: scale(1.05); }
.bb-card .bb-card-media::after { content:"\f00e"; font-family:"Font Awesome 6 Free"; font-weight:900;
  position:absolute; right:.8rem; bottom:.8rem; width:2.2rem; height:2.2rem; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff; background: rgba(0,0,0,.45);
  opacity:0; transition: opacity .3s ease; }
.bb-card:hover .bb-card-media::after { opacity:1; }

/* DIO-NOTE: Lightbox */
body.bb-lightbox-open { overflow:hidden; }
.bb-lightbox { position:fixed; inset:0; z-index:1080; display:none;
  align-items:center; justify-content:center; padding:2rem;
  background: rgba(10,20,15,.9); cursor: zoom-out; }
.bb-lightbox.is-open { display:flex; }
.bb-lightbox img { max-width:min(1200px,94vw); max-height:90vh; width:auto; height:auto;
  border-radius: var(--bb-radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor:default; }
.bb-lightbox-close { position:absolute; top:1rem; right:1.25rem; background:none; border:0;
  color:#fff; font-size:2.5rem; line-height:1; cursor:pointer; opacity:.85; }
.bb-lightbox-close:hover { opacity:1; }

/* DIO-NOTE: EXT:form – checkbox (version2) styled like Bootstrap .form-check */
.form-element-check .form-check-wrapping-label { display:flex; align-items:flex-start; gap:.5rem; margin:0; }
.form-element-check .form-check-input { margin-top:.2rem; flex:0 0 auto; }
