/* EFG Schneeberg – Veranstaltungskalender (passend zum Crose-Theme) */
.efgk { --rot: #c92f2f; --dunkel: #1f1f2c; --text: #636363; --linie: #ebebeb; --grau: #f7f7f7; font-family: "Open Sans", sans-serif; color: var(--text); }
.efgk *, .efgk-dialog * { box-sizing: border-box; }

.efgk-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.efgk-nav { display: flex; align-items: center; gap: 8px; }
.efgk-titel { margin: 0 8px; min-width: 210px; text-align: center; font-size: 24px; color: var(--dunkel); }
.efgk-btn { border: 1px solid var(--linie); background: #fff; color: var(--dunkel); border-radius: 4px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; line-height: 1.4; }
.efgk-btn:hover, .efgk-btn:focus-visible { border-color: var(--rot); color: var(--rot); outline: none; }
.efgk-zurueck, .efgk-vor { font-size: 22px; padding: 2px 12px; }
.efgk-ansicht .efgk-btn { border-radius: 0; margin-left: -1px; }
.efgk-ansicht .efgk-btn:first-child { border-radius: 4px 0 0 4px; }
.efgk-ansicht .efgk-btn:last-child { border-radius: 0 4px 4px 0; }
.efgk-btn.aktiv { background: var(--rot); border-color: var(--rot); color: #fff; }

.efgk-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.efgk-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linie); background: #fff; border-radius: 30px; padding: 5px 14px; font-size: 13px; color: var(--dunkel); cursor: pointer; transition: opacity .2s; }
.efgk-chip span { width: 10px; height: 10px; border-radius: 50%; background: var(--farbe); }
.efgk-chip.aus { opacity: .45; text-decoration: line-through; }

/* Monatsansicht */
.efgk-monat { border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; background: #fff; }
.efgk-kopf, .efgk-raster { display: grid; grid-template-columns: repeat(7, 1fr); }
.efgk-kopf div { background: var(--dunkel); color: #fff; text-align: center; padding: 10px 0; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.efgk-tag-zelle { min-height: 118px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.efgk-tag-zelle:nth-child(7n) { border-right: 0; }
.efgk-tag-zelle.fremd { background: var(--grau); }
.efgk-tag-zelle.fremd .efgk-nr { color: #b5b5b5; }
.efgk-nr { font-size: 13px; font-weight: 600; color: var(--dunkel); align-self: flex-end; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; }
.efgk-tag-zelle.heute .efgk-nr { background: var(--rot); color: #fff; }
.efgk-termin { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--farbe); background: #f4f4f6; border-radius: 3px; padding: 3px 6px; font-size: 12px; line-height: 1.35; color: var(--dunkel); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s; }
.efgk-termin.besonders { background: var(--farbe); color: var(--dunkel); font-weight: 600; border-left-color: rgba(0,0,0,.25); }
.efgk-termin:hover, .efgk-termin:focus-visible { background: #e7e7ec; outline: none; }
.efgk-termin.besonders:hover { filter: brightness(.95); }
.efgk-termin b { font-weight: 700; }

/* Listenansicht */
.efgk-liste { list-style: none; margin: 0; padding: 0; }
.efgk-monatstrenner { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--rot); font-weight: 700; margin: 26px 0 10px; }
.efgk-monatstrenner:first-child { margin-top: 0; }
.efgk-eintrag { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--farbe); border-radius: 6px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.efgk-eintrag:hover, .efgk-eintrag:focus-visible { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); outline: none; }
.efgk-eintrag.besonders { background: #fffaf8; }
.efgk-datum { flex: 0 0 56px; text-align: center; color: var(--dunkel); line-height: 1.1; }
.efgk-datum span { display: block; font-size: 12px; text-transform: uppercase; color: var(--text); }
.efgk-datum strong { font-size: 28px; }
.efgk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.efgk-text strong { color: var(--dunkel); font-size: 17px; }
.efgk-text > span { font-size: 14px; }
.efgk-text em { font-style: normal; font-size: 14px; color: var(--dunkel); }
.efgk-eintrag img { flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.efgk-tag { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--farbe); color: var(--dunkel); }

.efgk-laden, .efgk-leer { text-align: center; padding: 40px 10px; color: var(--text); }
.efgk-leer.klein { padding: 16px 10px 0; font-size: 14px; }

/* Detail-Dialog */
.efgk-dialog { position: fixed; inset: 0; z-index: 99999; background: rgba(20,20,20,.6); display: none; align-items: center; justify-content: center; padding: 16px; }
.efgk-dialog.offen { display: flex; }
.efgk-dialog-box { position: relative; background: #fff; border-radius: 8px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.3); font-family: "Open Sans", sans-serif; color: #636363; }
.efgk-dialog-box h3 { color: #1f1f2c; margin: 10px 0 6px; font-size: 24px; }
.efgk-dialog-bild { max-width: none; object-position: center 25%; width: calc(100% + 56px); margin: -28px -28px 18px; max-height: 260px; object-fit: cover; border-radius: 8px 8px 0 0; display: block; }
.efgk-dialog .efgk-tag { font-size: 12px; }
.efgk-untertitel { font-weight: 600; margin-bottom: 10px; }
.efgk-meta { line-height: 1.9; margin: 10px 0 14px; }
.efgk-meta .fa { width: 18px; color: #c92f2f; }
.efgk-meta a { color: #c92f2f; }
.efgk-beschreibung { border-top: 1px solid #ebebeb; padding-top: 14px; margin-bottom: 16px; line-height: 1.7; }
.efgk-aktionen { display: flex; flex-wrap: wrap; gap: 10px; }
.efgk-schliessen { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 26px; line-height: 34px; color: #1f1f2c; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* Startseite: Highlights */
.efgk-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.efgk-highlight { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid #ebebeb; border-top: 4px solid var(--farbe); border-radius: 6px; overflow: hidden; padding: 0; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.efgk-highlight:hover, .efgk-highlight:focus-visible { box-shadow: 0 10px 28px rgba(0,0,0,.1); transform: translateY(-2px); outline: none; }
.efgk-highlight img { width: 100%; height: 220px; object-fit: cover; object-position: center 15%; }
.efgk-highlight-datum { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #1f1f2c; color: #fff; font-size: 18px; text-transform: uppercase; letter-spacing: 2px; }
.efgk-highlight-datum strong { font-size: 64px; line-height: 1; letter-spacing: 0; }
.efgk-highlight-text { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.efgk-highlight-text strong { font-size: 19px; color: #1f1f2c; line-height: 1.3; }
.efgk-highlight-wann { font-size: 13px; color: #636363; }
.efgk-highlight-wann .fa { color: #c92f2f; }
.efgk-highlight-mehr { font-size: 14px; font-weight: 600; color: #c92f2f; }
.efgk-alle { text-align: center; margin: 30px 0 0; }

@media (max-width: 991px) {
  .efgk-tag-zelle { min-height: 90px; padding: 4px; }
  .efgk-termin b { display: none; }
}
@media (max-width: 767px) {
  .efgk-titel { min-width: 0; font-size: 19px; }
  .efgk-toolbar { flex-direction: column; align-items: stretch; }
  .efgk-nav { justify-content: space-between; }
  .efgk-ansicht { display: flex; }
  .efgk-ansicht .efgk-btn { flex: 1; }
  .efgk-kopf div { font-size: 11px; padding: 8px 0; }
  .efgk-tag-zelle { min-height: 56px; padding: 3px; }
  .efgk-nr { width: 22px; height: 22px; line-height: 22px; font-size: 12px; }
  .efgk-termin { font-size: 0; height: 6px; padding: 0; border-left: 0; background: var(--farbe); }
  .efgk-termin:not(.besonders) { opacity: .6; }
  .efgk-eintrag { gap: 12px; padding: 12px; }
  .efgk-eintrag img { display: none; }
}
#efg-highlights { margin-top: 50px; }
.efgk-highlight-sub { font-size: 14px; color: #636363; }
/* Kartenansicht auf events.html */
.efgk-karten { grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; }
.efgk-karten .efgk-highlight img, .efgk-karten .efgk-highlight-datum { height: 180px; }
.efgk-karten-monat { margin: 30px 0 16px; font-size: 22px; color: #1f1f2c; border-bottom: 2px solid #c92f2f; display: inline-block; padding-bottom: 4px; }
.efgk-highlight-wt { font-size: 13px; opacity: .8; margin-bottom: 4px; }
@media (max-width: 991px) { .efgk-karten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .efgk-karten { grid-template-columns: 1fr; } }
/* Karten mit Ticket-Button und Querformat-Bild */
.efgk-karte-rahmen { position: relative; display: flex; }
.efgk-karte-rahmen > .efgk-highlight { flex: 1; width: 100%; }
.efgk-highlight img.efgk-breit, .efgk-karten .efgk-highlight img.efgk-breit { height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center; }
.efgk-dialog-bild.efgk-breit { height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.efgk-karte-rahmen.mit-tickets .efgk-highlight-text { padding-bottom: 70px; }
.efgk-tickets { position: absolute; left: 20px; right: 20px; bottom: 18px; text-align: center; min-width: 0 !important; height: 44px !important; line-height: 44px !important; padding: 0 16px !important; font-size: 14px !important; }
.efgk-tickets .fa, .efgk-dialog-tickets .fa { margin-right: 6px; }
/* Datum auf Kartenbildern */
.efgk-bildrahmen { position: relative; display: block; overflow: hidden; }
.efgk-bildrahmen img { display: block; width: 100%; }
.efgk-bild-datum { position: absolute; left: 14px; top: 14px; background: #c92f2f; color: #fff; border-radius: 4px; text-align: center; padding: 5px 9px; font-size: 11px; font-weight: 600; letter-spacing: 1px; line-height: 1.1; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.efgk-bild-datum strong { display: block; font-size: 20px; letter-spacing: 0; }
