:root {
  --mint: #cfead9;
  --ink: #0f1012;
  --white: #ffffff;
  --topbar-h: 3.5rem;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica Neue, Arial, Noto Sans, sans-serif;
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
} /* ===== Topbar ===== */
.uu-topbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: var(--mint);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.uu-topbar__inner {
  height: var(--topbar-h);
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.uu-topbar__brand img {
  height: 1.9rem;
  display: block;
}
.uu-topbar__nav {
  margin-left: auto;
  display: flex;
  gap: clamp(1rem, 4vw, 3rem);
}
.uu-topbar__link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}
.uu-topbar__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
} /* Burger */
.uu-topbar__toggle {
  display: none;
  border: 0;
  background: transparent;
  margin-left: auto;
  cursor: pointer;
}
.uu-topbar__burger {
  width: 1.6rem;
  height: 0.125rem;
  background: var(--ink);
  position: relative;
  display: block;
}
.uu-topbar__burger::before,
.uu-topbar__burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.125rem;
  background: var(--ink);
}
.uu-topbar__burger::before {
  top: -0.4rem;
}
.uu-topbar__burger::after {
  top: 0.4rem;
} /* Mobile-Navi */
@media (max-width: 860px) {
  .uu-topbar__toggle {
    display: block;
  }
  .uu-topbar__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--topbar-h);
    background: #fff;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }
  .uu-topbar__nav.is-open {
    display: flex;
  }
} /* ===== Hero (ohne Effekt) ===== */
.uu-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--topbar-h));
  background: #0a0b0d;
  overflow: hidden;
} /* Nur das Bild, kein Overlay/Gradient, keine JS-Transformation */
.uu-hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/assetss/img/haupt/hauptbild.webp") center center /
    cover no-repeat;
  z-index: -1; /* hinter Inhalt */
  opacity: 1;
} /* Optionaler Inhalt zentriert, falls genutzt */
.uu-hero__overlay {
  height: 100%;
  max-width: 82.5rem;
  margin: 0 auto;
  padding: 3rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
} /* Sicherheit: kein horizontales Scrollen */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* ===== Main Content ===== */
main {
  flex: 1;
}

/* ===== Footer ===== */
.uu-footer {
  position: relative;
  background: #000;
  color: #fff;
  padding: 2.5rem 1.25rem;
  z-index: 2;
  text-align: center;
  margin-top: auto;
}
.uu-footer__copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}
.uu-footer__link {
  color: rgba(255, 255, 255, 0.98);
  text-decoration: none;
}
.uu-footer__link:hover,
.uu-footer__link:focus {
  text-decoration: underline;
}
.uu-footer__link:visited {
  color: rgba(255, 255, 255, 0.98);
}

/* ===== Bautagebuch Content ===== */
.bt-content {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px);
  max-width: 1200px;
  margin: 0 auto;
}

.bt-content__inner h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: clamp(30px, 5vw, 50px);
  color: var(--ink);
  text-align: center;
}

.bt-items {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 5vw, 50px);
}

.bt-item {
  width: 100%;
}

.bt-item--text {
  background: #f9f9f9;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
}

.bt-text {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.8;
  color: var(--ink);
}

.bt-text__title {
  font-weight: 800;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
  margin-bottom: clamp(12px, 2vw, 20px);
  color: var(--ink);
}

.bt-text__content {
  font-weight: 400;
  line-height: 1.7;
}

.bt-item--image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  width: 100%;
}

.bt-item--image a {
  display: block;
  width: 100%;
}

.bt-item--image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Nebeneinander Layout */
.bt-item--side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Beide Seiten gleich groß */
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
}

/* Wenn nur Text oder nur Bild: volle Breite */
.bt-item--side-by-side.bt-item--full-width {
  grid-template-columns: 1fr;
}

.bt-item--side-by-side.bt-item--reverse {
  grid-template-columns: 1fr 1fr; /* Beide Seiten gleich groß */
}

.bt-item--side-by-side.bt-item--reverse .bt-side-image {
  order: 2;
}

.bt-item--side-by-side.bt-item--reverse .bt-side-text {
  order: 1;
}

/* Zwei Bilder nebeneinander */
.bt-item--two-images {
  grid-template-columns: 1fr 1fr !important;
}

.bt-item--two-images .bt-side-image {
  width: 100%;
}

/* Vier Bilder nebeneinander */
.bt-item--four-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(15px, 3vw, 30px);
  align-items: stretch;
}

.bt-four-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #f5f5f5;
}

.bt-four-image a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-four-image img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: contain;
  display: block;
}

.bt-side-text {
  background: #f9f9f9;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 32px);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--ink);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bt-side-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #f5f5f5;
}

.bt-side-image a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-side-image img {
  width: 100%;
  height: auto;
  min-height: 300px;
  object-fit: contain;
  display: block;
}

/* Grid-Layout Container */
.bt-items.grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 30px);
  align-items: start;
}

/* Bildgrößen */
.bt-image--small img {
  max-width: 25%;
  margin: 0 auto;
  display: block;
}

.bt-image--medium img {
  max-width: 50%;
  margin: 0 auto;
  display: block;
}

.bt-image--large img {
  max-width: 75%;
  margin: 0 auto;
  display: block;
}

.bt-image--full img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grid-Layout Items */
.bt-item--grid {
  width: 100%;
  overflow: hidden;
}

.bt-item--grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox Styles */
.bt-lightbox-trigger {
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  border: none;
  outline: none;
}

.bt-lightbox-trigger:hover {
  opacity: 0.9;
}

.bt-lightbox-trigger:focus {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.bt-lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
}

.bt-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bt-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.bt-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.2s ease-in;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.bt-lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.bt-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.bt-lightbox__close:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .bt-item--side-by-side {
    grid-template-columns: 1fr;
  }
  .bt-item--side-by-side.bt-item--reverse {
    grid-template-columns: 1fr;
  }
  .bt-items.grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .bt-image--small,
  .bt-image--medium,
  .bt-image--large {
    max-width: 100%;
  }
  .bt-side-image {
    min-height: 200px;
  }
  .bt-side-image img {
    max-height: 400px;
  }
  .bt-item--four-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .bt-four-image {
    min-height: 150px;
  }
  .bt-lightbox__content {
    max-width: 95vw;
    max-height: 95vh;
    padding: 20px;
  }
  .bt-lightbox__close {
    top: 10px;
    right: 10px;
    font-size: 32px;
  }
  .bt-lightbox__image {
    max-height: 85vh;
  }
}
