:root{
  --green:#0b3d2e;
  --bg:#f4f4f4;
  --card:#ffffff;
  --text:#1b1b1b;
  --muted:#5b5b5b;
  --border:#d9d9d9;
}

*{box-sizing:border-box;}
body{
  margin:0;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* HEADER */
.header{
  position:sticky;
  top:0;
  z-index:10;
  background:var(--green);
  color:#fff;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.brandText{
  min-width:0;
}

/* LOGO */
.brandLogo{
  width:40px;
  height:40px;
  object-fit:contain;
  border-radius:50%;
  background:#fff;
  padding:2px;
  border:1px solid rgba(0,0,0,.12);
  flex:0 0 auto;
}

.title{
  font-weight:900;
  font-size:16px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.subtitle{
  font-size:12px;
  opacity:.85;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.btnGhost{
  border:1px solid rgba(255,255,255,.35);
  background:transparent;
  color:#fff;
  border-radius:999px;
  padding:8px 14px;
  cursor:pointer;
  font-weight:800;
  flex:0 0 auto;
}

/* 🔔 NOTICE BAR */
.noticeBar{
  background:#fff3cd;
  color:#664d03;
  border-bottom:1px solid #ffe69c;
  padding:10px 14px;
  font-size:14px;
  font-weight:800;
  display:flex;
  gap:8px;
  align-items:flex-start;
  cursor:pointer;
}
.noticeBar::before{
  content:"⚠️";
  font-size:16px;
  line-height:1;
  margin-top:1px;
}
.noticeBar .noticeText{
  font-weight:800;
}
.noticeBar .noticeSub{
  font-weight:700;
  opacity:.9;
}

/* LAYOUT */
.container{
  max-width:980px;
  margin:0 auto;
  padding:16px;
}

/* Begrüßung */
.welcome{
  text-align:center;
  color:var(--green);
  margin:14px 0 18px;
  font-size:16px;
  font-weight:700;
  line-height:1.25;
}
.welcome span{display:block;}
.welcomeApp{
  font-size:20px;
  font-weight:900;
  margin-top:2px;
}

/* MENÜ GRID */
.menuGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-bottom:16px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  text-align:left;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}

.cardTitle{
  font-weight:900;
  color:var(--green);
  margin-bottom:6px;
}

.cardText{
  font-size:13px;
  color:var(--muted);
}

/* PANEL */
.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  min-height:160px;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}

/* LISTEN */
.list{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:16px; /* „eine Zeile frei“ zwischen Einträgen */
}

.item{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px;
}

.itemTitle{
  font-weight:900;
  color:var(--green);
  margin-bottom:6px;
}

.itemMeta{
  font-size:12px;
  color:var(--muted);
  margin-bottom:8px;
}

.itemText{
  font-size:14px;
  color:var(--text);
  line-height:1.45;
}

/* QR Box */
.qrBox{
  margin-top:10px;
  border:1px dashed var(--border);
  border-radius:12px;
  padding:12px;
  text-align:center;
  color:var(--muted);
}

.smallHint{
  margin-top:12px;
  font-size:12px;
  color:var(--muted);
  text-align:center;
}

/* MODAL (LOGIN) */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:50;
}

.modalContent{
  width:min(520px, 100%);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.modalHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  background:var(--green);
  color:#fff;
}

.modalTitle{font-weight:900;}

.btnClose{
  border:none;
  background:transparent;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.modalBody{
  padding:14px;
  display:grid;
  gap:12px;
}

.formGroup label{
  display:block;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  margin-bottom:6px;
}

.formGroup input{
  width:100%;
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  font-size:16px;
}

.hint{
  font-size:12px;
  color:var(--muted);
  min-height:18px;
}

.btnPrimary{
  width:100%;
  border:none;
  background:var(--green);
  color:#fff;
  border-radius:12px;
  padding:12px 14px;
  font-weight:900;
  cursor:pointer;
}

/* Desktop */
@media (min-width: 860px){
  .menuGrid{ grid-template-columns:repeat(5, minmax(0, 1fr)); }
  .welcome{ font-size:18px; }
  .welcomeApp{ font-size:22px; }
}
