/* BCP - Business Control Panel UG | bcpanel.de */

*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}

body{
  background:#0a0a0a;
  color:#eee;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  height:100vh;       /* Fallback fuer alte Browser */
  height:100dvh;      /* dynamic viewport: respektiert mobile Browser-UI */
  overflow:hidden;
  line-height:1.55;
  font-size:15px;
}

/* ---------- Main / Card ---------- */
main{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 24px;
  min-height:0;
}
.card{
  width:100%;
  max-width:420px;
  height:440px;
  max-height:100%;
  display:flex;
  flex-direction:column;
  min-height:0;
}

/* ---------- Logo ---------- */
.logo{
  height:32px;
  display:block;
  margin-bottom:48px;
  flex:none;
  cursor:pointer;
  opacity:1;
  transition:opacity .15s ease;
}
.logo:hover{opacity:.7}
.logo:focus{outline:none}
.logo:focus-visible{outline:none}

/* ---------- Views ---------- */
.view{
  flex:1;
  min-height:0;
  overflow-y:auto;
  padding-right:8px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.12) transparent;
}
.view::-webkit-scrollbar{width:5px}
.view::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.12);
  border-radius:3px;
}
#view-home{display:flex;flex-direction:column;justify-content:center}
.view[hidden]{display:none !important}

/* ---------- Home content ---------- */
h1{
  font-size:22px;
  font-weight:500;
  letter-spacing:-.015em;
  line-height:1.35;
  margin-bottom:14px;
}
.lead{
  color:#8a8a8a;
  font-size:15px;
  max-width:340px;
  margin-bottom:40px;
}
.contact-label{
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  margin-bottom:2px;
}
.row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 0;
  text-decoration:none;
  color:#eee;
  transition:opacity .15s ease;
}
.mail-ico,
.wa-ico{
  flex:none;
  color:#666;
}
.mail-ico{
  width:22px;
  height:22px;
}
.wa-ico{
  width:19px;
  height:19px;
}
.k{
  width:70px;
  flex:none;
  color:#666;
  font-size:13px;
  letter-spacing:.04em;
}
.v{
  font-size:14px;
  transition:color .15s ease;
}
a.row:hover .v{color:#2c6dff}
.v .note{
  display:block;
  color:#666;
  font-size:11.5px;
  margin-top:2px;
}
a.row:hover .v .note{color:#666}

/* ---------- Legal views ---------- */
.legal h1{
  font-size:20px;
  margin-bottom:20px;
}
.legal-body{
  color:#9a9a9a;
  font-size:13.5px;
  line-height:1.7;
}
.legal-body strong{
  color:#e6e6e6;
  font-weight:600;
}
.legal-body p{margin-bottom:14px}
.legal-body a{
  color:#eee;
  text-decoration:none;
  transition:color .15s ease;
}
.legal-body a:hover{color:#2c6dff}
.legal-body .grp{
  display:block;
  margin-bottom:14px;
}
.legal-body .grp span{display:block}
.legal-body .updated{
  margin-top:18px;
  color:#777;
  font-size:12.5px;
}
.legal-body .updated b{
  color:#2c6dff;
  font-weight:600;
}
.legal-body .disclaimer{
  margin-top:18px;
  color:#777;
  font-size:12.5px;
  font-style:italic;
}

/* ---------- Footer ---------- */
footer{
  padding:18px 24px;
  padding-bottom:calc(18px + env(safe-area-inset-bottom, 0px));
  text-align:center;
  color:#666;
  font-size:12px;
}
footer a{
  color:#888;
  text-decoration:none;
  transition:color .15s ease;
}
footer a:hover{color:#ccc}
footer a.active{color:#2c6dff}
.links{
  margin-bottom:6px;
  display:flex;
  gap:18px;
  justify-content:center;
}
.copy{opacity:.7}

/* ---------- Language switcher ---------- */
.lang{
  position:fixed;
  top:18px;
  right:20px;
  top:calc(18px + env(safe-area-inset-top, 0px));
  right:calc(20px + env(safe-area-inset-right, 0px));
  display:flex;
  gap:7px;
  z-index:10;
}
.lang button{
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  line-height:0;
  width:24px;
  height:24px;
  border-radius:50%;
  opacity:.35;
  transition:opacity .18s ease,box-shadow .18s ease;
}
.lang button:hover{opacity:.7}
.lang button.active{
  opacity:1;
  box-shadow:0 0 0 1.5px #0a0a0a,0 0 0 3px #2c6dff;
}
.lang svg{
  width:24px;
  height:24px;
  display:block;
  border-radius:50%;
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 560px) {
  main {
    padding: 28px 20px;
    align-items: flex-start;
  }
  .card {
    height: 100%;          /* fuellt verfuegbaren Platz statt fixer 440px */
    max-height: none;
  }
  .logo {
    margin-bottom: 32px;
  }
  footer {
    padding: 16px 20px;
  }
}

/* sehr kleine Hoehen (Landscape-Handy o.ae.) */
@media (max-height: 480px) {
  main { padding: 20px; }
  .logo { margin-bottom: 24px; }
}

/* Touch-Geraete: keine Hover-Dimmung kleben lassen */
@media (hover: none) {
  .lang button { opacity: 0.55; }
  .lang button.active { opacity: 1; }
}
