import type { Metadata, Viewport } from "next";
import { Inter } from "next/font/google";
import { Header } from "@/components/layout/Header";
import { Footer } from "@/components/layout/Footer";
import "@/theme/globals.css";
import "@/theme/stylesheet.css";

const inter = Inter({
  subsets: ["latin"],
  variable: "--font-inter",
  display: "swap",
});

export const metadata: Metadata = {
  title: {
    default: "Telenet Systems GmbH | Telekommunikation & IT-Services in Tirol",
    template: "%s | Telenet Systems GmbH",
  },
  description:
    "Ihr regionaler Partner für TV, Internet, Telefonie und IT-Services im Bezirk Reutte. Seit 1976 verbinden wir Menschen und Technik. Persönliche Beratung, schneller Support.",
  keywords: [
    "Telekommunikation Tirol",
    "IT-Dienstleister Reutte",
    "Highspeed-Internet Österreich",
    "Glasfaser Tirol",
    "TeleNetSystems",
    "regionaler IT-Service",
    "Kabel-TV Anbieter",
    "Telefonie Tarife Österreich",
  ],
  authors: [{ name: "Telenet Systems GmbH" }],
  creator: "Telenet Systems GmbH",
  publisher: "Telenet Systems GmbH",
  robots: {
    index: true,
    follow: true,
  },
  openGraph: {
    type: "website",
    locale: "de_AT",
    url: "https://www.tnr.at",
    siteName: "Telenet Systems GmbH",
    title: "Telenet Systems GmbH | Telekommunikation & IT-Services in Tirol",
    description:
      "Ihr regionaler Partner für TV, Internet, Telefonie und IT-Services im Bezirk Reutte. Persönliche Beratung, schneller Support.",
  },
};

export const viewport: Viewport = {
  width: "device-width",
  initialScale: 1,
  themeColor: "#f39210",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="de-AT" className={inter.variable}>
      <body className="flex min-h-screen flex-col">
        <Header />
        <main className="flex-1">{children}</main>
        <Footer />
      </body>
    </html>
  );
}
