/* =========================================================
   BBM Website – Layout (Nachbau des bisherigen Auftritts)
   Für ein Redesign nur diese Datei und /app/templates anpassen.
   ========================================================= */

:root {
  --c-red: rgb(215, 8, 17);
  --c-grey: rgb(152, 152, 152);
  --c-text: rgb(27, 27, 27);
  --c-page: rgb(238, 238, 238);
  --f-body: 'Muli', 'Mulish', Arial, sans-serif;
  --f-head: 'Exo', 'Montserrat', Arial, sans-serif;
  --f-alt: 'Montserrat', Arial, sans-serif;
  --container: 1170px;
  --header-h: 109px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--c-text);
  background: #fff;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
.preview-bar { background: #ffcc00; color: #000; text-align: center; padding: 6px; font-size: 14px; position: relative; z-index: 60; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
h1 { font-family: var(--f-head); font-size: 40px; line-height: 1.3; color: #fff; }
h2 { font-family: var(--f-head); font-size: 30px; line-height: 1.3; color: var(--c-red); }
h3 { font-family: var(--f-alt); font-size: 30px; line-height: 1.3; color: var(--c-red); }
h4 { font-family: var(--f-alt); font-size: 22px; line-height: 1.3; color: var(--c-red); }
p { margin: 0; line-height: 1.6; }
.b-text a { color: #000; }
.b-text ul, .b-text ol { margin: 0; padding: 0; line-height: 1.6; }
.b-text li { margin-left: 32px; }
.b-text li.ql-indent-1 { margin-left: 80px; list-style-type: circle; }
.b-text li.ql-indent-2 { margin-left: 128px; list-style-type: square; }
.b-text li.ql-indent-3 { margin-left: 176px; }
.text-align-left { text-align: left; }
.text-align-center { text-align: center; }
.text-align-right { text-align: right; }
.text-align-justify { text-align: justify; }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-grey);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  padding: 15px 30px;
  max-width: 1325px; margin: 0 auto;
}
.site-logo { display: block; margin-left: 46px; }
.site-logo img { height: 79px; width: auto; }
.site-logo__mobile { display: none; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.site-nav li { position: relative; }
.site-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  margin-left: 15px; padding: 8px 0;
  color: #fff; text-decoration: none;
  font-size: 15px; line-height: 1.7;
}
.site-nav > ul > li.is-active > a, .site-nav > ul > li > a:hover { color: var(--c-red); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.sub-toggle { display: none; }
.site-nav .sub {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; left: 0; top: 100%; min-width: 220px;
  background: var(--c-grey);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav li:hover > .sub, .site-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { display: block; padding: 8px 15px; color: #fff; text-decoration: none; font-size: 15px; }
.site-nav .sub a:hover, .site-nav .sub li.is-active a { color: var(--c-red); background: rgba(255,255,255,.12); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Raster ---------- */
.section { position: relative; background-color: #fff; background-position: 50% 50%; background-size: cover; padding: 70px 30px; }
.section--parallax { background-attachment: fixed; }
.cols { display: flex; flex-wrap: nowrap; max-width: var(--container); margin: 0 auto; }
.section--full > .cols { max-width: none; }
.row--nested { background-position: 50% 50%; background-size: cover; }
.row--nested > .cols { max-width: none; margin: 0 -15px; }
.col { flex: 0 1 auto; padding: 0 15px; min-width: 0; background-position: 50% 50%; background-size: cover; }
.col-1 { width: 8.3333%; } .col-2 { width: 16.6667%; } .col-3 { width: 25%; } .col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; } .col-6 { width: 50%; } .col-7 { width: 58.3333%; } .col-8 { width: 66.6667%; }
.col:empty { min-height: 100px; }
.col-9 { width: 75%; } .col-10 { width: 83.3333%; } .col-11 { width: 91.6667%; } .col-12 { width: 100%; }

/* ---------- Blöcke ---------- */
.b-text { background-repeat: no-repeat; }
.b-image img { width: 100%; box-shadow: 3px 3px 11px 0 rgba(0,0,0,.5); }
.b-image { margin: 0; }
.b-spacer { height: 15px; }

.b-button { display: flex; justify-content: center; }
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 100%; min-height: 39px; padding: 10px 8px;
  background: var(--c-grey); color: #fff; text-decoration: none;
  border-radius: 0; box-shadow: 3px 3px 11px 0 rgba(0,0,0,.5);
  font-family: var(--f-alt); font-size: 16px; line-height: 1.2; text-align: center;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.1); }

.b-slider { position: relative; overflow: hidden; background: #eee; height: 585px; }
.b-slider__track, .b-slider__slide { position: absolute; inset: 0; margin: 0; }
.b-slider__slide { opacity: 0; transition: opacity .6s ease; }
.b-slider__slide.is-active { opacity: 1; z-index: 1; }
.b-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.b-slider__slide figcaption {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.45); color: #fff; padding: 14px 22px; text-align: center; max-width: 80%;
}
.b-slider__slide figcaption strong { display: block; font-size: 22px; font-weight: 400; }
.b-slider__prev, .b-slider__next {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.75); opacity: 0; transition: opacity .2s;
}
.b-slider:hover .b-slider__prev, .b-slider:hover .b-slider__next, .b-slider__prev:focus-visible, .b-slider__next:focus-visible { opacity: 1; }
.b-slider__prev { left: 12px; } .b-slider__next { right: 12px; }
.b-slider__prev::before, .b-slider__next::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
  border-left: 2px solid #333; border-bottom: 2px solid #333;
}
.b-slider__prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.b-slider__next::before { transform: translate(-70%, -50%) rotate(-135deg); }

.b-hours { margin: 0; }
.b-hours > div { display: flex; gap: 20px; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.b-hours dt { font-weight: 700; }
.b-hours dd { margin: 0; }

.b-map { position: relative; }
.b-map iframe { display: block; width: 100%; height: 400px; border: 0; }
.b-map__link { display: inline-block; font-size: 13px; margin-top: 4px; }

.b-social { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--c-grey); color: #fff; border-radius: 0;
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.social-icon:hover { background: var(--c-red); }

/* Kontaktformular */
.b-form__grid { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.b-form__field { width: 100%; padding: 0 8px 14px; }
.b-form__field--half { width: 50%; }
.b-form label { display: block; margin-bottom: 4px; font-size: 15px; }
.b-form input, .b-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c8c8c8; background: #fff;
  font: inherit; color: inherit; border-radius: 0;
}
.b-form textarea { min-height: 140px; resize: vertical; }
.b-form input:focus, .b-form textarea:focus { outline: 2px solid var(--c-grey); outline-offset: 0; }
.b-form__submit { text-align: right; }
.b-form button {
  background: var(--c-grey); color: #fff; border: 0; padding: 12px 34px; cursor: pointer;
  font: inherit; border-radius: 50px; box-shadow: 3px 3px 11px 0 rgba(0,0,0,.35);
}
.b-form button:disabled { opacity: .6; cursor: wait; }
.b-form__msg { margin-top: 12px; padding: 10px 12px; background: #eef7ee; }
.b-form__msg.is-error { background: #fbeaea; color: #8a1010; }
.b-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: rgb(249, 249, 249); color: rgb(247, 247, 247); }
.site-footer__main { background: rgba(152, 149, 149, .65); padding: 20px 30px 24px; }
.site-footer__cols { display: flex; flex-wrap: wrap; max-width: var(--container); margin: 0 auto; }
.site-footer__col { width: 33.3333%; padding: 0 15px; text-align: center; }
.site-footer__col p { line-height: 1.6; }
.site-footer__title { margin-top: 0; margin-bottom: 5px; }
.site-footer__col p + .site-footer__title { margin-top: 8px; }
.site-footer a { color: rgb(245, 245, 245); text-decoration: none; font-family: var(--f-alt); }
.site-footer a:hover { text-decoration: underline; }
.site-footer .b-social { margin-top: 10px; }
.site-footer__bottom { background: rgba(0, 0, 0, .5); padding: 0 40px; font-size: 14px; line-height: 26px; }

/* ---------- Sichtbarkeit ---------- */
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }

/* ---------- Tablet / Mobile ---------- */
@media (max-width: 1100px) {
  :root { --header-h: 74px; }
  .site-header__inner { padding: 10px 16px; min-height: var(--header-h); }
  .site-logo { margin-left: 0; }
  .site-logo img { height: 54px; }
  .site-logo__desktop { display: none; }
  .site-logo__mobile { display: block; }
  .site-logo__desktop:only-child { display: block; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(340px, 100%);
    background: var(--c-grey); overflow-y: auto; transform: translateX(100%);
    transition: transform .25s ease; padding: 10px 0 40px; visibility: hidden;
  }
  body.nav-open .site-nav { transform: none; visibility: visible; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav > ul > li > a { margin: 0; padding: 12px 56px 12px 24px; font-size: 17px; }
  .site-nav .caret { display: none; }
  .sub-toggle {
    display: block; position: absolute; right: 8px; top: 4px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
  }
  .sub-toggle::before { content: ''; position: absolute; left: 17px; top: 14px; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .2s; }
  .sub-toggle[aria-expanded="true"]::before { transform: translateY(5px) rotate(-135deg); }
  .site-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: rgba(0,0,0,.08); }
  .site-nav li.open > .sub { display: block; }
  .site-nav .sub a { padding: 10px 24px 10px 40px; }
  .section--parallax { background-attachment: scroll; }
}

@media (max-width: 767px) {
  .cols { flex-wrap: wrap; }
  .col { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  .section { padding-left: 16px !important; padding-right: 16px !important; }
  .section[style*="padding-top"] { padding-top: min(60px, var(--pt, 60px)) !important; }
  .section[style*="padding-bottom"] { padding-bottom: 40px !important; }
  .col[style*="padding"] { padding-left: 0 !important; padding-right: 0 !important; }
  .cols { margin: 0; }
  h1 { font-size: 30px !important; }
  h1 span, h2 span, h3 span { font-size: inherit !important; }
  h2, h3 { font-size: 24px !important; }
  .m-text-align-center { text-align: center !important; }
  .m-text-align-left { text-align: left !important; }
  .b-slider { height: auto !important; aspect-ratio: 1 / 1; }
  .b-image { margin-bottom: 15px; }
  .b-form__field--half { width: 100%; }
  .site-footer__col { width: 100%; margin-bottom: 14px; }
  .site-footer__bottom { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
