/*
 Theme Name: Twenty Twenty-Four Child
 Theme URI: https://example.com
 Description: Über dieses Child-Theme wird die Funktion zur Anzeige der Kalendereinträge integriert
 Author: Enrico Piehler and Constantin Beyer
 Template: twentytwentyfour
 Version: 1.0.0
*/

/* Hier beginnt DEIN CSS */


.ics-calendar-label_ksp {
	clear: none !important;
	font-weight: bold;
}

.ics-calendar-date_ksp {
	margin-block-start: 0.1em  !important;
	margin-block-end: 0.1em  !important;
	font-weight: bold;
}

.time_ksp{
	font-weight: normal;
}

.line_ksp{
	border: none;
	border-top: 2px dotted #B5B1B1;
	margin-left: 50px;
	margin-right: 50px;
}

.godi_ksp {
	font-weight: bold;
}

.ics-event{
  border: 3px solid var(--lit-color, #ccc);
  padding: 12px;
  border-radius: 10px;
  margin: 10px 0;
  background-color: var(--lit-color);
  color: #000000;
}



.kirchentag.lit-weiss {
  color: #fff !important;
}

.ics-filter-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 gleich breite Buttons */
    gap: 10px; /* gleichmäßiger Abstand */
    margin-bottom: 20px;
}

.ics-filter-btn {
    border: 1px solid #ccc;
    background: #575656;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.ics-filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.ics-filter-events {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.ics-filter-event {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.ics-filter-title {
    font-weight: 700;
}

.ics-filter-loading {
    font-size: 0.9rem;
    opacity: 0.65;
    margin-bottom: 10px;
}

.ics-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ics-filter-btn-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.ics-filter-event {
    position: relative;
}

.ics-filter-event-icons {
    float: right;
    display: inline-flex;
    gap: 5px;
    margin-left: 10px;
}

.ics-filter-event-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.ics-filter-content {
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.ics-filter-content.is-updating {
    opacity: 0.85;
    filter: blur(1px);
}

.ics-filter-content.is-updated {
    animation: icsUpdateSoft 0.6s ease;
}

@keyframes icsUpdateSoft {
    0% {
        opacity: 0.85;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 600px) {

    .ics-filter-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .ics-filter-btn {
        width: 100%;
        justify-content: center;
    }
	
}

.ics-event {
    position: relative;
}

.ics-event-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.ics-event-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ics-event-icons.icons-white .ics-event-icon {
    filter: brightness(0) invert(1);
}


/* Sonntagsgottesdienste mit der liturgischen Farbe Weiß */
.ics-event.liturgisch-weiss {
    position: relative;
    isolation: isolate;
    border-color: #d9c9a8;
    color: #111;
    background: linear-gradient(115deg, #fff 0%, #fdfbf7 55%, #faf6ed 100%);
}

.ics-event.liturgisch-weiss > .ksp-liturgisches-licht {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
	background: radial-gradient(
    	ellipse 170px 115px at 96% 8%,
    	rgba(214, 174, 83, 0.65) 0%,
    	rgba(221, 188, 111, 0.25) 45%,
    	transparent 85%
	);
    animation: ksp-liturgisches-licht 7s ease-in-out infinite;
}

@keyframes ksp-liturgisches-licht {
    0%, 100% { opacity: 0.10; }
    50%      { opacity: 0.1; }
}

@media (prefers-reduced-motion: reduce) {
    .ics-event.liturgisch-weiss > .ksp-liturgisches-licht {
        animation: none;
        opacity: 0.5;
    }
}

@media (max-width: 767px) {
  .wp-block-post-content.mobil-breiter {
    box-sizing: border-box;
    width: 95%;
    max-width: 95%;
    padding-left: 2.5%;
    padding-right: 2.5%;
  }

  .wp-block-post-content.mobil-breiter > :not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) {
    max-width: 95%;
  }
}

/* Den Kalender-Sprung ab Tabletbreite ausblenden. */

@media (min-width: 768px) {
  .kalender-sprung {
    display: none !important;
  }
}

.kalender-sprung{
	width: 100%;
}

/* Beim Anspringen etwas Platz vor dem Kalender lassen. */
#termine {
  scroll-margin-top: 1rem;
}

/* Punkte dicht am Text; die freie Klickfläche liegt rechts davon. */
.ics-event .eventdesc button[popovertarget] {
  margin: 0;
  padding: 0 0.4em 0 0;
  text-align: left;
  vertical-align: baseline;
  text-decoration: none !important;
}

/* Schließen-Button im Stil von „Zu den Terminen“. */
.ics-event [popover] button[popovertargetaction="hide"] {
  display: block;
  width: fit-content;
  margin: 1.25rem auto 0;
  padding: 0.55em 1.1em;
  border: 2px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}