import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import Header from "@/components/layout/Header";
import Footer from "@/components/layout/Footer";
import CookieBanner from "@/components/CookieBanner";

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Steinbruchfest 2026",
  description: "Steinbruchfest der Freiwillige Feuerwehr Friedberg",
  openGraph: {
    images: [ { width: 512, height: 512, url: 'https://steinbruchfest.at/images/android-chrome-512x512.png', type: 'image/png' } ],
    type: "website",
    url: "https://steinbruchfest.at",
    title: "Steinbruchfest 2026",
    description: "Steinbruchfest der Freiwillige Feuerwehr Friedberg",
    locale: "de_AT",
    siteName: "Steinbruchfest 2026"
    
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="de">
      <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased bg-flyer-yellow`}
      >
        <Header />
        <main className="">{children}</main>
        <Footer />
        <CookieBanner />
      </body>
    </html>
  );
}
