@charset "UTF-8";

/* Date sub pages (training plans): next date card, entries grouped by month on the timeline of the chronicle
   (.history-line, .history-label, .history-item, .history-card from history-2.css; date and time above the title),
   form button in the management box.
   Cards and notes reuse .contact-card, .contact-note, .contact-area, .contact-name, .contact-role (contact-2.css). */
.events-page .events-intro { margin: 0 0 8px; }
.events-years { max-width: 720px; margin: 8px 0 4px; }
.events-years.is-forward { text-align: right; } /* button to the following year on the right, back on the left */
/* in the line of the checkbox "Vergangene Termine anzeigen" (it must stay a sibling of the blocks it hides, so the
   button lies over the right end of that line instead of sharing a wrapper with it) */
.events-years.is-beside-toggle { height: 0; margin: 0; position: relative; z-index: 1; }
.events-list > .events-change-note:first-child { margin-top: 8px; }
.events-page .events-manage-form { display: contents; margin: 0; }
.events-page .events-manage-form button { cursor: pointer; font-family: inherit; font-size: 16px; }
.events-next { display: block; max-width: 720px; text-decoration: none; color: #202020; }
.events-next:hover .contact-name, .events-next:focus .contact-name { text-decoration: underline; }
.events-next:focus-visible { outline: 3px solid #ffe600; outline-offset: 1px; }
.events-next .contact-area, .events-next .contact-name, .events-next .contact-role { display: block; }
.events-next .contact-name { font-size: 20px; color: #039; }
.events-next + .events-next { margin-top: 10px; }
.events-past-toggle { width: 24px; height: 24px; margin: 10px 8px 10px 0; vertical-align: middle; accent-color: #039; }
.events-past-toggle:focus-visible { outline: 3px solid #ffe600; outline-offset: 2px; }
.events-past-label { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: #039; font-weight: bold; cursor: pointer; }
.events-list { max-width: 720px; margin-bottom: 16px; }
.events-past-toggle:not(:checked) ~ .events-list .is-past { display: none; }
.events-past-toggle:not(:checked) ~ .events-next-block, .events-past-toggle:not(:checked) ~ .events-upcoming-title { display: none; }
.events-list .history-line { margin-top: 16px; }
.events-past-toggle:not(:checked) ~ .events-list .is-first-upcoming { padding-top: 0; }
.events-month-title { margin: 0; font-size: inherit; line-height: inherit; }
.events-entry { scroll-margin-top: 16px; }
.events-entry:target .history-card { outline: 3px solid #ffe600; outline-offset: 1px; }
/* date and time as in the card "Nächster Termin" (.contact-area), not bold blue as in the chronicle */
.events-list time.events-when { font-weight: normal; font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: 1px; color: #53616b;
  white-space: normal; }
/* next date: thicker line on top as the card "Nächster Termin" (.contact-card.is-address); the arrow moves up by the
   3 px the padding box moves down, so it stays at the dot */
.events-entry.is-next .history-card { border-top-width: 5px; }
.events-entry.is-next .history-card::before { top: 18px; }
.events-entry.is-next .history-card::after { top: 19px; }
.history-card .events-next-badge { display: inline-block; margin: 0 0 6px; padding: 2px 10px; background: #039; color: #fff; font-size: 14px;
  line-height: 1.4; font-weight: bold; }
.events-title { margin: 3px 0 0; font-size: 18px; line-height: 1.3; font-weight: bold; color: #202020; overflow-wrap: anywhere; }
.events-meta { display: block; margin-top: 3px; font-size: 16px; line-height: 1.4; color: #53616b; overflow-wrap: anywhere; }
.events-notice { font-style: italic; }
.events-page .contact-note { max-width: 720px; box-sizing: border-box; }

@container (max-width: 420px) {
  .events-list time.events-when { letter-spacing: 0.5px; }
  .events-next { padding: 10px 12px; }
  .events-next .contact-name { font-size: 18px; }
}
