// /opt/erp-system/app/layout.tsx
import './globals.css';
import type { Metadata } from 'next';
import { Providers } from './providers';
import AppShell from './components/AppShell';

export const metadata: Metadata = {
  title: 'ERP Pro – Unternehmenssteuerung',
  description: 'Professionelles ERP-System für Ticketverwaltung, Kundenkommunikation und Abrechnung.',
  icons: { icon: '/favicon.ico' },
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="de">
      <head>
        <link rel="preconnect" href="https://fonts.googleapis.com" />
        <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
        <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
      </head>
      <body className="font-sans antialiased">
        <Providers>
          <AppShell>{children}</AppShell>
        </Providers>
      </body>
    </html>
  );
}
