/* -------------------------------------------------------
   GLOBAL
------------------------------------------------------- */

:root{
  --brown:#C9A27A;
  --beige:#F4EDE6;
  --accent:#8C6A4A;
  --text:#2B2B2B;
  --white:#ffffff;
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,0.08);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--beige);
}

img{
  max-width:100%;
  display:block;
  border-radius:12px;
}

a{
  text-decoration:none;
  color:inherit;
}

/* -------------------------------------------------------
   HEADER
------------------------------------------------------- */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
  background:linear-gradient(180deg,var(--beige),rgba(244,237,230,0.85));
  backdrop-filter:saturate(1.2) blur(4px);
  border-bottom:1px solid rgba(0,0,0,0.05);
}

.brand{ 
  display:flex;
  align-items:center;
  gap:10px;
  font-family:"Playfair Display",serif;
  font-weight:600;
}

.logo-box{
  display:inline-grid;
  place-items:center;
  width:40px;
  height:40px;
  background:var(--brown);
  color:var(--white);
  border-radius:10px;
  box-shadow:var(--shadow);
  font-weight:600;
}

.menu-toggle{
  all:unset;
  cursor:pointer;
  font-size:1.4rem;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.08);
}

.menu{
  position:absolute;
  right:20px;
  top:62px;
  background:var(--white);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:8px;
  min-width:220px;
  display:none;
}

.menu.open{ display:block; }

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

.menu li a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  font-weight:500;
}

.menu li a:hover,
.menu li a.active{
  background:var(--brown);
  color:var(--white);
}

/* -------------------------------------------------------
   HERO
------------------------------------------------------- */

.hero{
  max-width:600px;
  margin:24px auto 0;
  padding:0 20px;
}

.hero-img{
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-link { display:block; color:inherit; }
.hero-link .hero { cursor:pointer; }

/* -------------------------------------------------------
   TEASER / SECTIONS
------------------------------------------------------- */

.section-title{
  font-family:"Playfair Display",serif;
  font-weight:600;
  margin:32px 20px 10px;
}

.grid{
  display:grid;
  gap:18px;
}

.teaser-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  max-width:1200px;
  margin:0 auto;
  padding:0 20px 36px;
}

.teaser-card{
  background:var(--white);
  border:1px solid rgba(0,0,0,0.06);
  padding:10px;
  border-radius:14px;
  box-shadow:var(--shadow);
  transition:.25s transform;
}

.teaser-card:hover{
  transform:translateY(-3px);
}

.teaser-card h2{
  font-family:"Playfair Display",serif;
  font-size:1.2rem;
  margin:10px 4px 6px;
}

/* -------------------------------------------------------
   GALLERY – **MASONRY** (Pinterest Style)
------------------------------------------------------- */

/* Outer container becomes multi-column layout */
.gallery-grid{
  column-count:3;
  column-gap:16px;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px 36px;
}

@media (max-width:900px){
  .gallery-grid{ column-count:2; }
}

@media (max-width:600px){
  .gallery-grid{ column-count:1; }
}

/* Each item avoids breaking */
.gallery-item{
  break-inside:avoid;
  margin-bottom:16px;
  background:var(--white);
  padding:10px;
  border-radius:14px;
  box-shadow:var(--shadow);
}

/* Images keep natural format (NO cropping!) */
.gallery-item img{
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  background:#fff;
  display:block;
}

/* -------------------------------------------------------
   ABOUT
------------------------------------------------------- */

.about{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px 40px;
}

.about-content{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:24px;
  align-items:start;
}

@media(max-width:860px){
  .about-content{ grid-template-columns:1fr; }
}

/* -------------------------------------------------------
   CONTACT
------------------------------------------------------- */

.contact{
  max-width:800px;
  margin:0 auto;
  padding:0 20px 40px;
}

.contact-form{
  background:var(--white);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:18px;
}

.form-row{
  display:flex;
  flex-direction:column;
  margin:10px 8px;
}

.form-row label{
  font-weight:600;
  margin-bottom:6px;
}

.form-row input,
.form-row textarea{
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.15);
  font-size:1rem;
  background:#fff;
}

.btn-primary{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:12px 18px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
}

/* -------------------------------------------------------
   LIGHTBOX
------------------------------------------------------- */

.lightbox-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:1000;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}

.lightbox-overlay.open{
  opacity:1;
  pointer-events:all;
}

.lightbox-overlay img{
  max-width:90%;
  max-height:90%;
  border-radius:12px;
  box-shadow:0 20px 40px rgba(0,0,0,.4);
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */

.site-footer{
  border-top:1px solid rgba(0,0,0,0.06);
  padding:20px;
  text-align:center;
  color:#5b4a3b;
}

.insta-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--brown);
  color:#fff;
  box-shadow:var(--shadow);
}
/* -------------------------------------------------------
   FIX: Anker springen korrekt zu Galerie (sticky header)
------------------------------------------------------- */

/* Optional: kleiner Sicherheitsabstand für Browser, die JS nicht ausführen */
.gallery-section {
  scroll-margin-top: 80px;
}
/* Unsichtbarer Sprungpunkt für Anker (#portraet, #hochzeit, ...) */
.jump-anchor {
  display: block;
  height: 90px;      /* Höhe des Headers + etwas Abstand */
  margin-top: -90px; /* verschiebt den Inhalt nach unten */
  visibility: hidden;
}
