/* =========================================
   Scrollbar unsichtbar (weiterhin scrollbar)
========================================= */
body::-webkit-scrollbar { display: none; }
body {
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge Legacy */
}


/* =========================================
   Google Fonts
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Kaisei+Decol&family=Kalnia:wght@100..700&display=swap');


/* =========================================
   GLOBAL
========================================= */
html, body {
  margin: 0;
  height: 100%;
  background: #23380B;
  font-family: "Kaisei Decol", serif;
  overflow-x: hidden;              /* keine horizontale Scrollbar */
}

body.lightbox-open{
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}


/* =========================================
   NAVBAR
   (Optik wie gehabt, feste Höhe für 100vh-Logik)
========================================= */
.navbar {
  background: #FDF6E7;
  margin: 20px 40px;               /* Abstand oben/unten + Seiten */
  padding: 15px 30px;
  border-radius: 25px;
  font-family: "Kalnia", serif;
  position: relative;
  z-index: 5;
  height: 60px;                    /* feste Höhe für exakte Header-Berechnung */
  display: grid;
  align-items: center;             /* Inhalte vertikal mittig in der Navbar */
}

.navbar nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* links – logo – rechts */
  align-items: center;
}

.navbar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}

.navbar nav ul li a {
  display: block;
  padding: 8px 18px;
  background: #23380B;
  color: #FDF6E7;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 23px;
  transition: .3s;
}
.navbar nav ul li a:hover { background: #4c662d; }

.nav-left  { display: flex; gap: 40px; justify-content: flex-start; }
.nav-right { display: flex; gap: 40px; justify-content: flex-end; }

.logo { text-align: center; }
.logo img {
  height: 60px;
  display: block;
  margin: 0 auto;
}





/* ===== GALLERY – clean, edel, passend zum Design ===== */
.gallery{
  margin: 60px 40px;                 /* gleiche Seitenflucht wie deine Sections */
}

.gallery-frame{
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(76,102,45,.16), transparent 28%),
    linear-gradient(180deg, #fdf8ef 0%, #f4ebdb 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.16);
}

.gallery-frame::before{
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(35,56,11,.06);
  pointer-events: none;
}

.gallery-intro{
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 28px;
}

.gallery-kicker{
  margin: 0 0 10px;
  color: #4c662d;
  font-family: "Kalnia", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gallery-intro h1{
  margin: 0;
  color: #23380B;
  font-family: "Kalnia", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
}

.gallery-copy{
  margin: 14px 0 0;
  color: rgba(35,56,11,.82);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.gallery-grid{
  position: relative;
  z-index: 1;
  columns: 3 280px;
  column-gap: 18px;
}

/* Card-Style */
.g-item{
  display: block;
  position: relative;
  margin: 0 0 18px;
  border-radius: 22px;
  overflow: hidden;
  break-inside: avoid;
  background: #efe4cf;
  border: 1px solid rgba(35,56,11,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  line-height: 0;                     /* kein Inline-Gap */
  cursor: zoom-in;
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.g-item::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.38) 100%);
  opacity: 0;
  transition: opacity .22s ease;
  z-index: 1;
}
.g-item::after{
  content: "Vollbild";
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(253,246,231,.92);
  color: #23380B;
  font-family: "Kalnia", serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 2;
}
.g-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  filter: saturate(1.03);
}
.g-item:hover::before,
.g-item:hover::after,
.g-item:focus-visible::before,
.g-item:focus-visible::after{
  opacity: 1;
  transform: translateY(0);
}
.g-item:focus-visible{
  outline: 3px solid #FDF6E7;
  outline-offset: 4px;
}

/* Bild füllt die Kachel ohne weiße Balken */
.g-item img{
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  background: transparent;
  border: 0; outline: none;
  transition: transform .35s ease;
}
.g-item:hover img,
.g-item:focus-visible img{
  transform: scale(1.03);
}

/* leichte Größenanpassung bei schmaleren Screens */
@media (max-width: 1100px){
  .gallery-grid{
    columns: 2 240px;
    column-gap: 16px;
  }
}

/* ---------- Mobile: 1 Spalte, 100% Breite, keine Lücken ---------- */
@media (max-width: 768px){
  .gallery{
    margin: 34px 16px 0;
  }
  .gallery-frame{
    padding: 22px 16px 16px;
    border-radius: 24px;
  }
  .gallery-intro{
    margin-bottom: 18px;
  }
  .gallery-copy{
    line-height: 1.6;
  }
  .gallery-grid{
    columns: 1;
    column-gap: 0;
  }
  .g-item{
    width: 100%;
    margin-bottom: 12px;
    background: #FDF6E7;
  }
  .g-item:last-child{
    margin-bottom: 0;
  }
  .g-item img{
    width: 100%;
    height: auto;                     /* natürliche Höhe → keine Lücke */
    object-fit: cover;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.lightbox.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(253,246,231,.16), transparent 34%),
    rgba(17, 17, 17, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lightbox-shell{
  position: relative;
  z-index: 1;
  width: min(100%, 1380px);
  max-height: 100%;
  display: grid;
  gap: 18px;
}

.lightbox-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-counter{
  margin: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(253,246,231,.14);
  border: 1px solid rgba(253,246,231,.18);
  color: #FDF6E7;
  font-family: "Kalnia", serif;
  font-size: 18px;
  letter-spacing: .04em;
}

.lightbox-close,
.lightbox-nav{
  border: 0;
  color: #FDF6E7;
  font-family: inherit;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  touch-action: manipulation;
}

.lightbox-close{
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(253,246,231,.14);
  border: 1px solid rgba(253,246,231,.18);
  font-size: 16px;
  font-weight: 700;
}

.lightbox-nav{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(253,246,231,.14);
  border: 1px solid rgba(253,246,231,.18);
  display: grid;
  place-items: center;
  font-size: 42px;
  line-height: 1;
  flex-shrink: 0;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible{
  background: #FDF6E7;
  color: #23380B;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transform: translateY(-1px);
  outline: none;
}

.lightbox-stage{
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 0;
}

.lightbox-figure{
  margin: 0;
  display: grid;
  gap: 18px;
  width: min(100%, 1140px);
  padding: clamp(14px, 2vw, 24px);
  border-radius: 32px;
  background: linear-gradient(180deg, #fdf8ef 0%, #f1e6d2 100%);
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  justify-items: center;
  min-width: 0;
}

.lightbox-figure img{
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(74vh, 820px);
  object-fit: contain;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 16px 38px rgba(0,0,0,.12);
}

.lightbox-meta{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #23380B;
}

.lightbox-caption{
  font-family: "Kalnia", serif;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
}

.lightbox-hint{
  font-size: 14px;
  line-height: 1.5;
  color: rgba(35,56,11,.72);
  text-align: right;
}

@media (max-width: 900px){
  .lightbox{
    padding: 0;
  }

  .lightbox-shell{
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    gap: 0;
  }

  .lightbox-topbar{
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    z-index: 4;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
  }

  .lightbox-counter,
  .lightbox-close{
    pointer-events: auto;
    padding: 10px 14px;
    font-size: 15px;
    color: #FDF6E7;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .lightbox-close{
    min-width: 110px;
  }

  .lightbox-stage{
    grid-template-columns: 1fr;
    gap: 0;
    height: 100%;
    align-items: stretch;
  }

  .lightbox-figure{
    position: relative;
    width: 100%;
    height: 100%;
    padding:
      calc(76px + env(safe-area-inset-top, 0px))
      12px
      calc(148px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 0;
    align-content: center;
  }

  .lightbox-figure img{
    width: auto;
    max-width: 100%;
    max-height: min(64dvh, 560px);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(0,0,0,.28);
  }

  .lightbox-meta{
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    padding: 16px;
    border-radius: 24px;
    background: rgba(253,246,231,.94);
    border: 1px solid rgba(35,56,11,.08);
    box-shadow: 0 18px 36px rgba(0,0,0,.18);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .lightbox-hint{
    text-align: left;
    font-size: 13px;
  }

  .lightbox-nav{
    position: absolute;
    top: auto;
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: 48px;
    height: 48px;
    font-size: 30px;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.16);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .lightbox-prev{
    left: 12px;
  }

  .lightbox-next{
    right: 12px;
  }

  .lightbox-nav:hover,
  .lightbox-nav:focus-visible{
    transform: none;
  }
}

@media (max-width: 560px){
  .lightbox{
    padding: 0;
  }

  .lightbox-topbar{
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 10px;
    right: 10px;
  }

  .lightbox-close{
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .lightbox-close::before{
    content: "×";
    font-size: 28px;
    line-height: 1;
  }

  .lightbox-counter{
    font-size: 13px;
    padding: 12px 14px;
  }

  .lightbox-figure{
    padding:
      calc(66px + env(safe-area-inset-top, 0px))
      10px
      calc(136px + env(safe-area-inset-bottom, 0px));
  }

  .lightbox-figure img{
    max-height: min(60dvh, 470px);
    border-radius: 18px;
  }

  .lightbox-meta{
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 14px;
    border-radius: 22px;
  }

  .lightbox-caption{
    font-size: 18px;
  }

  .lightbox-hint{
    font-size: 12px;
  }

  .lightbox-nav{
    width: 44px;
    height: 44px;
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    font-size: 28px;
  }
}

































/* ===========================
   MOBILE MENU – EDEL / SMOOTH
=========================== */

/* Dropdown-Card */
.mobile-menu{
  display: grid;
  gap: 12px;
  position: absolute;
  left: 12px; 
  right: 12px;
  top: calc(100% + 10px);
  padding: 16px;
  background: rgba(253,246,231,0.92);            /* Creme mit Transparenz */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(35,56,11,.12);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
  z-index: 100;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

/* Einzelne Links als „Row Cards“ */
.mobile-menu a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(35,56,11,.10);
  color: #23380B;
  text-decoration: none;
  font-weight: 700;
  font-family: "Kalnia", serif;
  font-size: 18px;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.mobile-menu a::after{
  content: "›";                                     /* kleiner Pfeil nach rechts */
  font-size: 22px;
  line-height: 1;
  opacity: .75;
}
.mobile-menu a:hover{
  transform: translateX(4px);
  background: #23380B;
  color: #FDF6E7;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

/* Sichtbar-Status */
.mobile-menu.open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dunkles Overlay hinter dem Dropdown */
.mobile-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 90;                                      /* unter dem Menü, über Seite */
}
.mobile-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger-Button etwas edler */
.hamburger{
  display: none;                                     /* wird im Breakpoint sichtbar */
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(35,56,11,.08);
  cursor: pointer;
}
.hamburger span{
  display: block;
  height: 2px; width: 22px;
  background: #23380B;
  margin: 6px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Breakpoint: Desktop-Listen weg, Burger/Dropdown aktiv */
@media (max-width: 820px){
  .hamburger{ display: block !important; }

  .navbar{
    height: auto;
    margin: 12px 16px;
    padding: 10px 14px 14px;
    position: relative;
  }
  .navbar nav{
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  /* Desktop-Links ausblenden (hart) */
  .navbar nav ul, .nav-left, .nav-right{ display: none !important; }

  /* Logo mittig */
  .logo{ order: -1; text-align: center; }
  .logo img{ height: 44px; }
}




/* ===== FOOTER ===== */
.footer {
  margin: 60px 40px 0;
  background: #FDF6E7;
  border-radius: 28px;
  padding: 50px 40px 30px;
  color: #23380B;
  font-family: "Kaisei Decol", serif;
  margin-bottom: 25px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

/* Spalten */
.footer-col h3 {
  margin-bottom: 16px;
  font-family: "Kalnia", serif;
  font-size: 20px;
  font-weight: 700;
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 16px;
  color: #23380B;
  line-height: 1.6;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

/* Hover-Effekt für Links */
.footer-col a:hover {
  text-decoration: underline;
}

/* Untere Leiste */
.footer-bottom {
  border-top: 1px solid rgba(35,56,11,.15);
  padding-top: 18px;
  text-align: center;
  font-size: 14px;
  color: rgba(35,56,11,.8);
}

.footer-bottom a {
  font-weight: 600;
  color: #23380B;
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}



/* ===========================
   FOOTER responsive
=========================== */
@media (max-width: 1100px) {
  .footer { margin: 48px 24px 0; padding: 36px 28px 24px; border-radius: 22px; }
  .footer-inner { gap: 24px; }
}

@media (max-width: 780px) {
  .footer { margin: 40px 16px 0; padding: 24px 18px 18px; border-radius: 18px; margin-bottom: 25px;}
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-col h3 { font-size: 18px; margin-bottom: 10px; }
  .footer-col p, .footer-col li, .footer-col a { font-size: 15px; }
  .footer-bottom { padding-top: 12px; font-size: 13px; }
}
