/* Gebrüder Baumann — Nachbau des Jimdo-Designs als statische Seite.
   Farben/Schriften entsprechen dem bisherigen Layout:
   Text #2a2a2a, Hover #969696, Nav schwarz/uppercase, Inhalt max. 990px. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a2a;
  background: #fff;
}

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

a { color: #2a2a2a; text-decoration: none; transition: color 250ms ease-in-out; }
a:hover, a:focus { color: #969696; }
.j-text a, .cc-m-textwithimage-inline-rte a, p a { text-decoration: underline; }

/* ---------- Kopfbereich ---------- */

.jtpl-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, .2);
}

.jtpl-header__inner {
  max-width: 990px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 75px;
}

.jtpl-logo img { display: block; width: 92px; height: auto; }

.jtpl-navigation { flex: 1; }

.jtpl-navigation ul { list-style: none; }

.jtpl-navigation .nav-root {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.jtpl-navigation a {
  display: block;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 300;
  font-size: 15px;
  color: #454545;
  white-space: nowrap;
}

.jtpl-navigation a:hover,
.jtpl-navigation a:focus,
.jtpl-navigation li.current > a,
.jtpl-navigation li.parent > a { color: #000; }

/* Dropdown (Ebene 1 + 2) */
.jtpl-navigation li { position: relative; }

.jtpl-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  padding: 6px 0;
  z-index: 110;
}

.jtpl-navigation ul ul ul { top: 0; left: 100%; }

.jtpl-navigation li:hover > ul,
.jtpl-navigation li:focus-within > ul { display: block; }

.jtpl-navigation ul ul a {
  text-transform: none;
  letter-spacing: .04em;
  font-size: 15px;
  padding: 8px 18px;
}

.nav-toggle { display: none; }

/* ---------- Kopfbild-Diashow ---------- */

.jtpl-header--image {
  position: relative;
  width: 100%;
  height: min(480px, 48vh);
  margin-top: 95px;   /* unter dem fixierten Header */
  overflow: hidden;
}

.jtpl-header--image .bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.jtpl-header--image .bg-slide.active { opacity: 1; }

.jtpl-header--image + .jtpl-section-main { padding-top: 0; }

/* ---------- Inhalt ---------- */

.jtpl-section-main {
  padding-top: 95px;   /* Platz für fixierten Header */
  min-height: 60vh;
  background: #fff;
}

.jtpl-content {
  max-width: 990px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.j-module { margin-bottom: 18px; }

.j-module h1 { font-size: 30px; line-height: 1.25; margin: 10px 0 14px; font-weight: 700; }
.j-module h2 { font-size: 26px; line-height: 1.25; margin: 10px 0 12px; font-weight: 700; }
.j-module h3 { font-size: 22px; line-height: 1.25; margin: 8px 0 10px; font-weight: 700; }
.j-module p { margin-bottom: 10px; }

.cc-clear { clear: both; }

.cc-m-spacer { width: 100%; }

/* Bild mit Unterschrift */
.cc-imagewrapper { margin: 6px 0 14px; display: table; max-width: 100%; }
.cc-imagewrapper.cc-m-width-maxed img { width: 100%; }
.cc-imagewrapper figcaption {
  display: table-caption;
  caption-side: bottom;
  font-size: 13.5px;
  color: #6d6d6d;
  padding-top: 6px;
  line-height: 1.45;
}

/* Text mit Bild: Bild links umflossen */
.j-textWithImage .cc-imagewrapper {
  float: left;
  margin: 4px 22px 10px 0;
  max-width: 45%;
}
.j-textWithImage .cc-m-textwithimage-inline-rte { overflow: visible; }
.j-textWithImage::after { content: ""; display: table; clear: both; }

/* Spalten-Raster (Breiten kommen aus den Original-Inline-Styles) */
.j-hgrid { display: flex; align-items: flex-start; }
.cc-m-hgrid-column { flex: 1 1 auto; min-width: 0; }
.cc-m-hgrid-separator, .cc-m-hgrid-overlay { display: none; }

/* Bildreihe mit einheitlicher Hoehe (per Patch gesetzt):
   Spalten proportional zum Bildseitenverhaeltnis -> gleiche Hoehen,
   kein Umbruch, skaliert mit der Fensterbreite. */
.equal-height-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: flex-start;
}
.equal-height-row .cc-m-hgrid-column {
  width: auto !important;
  min-width: 0;
}
.equal-height-row .cc-imagewrapper {
  float: none;
  margin: 0;
  max-width: none;
  display: block;
}
.equal-height-row .cc-imagewrapper figcaption { display: block; }
.equal-height-row img {
  width: 100% !important;
  height: auto;
  display: block;
}

/* Galerien (Raster + ehemalige Slider) */
.cc-m-gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}
.cc-m-gallery-container ul { display: contents; list-style: none; }
.cc-m-gallery-container li { display: block; }
.cc-m-gallery-cool-item, .cc-m-gallery-container li, .thumb_sq2 {
  flex: 0 0 auto;
}
.cc-m-gallery-cool-item img,
.cc-m-gallery-container li img {
  height: 150px;
  width: auto;
  display: block;
}
.thumb_sq2 { overflow: hidden; }
.thumb_sq2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-m-gallery-cool-item a:hover img,
.cc-m-gallery-container a:hover img,
.thumb_sq2 a:hover img { opacity: .85; }
.cc-m-gallery-slider-thumbnails-wrapper,
.cc-m-gallery-slider-bar,
.cc-m-gallery-slider-fullscreen { display: none; }

/* Tabellen */
.j-table table { border-collapse: collapse; width: 100%; }
.j-table td, .j-table th { border: 1px solid #dadada; padding: 6px 10px; vertical-align: top; }

/* Gästebuch-Archiv */
.guestbook-count { font-weight: 700; margin: 14px 0; }
.guestbook-list { list-style: none; }
.guestbook-list .commentstd {
  border-top: 1px solid #e3e3e3;
  padding: 16px 0;
}
.guestbook-list .number { color: #969696; font-size: 14px; }
.guestbook-list .com-meta { margin: 2px 0 6px; }
.guestbook-list .com-meta em { color: #6d6d6d; font-style: normal; font-size: 14px; }
.guestbook-list .commententry { white-space: normal; }

/* ---------- Fußzeile ---------- */

.jtpl-footer { background: #fff; border-top: 1px solid #e3e3e3; }
.jtpl-footer__inner {
  max-width: 990px;
  margin: 0 auto;
  padding: 22px 20px;
  font-size: 14px;
  color: #6d6d6d;
  text-align: center;
}
.jtpl-footer a { color: #2a2a2a; }
.jtpl-footer a:hover { color: #969696; }

/* ---------- Lightbox ---------- */

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .88);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  cursor: zoom-out;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 95vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
}
.lb-caption { color: #ddd; padding-top: 12px; font-size: 15px; text-align: center; }
.lb-close {
  position: fixed;
  top: 14px;
  right: 22px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}
.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 46px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 14px;
  opacity: .7;
}
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }

/* ---------- Mobil ---------- */

@media (max-width: 820px) {
  .jtpl-header__inner { flex-wrap: wrap; gap: 10px; min-height: 60px; padding: 8px 16px; }
  .jtpl-logo img { width: 64px; }

  .nav-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 22px;
    padding: 2px 10px;
    cursor: pointer;
    color: #2a2a2a;
  }

  .jtpl-navigation { display: none; flex-basis: 100%; }
  .jtpl-navigation.open { display: block; }
  .jtpl-navigation .nav-root { display: block; }
  .jtpl-navigation a { white-space: normal; padding: 10px 6px; border-top: 1px solid #eee; }
  .jtpl-navigation ul ul {
    display: block;
    position: static;
    box-shadow: none;
    padding-left: 18px;
    min-width: 0;
  }

  .jtpl-section-main { padding-top: 80px; }
  .jtpl-header--image { height: 220px; margin-top: 80px; }
  .jtpl-header--image .bg-slide { background-attachment: scroll; }
  .j-textWithImage .cc-imagewrapper { float: none; max-width: 100%; margin-right: 0; }
}

@media print {
  .jtpl-header, .jtpl-footer, .nav-toggle { display: none; }
  .jtpl-section-main { padding-top: 0; }
}
