/* ═══════════════════════════════════════════
   Baumisbikerblog – Theme Styles
   ═══════════════════════════════════════════ */

/* ─── Font-Face (lokale Schriften) ─── */
@font-face {
  font-family: 'Aleo';
  src: url('../fonts/Aleo/Aleo-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Aleo';
  src: url('../fonts/Aleo/Aleo-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/Work_Sans/WorkSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../fonts/Work_Sans/WorkSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ─── Design-Tokens ─── */
:root {
  --bbb-primary: #151515;
  --bbb-secondary: #fff;
  --bbb-accent: #FFFF1E;
  --bbb-background: #f7f7f7;

  --bbb-spacing-xs: 15px;
  --bbb-spacing-sm: 20px;
  --bbb-spacing-md: 25px;
  --bbb-spacing-lg: 30px;
  --bbb-spacing-xl: 35px;
  --bbb-spacing-2xl: 40px;
  --bbb-spacing-3xl: 45px;
  --bbb-spacing-4xl: 50px;

   --bbb-headline-xs: clamp(1.1rem, 0.5rem + 1.5vw, 2rem);
  --bbb-headline-s: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  --bbb-headline-m: clamp(1.375rem, 0.75rem + 1.8vw, 2.25rem);
  --bbb-headline-l: clamp(1.75rem, 0.5rem + 4.5vw, 4.1875rem);

  --bbb-headline: 'Aleo', serif;
  --bbb-lauftext: 'Work Sans', sans-serif;

  --bbb-fw-regular: 500;
  --bbb-fw-bold: 700;

  --bbb-fz-xs: 12px;
  --bbb-fz-s: 16px;
  --bbb-fz-m: 18px;
  --bbb-fz-l: 20px;
  --bbb-fz-xl: 22px;
  --bbb-fz-2xl: 24px;
}

/* ─── Reset / Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--bbb-lauftext);
  font-size: var(--bbb-fz-s);
  font-weight: var(--bbb-fw-regular);
  line-height: 1.6;
  color: var(--bbb-primary);
  background: var(--bbb-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-weight: var(--bbb-fw-bold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bbb-primary);
  transition: opacity 0.2s;
}

a:hover {

}

/* Focus für Barrierefreiheit */
:focus-visible {
  outline: 3px solid var(--bbb-accent);
  outline-offset: 2px;
}

/* ─── Skip-Link (unsichtbar aber fokussierbar) ─── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ─── Layout ─── */
.bbb-site {
  width: 100%;
}

.bbb-main {
  width: 100%;
}

/* ─── Homepage ─── */
.home-content {
  display: flex;
  align-items: flex-start;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* Linke Spalte – neuester Beitrag (Hero) */
.home-left {
  position: sticky;
  top: 0;
  width: 50%;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--bbb-spacing-2xl);
  background-size: cover;
  background-position: center;
  color: var(--bbb-secondary);
  text-decoration: none;
  overflow: hidden;
}

.home-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.home-left-overlay {
  position: relative;
  z-index: 1;
}

.home-left-title {
  font-family: var(--bbb-headline);
  font-size: var(--bbb-headline-l);
  margin: 0 0 var(--bbb-spacing-xs);
  line-height: 1.1;
}

.home-left-date {
  display: block;
  font-size: var(--bbb-fz-s);
  margin-bottom: var(--bbb-spacing-sm);
  opacity: 0.9;
}

.bbb-btn-wrapper{
display:flex;
justify-content: end;
}

.home-left-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--bbb-secondary);
  color: var(--bbb-secondary);
  text-decoration: none;
}

.home-left-btn:hover,
.home-left-btn:focus-visible {
  background: var(--bbb-accent);
  color: var(--bbb-primary);
  opacity: 1;
}

.home-left:hover .home-left-btn,
.home-left:focus-visible .home-left-btn {
    background: var(--bbb-accent);
  color: var(--bbb-primary);
  border-color: #000;
  opacity: 1;
}

/* Rechte Spalte – Grid */
.home-grid {
  width: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.home-grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--bbb-spacing-sm);
  color: var(--bbb-secondary);
  text-decoration: none;
  overflow: hidden;
  height:400px;
}

.home-grid:last-child{
  margin-bottom:100px;
}

.home-grid-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.home-grid-item:hover .home-grid-bg,
.home-grid-item:focus-visible .home-grid-bg {
  transform: scale(1.05);
}

.home-grid-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background 0.3s ease;
}

.home-grid-item:hover::before,
.home-grid-item:focus-visible::before {
  background: rgba(0, 0, 0, 0.55);
}

.home-grid-content {
  position: relative;
  z-index: 2;
}

.home-grid-title {
  font-family: var(--bbb-headline);
  font-size: var(--bbb-headline-s);
  margin: 0 0 4px;
  line-height: 1.2;
}

.home-data-wrapper{
  display:flex;
  flex-direction:row;
  justify-content: space-between;
  align-items: flex-end;
}

.home-grid-date {
  display: block;
  font-size: var(--bbb-fz-s);
  opacity: 0.85;
}

.home-grid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--bbb-secondary);
  color: var(--bbb-secondary);
}

.home-grid-item:hover .home-grid-btn,
.home-grid-item:focus-visible .home-grid-btn {
    background: var(--bbb-accent);
    color: var(--bbb-primary);
    border-color: var(--bbb-accent);
}

/* ─── Single Post ─── */
.bbb-single {
  width: 100%;
}

.bbb-hero-wrap {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

.bbb-hero {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.bbb-content{
  max-width:900px;
  margin:0 auto;
  padding: var(--bbb-spacing-xs) 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 10px;
  margin-bottom: 100px;
}

.bbb-single-header {
  content-visibility: auto;
  contain-intrinsic-size: 300px;
}
.bbb-article p{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
}

.bbb-article img{
padding: 5px;
max-width:300px;
max-height:200px;
object-fit:cover;
}

.bbb-article iframe{
padding: 5px;
width:100%!important;
height: 500px !important;
}

.bbb-gallery-back-wrap {
  max-width: 1400px;
}

.bbb-gallery-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 2px solid var(--bbb-primary);
  color: var(--bbb-primary);
  text-decoration: none;
}

.bbb-gallery-back:hover,
.bbb-gallery-back:focus-visible {
  background-color: var(--bbb-primary);
  color:var(--bbb-accent);
  border-color: var(--bbb-accent);
}

.bbb-gallery-back svg {
  display: block;
  width: 45px;
  height: 45px;
  transform: rotate(180deg);
}
.bbb-back a {
  border: 2px solid var(--bbb-primary);
  background-color: var(--bbb-accent);
  font-weight: var(--bbb-fw-bold);
  font-size: var(--bbb-fz-m);
  padding: 5px 10px;
}

.bbb-single-title {
  font-family: var(--bbb-headline);
  font-size: var(--bbb-headline-l);
  margin: var(--bbb-spacing-xs) 0;
  line-height: 1.1;
}

.bbb-single-date {
  display: block;
  font-size: var(--bbb-fz-s);

  color: var(--bbb-primary);
}

.bbb-single-description {
  max-width: 800px;
  font-size: var(--bbb-headline-xs);
  line-height: 1.5;
}

.bbb-single-description p {
  margin: 0 0 var(--bbb-spacing-sm);
}

.bbb-single-description p:last-child {
  margin-bottom: 0;
}

/* ─── Masonry-Gallery ─── */


.bbb-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 4px;
  gap: 0 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.bbb-gallery-masonry-item {
  grid-row-end: span 4;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.bbb-gallery-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Back-to-Top ─── */
.bbb-back-to-top {
  position: fixed;
  bottom: var(--bbb-spacing-sm);
  left: var(--bbb-spacing-sm);
  z-index: 1000;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bbb-primary);
  background: var(--bbb-accent);
  color: var(--bbb-primary);
  cursor: pointer;

}

.bbb-back-to-top:hover,
.bbb-back-to-top:focus-visible {
  opacity: 1;
  background: var(--bbb-primary);
  color: var(--bbb-secondary);
}

.bbb-back-to-top[hidden] {
  display: none;
}

/* ─── Footer ─── */
.bbb-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  text-align: center;
  background: #151515;
  color: var(--bbb-accent);
  content-visibility: auto;
  contain-intrinsic-size: 80px;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bbb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.bbb-footer-rm{
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.bbb-footer-cr {
  margin: 0;
  font-size: var(--bbb-fz-xs);
  opacity: 0.6;
  line-height: 1;
  font-weight:300;
}

.bbb-footer-quote{
  font-size: var(--bbb-fz-m);
  opacity: 1;
  line-height: 1;
  font-style: italic;
}

.bbb-footer ul{
  list-style-type: none;
  display: flex;
  gap: 20px;
  padding: 0;
  justify-content: center;
  font-size: var(--bbb-fz-xs);
  font-weight:300;
  margin:0;
}

.bbb-footer a{
  color:#FFFF1E;
  font-size: var(--bbb-fz-xs);
  opacity: 0.6;
  font-weight:300;
  text-decoration: none;
}



/* ─── 404 ─── */
.bbb-404 {
  max-width: 600px;
  margin: var(--bbb-spacing-4xl) auto;
  padding: 0 var(--bbb-spacing-lg);
  text-align: center;
}

.bbb-404 h1 {
  font-family: var(--bbb-headline);
  font-weight: var(--bbb-fw-regular);
  font-size: var(--bbb-headline-l);
  margin: 0 0 var(--bbb-spacing-md);
}

/* ─── Lightbox ─── */
.bbb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.bbb-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.bbb-lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--bbb-spacing-2xl);
}

.bbb-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  cursor: default;
  transition: transform 0.2s;
}

.bbb-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: var(--bbb-fz-2xl);
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s;
}

.bbb-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.bbb-lightbox-prev,
.bbb-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: var(--bbb-fz-xl);
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s, opacity 0.2s;
  opacity: 0.6;
}

.bbb-lightbox-prev:hover,
.bbb-lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  opacity: 1;
}

.bbb-lightbox-prev { left: 16px; }
.bbb-lightbox-next { right: 16px; }

.bbb-lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: var(--bbb-fz-xs);
  font-family: inherit;
  letter-spacing: 1px;
}

/* ─── Cookie-Banner ─── */
.bbb-cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
}

.bbb-cookie-banner[hidden] {
  display: none !important;
}

.bbb-cookie-inner {
  position: relative;
  background: var(--bbb-secondary);
  color: var(--bbb-primary);
  max-width: 440px;
  width: 90%;
  padding: var(--bbb-spacing-lg) var(--bbb-spacing-md) var(--bbb-spacing-md);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.bbb-cookie-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: var(--bbb-primary);
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.bbb-cookie-close:hover {
  opacity: 0.6;
}

.bbb-cookie-title {
  font-family: var(--bbb-headline);
  font-size: var(--bbb-fz-l);
  margin: 0 0 var(--bbb-spacing-xs);
}

.bbb-cookie-text {
  font-size: var(--bbb-fz-s);
  line-height: 1.5;
  margin: 0 0 var(--bbb-spacing-md);
}

.bbb-cookie-text a {
  color: var(--bbb-primary);
  text-decoration: underline;
}

.bbb-cookie-btn {
  display: inline-block;
  background: var(--bbb-primary);
  color: var(--bbb-accent);
  border: 2px solid var(--bbb-primary);
  font-family: var(--bbb-lauftext);
  font-size: var(--bbb-fz-s);
  font-weight: var(--bbb-fw-bold);
  padding: 8px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.bbb-cookie-btn:hover {
  background: var(--bbb-accent);
  color: var(--bbb-primary);
}

/* ─── Responsive (deskop - tablet) ─── */
@media (max-width: 1200px) {

.home-grid {
  grid-template-columns: 1fr;
}


}

/* ─── Responsive (Mobil) ─── */
@media (max-width: 820px) {
  .home-content {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .home-left,
  .home-grid {
    width: 100%;
  }

  .home-left {
    position: relative;
    height: auto;
    min-height: 400px;
    top: auto;
    padding: var(--bbb-spacing-sm);
  }

  .home-grid {
    height: auto;
    overflow-y: visible;
    grid-template-columns: 1fr 1fr;
  }

  .bbb-footer {
    position: fixed;
    bottom: 0;
  }

  .bbb-content{
    padding:var(--bbb-spacing-xs);
  }

  .bbb-single-header {
  
  }

  .bbb-gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
 }

  .bbb-gallery-back-wrap {
  }

  .bbb-lightbox-inner {
    padding: var(--bbb-spacing-sm);
  }

  .bbb-lightbox-prev,
  .bbb-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: var(--bbb-fz-m);
  }

  .bbb-lightbox-prev { left: 8px; }
  .bbb-lightbox-next { right: 8px; }

  .bbb-lightbox-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: var(--bbb-fz-l);
  }
  .home-grid:last-child{
  margin-bottom:0px;
}
}

@media (max-width: 480px) {
  .bbb-hero-wrap {
  max-height: 50vh;
}
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-grid-item{
    height: 300px;
  }

  .home-left-date {
  margin-bottom: initial;
  }

  .bbb-gallery-masonry {
    grid-template-columns: 1fr;
  }

  .bbb-footer{
    min-height: initial;
  }
  .bbb-footer-inner {
    padding:10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

  .bbb-footer-quote{
    margin:0;
  }

}
