import{e as k,r as T,f as D,g as $,c as a,o as l,a as e,h as z,F as M,i as C,t as u,n as L,b as i,u as x,w as p,d as f,_ as h}from"#entry";import{C as N}from"./YJHbYJtA.js";import{_ as V}from"./DlAUqK2U.js";/** * @license lucide-vue-next v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _=k("ArrowRightIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),H={key:0,class:"space-y-2 mb-6"},K={class:"flex items-center justify-between"},S={class:"flex items-center space-x-3"},A={class:"w-10 h-10 bg-primary-600 rounded-lg flex flex-col items-center justify-center text-white text-xs font-bold"},I={class:"font-semibold text-gray-900"},j={class:"text-sm text-gray-600"},E={key:1,class:"text-center py-8 bg-gray-50 rounded-lg"},F={key:2,class:"text-center"},R={__name:"TermineVorschau",setup(b){const c=T([]),t=D(()=>{const o=new Date;console.log("Heute ist:",o.toISOString().split("T")[0]);const s=c.value.filter(r=>{const d=new Date(r.datum)>=o;return console.log(`Termin ${r.titel} (${r.datum}): ${d?"KOMMEND":"VERSTRICHEN"}`),d}).sort((r,n)=>new Date(r.datum)-new Date(n.datum));return console.log("Kommende Termine:",s),s}),g=o=>new Date(o).getDate(),v=o=>{const s=new Date(o);return["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"][s.getMonth()]},w=async()=>{try{console.log("Lade Termine...");const o=await fetch("/data/termine.csv");if(console.log("Response:",o),!o.ok)throw new Error(`HTTP error! status: ${o.status}`);const s=await o.text();console.log("CSV Text:",s);const r=s.split(` `).filter(n=>n.trim()!=="");if(console.log("CSV Lines:",r),r.length<2){console.log("Keine Datenzeilen gefunden");return}c.value=r.slice(1).map((n,d)=>{const m=n.replace(/"/g,"").split(",");if(m.length<4)return console.log(`Zeile ${d+2} hat zu wenige Werte:`,m),null;const y={datum:m[0].trim(),titel:m[1].trim(),beschreibung:m[2].trim(),kategorie:m[3].trim()};return console.log(`Termin ${d+1}:`,y),y}).filter(n=>n!==null),console.log("Alle geparsten Termine:",c.value)}catch(o){console.error("Fehler beim Laden der Termine:",o)}};return $(()=>{w()}),(o,s)=>{const r=h;return l(),a("div",null,[s[2]||(s[2]=e("div",{class:"text-center mb-6"},[e("h2",{class:"text-2xl font-display font-bold text-gray-900 mb-2"}," Kommende Termine "),e("div",{class:"w-16 h-0.5 bg-primary-600 mx-auto"})],-1)),t.value.length>0?(l(),a("div",H,[(l(!0),a(M,null,C(t.value,(n,d)=>(l(),a("div",{key:d,class:"bg-gray-50 rounded-lg p-3 hover:bg-gray-100 transition-colors"},[e("div",K,[e("div",S,[e("div",A,[e("span",null,u(g(n.datum)),1),e("span",null,u(v(n.datum)),1)]),e("div",null,[e("h3",I,u(n.titel),1),e("p",j,u(n.beschreibung),1)])]),e("span",{class:L(["px-2 py-1 text-xs font-medium rounded-full",n.kategorie==="Turnier"?"bg-yellow-100 text-yellow-800":"bg-blue-100 text-blue-800"])},u(n.kategorie),3)])]))),128))])):(l(),a("div",E,[i(x(N),{size:32,class:"text-gray-400 mx-auto mb-2"}),s[0]||(s[0]=e("p",{class:"text-gray-600 text-sm"},"Keine kommenden Termine",-1))])),t.value.length>0?(l(),a("div",F,[i(r,{to:"/termine",class:"inline-flex items-center px-4 py-2 bg-primary-600 hover:bg-primary-700 text-white text-sm font-medium rounded-lg transition-colors"},{default:p(()=>[s[1]||(s[1]=f(" Alle Termine anzeigen ",-1)),i(x(_),{size:16,class:"ml-1"})]),_:1})])):z("",!0)])}}},J={id:"home",class:"relative min-h-full flex items-center justify-center overflow-hidden py-20 bg-gradient-to-br from-gray-50 to-gray-100"},B={class:"relative z-20 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 sm:py-32"},O={class:"text-center"},W={class:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-fade-in-delay-2"},q={class:"mt-16 max-w-4xl mx-auto"},P={__name:"Hero",setup(b){return(c,t)=>{const g=h;return l(),a("section",J,[t[4]||(t[4]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"absolute top-0 right-0 w-96 h-96 bg-primary-200/30 rounded-full blur-3xl"}),e("div",{class:"absolute bottom-0 left-0 w-96 h-96 bg-gray-300/30 rounded-full blur-3xl"}),e("div",{class:"absolute inset-0 opacity-10",style:{"background-image":"url('/images/club_about_us.png')","background-size":"cover","background-position":"center"}})],-1)),e("div",B,[e("div",O,[t[2]||(t[2]=e("h1",{class:"text-5xl sm:text-6xl lg:text-7xl font-display font-bold text-gray-900 mb-6 leading-tight animate-fade-in"},[f(" Willkommen beim"),e("br"),e("span",{class:"text-primary-600"},"Harheimer TC")],-1)),t[3]||(t[3]=e("p",{class:"text-xl sm:text-2xl text-gray-700 mb-8 max-w-3xl mx-auto animate-fade-in-delay-1"}," Tradition trifft Moderne - Ihr Tischtennisverein in Frankfurt-Harheim seit über 45 Jahren ",-1)),e("div",W,[i(g,{to:"/mitgliedschaft",class:"group px-8 py-4 bg-primary-600 hover:bg-primary-700 text-white font-semibold rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 flex items-center space-x-2"},{default:p(()=>[t[0]||(t[0]=e("span",null,"Mitglied werden",-1)),i(x(_),{size:20,class:"group-hover:translate-x-1 transition-transform"})]),_:1}),i(g,{to:"/kontakt",class:"px-8 py-4 bg-white hover:bg-gray-50 text-gray-900 font-semibold rounded-xl border-2 border-gray-300 hover:border-primary-600 shadow-lg transition-all duration-300"},{default:p(()=>[...t[1]||(t[1]=[f(" Kontakt aufnehmen ",-1)])]),_:1})])]),e("div",q,[i(R)])]),t[5]||(t[5]=e("div",{class:"absolute bottom-8 left-1/2 transform -translate-x-1/2 z-20 animate-bounce"},[e("div",{class:"w-6 h-10 border-2 border-gray-400 rounded-full flex justify-center pt-2"},[e("div",{class:"w-1.5 h-3 bg-primary-600 rounded-full"})])],-1))])}}},Z=V(P,[["__scopeId","data-v-33d25311"]]),G={class:"min-h-full"},ee={__name:"index",setup(b){return(c,t)=>(l(),a("div",G,[i(Z)]))}};export{ee as default};