/* Hintergrund hell grau/bläulich */
:root{
  --bg: #e9eff5;    
  --ink: #011120;     
  --muted: #475664;
  --card: #ffffffd8;
  --ring: rgba(15, 41, 66, 0.12);
}

* { box-sizing: border-box; }
html, body { 
    margin: 0; padding: 0;
 }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.page-header{
  padding: 24px 16px 8px;
  display: grid;
  place-items: center;
}
.logo{
  max-width: 180px;
  height: auto;
  display: block;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.intro{
  background: var(--card);
  box-shadow: 0 10px 30px var(--ring);
  padding: 0 28px 28px;
  margin: 8px 0 28px;
}
.intro h1{
  margin: 20px 0 ;
  letter-spacing: .2px;
  font-size: 28px;

}
h2{
  margin: 20px 0 10px 0;
  letter-spacing: .2px;
  font-size: 20px;
  line-height: 30px;
}
.lead{
    color: var(--muted); margin: 0 0 18px; 
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 22px;
}

.kontakt{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
h3{ 
    margin: 0 0 6px; 
    font-size: 18px;
    line-height: 23px;
}
.kontakt p{ 
    margin: 0 0 6px; 
    font-size: 18px;
    line-height: 22px;
}
.kontakt a{ 
    color: inherit; text-decoration: none; border-bottom: 1px dashed var(--muted);
 }
.kontakt a:hover{
    border-bottom-style: solid; 
}

.gallery .grid{
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.thumb{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--ring);
  transition: transform .2s ease, box-shadow .2s ease;
  background: #dfe7ef;
}
.thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--ring);
}
.btn{
    background-color: #000000;
    padding: 8px 12px;
    border: solid 1px;
    border-color: #000000;
    color: rgb(255, 255, 255);
    border-radius: 2px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    margin-bottom: 40px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: rgb(255, 255, 255);
    color: #000000;
    text-decoration: none;
    border: solid 1px;
    border-color: #000000;
}

.lightbox{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(12,20,28,.88);
  display: flex;                 
  align-items: center;
  justify-content: center;
  padding: 16px;                 
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  overscroll-behavior: contain; /
}
.lightbox.open{
  opacity: 1;
  pointer-events: auto;
}

.lightbox img{
  display: block;
  width: min(96vw, 1200px);     
  max-height: 90vh;             
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}


.lightbox .nav,
.lightbox .close{
  position: absolute;
  border: 0;
  outline: none;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 12px 14px;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
  backdrop-filter: blur(6px);
}
.lightbox .nav:hover,
.lightbox .close:hover{
     background: rgba(255,255,255,.22);
     }


.lightbox .close{
  top: 12px;
  right: 12px;
}
.lightbox .prev{
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px 18px;          
}
.lightbox .next{
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px 18px;
}
a{
    color: var(--muted);
    text-decoration: none;
    transition: all ease 0.3s;
}
a:hover{
    text-decoration:underline;
}

@media (max-width: 900px){
  .kontakt{ 
    grid-template-columns: 1fr; 
}
  .gallery .grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
 }

}


@media (max-width: 640px){
  .lightbox{ padding: 8px; }
  .lightbox img{
    width: 98vw;
    max-height: 88vh;
  }
  .lightbox .close{ top: 8px; right: 8px; }
  .lightbox .prev, .lightbox .next{
    padding: 14px 16px;
  }
}
@media (max-width: 520px){
  .gallery .grid{ grid-template-columns: 1fr; }
}


@media (hover: hover) and (pointer: fine) {
  .thumb:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 26px var(--ring);
  }
  .btn:hover {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    text-decoration: none;
  }
  .kontakt a:hover { border-bottom-style: solid; }
  .lightbox .nav:hover,
  .lightbox .close:hover { background: rgba(255,255,255,.22); }
  a:hover { text-decoration: underline; }
}

/* hovereffekt onclick */
.btn:active {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}
.thumb:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--ring);
}
.lightbox .nav:active,
.lightbox .close:active {
  transform: scale(.98);
  background: rgba(255,255,255,.26);
}
.kontakt a:active,
a:active { text-decoration: underline; }

.btn:focus-visible,
.lightbox .nav:focus-visible,
.lightbox .close:focus-visible,
.kontakt a:focus-visible,
a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
  border-radius: 3px;
}

a, button, .btn, .thumb, .lightbox .nav, .lightbox .close {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer; 
}