/* =========================================
   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 */
}


/* =========================================
   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-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 240px;             /* Basis-Kachelhöhe */
  grid-auto-flow: dense;
  gap: 20px;
}

/* Card-Style */
.g-item{
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: #FDF6E7;               /* Creme wie bei dir */
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  line-height: 0;                     /* kein Inline-Gap */
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.g-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,.30);
  filter: saturate(1.03);
}

/* Bild füllt die Kachel ohne weiße Balken */
.g-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;                  /* kein Abschneiden sichtbar (keine Ränder) */
  display: block;
  background: transparent;
  border: 0; outline: none;
}

/* ---------- Automatisches Mischen der Kachelgrößen (nur Desktop/Tablet) ---------- */
@media (min-width: 769px){
  /* alle standardmäßig 1x1 */
  .g-item{ grid-column: span 1; grid-row: span 1; }

  /* Mix-Pattern: sorgt für Abwechslung ohne Klassen setzen */
  .g-item:nth-child(10n + 1){ grid-column: span 2; }                  /* breit  */
  .g-item:nth-child(10n + 3){ grid-row: span 2; }                     /* hoch   */
  .g-item:nth-child(10n + 6){ grid-column: span 2; grid-row: span 2; }/* groß   */
  .g-item:nth-child(10n + 8){ grid-column: span 2; }                  /* breit  */
  .g-item:nth-child(10n + 9){ grid-row: span 2; }                     /* hoch   */
}

/* leichte Größenanpassung bei schmaleren Screens */
@media (max-width: 1100px){
  .gallery-grid{
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 200px;
    gap: 16px;
  }
}

/* ---------- Mobile: 1 Spalte, 100% Breite, keine Lücken ---------- */
@media (max-width: 768px){
  .gallery-grid{
    display: block;                   /* simpler Flow → garantiert sichtbar */
  }
  .g-item{
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    grid-column: auto; grid-row: auto;
    background: #FDF6E7;
  }
  .g-item img{
    width: 100%;
    height: auto;                     /* natürliche Höhe → keine Lücke */
    object-fit: cover;
  }
}

































/* ===========================
   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; }
}