/* ============================================================
   Bruchstein-Manufaktur — Layout-Styles für die HTML-Block-Abschnitte
   Wird vom Theme site-weit geladen; wirkt nur auf .bm-page/.slider/.acc.
   Kopf-/Schubladen-Styles liegen in der Theme-style.css.
   Bildpfade sind relativ zu dieser Datei (../img/...).
   ============================================================ */

/* Voll-breiter Inhaltsbereich für page.php (Elementor-Sektionen stretchen) */
.bm-main{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}

:root{
  --gold:#B58E22;
  --gold-deep:#9a7818;
  --gray-mid:#888888;
  --gray-light:#D1D1D1;
  --gray-dark:#707070;
  --ink:#242424;
  --footer:#454545;
  --bg-soft:#EAEAEA;
  --bar:#EDEDED;
  --content:1200px;
  --font-serif:"STIX Two Text", Georgia, "Times New Roman", serif;
  --font-sans:"Klavika","Hanken Grotesk","Helvetica Neue", Arial, sans-serif;
}

.bm-page *{box-sizing:border-box;}
.bm-page{
  font-family:var(--font-serif);
  color:var(--ink);
  background:#fff;
  font-size:18px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.bm-page img{display:block;max-width:100%;}
.bm-page a{color:inherit;text-decoration:none;}

.bm-page .wrap{
  max-width:var(--content);
  margin:0 auto;
  padding:0 28px;
}

/* Headline systems --------------------------------------------------- */
.bm-page .h-sans{
  font-family:var(--font-sans);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.01em;
  line-height:1.02;
  color:var(--ink);
  margin:0;
}
.bm-page .h-serif{
  font-family:var(--font-serif);
  font-weight:700;
  line-height:1.12;
  color:var(--ink);
  margin:0;
}
.bm-page p{margin:0 0 1.1em;}
.bm-page .lead{font-size:1.18rem;line-height:1.55;}

/* ============================== HERO ============================== */
.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  position:relative;
  background:#fff;
}
.hero__text{
  position:relative;
  padding:70px 28px 0 max(28px, calc((100vw - var(--content))/2 + 28px));
  display:flex;flex-direction:column;
}
.hero__text::after{          /* faint rock texture wash at the foot */
  content:"";position:absolute;left:0;right:0;bottom:0;height:126px;
  background:url("../img/texture-light.jpg") center/cover no-repeat;
  opacity:.5;z-index:0;
}
.hero__text > *{position:relative;z-index:1;}
.hero h1{
  font-family:var(--font-serif);font-weight:700;
  font-size:clamp(2.6rem,4.6vw,4rem);
  line-height:1.02;margin:0 0 .5em;
}
.hero__sub{
  font-family:var(--font-sans);
  font-size:clamp(1.15rem,1.6vw,1.5rem);
  line-height:1.35;color:var(--ink);font-weight:500;
  margin:0;
}
.hero__badge{margin-top:33px;margin-bottom:34px;}
.hero__badge img{width:290px;height:auto;}
.hero__img{
  min-height:520px;
  background:url("../img/hero-miner.jpg") center 30%/cover no-repeat;
}

/* Gold rule that splits major bands */
.gold-rule{height:7px;background:var(--gold);width:100%;}

/* ============================ TRADITION ============================ */
.tradition{background:#fff;}
.tradition .grid{
  display:grid;grid-template-columns:1fr 1fr;
}
.tradition__left{
  background:var(--bg-soft);
  padding:64px 56px 56px;
}
.tradition__right{
  background:#fff;
  padding:64px 0 56px 56px;
}
.tradition__left h2{
  font-size:clamp(2rem,3.4vw,3rem);
  margin-bottom:.45em;
}
.sub-serif{
  font-family:var(--font-serif);font-weight:700;
  font-size:1.5rem;line-height:1.2;margin:0 0 1.1em;
}
.tradition__right h3{
  font-family:var(--font-serif);font-weight:700;
  font-size:1.7rem;line-height:1.15;margin:0 0 .7em;
}
.tradition__right h3.spaced{margin-top:1.4em;}
.map-img{width:calc(100% + 56px);height:320px;object-fit:cover;margin:-64px -56px 1.6em -56px;border:1px solid #e6e6e6;max-width:none;}
.relief-img{width:100%;margin:1.4em 0;border:1px solid #e6e6e6;}
.lantern-img{width:100%;height:360px;object-fit:cover;border:1px solid #e6e6e6;}
.tick{list-style:none;padding:0;margin:.4em 0 1em;}
.tick li{position:relative;padding-left:1.3em;margin-bottom:.25em;font-weight:600;}
.tick li::before{content:"•";position:absolute;left:0;color:var(--gold);}

/* ======================= DARK TEXTURE BAND ======================= */
.band-texture{
  height:150px;
  background:url("../img/texture-dark.jpg") center/cover no-repeat;
  border-top:7px solid var(--gold);
  border-bottom:7px solid var(--gold);
}

/* ============================ UNIKATE ============================ */
.unikate{padding:64px 0 70px;}
.unikate h2{font-size:clamp(2.2rem,3.8vw,3.2rem);margin-bottom:.4em;}
.unikate__intro{font-size:1.2rem;line-height:1.5;max-width:60ch;margin-bottom:2em;}
.unikate__intro strong{font-weight:700;}

.collage{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-rows:350px 380px auto;
  gap:14px;
  grid-template-areas:
    "cart cart gray ideen"
    "figure stein sold sold"
    "cap cap small jeder";
}
.collage img{width:100%;height:100%;object-fit:cover;display:block;}
.c-cart{grid-area:cart;}
.c-figure{grid-area:figure;}
.c-soldiers{grid-area:sold;}
.c-gray{grid-area:gray;background:var(--gray-light);}
.c-ideen{
  grid-area:ideen;display:flex;align-items:flex-start;
  padding:4px 0 0 10px;
}
.c-ideen span{
  font-family:var(--font-sans);font-weight:700;text-transform:uppercase;
  color:var(--gold);font-size:clamp(2rem,3.2vw,3rem);line-height:1.05;
}
.c-stein{grid-area:stein;display:flex;flex-direction:column;}
.c-stein__txt{
  flex:1;padding:14px 6px 10px 2px;
  font-family:var(--font-sans);color:var(--gold);line-height:1.2;
}
.c-stein__txt b{display:block;font-weight:700;font-size:1.6rem;text-transform:uppercase;margin-bottom:.12em;}
.c-stein__txt span{font-weight:500;font-size:1.25rem;}
.c-stein__seal{
  background:var(--gray-light);
  display:flex;align-items:center;justify-content:center;
  padding:16px;min-height:150px;
}
.c-stein__seal img{width:170px;height:auto;}
.c-cap{grid-area:cap;padding:16px 16px 0 0;font-size:1rem;line-height:1.5;}
.c-cap p{margin:0 0 1em;}
.c-cap__sizes b{font-weight:700;}
.collage .c-small{grid-area:small;height:210px;align-self:start;}
.c-jeder{
  grid-area:jeder;display:flex;align-items:flex-start;padding:10px 0 0 8px;
}
.c-jeder span{
  font-family:var(--font-sans);font-weight:700;color:var(--gold);
  font-size:clamp(1.4rem,2vw,2rem);line-height:1.2;
}

/* ========================== BERGMANN BAND ========================== */
.bergmann{
  background:var(--gray-mid);
  color:#fff;
  text-align:center;
  padding:60px 24px 64px;
  position:relative;overflow:hidden;
  border-top:7px solid var(--gold);
}
.bergmann::before {
    content: "";
    position: absolute;
    top: 2%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translateX(-50%);
    background: url(../img/hammers-gray.jpg) center / contain no-repeat;
    mix-blend-mode: multiply;
    opacity: .26;
    pointer-events: none;
}
.bergmann h2{font-size:clamp(1.8rem,3vw,2.6rem);color:#fff;margin-bottom:.7em;position:relative;}
.bergmann__poem{
  font-family:var(--font-sans);font-weight:400;
  font-size:clamp(1.05rem,1.7vw,1.45rem);line-height:1.55;
  position:relative;max-width:60ch;margin:0 auto;
}
.bergmann__by{
  font-family:var(--font-sans);font-style:italic;font-size:1rem;
  margin-top:1em;position:relative;opacity:.92;
}

/* ============================ IDEEN ============================ */
.ideen{padding:66px 0 30px;}
.ideen h2{font-size:clamp(2.2rem,3.8vw,3.2rem);margin-bottom:.45em;}
.ideen__intro{font-size:1.22rem;line-height:1.5;max-width:78ch;margin-bottom:.6em;}
.ideen__intro strong{font-weight:700;}

.gallery{
  display:grid;grid-template-columns:1fr 1fr;
  gap:48px;align-items:center;
  padding:46px 0;
}
.gallery__text .hammers{width:48px;margin:0 auto 14px;display:block;}
.gallery__text h3{
  font-family:var(--font-serif);font-weight:700;
  font-size:1.7rem;line-height:1.2;margin:0 0 1em;
}
.gallery__list{margin:0;}
.gallery__list .row{margin-bottom:.5em;line-height:1.4;}
.gallery__list .row b{font-weight:700;}
.gallery__list .n{color:var(--gold);font-weight:700;margin-right:.15em;}

/* slider */
.slider{position:relative;}
.slider__frame{
  position:relative;overflow:hidden;
}
.slider__track{display:flex;transition:transform .45s cubic-bezier(.4,0,.2,1);}
.slider__slide{flex:0 0 100%;}
.slider__slide .slot-img{
  display:block;width:100%;height:420px;object-fit:cover;
}
.slider__slide .slot-empty{
  display:block;width:100%;height:420px;
  background:var(--gray-light);
}
.slide-badge{
  position:absolute;top:14px;right:14px;z-index:3;
  width:42px;height:42px;border-radius:50%;
  background:var(--gold);color:#fff;
  font-family:var(--font-sans);font-weight:700;font-size:1.2rem;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 3px 8px rgba(0,0,0,.25);
}
.slider__arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:4;
  width:42px;height:42px;border:0;background:none;cursor:pointer;
  color:var(--gray-dark);
  display:flex;align-items:center;justify-content:center;
  transition:.2s;
}
.slider__arrow:hover{color:var(--gold);}
.slider__arrow svg{width:30px;height:30px;}
.slider__arrow.prev{left:-46px;}
.slider__arrow.next{right:-46px;}
.slider__dots{
  display:flex;gap:10px;justify-content:center;margin-top:18px;
}
.slider__dots button{
  width:13px;height:13px;border-radius:50%;border:0;cursor:pointer;
  background:var(--gray-light);transition:.2s;padding:0;
}
.slider__dots button.active{background:var(--gold);}

/* ============================ HINWEISE ============================ */
.hinweise-banner{
  height:300px;
  background:url("../img/cave-arch.jpg") center 40%/cover no-repeat;
  border-top:7px solid var(--gold);
  border-bottom:7px solid var(--gold);
}
.hinweise{padding:60px 0 40px;}
.hinweise h2{font-size:clamp(2.1rem,3.6vw,3rem);margin-bottom:.45em;text-align:center;}
.hinweise__intro{font-size:1.22rem;line-height:1.5;max-width:80ch;margin:0 auto 2em;text-align:center;}
.hinweise__intro strong{font-weight:700;}

.acc{border:0;margin-bottom:16px;}
.acc__head{
  width:100%;text-align:left;cursor:pointer;border:0;
  background:var(--bar);
  display:flex;align-items:center;gap:18px;
  padding:16px 22px;
}
.acc__icon{
  flex:0 0 auto;width:54px;height:54px;
  display:flex;align-items:center;justify-content:center;
}
.acc__icon img{width:54px;height:54px;filter:none;}
.acc__title{
  flex:1;font-family:var(--font-serif);font-weight:700;font-size:1.4rem;color:var(--ink);
}
.acc__chev{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:22px;height:22px;transition:.3s;}
.acc__chev svg{display:none;}
.acc__chev::before{
  content:"";display:block;
  width:0;height:0;
  border-left:9px solid transparent;
  border-right:9px solid transparent;
  border-top:11px solid var(--gray-mid);
}
.acc.open .acc__chev{transform:rotate(180deg);}
.acc__body{
  max-height:0;overflow:hidden;transition:max-height .4s ease;
  background:#fafafa;
  border-left:1px solid #eee;border-right:1px solid #eee;
}
.acc__body-inner{padding:18px 22px 22px;font-size:1.02rem;line-height:1.55;}
.acc.open .acc__body{border-bottom:1px solid #eee;}

/* ============================ CLOSING ============================ */
.closing{
  background:var(--gray-light);
  text-align:center;
  padding:54px 24px 60px;
}
.closing h2{
  font-family:var(--font-serif);font-weight:700;color:#fff;
  font-size:clamp(2.4rem,4vw,3.4rem);margin:0 0 .35em;
}
.closing p{font-family:var(--font-sans);font-size:1.2rem;margin:0;color:#333;}

/* ============================ FOOTER ============================ */
.site-footer{
  background:var(--footer);color:#e9e9e9;
  border-top:7px solid var(--gold);
  position:relative;overflow:hidden;
}
.site-footer::before{
  content:"";position:absolute;left:-30px;bottom:-40px;
  width:330px;height:330px;
  background:url("../img/BErgmanns-Werkzeug.png") center/contain no-repeat;
}
.site-footer .wrap {
    display: grid;
    align-items: stretch;
    gap: 40px;
    padding: 46px 28px;
    position: relative;
    grid-auto-flow: column;
    align-content: stretch;
}
.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 18px;
    align-items: end;
}
.footer-links a{
  font-family:var(--font-sans);text-transform:uppercase;letter-spacing:.05em;
  color:var(--gold);font-size:.9rem;font-weight:600;white-space:nowrap;
}
.footer-links a:hover{color:#fff;}
.footer-badge{width:165px;justify-self:center;}
.footer-info h4{
  font-family:var(--font-serif);font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;font-size:1.25rem;color:#fff;margin:0 0 .5em;
}
.footer-info p{font-family:var(--font-sans);line-height:1.5;margin:0;color:#dadada;font-size:1rem;}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .bm-page{font-size:17px;}
  .hero__text{padding-top:54px;}
  .hero__img{min-height:420px;}
  .tradition__left{padding:48px 36px;}
  .tradition__right{padding:48px 0 48px 36px;}
  .map-img{width:calc(100% + 36px);margin:-48px 0 1.6em -36px;}
  .collage{
    grid-template-columns:1fr 1fr;
    grid-template-rows:none;
    grid-auto-rows:auto;
    grid-template-areas:
      "cart cart"
      "figure stein"
      "ideen gray"
      "sold sold"
      "small jeder"
      "cap cap";
  }
  .collage img{height:260px;}
  .collage .c-small{height:260px;}
  .c-gray,.c-ideen{min-height:150px;}
  .c-stein__seal img{width:150px;}
  .slider__slide .slot-img,.slider__slide .slot-empty{height:360px;}
  .slider__arrow.prev{left:6px;}
  .slider__arrow.next{right:6px;}
  .slider__arrow{background:rgba(255,255,255,.85);border-radius:50%;}
}

@media (max-width:760px){
  .bm-page{font-size:16px;}
  .hero{grid-template-columns:1fr;}
  .hero__text{padding:46px 24px 40px;}
  .hero__text::after{display:none;}
  .hero__img{min-height:340px;order:-1;}
  .tradition .grid{grid-template-columns:1fr;}
  .tradition__left{padding:40px 24px;}
  .tradition__right{padding:36px 24px 40px;}
  .map-img{width:calc(100% + 48px);margin:-36px -24px 1.6em -24px;}
  .collage{
    grid-template-columns:1fr;
    grid-template-rows:none;
    grid-auto-rows:auto;
    grid-template-areas:
      "cart" "ideen" "figure" "stein" "sold" "cap" "small" "jeder";
  }
  .collage img{height:240px;}
  .collage .c-small{height:240px;}
  .c-gray{display:none;}
  .c-jeder{padding:8px 0 0;}
  .gallery{grid-template-columns:1fr;gap:26px;padding:34px 0;}
  .gallery--flip .gallery__text{order:-1;}
  .slider__slide .slot-img,.slider__slide .slot-empty{height:300px;}
  .site-footer .wrap{grid-template-columns:1fr;grid-auto-flow:row;text-align:center;gap:26px;}
  .footer-links{flex-direction:row;justify-content:center;gap:18px;flex-wrap:wrap;align-items:center;}
  .footer-badge{justify-self:center;}
  .bergmann::before{width:680px;height:680px;}
}
@media (max-width:760px){
  .d-br{display:none;}
}
