
:root{
  --maxw: 1100px;
  --gap: 1.1rem;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --border: 1px solid rgba(0,0,0,.10);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height:1.45;
  color:#111;
  background:#fff;
}
a{color:inherit}
.container{max-width:var(--maxw); margin:0 auto; padding: 0 1rem;}
.site-header{
  position:sticky; top:0; z-index:80;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 1rem; padding: .7rem 0;
  flex-wrap: nowrap;
}
.brand{
  display:flex; align-items:center; gap:.7rem; text-decoration:none;
  justify-content:flex-end;
}
.brand img{height:34px; width:auto; display:block}
.brand-text{font-weight:700}


/* Navigation: Desktop sichtbar, Mobile als Off-Canvas (Hamburger) */
.nav-toggle{ display:none; }

.nav-overlay{ display:none; }

.nav{
  position:static;
  transform:none;
  height:auto;
  width:auto;
  max-width:none;
  background:transparent;
  border:0;
  box-shadow:none;
  padding: 0;
  margin: 0;
  z-index:auto;
  overflow:visible;
  visibility:visible;
  pointer-events:auto;
}
.nav.open{ /* mobile only; keep harmless */ }

.nav-top{ display:none; }

.nav ul{
  list-style:none;
  margin: 0;
  padding: .55rem 0;
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  gap:.35rem;
  align-items:center;
  justify-content:flex-start;
  border-bottom: var(--border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}
.nav a{
  display:block;
  padding:.5rem .75rem;
  text-decoration:none;
  border-radius: 10px;
}
.nav a:hover{background:rgba(0,0,0,.06)}
.nav a.active{background:rgba(0,0,0,.10)}

body.nav-open{ overflow:hidden; }


/* Desktop: Vertikale Sidebar-Navigation */
@media (min-width: 821px){
  body{
    display:grid;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
  }

  .site-header{
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .nav{
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: var(--header-h, 70px);
    align-self: start;
    height: calc(100vh - var(--header-h, 70px));
    overflow: auto;

    background: rgba(255,255,255,.96);
    border-right: var(--border);
    padding: .75rem 0;
  }

  .nav ul{
    flex-direction: column;
    flex-wrap: nowrap;
    gap: .25rem;
    padding: 0 .75rem;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .nav a{
    border-radius: 12px;
  }

  main.container{
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    padding: 1rem 1rem 2rem;
    max-width: var(--maxw);
    margin: 0;
    justify-self: start;
  }

  .site-footer{
    grid-column: 1 / 3;
    grid-row: 3;
  }
}

/* Mobile: Off-Canvas Sandwich-/Hamburger-Menü */
@media (max-width: 820px){
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:54px;
    height:54px;
    border: var(--border);
    background: transparent;
    border-radius: 10px;
    cursor:pointer;
  }
  .nav-toggle:focus-visible{
    outline: 3px solid rgba(0,0,0,.25);
    outline-offset: 2px;
  }
  .nav-toggle-bars{
    position:relative;
    width:24px;
    height:3px;
    background: currentColor;
    display:block;
  }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after{
    content:"";
    position:absolute;
    left:0;
    width:24px;
    height:3px;
    background: currentColor;
  }
  .nav-toggle-bars::before{ top:-8px; }
  .nav-toggle-bars::after{ top:8px; }

  .nav-overlay{
    display:block;
    position:fixed;
    inset:0;
    background: rgba(0,0,0,.35);
    opacity:0;
    pointer-events:none;
    transition: opacity .18s ease;
    z-index:60;
  }
  .nav-overlay.open{
    opacity:1;
    pointer-events:auto;
  }

  .nav{
  font-size:1.1rem;
  position:fixed;
    top:0;
    left:0;
    height:100%;
    width: 360px;
    max-width: 88vw;
    background:#fff;
    border-right: var(--border);
    box-shadow: var(--shadow);
  padding: 1.1rem;
    transform: translateX(-105%);
    transition: transform .18s ease;
    z-index:90;
    overflow-y:auto;
    visibility:hidden;
    pointer-events:none;
  }
  .nav.open{
    transform: translateX(0);
    visibility:visible;
    pointer-events:auto;
  }

  .nav-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.75rem;
    margin-bottom:.75rem;
    padding-bottom:.75rem;
    border-bottom: var(--border);
  }

  .nav-brand{
    display:flex;
    align-items:center;
    gap:.6rem;
    text-decoration:none;
  }
  .nav-brand-logo{height:32px; width:auto; display:block}
  .nav-brand-text{font-weight:700}
  .nav-close{
    width:46px;
    height:46px;
    border: var(--border);
    background: transparent;
    border-radius: 10px;
    cursor:pointer;
    font-size: 30px;
    line-height: 1;
  }
  .nav-close:focus-visible{
    outline: 3px solid rgba(0,0,0,.25);
    outline-offset: 2px;
  }

  .nav ul{
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    flex-direction:column;
    flex-wrap:nowrap;
    gap:.25rem;
    align-items:stretch;
  }
  .nav a{ padding:.9rem 1rem; font-size:1.1rem; }
}

main{padding: 1.2rem 0 2.4rem;}
.hero{
  border-radius: var(--radius);
  overflow:hidden;
  border: var(--border);
  box-shadow: var(--shadow);
  min-height: 220px;
  display:flex;
  align-items:flex-end;
  background:#f3f4f6;
}
.hero .hero-inner{
  width:100%;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color:white;
}
.hero h1{margin:0; font-size: clamp(1.4rem, 2.2vw, 2.1rem);}
.hero p{margin:.35rem 0 0; opacity:.92}

.page-title{margin: 0 0 1rem;}
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: 1.2rem;
}
.card{
  display:flex;
  flex-direction:column;
  border: var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  text-decoration:none;
  background:#fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
.card:hover{transform: translateY(-2px); transition: transform .12s ease;}
.card img{width:100%; height: 160px; object-fit: cover; display:block; background:#f3f4f6;}
.card .card-body{padding: .95rem;}
.card .card-body h2{margin:0; font-size:1.1rem;}
.badge{display:none;}
.notice{
  border: var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255,193,7,.12);
}
.notice h2{margin:.2rem 0 .5rem; font-size:1.1rem}
.site-footer{
  border-top: var(--border);
  padding: 1.2rem 0;
  color:#444;
  background:#fafafa;
}
.small{font-size:.92rem; color:#444}
.code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size:.92rem;}

/* Excel Viewer (programm.php) */
.excel-box{
  margin-top: 1rem;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.excel-toolbar{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  justify-content:space-between;
  gap:.85rem;
  padding: .85rem 1rem;
  border-bottom: var(--border);
  background: #fafafa;
}
.excel-actions{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: .5rem;
}
.excel-actions select,
.excel-actions input{
  padding: .45rem .6rem;
  border: var(--border);
  border-radius: 10px;
  background: #fff;
  min-height: 40px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .45rem .75rem;
  border: var(--border);
  border-radius: 10px;
  text-decoration:none;
  background: #fff;
  min-height: 40px;
}
.btn:hover{background: rgba(0,0,0,.06)}

.excel-status{ padding: .75rem 1rem; }
.excel-view{
  overflow:auto;
  max-height: 70vh;
}
.excel-view table{
  width:100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.excel-view th,
.excel-view td{
  border: var(--border);
  padding: .35rem .5rem;
  vertical-align: top;
  white-space: nowrap;
}
.excel-view thead th{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.excel-view tbody tr:nth-child(even){ background: rgba(0,0,0,.02); }


/* Dokument-Viewer (PDF/DOCX) */
.doc-sections{ padding: 1rem 1rem 2rem; }
.doc-section{
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 1rem;
  margin: 1rem 0;
}
.doc-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.doc-head h2{ margin:0; font-size: 1.1rem; }
.doc-meta{ opacity:.8; font-size:.95rem; }
.doc-actions{ display:flex; gap:.5rem; }
.btn{
  display:inline-block;
  padding:.5rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  background:#111;
  color:#fff;
  text-decoration:none;
  font-size:.95rem;
}
.btn:hover{ filter: brightness(1.05); }
.btn-ghost{
  background: transparent;
  color:#111;
}
.docframe{
  width:100%;
  height: 70vh;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  margin-top: 1rem;
}
.notice{
  margin-top: 1rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
}
.docx-toolbar{
  margin-top: 1rem;
  display:flex;
  justify-content:flex-end;
}
.docx-search{
  width: min(420px, 100%);
  padding:.55rem .7rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
}
.docx-container{
  margin-top: .75rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 1rem;
  min-height: 200px;
  overflow:auto;
  max-height: 70vh;
}
.docx-loading{ opacity:.75; }
.docx-content :is(h1,h2,h3){ margin-top: 1.2rem; }
.docx-content p{ margin: .5rem 0; }
.docx-content table{
  border-collapse: collapse;
  width: 100%;
  overflow:auto;
}
.docx-content td, .docx-content th{
  border: 1px solid rgba(0,0,0,.12);
  padding: .35rem .5rem;
  vertical-align: top;
}



/* Embedded filebrowser */
.embed-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.embed-frame{
  margin-top: .75rem;
  border: var(--border);
  border-radius: 12px;
  overflow:hidden;
  height: 70vh;
  min-height: 480px;
  background: #fff;
}
.embed-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 820px){
  .embed-frame{ min-height: 420px; }
}


/* Auth / User chip */
.user-chip{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
}
.user-name{ opacity: .85; }
.user-logout{
  display:inline-block;
  padding: .35rem .6rem;
  border: var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.user-logout:hover{ filter: brightness(0.96); }

/* Login page */
.login-wrap{
  max-width: 420px;
  margin: 2rem auto;
}
.login-card{
  background: #fff;
  border: var(--border);
  border-radius: 16px;
  padding: 1rem;
}
.login-card h1{ margin: 0 0 .75rem 0; font-size: 1.25rem; }
.login-card label{ display:block; font-weight: 600; margin: .75rem 0 .25rem; }
.login-card input{
  width:100%;
  padding: .6rem .75rem;
  border: var(--border);
  border-radius: 12px;
  font-size: 1rem;
}
.login-card .btn{
  margin-top: 1rem;
  width: 100%;
}
.login-error{
  background: rgba(220, 53, 69, .08);
  border: 1px solid rgba(220, 53, 69, .35);
  padding: .75rem;
  border-radius: 12px;
}

/* Version: V1.01 - Events & Birthdays */
.section-block{ margin-top: 1.5rem; }
.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom: 1rem;
}
.section-head h2, .section-head h1{ margin:0; }
.section-subtitle{ margin:.35rem 0 0; color:#555; }
.page-actions{ margin-top: 1rem; display:flex; justify-content:flex-end; }
.card-shell{
  background:#fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.event-hero{
  position:relative;
  min-height: 220px;
  background:#f3f4f6;
}
.event-hero.small{ min-height: 170px; }
.event-hero.is-preview{ border-radius: 14px; overflow:hidden; }
.event-hero img{
  width:100%;
  height:100%;
  min-height: inherit;
  object-fit: cover;
  display:block;
}
.event-hero-overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.05));
  color:#fff;
}
.event-hero-overlay h3{
  margin:0;
  font-size: 1.15rem;
  line-height:1.25;
}
.event-meta{
  font-size:.92rem;
  color:#555;
  margin-bottom:.5rem;
}
.card-event .card-body p{ margin:.5rem 0 0; }
.cards-birthdays .card-event{ background: linear-gradient(180deg, #fff, #fff7fb); }
.notice-success{
  background: rgba(40,167,69,.10);
  border-color: rgba(40,167,69,.28);
}
.notice-error{
  background: rgba(220,53,69,.08);
  border-color: rgba(220,53,69,.28);
}
.admin-layout{
  display:grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items:start;
}
.event-form label{
  display:block;
  font-weight:600;
  margin: .8rem 0 .25rem;
}
.event-form input[type="text"],
.event-form input[type="date"],
.event-form input[type="file"],
.event-form select,
.event-form textarea{
  width:100%;
  margin-top:.25rem;
  padding: .65rem .75rem;
  border: var(--border);
  border-radius: 12px;
  font: inherit;
  background:#fff;
}
.event-form textarea{ resize: vertical; }
.form-grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.form-actions{
  display:flex;
  gap:.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.admin-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.admin-card .card-body{ position:relative; }
.card-actions{
  margin-top: .8rem;
  display:flex;
  gap:.5rem;
  align-items:center;
}
.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius: 999px;
  border: var(--border);
  text-decoration:none;
  background:#fff;
  cursor:pointer;
  font-size: 1.05rem;
}
.icon-btn.danger{ color:#8f1d1d; }
.inline-form{ display:inline; }
.admin-file-hint{
  font-size:.85rem;
  color:#666;
  word-break: break-word;
}
.current-hero-preview{ margin-top: .75rem; }

@media (max-width: 980px){
  .admin-layout{ grid-template-columns: 1fr; }
}
@media (max-width: 680px){
  .form-grid-2{ grid-template-columns: 1fr; }
}


/* Version: V1.02 - Event-Admin Filter */
.toolbar-row.admin-toolbar{
  display:flex;
  justify-content:flex-end;
  margin:0 0 1rem;
}
.status-filter-form{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}
.status-filter-form label{
  font-weight:600;
}
.status-filter-form select{
  min-width:180px;
  padding:.55rem .8rem;
  border:1px solid rgba(0,0,0,.15);
  border-radius:.6rem;
  background:#fff;
}


/* Version: V1.05 - Geburtstagsbild auf Hero */
.event-hero{
  position:relative;
  overflow:hidden;
}
.event-portrait-wrap{
  position:absolute;
  left:1rem;
  top:50%;
  transform:translateY(-50%);
  width:96px;
  height:96px;
  border-radius:999px;
  overflow:hidden;
  border:4px solid rgba(255,255,255,.92);
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  z-index:2;
  background:#fff;
}
.event-portrait-wrap.small{
  width:72px;
  height:72px;
  left:.8rem;
}
.event-portrait-wrap.is-preview{
  width:110px;
  height:110px;
  left:1rem;
}
.event-portrait-standalone{
  width:110px;
  height:110px;
  border-radius:999px;
  overflow:hidden;
  border:4px solid rgba(255,255,255,.92);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
  background:#fff;
}
.event-portrait{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.card-birthday .event-hero-overlay h3{
  padding-left:7.5rem;
}
@media (max-width: 820px){
  .event-portrait-wrap{
    width:76px;
    height:76px;
    left:.85rem;
  }
  .card-birthday .event-hero-overlay h3{
    padding-left:6rem;
  }
}


/* Version: V1.06 - Kreisförmige Mitarbeiterfotos robust erzwingen */
.event-hero > img{
  width:100%;
  height:100%;
  min-height:inherit;
  object-fit:cover;
  display:block;
}

.event-portrait-wrap,
.event-portrait-wrap.small,
.event-portrait-wrap.is-preview,
.event-portrait-standalone{
  border-radius:50% !important;
  aspect-ratio:1 / 1;
}

.event-portrait-wrap{
  display:block;
  overflow:hidden !important;
  isolation:isolate;
}

.event-portrait-wrap img,
.event-portrait-standalone img,
img.event-portrait{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:50% !important;
  overflow:hidden !important;
}

.event-portrait-wrap.small img{
  border-radius:50% !important;
}

.card-birthday .event-portrait-wrap{
  left:1rem;
}

.current-portrait-preview{
  margin:1rem 0 0;
}


/* Version: V1.08 - Teamfoto-Link */
.form-hint{
  display:block;
  margin-top:.35rem;
  font-size:.92rem;
  opacity:.8;
}


/* Version: V1.09 - Mitarbeiterfoto weiter nach oben */
.event-portrait-wrap{
  top: 42%;
}
.event-portrait-wrap.is-preview{
  top: 40%;
}
@media (max-width: 820px){
  .event-portrait-wrap{
    top: 40%;
  }
}


/* Version: V1.10 - Personalstamm */
.card-shell{
  border: var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  padding:1.1rem;
}
.section-block{margin-top:1.2rem;}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
  margin-bottom:1rem;
  flex-wrap:wrap;
}
.section-subtitle{margin:.25rem 0 0; color:#555;}
.page-actions{display:flex; gap:.75rem; flex-wrap:wrap; margin:1rem 0;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.7rem 1rem;
  border-radius:12px;
  border: var(--border);
  background:#111;
  color:#fff;
  text-decoration:none;
  cursor:pointer;
}
.btn.btn-ghost{
  background:#fff;
  color:#111;
}
.notice-success{background:rgba(16,185,129,.12);}
.notice-error{background:rgba(239,68,68,.12);}

.personalstamm-form label,
.personalstamm-form fieldset{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  margin-bottom:1rem;
}
.personalstamm-form input[type="text"],
.personalstamm-form input[type="date"],
.personalstamm-form textarea{
  width:100%;
  padding:.75rem .85rem;
  border:1px solid rgba(0,0,0,.15);
  border-radius:12px;
  font:inherit;
  background:#fff;
}
.form-grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1rem;
}
.radio-group{
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  padding:.9rem 1rem;
}
.radio-group legend{
  padding:0 .3rem;
  font-weight:600;
}
.radio-group label{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:.45rem;
  margin-right:1rem;
  margin-bottom:0;
}
.staff-list{
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.staff-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:.9rem 1rem;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;
}
.staff-link{
  font-weight:700;
  text-decoration:none;
}
.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  border: var(--border);
  border-radius:12px;
  text-decoration:none;
  background:#fff;
}
.personalstamm-print{
  max-width:900px;
}
.print-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
  margin-bottom:1rem;
}
.print-table{
  width:100%;
  border-collapse:collapse;
}
.print-table th,
.print-table td{
  border:1px solid rgba(0,0,0,.12);
  padding:.75rem;
  text-align:left;
  vertical-align:top;
}
.print-table th{
  width:34%;
  background:#f7f7f7;
}
@media (max-width: 820px){
  .form-grid-2{
    grid-template-columns:1fr;
  }
  .staff-row,
  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }
}
@media print{
  .no-print,
  .site-header,
  .site-footer,
  .nav,
  .nav-overlay{
    display:none !important;
  }
  body{
    display:block !important;
    background:#fff;
  }
  main.container{
    max-width:none;
    width:100%;
    padding:0;
    margin:0;
  }
  .personalstamm-print{
    box-shadow:none;
    border:none;
    padding:0;
  }
}


/* Version: V1.11 - Mitteilungen */
.nav-group-label{
  display:block;
  padding:.65rem .75rem .3rem;
  font-size:.9rem;
  font-weight:700;
  opacity:.7;
}
.notice-list{
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.notice-card{
  border: var(--border);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  padding:1rem;
}
.notice-card-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:.75rem;
}
.notice-card-head h3{
  margin:.1rem 0;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.35rem .7rem;
  border-radius:999px;
  font-size:.9rem;
  font-weight:700;
}
.status-pill.is-open{ background: rgba(245,158,11,.18); }
.status-pill.is-done{ background: rgba(16,185,129,.18); }
.notice-card-body p{ margin:.5rem 0; }
.notice-card-actions{ margin-top:.85rem; }
.notice-admin-card .card-body h3{ margin-top:0; }
.readby-box{
  margin-top:1rem;
  padding-top:.8rem;
  border-top:1px solid rgba(0,0,0,.08);
}
.readby-list{
  margin:.5rem 0 0 1rem;
}


/* Version: V1.12 - Mitteilungen als Modal-Overlay */
.notice-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;
}
.notice-modal{
  width:min(860px, 100%);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
  padding:1.1rem;
}
.notice-modal-head{
  margin-bottom:1rem;
}
.notice-modal-head h2{
  margin:.1rem 0;
}
.notice-modal-list{
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.notice-modal-item{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:1rem;
  background:#fff;
}
.notice-modal-item h3{
  margin:.1rem 0 .35rem;
}
.notice-modal-item p{
  margin:.75rem 0;
}
.notice-modal-links,
.notice-modal-actions{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin-top:.75rem;
}
@media (max-width: 820px){
  .notice-modal{
    padding:1rem;
    max-height:94vh;
  }
}


/* Version: V1.13 - Admin-Rubrik linker Menu-Block */
.nav-admin-group{
  list-style:none;
}


/* Version: V1.15 - Admin-Rubrik optisch hervorheben */
.nav-admin-group{
  list-style:none;
  margin-top:.75rem;
}
.nav-group-label{
  display:block;
  margin:.4rem .75rem .35rem;
  padding:.55rem .8rem;
  border-radius:12px;
  background:rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.08);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  opacity:.9;
}

@media (min-width: 821px){
  .nav-admin-group{
    margin-top:1rem;
    padding-top:.75rem;
    border-top:1px solid rgba(0,0,0,.08);
  }
}

@media (max-width: 820px){
  .nav-group-label{
    margin:.5rem 0 .35rem;
  }
}


/* Version: V1.16 - Mitteilungen Hero und Empfänger */
.notice-hero{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:.9rem;
  min-height:180px;
  background:#f3f4f6;
}
.notice-hero img{
  width:100%;
  height:100%;
  min-height:180px;
  object-fit:cover;
  display:block;
}
.notice-hero-overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:1rem;
  background:linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.08));
  color:#fff;
}
.notice-hero-overlay h3{
  margin:0;
}
.notice-hero.is-preview{
  min-height:160px;
}
.notice-hero.is-preview img{
  min-height:160px;
}
.event-form select[multiple]{
  width:100%;
  padding:.6rem;
  border:1px solid rgba(0,0,0,.15);
  border-radius:12px;
  background:#fff;
  font:inherit;
}


/* Version: V1.18 - Modal schliessbar, Quittierung nur einmal */
.notice-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}
.notice-modal-close{
  width:44px;
  height:44px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background:#fff;
  font-size:1.8rem;
  line-height:1;
  cursor:pointer;
}
.notice-modal-close:hover{
  background:rgba(0,0,0,.04);
}


/* Version: V1.21 - Mobile Agenda + Favicon Feinschliff */
.card-birthday .event-portrait-wrap{
  width:112px;
  height:112px;
  top:46%;
}
.card-birthday .event-hero-overlay h3{
  padding-left:8.5rem;
}

@media (max-width: 820px){
  .cards-events .event-hero{
    min-height:0;
    aspect-ratio:16 / 9;
  }

  .cards-events .event-hero img{
    min-height:0;
    height:100%;
  }

  .card-birthday .event-portrait-wrap{
    width:92px;
    height:92px;
    top:43%;
    left:.9rem;
  }

  .card-birthday .event-hero-overlay h3{
    padding-left:6.9rem;
  }
}


/* Version: V1.22 - Mitarbeiterbild Position + User Pill */
.user-pill{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.3rem .4rem .3rem .8rem;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}
.user-pill-name{
  font-size:.95rem;
  font-weight:600;
  color:#222;
  white-space:nowrap;
}
.user-pill-logout{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.4rem .7rem;
  border-radius:999px;
  text-decoration:none;
  background:#111;
  color:#fff;
  font-size:.9rem;
  line-height:1;
}
.user-pill-logout:hover{
  filter:brightness(1.05);
}

.card-birthday .event-portrait-wrap{
  left:1rem;
  top:44%;
}

@media (max-width: 820px){
  .user-pill{
    gap:.4rem;
    padding:.25rem .35rem .25rem .65rem;
  }
  .user-pill-name{
    font-size:.88rem;
    max-width:110px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .user-pill-logout{
    padding:.35rem .6rem;
    font-size:.84rem;
  }

  .card-birthday .event-portrait-wrap{
    left:.9rem;
    top:39%;
  }
}


/* Version: V1.23 - User Pill Toggle + Geburtstagsbild Mobile */
.user-pill-wrap{
  position:relative;
  margin-left:auto;
}
.user-pill{
  margin-left:0;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.3rem .85rem;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  box-shadow:0 4px 14px rgba(0,0,0,.06);
  cursor:pointer;
}
.user-pill-menu{
  position:absolute;
  top:calc(100% + .45rem);
  right:0;
  min-width:132px;
  padding:.35rem;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  z-index:120;
}
.user-pill-menu[hidden]{
  display:none !important;
}

.card-birthday .event-portrait-wrap{
  left:.95rem;
  top:.95rem;
  transform:none;
}
.card-birthday .event-hero-overlay h3{
  padding-left:8.7rem;
}

@media (max-width: 820px){
  .user-pill{
    gap:.4rem;
    padding:.28rem .72rem;
  }
  .user-pill-name{
    font-size:.88rem;
    max-width:120px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .user-pill-menu{
    right:0;
    min-width:126px;
  }

  .card-birthday .event-portrait-wrap{
    left:1rem;
    top:1rem;
    width:104px;
    height:104px;
    transform:none;
  }
  .card-birthday .event-hero-overlay h3{
    padding-left:7.6rem;
  }
}


/* Version: V1.24 - Benutzer-Pill als kleines Menü */
.user-pill{
  justify-content:space-between;
  min-width:110px;
}
.user-pill-caret{
  font-size:.8rem;
  opacity:.7;
}
.user-pill[aria-expanded="true"] .user-pill-caret{
  transform:rotate(180deg);
}
.user-pill-menu{
  min-width:190px;
  padding:.45rem;
}
.user-pill-menu-head{
  padding:.35rem .45rem .55rem;
  border-bottom:1px solid rgba(0,0,0,.08);
  margin-bottom:.25rem;
}
.user-pill-menu-title{
  font-size:.92rem;
  font-weight:700;
  color:#222;
}
.user-pill-menu-list{
  display:flex;
  flex-direction:column;
  gap:.2rem;
}
.user-pill-menu-item{
  display:flex;
  align-items:center;
  width:100%;
  padding:.65rem .75rem;
  border-radius:10px;
  text-decoration:none;
  color:#111;
  background:transparent;
}
.user-pill-menu-item:hover{
  background:rgba(0,0,0,.05);
}
.user-pill-logout{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:.65rem .75rem;
  border-radius:10px;
  background:transparent;
  color:#111;
  font-size:.92rem;
  line-height:1.2;
}
.user-pill-logout:hover{
  filter:none;
  background:rgba(0,0,0,.05);
}

@media (max-width: 820px){
  .user-pill{
    min-width:0;
  }
  .user-pill-menu{
    min-width:170px;
  }
}


/* Version: V1.25 - Benutzer-Menü harmonischer im Header */
.user-pill-wrap{
  position:relative;
  margin-left:auto;
  display:flex;
  align-items:center;
}

.user-pill{
  margin-left:0;
  min-width:0;
  justify-content:center;
  padding:.42rem .9rem;
  border:1px solid rgba(0,0,0,.10);
  border-radius:999px;
  background:transparent;
  box-shadow:none;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.user-pill:hover,
.user-pill:focus-visible{
  background:rgba(0,0,0,.05);
  border-color:rgba(0,0,0,.16);
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.user-pill-name{
  font-size:.95rem;
  font-weight:600;
  color:#222;
  white-space:nowrap;
}

.user-pill-caret,
.user-pill-menu-head,
.user-pill-menu-title{
  display:none !important;
}

.user-pill-menu{
  position:absolute;
  top:calc(100% + .45rem);
  right:0;
  min-width:150px;
  padding:.35rem;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  z-index:500;
}

.user-pill-menu-list{
  display:flex;
  flex-direction:column;
  gap:.15rem;
}

.user-pill-menu-item{
  display:flex;
  align-items:center;
  width:100%;
  padding:.65rem .8rem;
  border-radius:10px;
  text-decoration:none;
  color:#111;
  background:transparent;
}

.user-pill-menu-item:hover{
  background:rgba(0,0,0,.05);
}

@media (max-width: 820px){
  .user-pill{
    padding:.38rem .75rem;
  }

  .user-pill-name{
    font-size:.88rem;
    max-width:124px;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .user-pill-menu{
    min-width:142px;
  }
}


/* Version: V1.26 - Mobile Header Elemente mit Seiteninhalt ausrichten */
@media (max-width: 820px){
  .header-inner{
    padding-left:.35rem;
    padding-right:.35rem;
  }

  .nav-toggle{
    margin-left:.2rem;
  }

  .user-pill-wrap{
    margin-right:.2rem;
  }
}
