@layer vendor, site;
@layer site {
/* v943: Event-Kalender als eigene Datei – genutzt auf Startseite und Community-Seite (DE/EN).
   Inhalt aus community-layout.css v938–v941 übernommen. Daten: assets/js/community-events.js. */
/* v938 (Wunsch NordFly): Event-Kalender – kommende Gruppenflüge live aus dem OperationCenter
   (assets/js/community-events.js, Abruf über api/nfg-events.php). Drei Karten, darunter weitere Termine. */
.community-events-head p{max-width:780px;margin:12px 0 0;color:var(--muted)}
/* v951 (Wunsch NordFly): Karten ohne Schatten – in der Laufleiste wurde jeder Schatten an den Rändern abgeschnitten
   bzw. schaute von der nächsten Karte herein. Die Karten grenzen sich über ihren Rahmen ab. */
/* v945 (Wunsch NordFly): alle Events als laufende Karten – drei sichtbar, Pfeile oben rechts, Wischen auf dem Handy. */
.community-events-grid{list-style:none;display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:-2px -2px 0;padding:2px 2px 6px;scroll-padding-inline:2px;overscroll-behavior-x:contain}
.community-events-grid::-webkit-scrollbar{display:none}
.community-events-grid:focus-visible{outline:2px solid #087fd0;outline-offset:2px;border-radius:26px}
.community-events-toolbar{display:flex;justify-content:flex-end;min-height:0;margin:-58px 0 20px}
.community-events-controls[hidden],.community-events-toolbar[hidden]{display:none}
.community-events-grid[hidden],.community-events-empty[hidden]{display:none}
.community-event{display:flex;flex:0 0 calc((100% - 36px) / 3);min-width:0;scroll-snap-align:start}
.community-event-card{flex:1 1 auto;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:none}
.community-event-media{position:relative;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#0a3a66 0%,#087fd0 62%,#22b9ee 100%)}
.community-event-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.community-event-fallback{position:absolute;right:8%;top:50%;width:46%;height:auto;max-height:150%;transform:translateY(-50%) rotate(8deg);fill:none;stroke:rgba(255,255,255,.22);stroke-width:.9;stroke-linejoin:round}
/* v940: Datum waagerecht rechts neben den Chips */
.community-event-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.community-event-top .community-event-chips{min-width:0}
.community-event-date{flex:none;display:inline-flex;align-items:baseline;gap:6px;min-height:30px;padding:0 12px;border:1px solid #9fcdee;border-radius:999px;background:#fff;color:var(--ink);box-shadow:0 3px 10px rgba(8,127,208,.12);line-height:28px}
.community-event-date strong{font-size:1.05rem;font-weight:850;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.community-event-wday,.community-event-month{font-size:.66rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.community-event-wday{color:#0a6db5}
.community-event-month{color:#566a7f}
.community-event-body{flex:1 1 auto;display:flex;flex-direction:column;gap:12px;padding:20px 22px 18px}
.community-event-chips{display:flex;flex-wrap:wrap;gap:6px}
.community-event-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;background:#eef6fc;color:#0a6db5;font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.community-event-chip.is-network{background:#0670b3;color:#fff}
.community-event-chip.is-countdown{background:#fff;box-shadow:inset 0 0 0 1px #cfe0ed;color:#566a7f}
.community-event-title{margin:0;overflow:hidden;font-size:var(--nf-event-title,1.18rem);line-height:1.25;letter-spacing:-.02em;white-space:nowrap;text-overflow:ellipsis;color:var(--ink)}
.community-event-route{display:flex;align-items:center;gap:12px;margin:0}
.community-event-ap{display:grid;min-width:0}
.community-event-ap b{font-size:1.25rem;font-weight:850;letter-spacing:.02em;color:var(--ink)}
.community-event-ap small{overflow:hidden;color:#566a7f;font-size:.78rem;white-space:nowrap;text-overflow:ellipsis}
.community-event-route svg,.community-event-meta svg,.community-event-signups svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.community-event-route .community-event-arrow{width:22px;height:22px;color:#0a86d1;align-self:flex-start;margin-top:4px}
.community-event-meta{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:.9rem}
.community-event-meta svg{color:#0a86d1}
.community-event-foot{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
.community-event-signups{display:inline-flex;align-items:center;gap:7px;min-width:0;color:#566a7f;font-size:.84rem}
.community-event.is-skeleton .community-event-media{background:#e9f1f8}
.community-event.is-skeleton .community-event-body{min-height:210px}
.community-event.is-skeleton .community-event-body i{display:block;height:13px;border-radius:7px;background:#eef3f8;animation:community-event-pulse 1.4s ease-in-out infinite}
.community-event.is-skeleton .community-event-body i:nth-child(1){width:36%}
.community-event.is-skeleton .community-event-body i:nth-child(2){width:82%;height:20px}
.community-event.is-skeleton .community-event-body i:nth-child(3){width:58%}
@keyframes community-event-pulse{50%{opacity:.45}}
.community-events-empty{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;border:1px dashed #b9d6ec;border-radius:24px;background:#f6fafd}
.community-events-empty p,.community-events-noscript{margin:0;color:var(--muted)}
@media(max-width:980px){
  .community-events-grid{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 calc(50% - 50vw);padding:4px calc(50vw - 50%) 16px;scroll-padding-inline:20px}
  .community-events-grid::-webkit-scrollbar{display:none}
  .community-event{flex:0 0 min(84%,380px);scroll-snap-align:start}
  .community-events-toolbar{display:none}
}
@media(max-width:680px){
  .community-events-grid{scroll-padding-inline:14px}
  .community-events-empty{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){.community-event.is-skeleton .community-event-body i{animation:none}}

/* v948 (Wunsch NordFly): „Eventbeschreibung ansehen“ statt der Uhrzeit-Zeile; Fenster mit Banner, Eckdaten und Beschreibung. */
.community-event-more{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 16px 0 13px;border:1px solid #cfe0ed;border-radius:999px;background:#fff;color:#0a6db5;font:inherit;font-size:.86rem;font-weight:800;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,transform .16s cubic-bezier(.23,1,.32,1)}
.community-event-more svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(hover:hover){.community-event-more:hover{border-color:#30aeea;background:#f3f9fd}}
.community-event-more:active{transform:scale(.97)}
.community-event-more:focus-visible{outline:2px solid #087fd0;outline-offset:2px}
html.nf-modal-open{overflow:hidden}
.nf-event-modal{width:min(760px,calc(100% - 32px));max-width:none;max-height:min(88vh,920px);margin:auto;padding:0;border:0;border-radius:24px;background:#fff;color:var(--ink);box-shadow:0 30px 80px rgba(3,18,37,.35);overflow:hidden}
.nf-event-modal[open]{animation:nf-event-modal-in .22s cubic-bezier(.23,1,.32,1)}
.nf-event-modal::backdrop{background:rgba(3,18,37,.62)}
@keyframes nf-event-modal-in{from{transform:translateY(12px) scale(.98)}}
.nf-event-modal-inner{position:relative}
.nf-event-modal-content{max-height:min(88vh,920px);overflow-y:auto;overscroll-behavior:contain}
.nf-event-modal-media{background:#0a3a66}
.nf-event-modal-media img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.nf-event-modal-body{padding:24px 30px 30px}
.nf-event-modal-top{flex-wrap:wrap;row-gap:8px}
.nf-event-modal-date{flex:none;color:var(--ink);font-size:.95rem;font-weight:800}
.nf-event-modal-title{margin:14px 0 18px;color:var(--ink);font-size:1.55rem;line-height:1.2;letter-spacing:-.02em}
.nf-event-modal-desc p,.nf-event-modal-desc ul{margin:0 0 14px;color:var(--muted);line-height:1.72}
.nf-event-modal-desc ul{padding-left:22px}
.nf-event-modal-desc > :last-child{margin-bottom:0}
.nf-event-modal-desc strong{color:var(--ink)}
.nf-event-modal-close{position:absolute;top:14px;right:14px;z-index:2;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(3,18,37,.66);color:#fff;font:inherit;font-size:1.65rem;line-height:1;cursor:pointer;transition:background-color .2s ease}
@media(hover:hover){.nf-event-modal-close:hover{background:rgba(3,18,37,.86)}}
.nf-event-modal-close:focus-visible{outline:2px solid #48d1ff;outline-offset:2px}
@media(max-width:600px){
  .nf-event-modal{width:calc(100% - 20px);border-radius:20px}
  .nf-event-modal-body{padding:20px 20px 24px}
  .nf-event-modal-title{font-size:1.3rem}
}
@media(prefers-reduced-motion:reduce){.nf-event-modal[open]{animation:none}.community-event-more{transition:none}}

/* v961 (Wunsch NordFly): Hinweis ohne kommende Gruppenflüge – Titel und Text passend zur Saison, Discord-Button rechts.
   Gibt es vergangene Gruppenflüge, steht der Hinweis über den Rückblick-Karten. */
.community-events-empty-copy{display:grid;gap:6px;min-width:0}
.community-events-empty-copy strong{color:var(--ink);font-size:1.08rem;font-weight:800;letter-spacing:-.01em}
.community-events-empty-copy p{margin:0;max-width:820px;color:var(--muted);line-height:1.6}
.community-events-empty:not([hidden]) + .community-events-grid{margin-top:20px}
.community-events-grid.is-past .community-event-chip.is-countdown{background:#eef3f8;box-shadow:none;color:#566a7f}
}
