@charset "UTF-8";

/* Start page (pages/HomePage.php). Uses .page-title (common-1.css) and .fleet-button (fleet-2.css); marker colours from layout-3.css */
.home { container-type: inline-size; font-family: Calibri, "Droid Sans", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #202020;
  text-align: left; overflow-wrap: anywhere; }
.home > :first-child > :first-child { margin-top: 0; }
.home p { margin: 0 0 8px; }
.home ul, .home ol { margin: 0; padding: 0; list-style: none; }
.home a { color: #039; }
.home a:focus-visible { outline: 3px solid #ffe600; outline-offset: 1px; }
.home-meta { display: block; font-size: 14px; color: #53616b; }
.home-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 16px; }

/* News cards */
.home-slider { position: relative; }
.home-slides { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.home-slider.is-js .home-slides { scrollbar-width: none; }
.home-slider.is-js .home-slides::-webkit-scrollbar { display: none; }
.home-slide { box-sizing: border-box; flex: 0 0 100%; display: grid; grid-template-columns: 1fr; scroll-snap-align: start;
  border: 2px solid #039; background: #fff; }
.home-slide-image { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 3 / 2; object-fit: cover; }
.home-slide-body { display: flex; flex-direction: column; padding: 12px 16px; }
.home-slide h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: bold; color: #039; }
@container (min-width: 560px) {
  .home-slide.has-image { grid-template-columns: 1fr 1fr; }
  .home-slide.has-image .home-slide-image { aspect-ratio: auto; min-height: 240px; }
}
/* Controls left, "Alle Meldungen" right in one line (wraps on narrow screens) */
.home-slider-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 8px; }
.home-slider-footer .home-actions { margin: 0 0 0 auto; }
.home-slider-controls { display: flex; align-items: center; gap: 4px; }
.home-slider-controls[hidden], .home-slider-progress[hidden] { display: none; }
/* Remaining time: the line fills during the interval, stands still while held, disappears when stopped */
.home-slider-progress { height: 4px; background: #eaf0fa; }
.home-slider-progress span { display: block; width: 100%; height: 100%; background: #039; transform: scaleX(0); transform-origin: left;
  animation: home-slide-progress var(--home-slide-interval, 7000ms) linear forwards; animation-play-state: paused; }
.home-slider.is-running .home-slider-progress span { animation-play-state: running; }
.home-slider.is-stopped .home-slider-progress { visibility: hidden; }
@keyframes home-slide-progress { to { transform: scaleX(1); } }
.home-slider-dots { display: flex; }
.home-slider-button, .home-slider-dot { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: #039; cursor: pointer; font: inherit; }
.home-slider-button { border: 2px solid #039; background: #fff; font-size: 24px; font-weight: bold; line-height: 1; }
.home-slider-dot::before { content: ""; width: 12px; height: 12px; border: 2px solid #039; border-radius: 50%; box-sizing: border-box; }
.home-slider-dot[aria-current="true"]::before { background: #039; }
.home-slider-button:focus-visible, .home-slider-dot:focus-visible { outline: 3px solid #ffe600; outline-offset: 1px; }
.home-pause-icon { width: 10px; height: 14px; border-left: 4px solid #039; border-right: 4px solid #039; box-sizing: border-box; }
.home-slider.is-stopped .home-pause-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #039; }
.home-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-weight: bold; }

/* Next dates and thw.de side by side */
.home-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 32px; }
/* Equal column height, buttons at the bottom: "Alle Termine" and "Weitere Nachrichten" stay on one line */
.home-columns > .home-section { display: flex; flex-direction: column; min-width: 0; }
.home-columns .home-actions { margin-top: auto; padding-top: 16px; }

/* Dates: one link per event; dots are .events-dot (events-6.css) */
.home-events { display: grid; grid-template-columns: 1fr; gap: 8px; }
.home a.home-event { display: flex; gap: 10px; min-height: 44px; padding-top: 8px; border-top: 2px solid #039; color: #202020; text-decoration: none; }
.home a.home-event:hover .home-event-title { text-decoration: underline; }
.home-date { box-sizing: border-box; flex: 0 0 46px; display: flex; flex-direction: column; align-items: center; align-self: flex-start;
  padding: 4px 0; background: #039; color: #fff; font-size: 12px; line-height: 1.2; }
.home-date strong { font-size: 20px; line-height: 1.1; }
.home-event-text { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.home-event-title { display: block; color: #039; }
.home-markers { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 2px; font-size: 14px; color: #53616b; }
.home-marker { display: inline-flex; align-items: center; gap: 5px; }

/* Join band */
.home-join { box-sizing: border-box; padding: 16px; border: 2px solid #039; }
.home .home-join-intro { margin: 0 0 16px; }
.home-join-image { display: block; }
.home-join-image img { display: block; width: 100%; max-height: 520px; object-fit: cover; object-position: top; }

/* thw.de: one link per entry (date + title), external symbol */
.home-feeds { display: grid; grid-template-columns: 1fr; gap: 8px; }
.home-feeds li { border-top: 2px solid #039; }
.home-feed-link { display: block; min-height: 44px; padding-top: 8px; line-height: 1.35; text-decoration: none; }
.home-feed-title { color: #039; }
.home a.home-feed-link:hover .home-feed-title { text-decoration: underline; }
.home-feed-link svg { margin-left: 4px; vertical-align: -3px; color: #039; }
