/* Kalender auf Home (lino/kalender); Integration 01.11.2026: kompakt, Monat zum Aufklappen */
.hk { margin: 22px 0 8px; }
.hk-card { padding: 20px; border-radius: var(--r-card, 20px); background: var(--card-bg); box-shadow: var(--hn-shadow-sm, 0 1px 2px rgba(24,24,27,.04), 0 4px 12px rgba(24,24,27,.05)); }
.hk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hk-title { margin: 0; font-family: var(--font-title); font-size: 19px; font-weight: 700; color: var(--text); }
.hk-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.hk-card.is-open .hk-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hk-head-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hk-toggle { border: 1.5px solid var(--card-border); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 100px; cursor: pointer; }
.hk-toggle:hover { background: var(--bg-second); }
.hk-more { font-size: 12.5px; color: var(--text-muted); padding: 2px 4px; }
.hk-ev.is-done { opacity: .6; }
.hk-ev.is-done .hk-ev-main b { text-decoration: line-through; }
.hk-card:not(.is-open) .hk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.hk-card:not(.is-open) .hk-list-head, .hk-card:not(.is-open) .hk-more, .hk-card:not(.is-open) .hk-empty { grid-column: 1 / -1; }
.hk-card:not(.is-open) .hk-ev { margin-bottom: 0; }
.hk-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.hk-nav { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-second); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.hk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hk-wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--text-muted); padding: 4px 0; }
.hk-day { position: relative; aspect-ratio: 1; min-height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.hk-day:hover { background: var(--bg-second); }
.hk-day.is-empty { pointer-events: none; }
.hk-day.is-past { color: var(--text-muted); }
.hk-day.is-today span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; }
.hk-day.is-sel { background: var(--gold-light, #EFF4FF); box-shadow: inset 0 0 0 2px var(--gold); }
.hk-day i { display: flex; gap: 2px; height: 5px; }
.hk-day i b { width: 5px; height: 5px; border-radius: 50%; }
.hk-list-head { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 10px; }
.hk-link { border: 0; background: none; color: var(--gold); font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 0 0 0 6px; }
.hk-ev { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--bg-second); border-left: 4px solid var(--c); }
.hk-ev-date { flex: none; width: 40px; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-muted); line-height: 1.1; }
.hk-ev-date b { font-size: 18px; color: var(--text); }
.hk-ev-main { flex: 1; min-width: 0; }
.hk-ev-main b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.hk-ev-main em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.hk-del { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; }
.hk-del:hover { background: var(--card-bg); color: var(--text); }
.hk-empty { padding: 14px; border-radius: 14px; background: var(--bg-second); font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.hk-empty b { color: var(--text); }

.hk-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .5); overflow-y: auto; }
body.hk-noscroll { overflow: hidden; }
.hk-form { width: min(460px, 100%); margin: auto; padding: 20px; border-radius: 22px; background: var(--card-bg); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); }
.hk-form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hk-form-head h3 { margin: 0; font-size: 18px; }
.hk-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg-second); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.hk-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hk-kind { padding: 7px 12px; border-radius: 100px; border: 1.5px solid var(--card-border); background: var(--card-bg); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.hk-kind.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); font-weight: 600; }
.hk-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.hk-field input, .hk-field textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--text); padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--card-border); background: var(--card-bg); width: 100%; box-sizing: border-box; }
.hk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hk-form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

@media (max-width: 760px) {
  .hk-body, .hk-card.is-open .hk-body { grid-template-columns: 1fr; gap: 16px; }
  .hk-card { padding: 16px; }
  .hk-day { min-height: 0; font-size: 13px; border-radius: 8px; }
}
@media (max-width: 420px) { .hk-2 { grid-template-columns: 1fr; } .hk-add { width: 100%; } }

/* 01.11.2026: Details, Bearbeiten, Monatsauswahl */
.hk-nav:disabled { opacity: .35; cursor: default; }
.hk-month-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; padding: 6px 10px; border-radius: 100px; cursor: pointer; }
.hk-month-btn:hover, .hk-month-btn[aria-expanded="true"] { background: var(--bg-second); }
.hk-pick { padding: 4px 0; }
.hk-pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.hk-pick-m { position: relative; padding: 14px 0; border: 1.5px solid var(--card-border); border-radius: 14px; background: var(--card-bg); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hk-pick-m:hover:not(:disabled) { border-color: var(--gold); }
.hk-pick-m.is-now { color: var(--gold); }
.hk-pick-m.is-on { background: var(--gold); border-color: var(--gold); color: #fff; }
.hk-pick-m:disabled { opacity: .3; cursor: default; }
.hk-pick-m small { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gold-light, #EFF4FF); color: var(--gold); font-size: 10.5px; line-height: 16px; }
.hk-pick-m.is-on small { background: #fff; }
.hk-pick-today { padding: 0; }
button.hk-ev { width: 100%; border-top: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
button.hk-ev:hover { background: var(--gold-light, #EFF4FF); }
.hk-ev-go { flex: none; color: var(--text-muted); display: grid; place-items: center; }
.hk-link-inline { padding: 6px 0 0; font-size: 14px; }
.hk-detail { border-top: 6px solid var(--c); }
.hk-d-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hk-d-kind { padding: 5px 11px; border-radius: 100px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); font-size: 12.5px; font-weight: 700; }
.hk-d-title { margin: 0 0 6px; font-family: var(--font-title); font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.hk-d-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 14px; }
.hk-d-badge { padding: 3px 10px; border-radius: 100px; background: var(--gold-light, #EFF4FF); color: var(--gold); font-size: 12.5px; font-weight: 700; }
.hk-d-badge.is-past { background: var(--bg-second); color: var(--text-muted); }
.hk-d-rows { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.hk-d-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.hk-d-row small { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.hk-d-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-second); color: var(--text-muted); display: grid; place-items: center; }
.hk-d-bring { margin: 2px 0 0; padding-left: 18px; }
.hk-d-foot { flex-wrap: wrap; margin-top: 14px; }
.hk-d-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
.hk-d-ics { margin-right: auto; }
.hk-d-del { color: #DC2626; }
.hk-bring { display: flex; flex-wrap: wrap; gap: 6px; }
.hk-chip { padding: 6px 11px; border-radius: 100px; border: 1.5px solid var(--card-border); background: var(--card-bg); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.hk-chip.is-on { border-color: var(--gold); background: var(--gold-light, #EFF4FF); color: var(--gold); font-weight: 600; }
/* Haken als Linie statt Zeichen (das Zeichen ✓ erscheint auf manchen Geräten als buntes Emoji) */
.hk-chip.is-on::before { content: ''; display: inline-block; width: 8px; height: 4px; margin: 0 6px 3px 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.hk-bring-add { display: flex; gap: 6px; margin-top: 6px; }
.hk-bring-add input { flex: 1; font: inherit; font-size: 14px; font-weight: 400; color: var(--text); padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--card-border); background: var(--card-bg); min-width: 0; }
.hk-muted { font-weight: 400; color: var(--text-muted); }
@media (max-width: 480px) { .hk-d-foot .btn { flex: 1 1 auto; justify-content: center; } .hk-d-ics { margin-right: 0; } }

/* Ladeanzeige der Agenda: Text mit drei huepfenden Punkten (Leandro 03.11.2026),
   damit man sieht, dass noch etwas kommt. */
.hk-loading { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.hk-dots { display: inline-flex; align-items: flex-end; gap: 4px; height: 12px; }
.hk-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: hk-dot-hop 1.1s ease-in-out infinite; }
.hk-dots i:nth-child(2) { animation-delay: 0.15s; }
.hk-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hk-dot-hop { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hk-dots i { animation: hk-dot-fade 1.4s ease-in-out infinite; } }
@keyframes hk-dot-fade { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
