/* Basis-Styles EXT:lc_events – das Sitepackage überschreibt Farben/Typo über die Custom Properties */
.tx-lcevents {
  --lc-accent: #ff8300;
  --lc-text: #1a1a1a;
  --lc-muted: #6b6b6b;
  --lc-border: #e2e2e2;
  --lc-bg: #fff;
  --lc-radius: 6px;
  --lc-venue-live-club: #ff8300;
  --lc-venue-haas-saele: #3f9d00;
  --lc-venue-klitsche: #b70000;
  color: var(--lc-text);
}
.tx-lcevents [hidden] { display: none !important; }
.lc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.lc-btn { display: inline-block; padding: .5em 1em; border: 1px solid var(--lc-text); border-radius: var(--lc-radius); background: transparent; color: var(--lc-text); text-decoration: none; font: inherit; cursor: pointer; line-height: 1.2; }
.lc-btn:hover, .lc-btn:focus-visible { background: var(--lc-text); color: #fff; }
.lc-btn--tickets, .lc-btn--primary { background: var(--lc-accent); border-color: var(--lc-accent); color: #fff; }
.lc-btn--tickets:hover, .lc-btn--primary:hover { filter: brightness(.9); background: var(--lc-accent); }
.lc-btn--small { padding: .3em .6em; font-size: .85em; }
.lc-btn--danger { border-color: #b00020; color: #b00020; }
.lc-btn--danger:hover { background: #b00020; color: #fff; }

.lc-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.lc-filter__btn { padding: .45em 1em; border: 1px solid var(--lc-border); border-radius: 999px; background: var(--lc-bg); font: inherit; cursor: pointer; }
.lc-filter__btn.is-active { background: var(--lc-text); color: #fff; border-color: var(--lc-text); }

.lc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.lc-list__month { grid-column: 1 / -1; margin: 1rem 0 0; font-size: 1.4rem; border-bottom: 2px solid var(--lc-text); padding-bottom: .25rem; }
.lc-card { display: flex; flex-direction: column; border: 1px solid var(--lc-border); border-radius: var(--lc-radius); overflow: hidden; background: var(--lc-bg); border-top: 4px solid var(--lc-venue, var(--lc-accent)); }
.lc-card.live-club { --lc-venue: var(--lc-venue-live-club); }
.lc-card.haas-saele { --lc-venue: var(--lc-venue-haas-saele); }
.lc-card.klitsche { --lc-venue: var(--lc-venue-klitsche); }
.lc-card__image img, .lc-card__placeholder { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #eee; }
.lc-card__body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.lc-card__date { margin: 0; font-weight: 600; display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.lc-card__venue { color: var(--lc-venue); font-weight: 600; }
.lc-card__title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.lc-card__title a { color: inherit; text-decoration: none; }
.lc-card__subtitle { margin: 0; color: var(--lc-muted); }
.lc-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.lc-card--cancelled .lc-card__title, .lc-detail--cancelled .lc-detail__title { text-decoration: line-through; }

.lc-times { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; font-size: .9rem; }
.lc-times__label { color: var(--lc-muted); }
.lc-status { display: inline-block; align-self: flex-start; padding: .15em .55em; border-radius: 3px; font-size: .8rem; font-weight: 600; background: #eee; }
.lc-status--soldout, .lc-status--cancelled { background: #b00020; color: #fff; }
.lc-status--free { background: #2e7d32; color: #fff; }
.lc-status--postponed { background: #f0a000; }

.lc-social { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; margin: .25rem 0 0; padding: 0; font-size: .85rem; }
.lc-social__link { color: var(--lc-muted); }

.lc-highlights__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.lc-highlight { border-radius: var(--lc-radius); overflow: hidden; background: var(--lc-bg); border: 1px solid var(--lc-border); }
.lc-highlight__image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lc-highlight__body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.lc-highlight__date { margin: 0; font-weight: 600; }
.lc-highlight__title { margin: 0; font-size: 1.4rem; }

.lc-today__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.lc-today__venue { padding: 1rem; border-radius: var(--lc-radius); border-left: 5px solid var(--lc-venue, var(--lc-accent)); background: #f6f6f6; }
.lc-today__venue.live-club { --lc-venue: var(--lc-venue-live-club); }
.lc-today__venue.haas-saele { --lc-venue: var(--lc-venue-haas-saele); }
.lc-today__venue.klitsche { --lc-venue: var(--lc-venue-klitsche); }
.lc-today__venue-title { margin: 0 0 .5rem; }
.lc-today__event { margin: 0 0 .5rem; display: flex; flex-direction: column; gap: .2rem; }
.lc-today__time, .lc-today__none { color: var(--lc-muted); font-size: .9rem; }

.lc-detail__header { margin-bottom: 1.5rem; }
.lc-detail__date { margin: 0; font-weight: 600; }
.lc-detail__title { margin: .25rem 0; }
.lc-detail__subtitle { margin: 0; font-size: 1.2rem; color: var(--lc-muted); }
.lc-detail__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 2rem; }
@media (max-width: 800px) { .lc-detail__grid { grid-template-columns: 1fr; } .lc-detail__aside { order: -1; } }
.lc-detail__image { margin: 0 0 1.5rem; }
.lc-detail__image img { width: 100%; height: auto; border-radius: var(--lc-radius); }
.lc-infobox { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; border: 1px solid var(--lc-border); border-radius: var(--lc-radius); }
.lc-infobox__price { font-weight: 600; }
.lc-genres { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.lc-genres li { font-size: .8rem; padding: .15em .5em; border: 1px solid var(--lc-border); border-radius: 999px; }
.lc-btn--back { margin-top: 1rem; }
.lc-embed { margin: 1.5rem 0; border-radius: var(--lc-radius); overflow: hidden; background: #111; }
.lc-embed--video { aspect-ratio: 16 / 9; }
.lc-embed--audio { min-height: 160px; }
.lc-embed iframe { width: 100%; height: 100%; min-height: inherit; border: 0; display: block; }
.lc-embed--audio iframe { height: 160px; }
.lc-embed__consent { width: 100%; height: 100%; min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: transparent; color: #fff; border: 0; cursor: pointer; font: inherit; padding: 1rem; }
.lc-embed__consent span { font-size: .8rem; opacity: .75; }
.lc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; margin-top: 1.5rem; }
.lc-gallery img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* Mitarbeiter-Bereich */
.lc-flash { padding: .75rem 1rem; border-radius: var(--lc-radius); margin-bottom: 1rem; background: #e8f5e9; border: 1px solid #a5d6a7; }
.lc-flash--danger, .lc-flash--error { background: #fdecea; border-color: #f5a9a2; }
.lc-flash--warning { background: #fff8e1; border-color: #ffd54f; }
.lc-manage__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.lc-manage__head h1 { margin: 0; }
.lc-manage__toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.lc-tabs { display: flex; gap: .25rem; }
.lc-tabs__tab { padding: .5em 1em; border-radius: var(--lc-radius) var(--lc-radius) 0 0; text-decoration: none; color: inherit; border-bottom: 3px solid transparent; }
.lc-tabs__tab.is-active { border-bottom-color: var(--lc-accent); font-weight: 600; }
.lc-search { display: flex; gap: .5rem; }
.lc-search input { padding: .45em .6em; border: 1px solid var(--lc-border); border-radius: var(--lc-radius); font: inherit; }
.lc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lc-table th, .lc-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--lc-border); vertical-align: top; }
.lc-table tr.is-hidden td { opacity: .6; }
.lc-table__title { font-weight: 600; color: inherit; }
.lc-table__date { white-space: nowrap; }
.lc-table__actions { white-space: nowrap; text-align: right; }
.lc-inline-form { display: inline; }
.lc-badge { display: inline-block; font-size: .75rem; padding: .1em .45em; border-radius: 3px; background: var(--lc-accent); color: #fff; margin-left: .3rem; }
.lc-badge--ok { background: #2e7d32; margin: 0; }
.lc-badge--muted { background: #888; margin: 0; }
.lc-badge--warn { background: #f0a000; color: #000; }
@media (max-width: 800px) {
  .lc-table thead { display: none; }
  .lc-table tr { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; padding: .75rem 0; border-bottom: 1px solid var(--lc-border); }
  .lc-table td { border: 0; padding: 0; }
  .lc-table__actions { grid-column: 1 / -1; text-align: left; white-space: normal; display: flex; flex-wrap: wrap; gap: .3rem; }
}
.lc-form__group { border: 1px solid var(--lc-border); border-radius: var(--lc-radius); padding: 1rem 1.25rem 1.25rem; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.lc-form__group legend { font-weight: 700; padding: 0 .4rem; }
.lc-field { display: flex; flex-direction: column; gap: .3rem; }
.lc-field--wide { grid-column: 1 / -1; }
.lc-field > span { font-weight: 600; font-size: .9rem; }
.lc-field input[type=text], .lc-field input[type=url], .lc-field input[type=datetime-local], .lc-field input[type=search], .lc-field select, .lc-field textarea { padding: .55em .65em; border: 1px solid #bbb; border-radius: var(--lc-radius); font: inherit; width: 100%; box-sizing: border-box; }
.lc-field--check { flex-direction: row; align-items: center; gap: .5rem; }
.lc-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.lc-checks--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lc-current-image { flex-direction: row; align-items: center; gap: 1rem; }
.lc-current-image img { border-radius: 4px; }
.lc-editor { border: 1px solid #bbb; border-radius: var(--lc-radius); overflow: hidden; }
.lc-editor__toolbar { display: flex; gap: .25rem; padding: .35rem; background: #f3f3f3; border-bottom: 1px solid #ddd; }
.lc-editor__toolbar button { border: 1px solid #ccc; background: #fff; border-radius: 4px; padding: .25em .6em; cursor: pointer; font: inherit; font-size: .85rem; }
.lc-editor__area { min-height: 220px; padding: .75rem; outline: none; }
.lc-editor__area:focus { box-shadow: inset 0 0 0 2px var(--lc-accent); }
.lc-form__actions { position: sticky; bottom: 0; background: var(--lc-bg); padding: 1rem 0; border-top: 1px solid var(--lc-border); }

/* ---------- Schnellsuche im Pflegebereich ---------- */
.lc-search { position: relative; display: flex; gap: .5rem; align-items: flex-start; flex: 1 1 22rem; max-width: 34rem; }
.lc-search__field { position: relative; flex: 1; }
.lc-search__field input[type="search"] { width: 100%; padding: .5rem .75rem; font-size: 1rem; border: 1px solid #999; border-radius: var(--lc-radius, 0); }
.lc-search__field input[type="search"]:focus { outline: 2px solid var(--lc-accent); outline-offset: 0; border-color: var(--lc-accent); }
.lc-search.is-loading .lc-search__field::after {
  content: ''; position: absolute; right: .7rem; top: 50%; width: .9rem; height: .9rem; margin-top: -.45rem;
  border: 2px solid #bbb; border-top-color: var(--lc-accent); border-radius: 50%; animation: lc-spin .7s linear infinite;
}
@keyframes lc-spin { to { transform: rotate(360deg); } }
.lc-manage__searchinfo { margin: 0 0 1rem; padding: .5rem .75rem; background: #f4f4f4; }
@media (max-width: 600px) {
  .lc-search { flex-wrap: wrap; max-width: none; }
  .lc-search__date { flex-basis: 5.6rem; }
}

/* ---------- Textfilter Programmseite ---------- */
.lc-textfilter { margin: 0 0 .75rem; }
.lc-textfilter__input { width: 100%; max-width: 32rem; padding: .55rem .8rem; font: inherit; font-size: 1rem; border: 1px solid #999; border-radius: var(--lc-radius, 0); }
.lc-textfilter__input:focus { outline: 2px solid var(--lc-accent); outline-offset: 0; border-color: var(--lc-accent); }

.lc-search__hint { flex-basis: 100%; margin: .25rem 0 0; font-size: .8rem; color: #777; }
.lc-search { flex-wrap: wrap; }
.lc-table tbody tr.is-selected { background: #fff4e8; box-shadow: inset 4px 0 0 var(--lc-accent); }
.lc-manage__results[aria-busy="true"] { opacity: .55; transition: opacity .15s .1s; }
@media (hover: none) { .lc-search__hint { display: none; } }

/* ---------- Kompakte Aktions-Knöpfe in der Pflege-Tabelle ---------- */
.lc-table__actions { width: 1%; white-space: nowrap; }
.lc-actions { display: flex; gap: 4px; align-items: center; }
.lc-actions .lc-inline-form { display: contents; }
.lc-icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; margin: 0;
  border: 1px solid #d0d0d0; border-radius: 4px; background: #fff; color: #333; cursor: pointer; text-decoration: none;
  transition: background-color .12s, color .12s, border-color .12s;
}
.lc-icon-btn:hover, .lc-icon-btn:focus-visible { background: var(--lc-accent); border-color: var(--lc-accent); color: #fff; outline: none; }
.lc-icon-btn--off { color: #999; border-style: dashed; }
.lc-icon-btn--danger:hover, .lc-icon-btn--danger:focus-visible { background: #b70000; border-color: #b70000; color: #fff; }
.lc-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lc-table td { padding-top: .45rem; padding-bottom: .45rem; vertical-align: middle; }
.lc-table__date { white-space: nowrap; }

/* ---------- Dropzone für das Veranstaltungsbild ---------- */
.lc-dropzone { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
.lc-dropzone__current, .lc-dropzone__preview { flex: 0 0 auto; margin: 0; max-width: 220px; }
.lc-dropzone__current img, .lc-dropzone__preview img { display: block; max-width: 220px; max-height: 260px; width: auto; height: auto; border: 1px solid #ddd; background: #f4f4f4; }
.lc-dropzone__current figcaption, .lc-dropzone__preview figcaption { margin-top: .3rem; font-size: .85rem; color: #555; overflow-wrap: anywhere; }
.lc-dropzone__preview small { display: block; color: #777; }
.lc-dropzone__current.is-replaced { opacity: .35; }
.lc-dropzone__current.is-replaced figcaption::after { content: ' – wird ersetzt'; }
.lc-dropzone__target { display: block; }
.lc-dropzone.is-enhanced .lc-dropzone__target {
  position: relative; flex: 1 1 18rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  min-height: 160px; padding: 1.25rem; text-align: center; cursor: pointer;
  border: 2px dashed #b5b5b5; border-radius: 6px; background: #fafafa; color: #444; transition: border-color .15s, background-color .15s;
}
.lc-dropzone.is-enhanced .lc-dropzone__target:hover,
.lc-dropzone.is-enhanced .lc-dropzone__target:focus-within { border-color: var(--lc-accent); background: #fff8f0; }
.lc-dropzone.is-enhanced .lc-dropzone__target:focus-within { outline: 2px solid var(--lc-accent); outline-offset: 2px; }
.lc-dropzone.is-dragover .lc-dropzone__target { border-color: var(--lc-accent); border-style: solid; background: #fff1e0; }
.lc-dropzone.is-enhanced .lc-dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.lc-dropzone__icon {
  width: 40px; height: 40px; background: currentColor; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lc-dropzone.is-dragover .lc-dropzone__icon { opacity: 1; color: var(--lc-accent); }
.lc-dropzone__text u { color: var(--lc-accent); }
.lc-dropzone__hint { color: #777; font-size: .85rem; }
.lc-dropzone__actions { display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.lc-dropzone__error { flex-basis: 100%; margin: 0; color: #b70000; font-weight: 500; }
.lc-dropzone.is-busy .lc-dropzone__target::after {
  content: 'Bild wird vorbereitet …'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .85); font-weight: 500;
}
.lc-dropzone__delete { display: inline-flex; gap: .4rem; align-items: center; margin-top: .6rem; font-size: .9rem; }
.lc-btn--ghost { background: transparent !important; color: inherit !important; border: 1px solid #bbb !important; }
@media (max-width: 600px) {
  .lc-dropzone__current, .lc-dropzone__preview { max-width: 45%; }
  .lc-dropzone__current img, .lc-dropzone__preview img { max-width: 100%; }
  .lc-dropzone__icon { display: none; }
}

/* ---------- Monatsprogramm (Pflegebereich + Plugin) ---------- */
.lc-manage__headactions { display: flex; flex-wrap: wrap; gap: .5rem; }
.lc-manage__intro { margin: 0 0 1rem; }
.lc-manage__subhead { margin: 2rem 0 .75rem; font-size: 1.3rem; }
.lc-muted { color: #777; }
.lc-dropzone__pdf {
  display: grid; place-items: center; width: 120px; height: 150px; border: 1px solid #ddd; border-radius: 4px;
  background: linear-gradient(135deg, #fff 0 80%, #eee 80%); color: #b70000; font-weight: 700; letter-spacing: .05em;
}
.lc-dropzone__icon--pdf {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 14h8M8 18h5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 14h8M8 18h5'/%3E%3C/svg%3E");
}
.lc-programme__list { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.lc-programme__size { opacity: .75; font-size: .85em; }
