:root{
  --brand:        #a37f7e;
  --accent:       #f2673a;
  --accent-2:     #8c3b2f;
  --text:         #4a3f3f;
  --muted:        #632523;
  --bg:           #FFF3D9;
  --panel:        rgba(255, 248, 234, 0.78);
  --line:         rgba(140, 59, 47, 0.08);
  --soft-shadow:  0 4px 14px rgba(99,37,35,.05);
  --content-w:    min(92vw, 1500px);
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
}

img{
  max-width: 100%;
  display: block;
}

.page{
  width: 100%;
}

/* =========================================================
   JUMBOTRON
   ========================================================= */
.jumbotron{
  position: relative;
  min-height: 30vh;
  background:
    linear-gradient(
      180deg,
      rgba(255,243,217,.03) 0%,
      rgba(255,243,217,.06) 45%,
      rgba(255,243,217,.18) 100%
    ),
    url("assets/binlab_moewe_4308x824.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.jumbotron-inner{
  width: var(--content-w);
  margin: 0 auto;
  min-height: 30vh;
  padding: 18px 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.topbar{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}

.brand-block{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
}

.logo{
  width: min(500px, 42vw);
  height: auto;
}

.services{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #5b322d;
  max-width: 620px;
  text-wrap: balance;
}

.feature-list-top{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin-top: 4px;
}

.feature-link{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 240px;
  padding: 8px 12px 8px 14px;
  background: rgba(255,255,255,0.25);
  color: #6d2f2a;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.feature-link::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 0;
  background: #7e2f24;
  transition: width .2s ease;
}

.feature-link:hover{
  background: rgba(255,255,255,0.45);
  color: #8c3b2f;
  text-decoration: none;
}

.feature-link:hover::before{
  width: 4px;
}

.feature-icon{
  width: 18px;
  text-align: center;
  opacity: .85;
}

.jumbotron-content{
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 980px;
  padding-bottom: 140px;
}

.hero-title{
  margin: 0;
  font-size: clamp(1.45rem, 1.75vw, 2rem);
  line-height: 1.12;
  font-weight: 800;
  color: #7e2f24;
}

.hero-subtitle{
  margin: 0;
  max-width: 980px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
  color: #5d4039;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.content-wrap{
  width: var(--content-w);
  margin: 0 auto;
  padding: 16px 0 46px;
}

.block{
  margin: 0;
}

.block + .block{
  margin-top: 20px;
}

.block-gap{
  margin-bottom: 0;
}

.tiles{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}

.tile{
  background: var(--panel);
  border: none;
  border-radius: 0;
  padding: 16px 16px 14px;
  box-shadow: var(--soft-shadow);
  min-height: 210px;
}

.tile h2,
.tile h3{
  margin: 0 0 10px;
  color: var(--accent-2);
  line-height: 1.2;
}

.tile h2{
  font-size: 1.14rem;
}

.tile h3{
  font-size: 1.04rem;
}

.tile p{
  margin: 0 0 10px;
  font-size: 0.96rem;
  line-height: 1.6;
}

.tile p:last-child{
  margin-bottom: 0;
}

.tile ul{
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.tile li{
  margin-bottom: 4px;
}

.tile-wide{
  grid-column: span 2;
  min-height: 180px;
}

.tile-flat{
  min-height: 170px;
}

.tile-heading{
  display: flex;
  align-items: center;
  gap: 8px;
}

.tile-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  min-width: 1.35em;
  font-size: 1.05em;
  line-height: 1;
}

/* =========================================================
   LOGIN / DOWNLOAD
   ========================================================= */
.login-panel{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-intro{
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5f4a43;
}

.login-error{
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #ffe1dc;
  color: #8c2d1d;
  font-size: 0.94rem;
}

.login-form{
  display: grid;
  gap: 12px;
}

.login-form label{
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.login-form input{
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(140,59,47,.12);
  border-radius: 0;
  background: rgba(255,255,255,.9);
  color: var(--text);
  font-size: 0.96rem;
  outline: none;
}

.login-form input:focus{
  border-color: #d97f62;
  box-shadow: 0 0 0 2px rgba(242,103,58,.10);
}

.login-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.login-actions-auth{
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.login-button-group{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-btn,
.logout-btn,
.download-btn{
  appearance: none;
  border: none;
  border-radius: 0;
  background: #e07a22;
  color: #fff;
  padding: 11px 16px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(99,37,35,.08);
}

.login-btn:hover,
.logout-btn:hover,
.download-btn:hover{
  filter: brightness(.97);
}

.logout-btn{
  background: #8c3b2f;
}

.login-note{
  font-size: 0.9rem;
  color: #7b665e;
}

/* =========================================================
   SCREENSHOTS / LIGHTBOX
   ========================================================= */
.screenshot-tile{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.screenshot-tile h3{
  margin-bottom: 0.8rem;
}

.monitor-preview{
  margin-top: 0;
  align-self: flex-start;
  width: 100%;
}

.monitor-img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  border: none;
  cursor: zoom-in;
  transition: transform .2s ease, opacity .2s ease;
}

.monitor-img:hover{
  transform: scale(1.02);
  opacity: 0.92;
}

#lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
}

#lightbox img{
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  animation: lightboxIn .2s ease;
}

@keyframes lightboxIn{
  from{
    transform: scale(.96);
    opacity: 0;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================================================
   CTA / IMPRESSUM
   ========================================================= */
.cta{
  margin-top: 14px;
  background: rgba(255,248,234,.78);
  border: none;
  border-radius: 0;
  box-shadow: var(--soft-shadow);
  padding: 14px 16px 12px;
}

.cta h2{
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 1.08rem;
}

.cta p{
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-tile{
  padding: 18px 18px 16px;
}

.cta-tile-grid{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
}

.cta-logo-wrap{
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.cta-logo{
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
}

.cta-text-wrap{
  text-align: left;
}

.cta-text-wrap h2{
  margin: 0 0 10px;
}

.cta-text-wrap p{
  margin: 0;
}

.impressum{
  margin-top: 20px;
  padding: 6px 0 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #3f2c28;
}

.impressum-grid{
  display: grid;
  grid-template-columns: 180px 1fr 220px 320px;
  gap: 18px;
  align-items: start;
}

.impressum h3{
  margin: 0;
  font-size: 1rem;
  text-transform: none;
  color: #000;
}

.impressum strong{
  color: #000;
}

.impressum a{
  color: #c24b2e;
  text-decoration: none;
}

.impressum a:hover{
  text-decoration: underline;
}

#resolver{
  display: block;
  position: relative;
  top: -10px;
  visibility: hidden;
}

.link-tile{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  background: rgba(255,255,255,0.25);
  color: #6d2f2a;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: background .2s ease, color .2s ease;
}

.link-tile::before{
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 0;
  background: #7e2f24;
  transition: width .2s ease;
}

.link-tile:hover{
  background: rgba(255,255,255,0.45);
  color: #8c3b2f;
  text-decoration: none;
}

.link-tile:hover::before{
  width: 4px;
}

.disclaimer {
  margin-top: 2rem;
  padding: 1.6rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid rgba(255, 255, 255, 0.2);
}

.disclaimer h3 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.disclaimer p {
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
  opacity: 0.9;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px){
  .tiles{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tile-wide{
    grid-column: span 3;
  }

  .impressum-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px){
  .topbar{
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-list-top{
    margin-top: 0;
  }

  .tiles{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-wide{
    grid-column: span 2;
  }

  .impressum-grid{
    grid-template-columns: 1fr;
  }

  .login-actions-auth{
    align-items: flex-start;
  }
}

@media (max-width: 700px){
  .cta-tile-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-logo{
    max-width: 180px;
  }
}

@media (max-width: 640px){
  .jumbotron{
    min-height: auto;
  }

  .jumbotron-inner{
    min-height: auto;
    padding: 22px 0 14px;
  }

  .logo{
    width: min(360px, 82vw);
  }

  .hero-title{
    font-size: 1.55rem;
  }

  .hero-subtitle,
  .services{
    font-size: 0.95rem;
  }

  .feature-link{
    width: 100%;
    max-width: 320px;
  }

  .tiles{
    grid-template-columns: 1fr;
  }

  .tile-wide{
    grid-column: span 1;
  }

  .tile{
    min-height: auto;
  }

  .block + .block{
    margin-top: 16px;
  }
}