/* poppins-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/poppins-v24-latin-300.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/poppins-v24-latin-300.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/poppins-v24-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/poppins-v24-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* poppins-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/poppins-v24-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/poppins-v24-latin-500.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}


:root{
  --sidebar-w: 550px;
  --text: rgba(255,255,255,.92);
  --muted: rgba(227,236,250,1);
  --glass: rgba(80,68,67,.55);
  --border: rgba(255,255,255,.12);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; margin: 0; font-family: 'Poppins'; font-weight:300;}

.page{
  min-height: 100vh;
  display: flex;
  background: url("img/main_bg.jpg") center/cover no-repeat fixed;
  position: relative;
  color: var(--text);
}

.page::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.10) 45%, rgba(0,0,0,.0) 75%);
  pointer-events:none;
}

.sidebar{
  width: var(--sidebar-w);
  min-height: 100vh;
  padding: 40px;
  position: relative;
  z-index: 1;

  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);

  display:flex;
  flex-direction: column;
  gap: 26px;
}

.content{ flex: 1; position:relative; z-index:1; }

.brand {
  margin: 0 0 20px 0;
}

.address{
  color: var(--muted);
  line-height: 1.55;
  font-size: 20px;
}

.section-title{
  margin: 0 0 10px 0;
  font-size: 25px;
  font-weight: 500;
  color: var(--muted);
}

.thumb-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin:0 0 20px 0;
}

.thumb{
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255,255,255,.06);
  position: relative;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
  outline: none;
  padding: 0;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .22s ease, filter .22s ease;
  filter: saturate(1.05) contrast(1.05);
}

.thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.18), rgba(0,0,0,.0) 55%),
              linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.18) 100%);
  opacity: .55;
  transition: opacity .22s ease;
  pointer-events:none;
}

.thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.22);
}
.thumb:hover img{
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.12);
}
.thumb:hover::after{ opacity: .25; }

.thumb:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 10px 25px rgba(0,0,0,.35);
}

.work {margin:0}

.btn-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  border: 1px solid var(--border);
  padding: 15px 30px;
  font-size: 15px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 86px;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  user-select: none;
}

.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn:active{ transform: translateY(0px); filter: brightness(.98); }

.btn.orange{ background: rgba(215,126,13,1); border-color: rgba(255,255,255,1); }
.btn.blue{ background: rgba(80,157,245,1); border-color: rgba(255,255,255,1); }
.btn.gray{ background: rgba(98,84,98,1); border-color: rgba(255,255,255,1);}

.contact{
  display:flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.contact a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted rgba(227,236,250,1);
  width: fit-content;
}
.contact a:hover{ color: rgba(255,255,255,1); border-bottom-color: rgba(255,255,255,1); }

.contact-item{
  display:flex;
  gap: 10px;
  align-items:center;
}

.icon{
  width: 18px;
  height: 18px;
  opacity: .85;
  flex: 0 0 18px;
}

.spacer{ flex: 1; }

.socials{
  display:flex;
  gap: 14px;
  justify-content: flex-end;
  align-items:center;
  padding-top: 10px;
}

.social{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .12s ease, background .12s ease;
}
.social:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.social svg{ width: 18px; height: 18px; opacity: .9; }

.legal{
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  display:flex;
  gap: 22px;
  font-size: 14px;
  color: rgba(0,0,0,.55);
  mix-blend-mode: multiply;
}
.legal a{
  color: rgba(0,0,0,.55);
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,.25);
}
.legal a:hover{ color: rgba(0,0,0,.75); border-bottom-color: rgba(0,0,0,.35); }

/* ---------- LIGHTBOX ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.lightbox.is-open{ display: block; }

.lb-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lb-panel{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
  pointer-events: none;
}

.lb-inner{
  pointer-events: auto;
  width: min(980px, 92vw);
  max-height: 86vh;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.lb-topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  opacity: .9;
  user-select: none;
}

.lb-close{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, filter .12s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.lb-close:hover{ transform: translateY(-1px); background: rgba(255,255,255,.12); }
.lb-close:active{ transform: translateY(0); filter: brightness(.98); }

.lb-stage{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10,10,12,.55);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 280px;
}

.lb-img{
  max-width: 100%;
  max-height: 86vh;
  display:block;
  user-select:none;
  -webkit-user-drag: none;
}

.lb-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, filter .12s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}
.lb-nav:hover{ transform: translateY(-50%) translateY(-1px); background: rgba(255,255,255,.12); }
.lb-nav:active{ transform: translateY(-50%); filter: brightness(.98); }

.lb-prev{ left: 12px; }
.lb-next{ right: 12px; }

.lb-caption{
  color: rgba(255,255,255,.72);
  font-size: 13px;
  text-align: center;
  user-select:none;
}

/* Responsive */
@media (max-width: 860px){
  :root{ --sidebar-w: 320px; }
  .page{ background-attachment: scroll; }
}
@media (max-width: 720px){
  .page{ flex-direction: column; }
  .sidebar{
    width: 100%;
    min-height: auto;
    box-shadow: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .legal{
    position: static;
    padding: 14px 18px 18px;
    mix-blend-mode: normal;
    color: rgba(255,255,255,.75);
  }
  .legal a{
    color: rgba(255,255,255,.75);
    border-bottom-color: rgba(255,255,255,.35);
  }
  .lb-nav{ width: 40px; height: 40px; border-radius: 12px; }
}


/* ========== Legal pages (Impressum / Datenschutz) ========== */
.page-legal{
  justify-content: center;
  align-items: flex-start;
  padding: 36px 18px;
}

.legal-wrap{
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
}

.back-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border)!important;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .12s ease, background .12s ease, filter .12s ease;
  margin-bottom: 18px;
}
.back-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.14); }
.back-btn:active{ transform: translateY(0); filter: brightness(.98); }

.legal-card{
  background: rgba(20,20,22,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 28px 26px;
}

.legal-card h1{
  margin: 6px 0 18px;
  font-size: 44px;
  letter-spacing: .2px;
}
.legal-card h2{
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}
.legal-card p{
  margin: 0 0 12px;
  line-height: 1.7;
}

.muted{
  color: rgba(255,255,255,.70);
}

.legal-card a{
  color: rgba(255,255,255,.90);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.35);
}
.legal-card a:hover{
  border-bottom-color: rgba(255,255,255,.6);
}

.legal-footer{
  display:flex;
  justify-content:center;
  gap: 28px;
  padding: 18px 6px 0;
  color: rgba(255,255,255,.70);
}
.legal-footer a{
  color: rgba(255,255,255,1);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.30);
   text-shadow:
    0 1px 3px rgba(0,0,0,.65),
    0 0 8px rgba(255,255,255,.15);
}
.legal-footer a[aria-current="page"]{
  color: rgba(255,255,255,1);
  border-bottom-color: rgba(255,255,255,1);
}

@media (max-width: 520px){
  .legal-card{ padding: 22px 18px; border-radius: 16px; }
  .legal-card h1{ font-size: 36px; }
}

@media (max-width: 1400px){
:root{
  --sidebar-w: 450px;
}
.section-title{
 font-size: 20px;
}
.brand, .work,  .thumb-grid {
  margin: 0 0 20px 0;
}
}
