@charset "UTF-8";

/* ═══════════════════════════════════════════════════════════
   HUMY TOUR – Styles v2
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:    #FF6B9D;
  --purple:  #A855F7;
  --teal:    #06B6D4;
  --orange:  #FB923C;
  --green:   #34D399;
  --yellow:  #FBBF24;
  --bg:      #FFF0F8;
  --white:   #FFFFFF;
  --text:    #1E1B2E;
  --muted:   #6B7280;
  --border:  #F0E6FF;
  --radius:  16px;
  --shadow:  0 4px 24px rgba(168,85,247,.12);
  --shadow-h:0 8px 32px rgba(255,107,157,.25);
  --grad:    linear-gradient(135deg,#FF6B9D 0%,#A855F7 50%,#06B6D4 100%);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  padding-bottom: 80px;
}

/* ══ Name Overlay ══════════════════════════════════════════════ */
.name-overlay {
  position: fixed; inset: 0;
  background: var(--grad);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.name-overlay.hidden { display: none; }

.name-card {
  background: white; border-radius: 28px; padding: 40px 32px;
  width: 100%; max-width: 400px; text-align: center;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
.name-emoji { font-size: 4rem; display: block; margin-bottom: 16px; animation: wave 1.5s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-20deg)} 40%{transform:rotate(15deg)} 60%{transform:rotate(-10deg)} 80%{transform:rotate(5deg)} }
.name-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.name-subtitle { color: var(--muted); font-size: .95rem; margin-bottom: 28px; line-height: 1.5; }
.name-input { width: 100%; padding: 14px 18px; border: 2.5px solid var(--border); border-radius: 14px; font-family: 'Nunito',sans-serif; font-size: 1.1rem; font-weight: 700; text-align: center; outline: none; margin-bottom: 16px; transition: border-color .2s; }
.name-input:focus { border-color: var(--pink); }

/* ══ Header ═══════════════════════════════════════════════════ */
.app-header { background: var(--grad); color: white; padding: 24px 20px 32px; text-align: center; position: relative; overflow: hidden; }
.header-bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble { position: absolute; border-radius: 50%; background: rgba(255,255,255,.15); animation: floatBubble linear infinite; }
.bubble:nth-child(1){width:60px;height:60px;left:10%;bottom:-60px;animation-duration:6s}
.bubble:nth-child(2){width:40px;height:40px;left:30%;bottom:-40px;animation-duration:8s;animation-delay:1s}
.bubble:nth-child(3){width:80px;height:80px;left:55%;bottom:-80px;animation-duration:7s;animation-delay:2s}
.bubble:nth-child(4){width:30px;height:30px;left:75%;bottom:-30px;animation-duration:9s;animation-delay:.5s}
.bubble:nth-child(5){width:50px;height:50px;left:90%;bottom:-50px;animation-duration:5s;animation-delay:3s}
@keyframes floatBubble { 0%{transform:translateY(0) scale(1);opacity:.6} 100%{transform:translateY(-200px) scale(.5);opacity:0} }

.header-content { display: flex; align-items: center; justify-content: center; gap: 14px; position: relative; z-index: 1; }
.header-logo { font-size: 3rem; animation: bounce 2.5s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); display:flex; align-items:center; justify-content:center; }
.berta-logo    { width: 3rem; height: 3rem; }
.berta-welcome { width: 4rem; height: 4rem; }
.berta-sm      { width: 2.2rem; height: 2.2rem; vertical-align: middle; }
@keyframes bounce { 0%,100%{transform:translateY(0) rotate(-5deg)} 50%{transform:translateY(-10px) rotate(5deg)} }
.header-title { font-size: 2rem; font-weight: 900; letter-spacing: -.5px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.header-subtitle { font-size: .9rem; opacity: .9; font-weight: 600; }

.header-user-btn { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.5); color: white; width: 40px; height: 40px; border-radius: 50%; font-size: .75rem; font-weight: 800; cursor: pointer; transition: all .2s; font-family: 'Nunito',sans-serif; }
.header-user-btn:hover { background: rgba(255,255,255,.4); }

.countdown { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.countdown-unit { background: rgba(255,255,255,.2); backdrop-filter: blur(10px); border-radius: 14px; padding: 8px 14px; min-width: 64px; text-align: center; border: 1px solid rgba(255,255,255,.3); }
.countdown-num { font-size: 1.6rem; font-weight: 900; display: block; line-height: 1.1; }
.countdown-label { font-size: .6rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: .85; font-weight: 700; }

/* ══ Navigation ═══════════════════════════════════════════════ */
.app-nav { background: white; display: flex; padding: 6px 8px; gap: 4px; box-shadow: 0 4px 20px rgba(168,85,247,.1); position: sticky; top: 0; z-index: 100; overflow-x: auto; scrollbar-width: none; }
.app-nav::-webkit-scrollbar { display: none; }
.nav-btn { flex: 1; min-width: 60px; padding: 8px 4px; border: none; border-radius: 12px; font-family: 'Nunito',sans-serif; font-size: .78rem; font-weight: 700; cursor: pointer; background: transparent; color: var(--muted); transition: all .25s cubic-bezier(.34,1.56,.64,1); display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; }
.nav-icon { font-size: 1.2rem; line-height: 1; }
.nav-btn.active { background: var(--grad); color: white; box-shadow: 0 4px 16px rgba(255,107,157,.4); transform: translateY(-1px); }
.nav-btn:hover:not(.active) { background: #F9FAFB; color: var(--text); }

/* ══ Views ════════════════════════════════════════════════════ */
.app-main { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; }
.view { display: none; animation: fadeSlide .3s ease; }
.view.active { display: block; }
@keyframes fadeSlide { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

/* Sub-tabs */
.view-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: white; border-radius: 14px; padding: 6px; box-shadow: var(--shadow); }
.view-tab { flex: 1; padding: 9px 12px; border: none; border-radius: 10px; font-family: 'Nunito',sans-serif; font-size: .88rem; font-weight: 700; cursor: pointer; background: transparent; color: var(--muted); transition: all .2s; }
.view-tab.active { background: var(--grad); color: white; box-shadow: 0 3px 12px rgba(255,107,157,.35); }
.subtab { display: none; }
.subtab.active { display: block; }

/* Section helpers */
.section-title { font-size: 1.3rem; font-weight: 900; }
.section-sub { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.list-container { display: flex; flex-direction: column; gap: 14px; }

/* ══ Filter / Sort ════════════════════════════════════════════ */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip { white-space: nowrap; padding: 7px 14px; border: 2px solid var(--border); border-radius: 20px; font-family: 'Nunito',sans-serif; font-size: .82rem; font-weight: 700; cursor: pointer; background: white; color: var(--muted); transition: all .2s; }
.filter-chip.active { background: var(--grad); color: white; border-color: transparent; box-shadow: 0 3px 12px rgba(255,107,157,.35); }
.sort-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.sort-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.sort-btn { padding: 5px 13px; border: 2px solid var(--border); border-radius: 20px; background: white; font-family: 'Nunito',sans-serif; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--muted); transition: all .2s; }
.sort-btn.active { border-color: var(--pink); color: var(--pink); background: #FFF0F8; }

/* ══ Ideas Grid ═══════════════════════════════════════════════ */
.ideas-grid { display: grid; gap: 16px; }
@media(min-width:580px){ .ideas-grid { grid-template-columns: repeat(2,1fr); } }

/* ══ Idea Card ════════════════════════════════════════════════ */
.idea-card { background: white; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); cursor: pointer; transition: all .3s cubic-bezier(.34,1.56,.64,1); border: 2px solid transparent; animation: cardIn .4s ease both; position: relative; overflow: hidden; }
.idea-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .3s; }
.idea-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.idea-card:hover::before { opacity: 1; }
.idea-card.hot::after { content: '🔥 Top'; position: absolute; top: 10px; right: 10px; background: linear-gradient(135deg,#FB923C,#FBBF24); color: white; font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; }
@keyframes cardIn { from{opacity:0;transform:translateY(20px) scale(.97)} to{opacity:1;transform:translateY(0) scale(1)} }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.card-category { padding: 4px 11px; border-radius: 20px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; flex-shrink: 0; }
.cat-aktivitaeten { background: #E0F7FF; color: #0891B2; }
.cat-essen        { background: #FFF3E0; color: #C2410C; }
.cat-ausfluege    { background: #DCFCE7; color: #15803D; }
.cat-kreativ      { background: #F3E8FF; color: #7C3AED; }
.cat-spiele       { background: #FEFCE8; color: #A16207; }
.cat-sonstiges    { background: #FFF0F8; color: #BE185D; }

/* Status Badge */
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: .68rem; font-weight: 800; }
.status-neu         { background: #F3F4F6; color: #6B7280; }
.status-geplant     { background: #DBEAFE; color: #1D4ED8; }
.status-bestaetigt  { background: #D1FAE5; color: #065F46; }
.status-abgelehnt   { background: #FEE2E2; color: #DC2626; }

.card-vote { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.vote-btn { background: none; border: none; cursor: pointer; font-size: 1.3rem; transition: transform .2s cubic-bezier(.34,1.56,.64,1); padding: 2px; -webkit-tap-highlight-color: transparent; }
.vote-btn:hover { transform: scale(1.35); }
.vote-count { font-size: .82rem; font-weight: 800; color: var(--pink); }

.card-title { font-size: 1rem; font-weight: 800; margin-bottom: 7px; line-height: 1.3; }
.card-description { font-size: .85rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); border-top: 1.5px solid #F5F0FF; padding-top: 10px; margin-top: 4px; }
.card-author { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); }
.card-stats { display: flex; gap: 10px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 900; color: white; flex-shrink: 0; }

/* Skeleton */
.skeleton-card { background: white; border-radius: var(--radius); padding: 18px; height: 160px; box-shadow: var(--shadow); animation: shimmer 1.5s ease-in-out infinite; background: linear-gradient(90deg,#f0e8ff 25%,#fce4f0 50%,#f0e8ff 75%); background-size: 200% 100%; }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; grid-column: 1/-1; }
.empty-state-icon { font-size: 4rem; display: block; margin-bottom: 14px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: .9rem; }

/* ══ Forms ════════════════════════════════════════════════════ */
.form-card { background: white; border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow); }
.form-header-emoji { font-size: 3rem; text-align: center; margin-bottom: 10px; animation: spin 6s linear infinite; }
@keyframes spin { 0%,90%{transform:rotate(0)} 95%{transform:rotate(360deg)} }
.form-title { font-size: 1.5rem; font-weight: 900; text-align: center; margin-bottom: 6px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.form-subtitle { color: var(--muted); font-size: .9rem; text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .88rem; }
.required { color: var(--pink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 15px; border: 2.5px solid var(--border); border-radius: 12px;
  font-family: 'Nunito',sans-serif; font-size: .93rem; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s; background: #FDFAFF; appearance: none; -webkit-appearance: none;
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A855F7' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,107,157,.15); background: white; }
.char-count { display: block; text-align: right; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.checkbox-label input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--pink); cursor: pointer; }

/* Buttons */
.btn-primary { background: var(--grad); color: white; border: none; padding: 13px 26px; border-radius: 14px; font-family: 'Nunito',sans-serif; font-size: .95rem; font-weight: 800; cursor: pointer; transition: all .25s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 4px 16px rgba(255,107,157,.35); -webkit-tap-highlight-color: transparent; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,157,.5); }
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* ══ Polls ════════════════════════════════════════════════════ */
.poll-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); animation: cardIn .4s ease both; }
.poll-card.closed { opacity: .8; }
.poll-question { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.poll-meta { font-size: .78rem; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.poll-closed-badge { background: #FEE2E2; color: #DC2626; padding: 2px 8px; border-radius: 20px; font-size: .7rem; font-weight: 800; }
.poll-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.poll-option-btn { padding: 10px 16px; border: 2.5px solid var(--border); border-radius: 12px; background: white; font-family: 'Nunito',sans-serif; font-size: .9rem; font-weight: 700; cursor: pointer; text-align: left; transition: all .2s; color: var(--text); }
.poll-option-btn:hover:not(:disabled) { border-color: var(--purple); background: #F9F5FF; }
.poll-option-btn.selected { border-color: var(--purple); background: #F3E8FF; color: var(--purple); }
.poll-option-btn:disabled { cursor: default; }
.poll-bar-wrap { position: relative; }
.poll-bar-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-size: .85rem; font-weight: 700; }
.poll-bar-label .poll-my-vote { font-size: .7rem; color: var(--purple); font-weight: 800; }
.poll-bar { height: 10px; background: #F0E8FF; border-radius: 10px; overflow: hidden; }
.poll-bar-fill { height: 100%; background: var(--grad); border-radius: 10px; transition: width .6s cubic-bezier(.34,1.56,.64,1); }
.poll-bar-count { font-size: .72rem; color: var(--muted); margin-top: 3px; text-align: right; }
.poll-total { font-size: .8rem; color: var(--muted); font-weight: 600; }
.poll-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1.5px solid #F5F0FF; }
.btn-ghost { padding: 6px 12px; border: 2px solid var(--border); border-radius: 10px; background: white; font-family: 'Nunito',sans-serif; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--muted); transition: all .2s; }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); background: #FFF0F8; }
.btn-ghost.danger:hover { border-color: #DC2626; color: #DC2626; background: #FEE2E2; }

/* Poll form */
.poll-option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.poll-opt { flex: 1; padding: 10px 14px; border: 2.5px solid var(--border); border-radius: 12px; font-family: 'Nunito',sans-serif; font-size: .9rem; outline: none; transition: border-color .2s; background: #FDFAFF; }
.poll-opt:focus { border-color: var(--pink); }
.poll-opt-del { background: #FEE2E2; color: #DC2626; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: .85rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.btn-add-opt { background: none; border: 2px dashed var(--border); border-radius: 12px; width: 100%; padding: 9px; font-family: 'Nunito',sans-serif; font-size: .88rem; font-weight: 700; color: var(--purple); cursor: pointer; transition: all .2s; margin-top: 4px; }
.btn-add-opt:hover { border-color: var(--purple); background: #F3E8FF; }

/* ══ Packing List ═════════════════════════════════════════════ */
.pack-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.pack-stats { background: var(--grad); color: white; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.pack-add-row { display: flex; gap: 10px; margin-bottom: 18px; }
.pack-input { flex: 1; padding: 12px 16px; border: 2.5px solid var(--border); border-radius: 14px; font-family: 'Nunito',sans-serif; font-size: .95rem; outline: none; transition: border-color .2s; background: white; }
.pack-input:focus { border-color: var(--pink); }
.pack-add-btn { width: 48px; height: 48px; background: var(--grad); color: white; border: none; border-radius: 14px; font-size: 1.6rem; font-weight: 300; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .2s cubic-bezier(.34,1.56,.64,1); flex-shrink: 0; }
.pack-add-btn:hover { transform: scale(1.1); }

.pack-list { display: flex; flex-direction: column; gap: 8px; }
.pack-item { background: white; border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); animation: cardIn .3s ease both; transition: all .2s; }
.pack-item.checked { opacity: .6; }
.pack-item.pinned { border-left: 3px solid var(--yellow); }
.pack-checkbox { width: 24px; height: 24px; border: 2.5px solid var(--border); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s cubic-bezier(.34,1.56,.64,1); background: white; font-size: .85rem; }
.pack-checkbox.checked { background: var(--grad); border-color: transparent; }
.pack-item-text { flex: 1; font-weight: 700; font-size: .92rem; transition: all .2s; }
.pack-item.checked .pack-item-text { text-decoration: line-through; color: var(--muted); }
.pack-pin-badge { font-size: .75rem; }
.pack-checkers { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.pack-item-actions { display: flex; gap: 6px; }
.pack-btn { background: none; border: none; cursor: pointer; font-size: .95rem; padding: 4px; border-radius: 8px; transition: all .2s; opacity: .5; }
.pack-btn:hover { opacity: 1; background: #F3F4F6; }

/* ══ Program ══════════════════════════════════════════════════ */
.program-day { margin-bottom: 28px; }
.program-day-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.program-day-title { font-size: 1rem; font-weight: 900; }
.program-day-line { flex: 1; height: 2px; background: linear-gradient(to right, var(--purple), transparent); border-radius: 1px; }

.program-entry { background: white; border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); animation: cardIn .3s ease both; margin-bottom: 10px; border-left: 3px solid transparent; background-clip: padding-box; position: relative; transition: all .2s; }
.program-entry:hover { transform: translateX(4px); box-shadow: var(--shadow-h); }
.program-entry-time { font-size: .85rem; font-weight: 900; color: var(--purple); white-space: nowrap; min-width: 52px; padding-top: 2px; }
.program-entry-icon { font-size: 1.5rem; flex-shrink: 0; }
.program-entry-body { flex: 1; }
.program-entry-title { font-size: .95rem; font-weight: 800; margin-bottom: 4px; }
.program-entry-desc { font-size: .83rem; color: var(--muted); line-height: 1.4; }
.program-entry-author { font-size: .72rem; color: var(--muted); margin-top: 6px; }
.program-del-btn { background: none; border: none; cursor: pointer; font-size: .9rem; padding: 4px; border-radius: 8px; opacity: .4; transition: all .2s; flex-shrink: 0; }
.program-del-btn:hover { opacity: 1; background: #FEE2E2; }

/* ══ Announcements ════════════════════════════════════════════ */
.ann-card { background: white; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); animation: cardIn .3s ease both; border-left: 4px solid transparent; }
.ann-card.pinned { border-left-color: var(--yellow); background: linear-gradient(to right, #FEFCE8, white); }
.ann-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ann-author-row { display: flex; align-items: center; gap: 8px; }
.ann-name { font-weight: 800; font-size: .88rem; }
.ann-date { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.ann-pin-badge { font-size: .75rem; background: #FEFCE8; color: #A16207; padding: 2px 8px; border-radius: 20px; font-weight: 800; white-space: nowrap; }
.ann-text { font-size: .93rem; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.ann-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1.5px solid #F5F0FF; }

/* ══ Modal ════════════════════════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: rgba(30,27,46,.6); backdrop-filter: blur(6px); z-index: 500; display: flex; align-items: flex-end; justify-content: center; animation: overlayIn .2s ease; }
.modal-overlay[hidden] { display: none !important; }
@keyframes overlayIn { from{opacity:0} to{opacity:1} }
.modal { background: white; border-radius: 28px 28px 0 0; padding: 12px 24px 36px; width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; animation: modalUp .35s cubic-bezier(.34,1.56,.64,1); overscroll-behavior: contain; }
@keyframes modalUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.modal-handle { width: 40px; height: 4px; background: #E5E7EB; border-radius: 2px; margin: 8px auto 20px; cursor: pointer; }
.modal-close-row { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.modal-close { background: #F3F4F6; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .2s; font-family: 'Nunito',sans-serif; }
.modal-close:hover { background: #FFE4F0; color: var(--pink); }
.modal-title { font-size: 1.4rem; font-weight: 900; margin: 8px 0; line-height: 1.3; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; font-size: .83rem; color: var(--muted); }
.modal-description { font-size: .95rem; line-height: 1.7; color: var(--text); margin-bottom: 18px; padding: 16px; background: #FDFAFF; border-radius: 14px; border-left: 3px solid var(--pink); }

.modal-vote-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px; background: #FFF0F8; border-radius: 14px; }
.modal-vote-btn { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 2.5px solid #FFD6E8; background: white; font-family: 'Nunito',sans-serif; font-size: .88rem; font-weight: 700; cursor: pointer; transition: all .25s cubic-bezier(.34,1.56,.64,1); color: var(--text); }
.modal-vote-btn:hover { transform: scale(1.05); }
.modal-vote-btn.voted { background: var(--grad); color: white; border-color: transparent; box-shadow: 0 4px 16px rgba(255,107,157,.4); }
.modal-vote-label { font-weight: 700; color: var(--pink); font-size: .9rem; }

.modal-status-row { margin-bottom: 18px; }
.modal-status-row label { font-size: .85rem; font-weight: 700; margin-bottom: 6px; display: block; }
.status-select { padding: 9px 14px; border: 2.5px solid var(--border); border-radius: 12px; font-family: 'Nunito',sans-serif; font-size: .88rem; font-weight: 700; background: #FDFAFF; outline: none; cursor: pointer; width: 100%; color: var(--text); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A855F7' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.status-select:focus { border-color: var(--pink); }

.modal-share-row { display: flex; gap: 8px; margin-bottom: 18px; }
.share-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 2px solid var(--border); border-radius: 12px; background: white; font-family: 'Nunito',sans-serif; font-size: .82rem; font-weight: 700; cursor: pointer; transition: all .2s; color: var(--text); }
.share-btn:hover { border-color: var(--purple); background: #F9F5FF; color: var(--purple); }
.share-btn.whatsapp:hover { border-color: #25D366; background: #F0FFF4; color: #25D366; }

.comments-section { border-top: 2px solid #F5F0FF; padding-top: 18px; }
.comments-title { font-size: .98rem; font-weight: 800; margin-bottom: 14px; }
.comment { display: flex; gap: 10px; margin-bottom: 13px; animation: cardIn .3s ease; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 900; color: white; flex-shrink: 0; margin-top: 2px; }
.comment-body { flex: 1; background: #F9F5FF; border-radius: 4px 14px 14px 14px; padding: 10px 14px; }
.comment-author { font-weight: 800; font-size: .82rem; margin-bottom: 4px; }
.comment-text { font-size: .88rem; line-height: 1.45; }
.comment-date { font-size: .72rem; color: var(--muted); margin-top: 5px; }
.no-comments { text-align: center; color: var(--muted); font-size: .88rem; padding: 18px; }
.comment-form { display: flex; gap: 8px; margin-top: 14px; }
.comment-input { flex: 1; padding: 10px 14px; border: 2.5px solid var(--border); border-radius: 12px; font-family: 'Nunito',sans-serif; font-size: .9rem; outline: none; transition: border-color .2s; background: #FDFAFF; }
.comment-input:focus { border-color: var(--pink); }
.comment-submit { background: var(--grad); color: white; border: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: transform .2s; flex-shrink: 0; }
.comment-submit:hover { transform: scale(1.1); }

/* ══ Push Banner ══════════════════════════════════════════════ */
.push-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1E1B2E; color: white; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 300; animation: slideUp2 .4s ease; flex-wrap: wrap; }
.push-banner[hidden] { display: none !important; }
@keyframes slideUp2 { from{transform:translateY(100%)} to{transform:translateY(0)} }
.push-banner span { font-weight: 700; font-size: .9rem; }
.push-banner-btns { display: flex; gap: 10px; }
.push-banner-btns button { padding: 8px 18px; border: none; border-radius: 10px; font-family: 'Nunito',sans-serif; font-size: .88rem; font-weight: 700; cursor: pointer; }
#push-yes { background: var(--grad); color: white; }
#push-no  { background: rgba(255,255,255,.15); color: white; }

/* ══ Toast ════════════════════════════════════════════════════ */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1E1B2E; color: white; padding: 11px 22px; border-radius: 50px; font-weight: 700; font-size: .88rem; box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: all .35s cubic-bezier(.34,1.56,.64,1); z-index: 2000; white-space: nowrap; opacity: 0; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ══ Confetti ═════════════════════════════════════════════════ */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9000; }

/* ══ Animations ═══════════════════════════════════════════════ */
@keyframes popIn { from{opacity:0;transform:scale(.85) translateY(20px)} to{opacity:1;transform:scale(1) translateY(0)} }

/* ══ Photo Board (Polaroid-Pinnwand) ═════════════════════════ */
.photo-board {
  background: #1a1825;
  border-radius: 14px;
  padding: 28px 14px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  min-height: 280px;
  align-items: start;
  box-shadow: inset 0 2px 14px rgba(0,0,0,.35), 0 4px 20px rgba(0,0,0,.15);
}
@media(min-width:560px) {
  .photo-board { grid-template-columns: repeat(3, 1fr); padding: 32px 24px 28px; gap: 26px; }
}

.photo-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,.45);
  font-size: .95rem;
  font-weight: 700;
  padding: 40px 20px;
}

.polaroid {
  background: white;
  padding: 7px 7px 26px;
  position: relative;
  transform: rotate(var(--photo-rot, 0deg));
  box-shadow: 2px 5px 18px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.3);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  animation: photoIn .45s cubic-bezier(.34,1.56,.64,1) both;
  z-index: 1;
  cursor: default;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.07);
  box-shadow: 6px 14px 36px rgba(0,0,0,.7);
  z-index: 10;
}
@keyframes photoIn {
  from { opacity:0; transform:rotate(var(--photo-rot)) scale(.72) translateY(-14px); }
  to   { opacity:1; transform:rotate(var(--photo-rot)) scale(1)   translateY(0); }
}

.polaroid::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--tape-rot, -2deg));
  width: 44px;
  height: 14px;
  background: rgba(255,255,210,.78);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  border-radius: 2px;
  z-index: 3;
}

.polaroid img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
}
@media(min-width:560px) { .polaroid img { height: 170px; } }

.polaroid-caption {
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
  padding: 5px 3px 1px;
  color: #2c2c2c;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 14px;
}
.polaroid-author {
  font-size: .62rem;
  color: #aaa;
  text-align: center;
  margin-top: 2px;
  font-weight: 600;
}

.polaroid-del {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0,0,0,.55);
  color: white;
  border: none;
  font-size: .65rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-family: 'Nunito', sans-serif;
}
.polaroid:hover .polaroid-del { opacity: 1; }
.polaroid-del:hover { background: #DC2626; }

/* File upload */
.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 2.5px dashed var(--border);
  border-radius: 14px;
  background: #FDFAFF;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--purple);
  transition: all .2s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.file-upload-btn:hover, .file-upload-btn:active { border-color: var(--purple); background: #F3E8FF; }
.file-upload-btn.has-file { border-color: var(--green); background: #F0FDF4; color: #15803D; }

.upload-preview {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.upload-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

/* ══ Greeting Board (Korkpinnwand) ═══════════════════════════ */
.cork-board {
  background-color: #c08040;
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(220,170,80,.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 75% 70%, rgba(120,70,10,.2) 0%, transparent 60%),
    repeating-linear-gradient(0deg,   rgba(0,0,0,.03) 0, rgba(0,0,0,.03) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(90deg,  rgba(0,0,0,.025) 0, rgba(0,0,0,.025) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(22deg,  rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 40px);
  border: 5px solid #7a4e1a;
  border-radius: 14px;
  box-shadow: inset 0 2px 12px rgba(0,0,0,.25), 0 4px 20px rgba(0,0,0,.15);
  padding: 24px 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  min-height: 280px;
  align-items: start;
}

@media(min-width:580px) {
  .cork-board { grid-template-columns: repeat(3, 1fr); padding: 32px 24px 28px; gap: 24px; }
}

.greeting-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  font-weight: 700;
  padding: 40px 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.sticky-note {
  background: var(--note-bg, #FFF9C4);
  padding: 28px 13px 13px;
  border-radius: 2px;
  position: relative;
  box-shadow: 2px 4px 10px rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.15);
  transform: rotate(var(--note-rot, 0deg));
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, z-index 0s;
  animation: noteIn .45s cubic-bezier(.34,1.56,.64,1) both;
  z-index: 1;
}
.sticky-note:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 5px 10px 28px rgba(0,0,0,.35);
  z-index: 10;
}
@keyframes noteIn {
  from { opacity:0; transform:rotate(var(--note-rot)) scale(.7) translateY(-16px); }
  to   { opacity:1; transform:rotate(var(--note-rot)) scale(1)  translateY(0); }
}

.note-pin {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--pin-color, #E53935);
  border-radius: 50%;
  box-shadow: 0 3px 7px rgba(0,0,0,.45), inset 0 -2px 4px rgba(0,0,0,.2), inset 0 2px 3px rgba(255,255,255,.5);
  z-index: 3;
}
.note-pin::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 9px;
  background: rgba(0,0,0,.25);
  border-radius: 0 0 2px 2px;
}

.note-text {
  font-size: .88rem;
  line-height: 1.55;
  color: #2c2c2c;
  font-weight: 600;
  word-break: break-word;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.note-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px dashed rgba(0,0,0,.12);
  padding-top: 8px;
}
.note-author-name { font-size: .73rem; font-weight: 800; color: #444; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-date        { font-size: .63rem; color: #888; white-space: nowrap; }

.note-del {
  position: absolute;
  top: 5px;
  right: 6px;
  background: none;
  border: none;
  font-size: .78rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  color: #999;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
}
.sticky-note:hover .note-del { opacity: 1; }
.note-del:hover { background: rgba(220,38,38,.12); color: #DC2626; }

/* ══ Admin ════════════════════════════════════════════════════ */
.header-admin-btn {
  position: absolute;
  left: 20px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
  color: white; width: 36px; height: 36px; border-radius: 50%;
  font-size: .9rem; cursor: pointer; transition: all .2s;
}
.header-admin-btn:hover { background: rgba(255,255,255,.35); }
.header-admin-btn.is-admin { background: rgba(255,215,0,.35); border-color: gold; }

.admin-overlay {
  position: fixed; inset: 0; background: rgba(30,27,46,.7);
  backdrop-filter: blur(8px); z-index: 8000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.admin-overlay[hidden] { display: none !important; }

.admin-panel {
  background: white; border-radius: 24px; padding: 28px 24px;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1);
}

.admin-panel-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 6px;
}
.admin-panel-logo { font-size: 2rem; }
.admin-panel-title {
  flex: 1; font-size: 1.4rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.admin-close-btn {
  background: #F3F4F6; border: none; width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .2s;
}
.admin-close-btn:hover { background: #FFE4F0; color: var(--pink); }

.admin-panel-sub { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.admin-error { color: #DC2626; font-size: .85rem; font-weight: 700; margin-bottom: 10px; }

/* Stats */
.admin-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px;
}
@media(min-width:400px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }

.admin-stat {
  background: #FDFAFF; border-radius: 12px; padding: 10px 8px; text-align: center;
  border: 2px solid var(--border);
}
.admin-stat-num { font-size: 1.4rem; font-weight: 900; color: var(--purple); display: block; }
.admin-stat-label { font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* Danger */
.admin-section { background: #FFF5F5; border-radius: 14px; padding: 16px; margin-bottom: 20px; border: 2px solid #FEE2E2; }
.admin-section-title { font-size: 1rem; font-weight: 900; color: #DC2626; margin-bottom: 4px; }
.admin-section-sub { font-size: .78rem; color: #888; margin-bottom: 12px; }
.admin-danger-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.admin-danger-btn {
  padding: 9px 8px; border: 2px solid #FEE2E2; border-radius: 10px;
  background: white; font-family: 'Nunito',sans-serif; font-size: .78rem; font-weight: 700;
  cursor: pointer; color: #DC2626; transition: all .2s; text-align: left;
}
.admin-danger-btn:hover { background: #FEE2E2; border-color: #DC2626; }

.admin-logout-btn {
  width: 100%; padding: 11px; border: 2px solid var(--border); border-radius: 12px;
  background: white; font-family: 'Nunito',sans-serif; font-size: .9rem; font-weight: 700;
  cursor: pointer; color: var(--muted); transition: all .2s;
}
.admin-logout-btn:hover { border-color: var(--pink); color: var(--pink); }

.admin-section--users { background: #F5F0FF; border-color: var(--border); }
.admin-section--users .admin-section-title { color: var(--purple); }

.admin-users-list { margin-bottom: 10px; }
.admin-user-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: white; border-radius: 10px; margin-bottom: 6px;
  font-weight: 700; font-size: .9rem; border: 1.5px solid var(--border);
}

.admin-user-form { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-user-input { flex: 1; min-width: 100px; margin-bottom: 0 !important; font-size: .9rem !important; padding: 10px 14px !important; }
.admin-user-add-btn { padding: 10px 16px; font-size: .85rem; white-space: nowrap; }

.login-error { color: #DC2626; font-size: .85rem; font-weight: 700; margin-top: -8px; margin-bottom: 10px; }

/* ══ Personal Greeting Popup ══════════════════════════════════ */
.greet-popup {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 120px));
  width: min(88vw, 380px);
  background: var(--grad);
  border-radius: 22px;
  padding: 20px 24px 16px;
  box-shadow: 0 12px 48px rgba(168,85,247,.4);
  z-index: 5000;
  text-align: center;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  opacity: 0;
  cursor: pointer;
}
.greet-popup.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.greet-popup[hidden]  { display: none !important; }
.greet-popup-close {
  position: absolute; top: 10px; right: 12px;
  background: rgba(255,255,255,.25); border: none; color: white;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  font-size: .75rem; font-family: 'Nunito',sans-serif; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.greet-popup-close:hover { background: rgba(255,255,255,.4); }
.greet-popup-text {
  font-size: 1.05rem; font-weight: 800; line-height: 1.55;
  color: white; text-shadow: 0 1px 4px rgba(0,0,0,.15);
  margin-bottom: 0; padding-right: 16px;
}
.greet-popup-bar {
  height: 3px; background: rgba(255,255,255,.4); border-radius: 2px;
  margin-top: 14px; transform-origin: left; transform: scaleX(1);
}

/* ══ Dark Mode ════════════════════════════════════════════════ */
:root.dark {
  --bg:     #1A1625;
  --white:  #231E35;
  --text:   #F0E8FF;
  --muted:  #9CA3AF;
  --border: #3D2F6B;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
}
.dark body { background: var(--bg); color: var(--text); }
.dark .app-nav, .dark .view-tabs { background: var(--white); }
.dark .nav-btn:hover:not(.active) { background: #2D2445; }
.dark .form-card, .dark .idea-card, .dark .poll-card, .dark .pack-item,
.dark .ann-card, .dark .diary-entry, .dark .quiz-card, .dark .expense-card,
.dark .duty-day, .dark .contact-card, .dark .room-card { background: var(--white); border-color: var(--border); }
.dark input, .dark textarea, .dark select { background: #2D2445; color: var(--text); border-color: var(--border); }
.dark .name-card { background: var(--white); }
.dark .admin-panel { background: var(--white); }
.dark .admin-section { background: #2A1F3D; }
.dark .admin-section--users { background: #221D38; }
.dark .btn-ghost { background: var(--white); color: var(--muted); border-color: var(--border); }
.dark .view-tab { background: transparent; color: var(--muted); }
.dark .view-tab.active { background: var(--grad); color: white; }

.header-dark-btn {
  position: absolute; left: 60px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.5);
  color: white; width: 40px; height: 40px; border-radius: 50%; font-size: .9rem;
  cursor: pointer; transition: all .2s;
}
.header-dark-btn:hover { background: rgba(255,255,255,.4); }

/* ══ Offline Banner ═══════════════════════════════════════════ */
.offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9998;
  background: #DC2626; color: white; text-align: center;
  padding: 8px 16px; font-size: .85rem; font-weight: 700;
}
.offline-banner[hidden] { display: none; }

/* ══ Expenses (Kasse) ═════════════════════════════════════════ */
.kasse-summary { background: white; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.kasse-total { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.kasse-transfers ul { list-style: none; margin-top: 6px; }
.kasse-transfers li { padding: 4px 0; font-size: .9rem; border-bottom: 1px solid var(--border); }
.kasse-settled { color: var(--green); font-weight: 800; }
.expense-card { background: white; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.expense-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.expense-title { font-weight: 800; font-size: 1rem; }
.expense-amount { font-size: 1.2rem; font-weight: 900; color: var(--purple); }
.expense-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .85rem; flex-wrap: wrap; }
.expense-split { color: var(--muted); font-size: .8rem; }
.expense-footer { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); }
.form-hint { font-size: .78rem; color: var(--muted); margin: -8px 0 8px; font-style: italic; }

/* ══ Duties (Dienste) ════════════════════════════════════════ */
.duty-day { margin-bottom: 20px; }
.duty-day-header { font-weight: 800; font-size: .95rem; color: var(--purple); padding: 8px 0 10px; border-bottom: 2px solid var(--border); margin-bottom: 8px; }
.duty-row { display: flex; align-items: center; gap: 10px; background: white; border-radius: 12px; padding: 12px; margin-bottom: 6px; box-shadow: var(--shadow); transition: opacity .2s; }
.duty-row.done { opacity: .6; }
.duty-check { font-size: 1.3rem; cursor: pointer; flex-shrink: 0; }
.duty-body { flex: 1; min-width: 0; }
.duty-title { font-weight: 800; font-size: .95rem; }
.duty-time { font-size: .75rem; color: var(--muted); margin-left: 6px; }
.duty-assignee, .duty-doneby { font-size: .78rem; color: var(--muted); }

/* ══ Contacts (Notfall) ══════════════════════════════════════ */
.contact-card { display: flex; align-items: center; gap: 12px; background: white; border-radius: var(--radius); padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow); border-left: 4px solid #DC2626; }
.contact-info { flex: 1; }
.contact-name { font-weight: 900; font-size: 1rem; }
.contact-role { font-size: .8rem; color: var(--muted); }
.contact-note { font-size: .78rem; color: var(--muted); font-style: italic; margin-top: 2px; }
.contact-call { display: inline-block; background: #22C55E; color: white; font-weight: 800; border-radius: 10px; padding: 8px 16px; font-size: .9rem; text-decoration: none; flex-shrink: 0; }

/* ══ Rooms (Zimmer) ══════════════════════════════════════════ */
.room-card { background: white; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.room-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.room-name { font-weight: 900; font-size: 1rem; }
.room-spots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.room-spot { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--border); font-size: .85rem; font-weight: 700; }
.room-spot.assigned { background: #F0FDF4; border-color: var(--green); }
.room-spot-input { border: none; background: transparent; font-family: 'Nunito',sans-serif; font-weight: 700; font-size: .85rem; width: 80px; color: var(--text); text-align: right; }
.room-spot-person { color: var(--muted); font-style: italic; }

/* ══ Diary (Tagebuch) ════════════════════════════════════════ */
.diary-entry { display: flex; gap: 16px; background: white; border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.diary-mood { font-size: 2.5rem; flex-shrink: 0; line-height: 1; }
.diary-body { flex: 1; min-width: 0; }
.diary-meta { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.diary-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 8px; }
.diary-text { font-size: .9rem; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; margin-bottom: 10px; }
.mood-picker { display: flex; gap: 8px; margin: 6px 0; }
.mood-btn { font-size: 1.6rem; background: transparent; border: 2px solid var(--border); border-radius: 10px; padding: 4px 8px; cursor: pointer; transition: all .2s; }
.mood-btn.active { border-color: var(--purple); background: #F5F0FF; transform: scale(1.15); }

/* ══ Quiz ════════════════════════════════════════════════════ */
.quiz-card { background: white; border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.quiz-question { font-size: 1.05rem; font-weight: 900; margin-bottom: 14px; line-height: 1.4; }
.quiz-options-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.quiz-opt-btn { padding: 10px 16px; border: 2px solid var(--border); border-radius: 12px; background: white; font-family: 'Nunito',sans-serif; font-size: .9rem; font-weight: 700; cursor: pointer; text-align: left; transition: all .2s; }
.quiz-opt-btn:hover { border-color: var(--purple); background: #F5F0FF; }
.quiz-result { padding: 8px 12px; border-radius: 10px; background: #F9FAFB; border: 2px solid var(--border); margin-bottom: 4px; font-size: .88rem; font-weight: 700; }
.quiz-result.correct { border-color: var(--green); background: #F0FDF4; }
.quiz-result.mine { border-color: var(--purple); }
.quiz-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 4px; }
.quiz-bar div { height: 100%; background: var(--grad); border-radius: 2px; }
.quiz-score { font-size: .85rem; font-weight: 800; color: var(--purple); margin-bottom: 8px; }
.quiz-hint { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.quiz-option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.quiz-option-row .quiz-answer-radio { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--purple); cursor: pointer; }
.quiz-option-row input[type="text"] { flex: 1; }

/* ══ Ratings ═════════════════════════════════════════════════ */
.rating-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rating-btn { padding: 4px 10px; border: 1.5px solid var(--border); border-radius: 8px; background: white; font-size: .85rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.rating-btn:hover { border-color: var(--purple); }
.rating-btn.active { background: var(--grad); color: white; border-color: transparent; }

/* ══ Weather ═════════════════════════════════════════════════ */
.weather-widget { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.weather-location { font-weight: 800; font-size: 1rem; margin-bottom: 16px; text-align: center; }
.weather-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.weather-day { background: var(--bg); border-radius: 12px; padding: 10px 6px; text-align: center; border: 1.5px solid var(--border); }
.weather-day-name { font-size: .7rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.weather-icon { font-size: .85rem; margin-bottom: 4px; line-height: 1.3; }
.weather-temps { font-weight: 800; font-size: .85rem; }
.wt-max { color: var(--orange); }
.wt-min { color: var(--teal); margin-left: 4px; }
.weather-rain { font-size: .7rem; color: var(--teal); margin-top: 2px; }

/* ══ QR Code ═════════════════════════════════════════════════ */
.admin-qr-wrap { text-align: center; margin-top: 8px; }
.qr-wrap svg { width: 160px; height: 160px; border-radius: 10px; border: 4px solid var(--border); }
.qr-hint { font-size: .75rem; color: var(--muted); margin-top: 6px; word-break: break-all; }

/* ══ Responsive ═══════════════════════════════════════════════ */
@media(min-width:768px){
  .app-header { padding: 32px 40px 40px; }
  .header-title { font-size: 2.5rem; }
  .modal { border-radius: 28px; max-height: 80vh; margin-bottom: 40px; }
  .modal-overlay { align-items: center; }
  .nav-btn { font-size: .88rem; padding: 10px 8px; }
}
@media(max-width:400px){
  .countdown-num { font-size: 1.3rem; }
  .countdown-unit { min-width: 54px; padding: 6px 8px; }
}
