
:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#6b7280;
  --surface:#f5f5f5;
  --primary:#4CAF50;
  --primary-press:#43a047;
  --radius:12px;
  --gap:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{font-size:16px}
body{
  margin:0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Ubuntu,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  overflow:hidden;
}

#login-screen,#app{height:100%}
#login-screen{
  max-width:420px;
  margin:0 auto;
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
}
#login-screen input{
  width:100%;
  border:1px solid #ddd;
  border-radius:10px;
  padding:12px 14px;
  font-size:1rem;
}
button.primary{
  background:var(--primary);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:12px 16px;
  font-size:1rem;
}
button.primary:active{background:var(--primary-press)}

.topbar{
  height:56px;
  display:flex;
  align-items:center;
  padding:0 12px;
  border-bottom:1px solid #eee;
}
#burger{
  background:#111;
  color:#fff;
  border:none;
  border-radius:10px;
  padding:10px 12px;
  font-size:1.1rem;
}
.topbar h1{
  margin:0 auto;
  font-size:1.25rem;
  font-weight:700;
}

#kunde-leiste{
  position:fixed;
  top:0; left:-280px;
  width:260px;
  height:100%;
  padding:16px;
  background:#f7f7f7;
  border-right:1px solid #e5e7eb;
  overflow-y:auto;
  transition:left .25s ease-in-out;
  z-index:20;
}
#kunde-leiste.open{left:0}

#overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.25);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:15;
}
#overlay.show{opacity:1; pointer-events:auto}

.kunden-button{
  width:100%;
  text-align:left;
  background:#e5e7eb;
  border:none;
  border-radius:10px;
  padding:12px 14px;
  font-size:1rem;
  margin-bottom:10px;
}
.kunden-button.active{
  background:#d1d5db;
  font-weight:600;
}

#hauptbereich{
  height:calc(100% - 56px - 84px);
  overflow-y:auto;
  overflow-x:hidden;
  display:flex;
  justify-content:flex-start;
  align-items:center;
  flex-direction:column;
  padding:16px;
}

#leistungen{
  width:100%;
  max-width:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:8px;
}

.leistung-button{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--primary);
  color:#fff;
  border:none;
  border-radius:16px;
  padding:18px 20px;
  margin:14px 0;
  font-size:1.05rem;
  line-height:1;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
  touch-action:manipulation;
}
.leistung-button:active{background:var(--primary-press)}

.leistung-button .label{
  flex:1;
  text-align:center;
  padding:0 8px;
}
.leistung-button .info{
  min-width:64px;
  text-align:right;
  font-weight:600;
}

.footer{
  height:84px;
  border-top:1px solid #eee;
  padding:10px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.footer .save{
  width:100%;
  max-width:520px;
  margin:0 auto;
}
#status{
  text-align:center;
  color:var(--muted);
  font-size:.95rem;
}

/* Larger touch targets and type scaling */
@media (min-width:480px){
  .topbar h1{font-size:1.35rem}
  .leistung-button{font-size:1.1rem; padding:20px 22px}
}
