/* ════════════════════════════════════════════════════════════════
   i18n — ZILENT SOFTWARE one-pager
   Languages: de (default), en, tr, ar (RTL)
   Exposes window.I18N and window.LANGS
   Note: exam topic names stay in German (official § 34a subject names).
   ════════════════════════════════════════════════════════════════ */

window.LANGS = [
  { code: 'de', label: 'DE' },
  { code: 'en', label: 'EN' },
  { code: 'tr', label: 'TR' },
  { code: 'ar', label: 'AR' },
];

window.TOPICS = [
  'Recht der öffentlichen Sicherheit', 'Gewerberecht', 'Datenschutzrecht',
  'Bürgerliches Gesetzbuch (BGB)', 'Straf- und Strafverfahrensrecht', 'Umgang mit Waffen',
  'Unfallverhütungsvorschriften (UVV)', 'Umgang mit Menschen', 'Sicherheitstechnik',
];

/* Skip-to-content link label per language */
window.SKIP = {
  de: 'Zum Inhalt springen',
  en: 'Skip to content',
  tr: 'İçeriğe geç',
  ar: 'تخطَّ إلى المحتوى',
};

window.I18N = {
  /* ─────────────────────────── GERMAN ─────────────────────────── */
  de: {
    nav: { app: 'Die App', about: 'Über uns', how: 'So funktioniert\u2019s', contact: 'Kontakt' },
    hero: {
      badge: 'Demnächst · iOS & Android',
      eyebrow: '34A Training',
      title1: 'Bereiten Sie sich auf die ',
      titleAccent: 'Sachkundeprüfung',
      title2: ' nach § 34a vor.',
      lead: 'ZILENT SOFTWARE entwickelt eine moderne Lern-App für die 34a Sachkundeprüfung. Praxisnahe Fragen, klare Themen, messbarer Fortschritt — auf iOS und Android.',
      ctaPrimary: 'Kontakt aufnehmen',
      ctaSecondary: 'App ansehen',
      m1k: '9', m1l: 'Themenbereiche',
      m2k: '§ 34a', m2l: 'Sachkundeprüfung',
      m3k: '0', m3l: 'Tracking',
    },
    about: {
      eyebrow: 'Über ZILENT',
      title: 'Klar gedachte Lern-Software.',
      lead: 'ZILENT SOFTWARE ist ein Einzelunternehmen aus Deutschland. Unser erstes Produkt ist eine moderne Lern-App zur Vorbereitung auf die Sachkundeprüfung nach § 34a GewO.',
      f1k: 'iOS & Android', f1l: 'Plattform',
      f2k: '4', f2l: 'Sprachen',
      f3k: '§ 34a', f3l: 'GewO',
    },
    app: {
      eyebrow: '34A Training App',
      title: 'Gezielte Vorbereitung auf die Sachkundeprüfung.',
      lead: 'Neun Themenbereiche, praxisnahe Übungsfragen und ein Fortschritt, den Sie jederzeit im Blick haben.',
      topicsLabel: 'Themenbereiche',
      f: [
        { t: 'Praxisnahe Prüfungsfragen', d: 'Fragen im Stil der echten Sachkundeprüfung nach § 34a GewO über die verschiedenen Themenbereiche.' },
        { t: 'Sofortiges Feedback', d: 'Direkt nach jeder Antwort sehen Sie die richtige Lösung — kurz und verständlich erklärt.' },
        { t: 'Fortschritt verfolgen', d: 'Pro Thema und insgesamt: Sie sehen genau, wo Sie stehen und was noch offen ist.' },
        { t: 'Jederzeit lernen', d: 'Schlanke, schnelle App für unterwegs. Lernen Sie in der Bahn, in der Pause oder zu Hause.' },
      ],
      shotA: 'Startbildschirm', shotB: 'Quiz-Ansicht',
    },
    how: {
      eyebrow: 'So funktioniert\u2019s',
      title: 'In drei Schritten zur Prüfungsvorbereitung.',
      lead: 'Kein überladenes Interface, kein Ballast. Sie wählen ein Thema und üben gezielt — in Ihrem Tempo.',
      s: [
        { t: 'Lernen', d: 'Wählen Sie einen Themenbereich und arbeiten Sie sich durch die Inhalte.' },
        { t: 'Üben', d: 'Beantworten Sie Fragen im Prüfungsstil und festigen Sie Ihr Wissen mit Feedback.' },
        { t: 'Vorbereiten', d: 'Verfolgen Sie Ihren Fortschritt, bis Sie sich gut auf die Prüfung vorbereitet fühlen.' },
      ],
    },
    wait: {
      title: 'Demnächst verfügbar.',
      lead: 'Die App befindet sich in Entwicklung und erscheint demnächst im App Store und bei Google Play. Bei Fragen erreichen Sie uns jederzeit.',
      cta: 'Kontakt aufnehmen',
    },
    support: {
      eyebrow: 'Kontakt & Support',
      title: 'Fragen? Schreiben Sie uns.',
      lead: 'Ob Feedback, eine technische Frage oder ein Anliegen zur App — wir antworten in der Regel innerhalb von zwei Werktagen.',
      name: 'Name', email: 'E-Mail', subject: 'Betreff', message: 'Nachricht',
      submit: 'Nachricht senden',
      okTitle: 'Nachricht vorbereitet.',
      okText: 'Ihr E-Mail-Programm sollte sich geöffnet haben. Falls nicht, schreiben Sie uns direkt an info@zilent.de.',
      asideEmail: 'E-Mail', asideLoc: 'Standort', asideTime: 'Antwortzeit', asideTimeVal: 'i. d. R. 2 Werktage',
      ph: { name: 'Max Mustermann', email: 'max@beispiel.de', subject: 'Worum geht es?', message: 'Ihre Nachricht …' },
    },
    footer: {
      tag: 'Moderne Lern-Software.',
      product: 'Produkt', legal: 'Rechtliches', contact: 'Kontakt',
      lApp: 'Die App', lAbout: 'Über uns',
      rights: 'Alle Rechte vorbehalten.',
    },
    cookie: {
      text: 'Diese Website nutzt nur technisch notwendige Cookies. Es findet kein Tracking und keine Analyse statt. Mehr dazu in der',
      link: 'Datenschutzerklärung',
      accept: 'Verstanden',
    },
    legal: {
      back: 'Zurück zur Startseite',
      notice: null, // German is authoritative — no notice on DE
      impressum: 'Impressum',
      datenschutz: 'Datenschutzerklärung',
      agb: 'AGB',
      widerruf: 'Widerruf',
    },
  },

  /* ─────────────────────────── ENGLISH ────────────────────────── */
  en: {
    nav: { app: 'The App', about: 'About', how: 'How it works', contact: 'Contact' },
    hero: {
      badge: 'Coming soon · iOS & Android',
      eyebrow: '34A Training',
      title1: 'Prepare for the ',
      titleAccent: '§ 34a security exam',
      title2: ' the modern way.',
      lead: 'ZILENT SOFTWARE is building a modern study app for the German 34a security-guard exam. Realistic questions, clear topics, measurable progress — on iOS and Android.',
      ctaPrimary: 'Get in touch',
      ctaSecondary: 'See the app',
      m1k: '9', m1l: 'Exam topics',
      m2k: '§ 34a', m2l: 'Security exam',
      m3k: '0', m3l: 'Trackers',
    },
    about: {
      eyebrow: 'About ZILENT',
      title: 'Clear, purpose-built study software.',
      lead: 'ZILENT SOFTWARE is a sole proprietorship based in Germany. Our first product is a modern study app for the German § 34a security exam.',
      f1k: 'iOS & Android', f1l: 'Platform',
      f2k: '4', f2l: 'Languages',
      f3k: '§ 34a', f3l: 'GewO',
    },
    app: {
      eyebrow: '34A Training App',
      title: 'Focused preparation for the exam.',
      lead: 'Nine topic areas, hands-on practice questions, and progress you can track at any time.',
      topicsLabel: 'Topic areas',
      f: [
        { t: 'Realistic exam questions', d: 'Questions in the style of the actual § 34a security exam, across the topic areas in the app.' },
        { t: 'Instant feedback', d: 'See the correct answer right after each question — explained briefly and clearly.' },
        { t: 'Track your progress', d: 'Per topic and overall: see exactly where you stand and what\u2019s left.' },
        { t: 'Study anywhere', d: 'A lean, fast app for the go. Learn on the train, on a break or at home.' },
      ],
      shotA: 'Home screen', shotB: 'Quiz view',
    },
    how: {
      eyebrow: 'How it works',
      title: 'Three steps to exam preparation.',
      lead: 'No cluttered interface, no ballast. Pick a topic and practise at your own pace.',
      s: [
        { t: 'Learn', d: 'Choose a topic area and work through the material.' },
        { t: 'Practise', d: 'Answer exam-style questions and reinforce your knowledge with feedback.' },
        { t: 'Prepare', d: 'Track your progress until you feel well prepared for the exam.' },
      ],
    },
    wait: {
      title: 'Coming soon.',
      lead: 'The app is in development and will soon be available on the App Store and Google Play. Questions? We\u2019re happy to help.',
      cta: 'Get in touch',
    },
    support: {
      eyebrow: 'Contact & Support',
      title: 'Questions? Write to us.',
      lead: 'Whether it\u2019s feedback, a technical question or an app issue — we usually reply within two business days.',
      name: 'Name', email: 'Email', subject: 'Subject', message: 'Message',
      submit: 'Send message',
      okTitle: 'Message prepared.',
      okText: 'Your email app should have opened. If not, write to us directly at info@zilent.de.',
      asideEmail: 'Email', asideLoc: 'Location', asideTime: 'Response time', asideTimeVal: 'usually 2 business days',
      ph: { name: 'Jane Doe', email: 'jane@example.com', subject: 'What\u2019s it about?', message: 'Your message …' },
    },
    footer: {
      tag: 'Modern study software.',
      product: 'Product', legal: 'Legal', contact: 'Contact',
      lApp: 'The App', lAbout: 'About',
      rights: 'All rights reserved.',
    },
    cookie: {
      text: 'This site uses only technically necessary cookies. There is no tracking and no analytics. Read more in our',
      link: 'Privacy Policy',
      accept: 'Got it',
    },
    legal: {
      back: 'Back to home',
      notice: 'These legal notices are legally binding in German only. The German text below is the authoritative version.',
      impressum: 'Imprint',
      datenschutz: 'Privacy Policy',
      agb: 'Terms',
      widerruf: 'Right of withdrawal',
    },
  },

  /* ─────────────────────────── TURKISH ────────────────────────── */
  tr: {
    nav: { app: 'Uygulama', about: 'Hakkımızda', how: 'Nasıl çalışır', contact: 'İletişim' },
    hero: {
      badge: 'Yakında · iOS & Android',
      eyebrow: '34A Eğitimi',
      title1: 'Almanya\u2019nın ',
      titleAccent: '§ 34a güvenlik sınavına',
      title2: ' modern bir şekilde hazırlan.',
      lead: 'ZILENT SOFTWARE, Alman 34a güvenlik görevlisi sınavı için modern bir öğrenme uygulaması geliştiriyor. Gerçekçi sorular, net konular, ölçülebilir ilerleme — doğrudan iOS ve Android cihazlarında.',
      ctaPrimary: 'İletişime geçin',
      ctaSecondary: 'Uygulamayı gör',
      m1k: '9', m1l: 'Sınav konusu',
      m2k: '§ 34a', m2l: 'Sınav hazırlığı',
      m3k: '0', m3l: 'Takip',
    },
    about: {
      eyebrow: 'ZILENT Hakkında',
      title: 'Sade, amaca yönelik öğrenme yazılımı.',
      lead: 'ZILENT SOFTWARE, Almanya merkezli bir şahıs şirketidir. İlk ürünümüz, § 34a güvenlik sınavına hazırlık için modern bir öğrenme uygulamasıdır.',
      f1k: 'iOS & Android', f1l: 'Platform',
      f2k: '4', f2l: 'Dil',
      f3k: '§ 34a', f3l: 'GewO',
    },
    app: {
      eyebrow: '34A Eğitim Uygulaması',
      title: 'Sınav için hedefli hazırlık.',
      lead: 'Dokuz konu alanı, uygulamalı alıştırma soruları ve istediğin zaman takip edebileceğin bir ilerleme.',
      topicsLabel: 'Konu alanları',
      f: [
        { t: 'Gerçekçi sınav soruları', d: 'Gerçek § 34a sınavının tarzında, uygulamadaki konu alanlarını kapsayan sorular.' },
        { t: 'Anında geri bildirim', d: 'Her sorudan hemen sonra doğru cevabı görürsün — kısa ve net açıklamayla.' },
        { t: 'İlerlemeni takip et', d: 'Konu başına ve genel: nerede olduğunu ve neyin kaldığını tam olarak gör.' },
        { t: 'Her yerde öğren', d: 'Yolda kullanım için hızlı, sade bir uygulama. Trende, molada veya evde öğren.' },
      ],
      shotA: 'Ana ekran', shotB: 'Test görünümü',
    },
    how: {
      eyebrow: 'Nasıl çalışır',
      title: 'Üç adımda sınav hazırlığı.',
      lead: 'Karmaşık arayüz yok, fazlalık yok. Bir konu seç ve kendi hızında çalış.',
      s: [
        { t: 'Öğren', d: 'Bir konu alanı seç ve içerikler üzerinde çalış.' },
        { t: 'Çalış', d: 'Sınav tarzı soruları yanıtla ve geri bildirimle bilgini pekiştir.' },
        { t: 'Hazır ol', d: 'Sınava güvenle girene kadar ilerlemeni takip et.' },
      ],
    },
    wait: {
      title: 'Çok yakında.',
      lead: 'Uygulama geliştirme aşamasında ve yakında App Store ve Google Play’de yayınlanacak. Sorularınız için bize ulaşın.',
      cta: 'İletişime geçin',
    },
    support: {
      eyebrow: 'İletişim & Destek',
      title: 'Sorun mu var? Bize yaz.',
      lead: 'Geri bildirim, teknik bir soru ya da uygulamayla ilgili bir konu — genellikle iki iş günü içinde yanıtlıyoruz.',
      name: 'Ad', email: 'E-posta', subject: 'Konu', message: 'Mesaj',
      submit: 'Mesaj gönder',
      okTitle: 'Mesaj hazırlandı.',
      okText: 'E-posta uygulamanız açılmış olmalı. Açılmadıysa doğrudan info@zilent.de adresine yazın.',
      asideEmail: 'E-posta', asideLoc: 'Konum', asideTime: 'Yanıt süresi', asideTimeVal: 'genellikle 2 iş günü',
      ph: { name: 'Ali Yılmaz', email: 'ali@ornek.com', subject: 'Konu nedir?', message: 'Mesajınız …' },
    },
    footer: {
      tag: 'Modern öğrenme yazılımı.',
      product: 'Ürün', legal: 'Yasal', contact: 'İletişim',
      lApp: 'Uygulama', lAbout: 'Hakkımızda',
      rights: 'Tüm hakları saklıdır.',
    },
    cookie: {
      text: 'Bu site yalnızca teknik olarak gerekli çerezleri kullanır. İzleme veya analiz yapılmaz. Daha fazlası için',
      link: 'Gizlilik Politikası',
      accept: 'Anladım',
    },
    legal: {
      back: 'Ana sayfaya dön',
      notice: 'Bu yasal metinler yalnızca Almanca olarak bağlayıcıdır. Aşağıdaki Almanca metin geçerli sürümdür.',
      impressum: 'Künye',
      datenschutz: 'Gizlilik Politikası',
      agb: 'Şartlar',
      widerruf: 'Cayma hakkı',
    },
  },

  /* ─────────────────────────── ARABIC (RTL) ───────────────────── */
  ar: {
    nav: { app: 'التطبيق', about: 'من نحن', how: 'كيف يعمل', contact: 'تواصل' },
    hero: {
      badge: 'قريباً · iOS و أندرويد',
      eyebrow: 'تدريب 34A',
      title1: 'استعد لاختبار ',
      titleAccent: 'الأمن § 34a الألماني',
      title2: ' بطريقة عصرية.',
      lead: 'تطوّر ZILENT SOFTWARE تطبيقاً عصرياً للتحضير لاختبار حراس الأمن الألماني 34a. أسئلة واقعية، مواضيع واضحة، وتقدّم قابل للقياس — على iOS وأندرويد.',
      ctaPrimary: 'تواصل معنا',
      ctaSecondary: 'شاهد التطبيق',
      m1k: '9', m1l: 'مواضيع الاختبار',
      m2k: '§ 34a', m2l: 'اختبار الكفاءة',
      m3k: '0', m3l: 'تتبع',
    },
    about: {
      eyebrow: 'عن ZILENT',
      title: 'برمجيات تعليمية عصرية ومدروسة بوضوح.',
      lead: 'ZILENT SOFTWARE مؤسسة فردية مقرّها ألمانيا. منتجنا الأول تطبيق تعليمي عصري للتحضير لاختبار الكفاءة § 34a.',
      f1k: 'iOS وأندرويد', f1l: 'المنصة',
      f2k: '4', f2l: 'لغات',
      f3k: '§ 34a', f3l: 'GewO',
    },
    app: {
      eyebrow: 'تطبيق تدريب 34A',
      title: 'تحضير مُركّز لاختبار § 34a.',
      lead: 'تسعة مجالات مواضيع، أسئلة تدريب عملية، وتقدّم يمكنك متابعته في أي وقت.',
      topicsLabel: 'مجالات المواضيع',
      f: [
        { t: 'أسئلة اختبار واقعية', d: 'أسئلة على غرار اختبار § 34a عبر مجالات المواضيع في التطبيق.' },
        { t: 'ملاحظات فورية', d: 'ترى الإجابة الصحيحة مباشرة بعد كل سؤال — مع شرح موجز وواضح.' },
        { t: 'تابع تقدّمك', d: 'لكل موضوع وبشكل عام: ترى بالضبط أين أنت وما تبقّى لك.' },
        { t: 'تعلّم أينما كنت', d: 'تطبيق سريع وخفيف للتنقّل. تعلّم في القطار أو الاستراحة أو المنزل.' },
      ],
      shotA: 'الشاشة الرئيسية', shotB: 'واجهة الاختبار',
    },
    how: {
      eyebrow: 'كيف يعمل',
      title: 'ثلاث خطوات للتحضير.',
      lead: 'لا واجهة مزدحمة، لا حشو. اختر موضوعاً وتدرّب على راحتك.',
      s: [
        { t: 'تعلّم', d: 'اختر أحد مجالات المواضيع واعمل على المحتوى.' },
        { t: 'تدرّب', d: 'أجب على أسئلة بأسلوب الاختبار وعزّز معرفتك بالملاحظات.' },
        { t: 'استعدّ', d: 'تابع تقدّمك حتى تدخل الاختبار بثقة.' },
      ],
    },
    wait: {
      title: 'قريباً.',
      lead: 'التطبيق قيد التطوير وسيتوفّر قريباً على App Store ومتجر Google Play. لأي استفسار، تواصلوا معنا.',
      cta: 'تواصل معنا',
    },
    support: {
      eyebrow: 'تواصل ودعم',
      title: 'لديك سؤال؟ راسلنا.',
      lead: 'سواء كان رأياً أو سؤالاً تقنياً أو مشكلة في التطبيق — عادةً نردّ خلال يومَي عمل.',
      name: 'الاسم', email: 'البريد الإلكتروني', subject: 'الموضوع', message: 'الرسالة',
      submit: 'إرسال الرسالة',
      okTitle: 'تم تجهيز الرسالة.',
      okText: 'يُفترض أن يكون تطبيق بريدك قد فُتح. إن لم يحدث، راسلنا مباشرة على info@zilent.de.',
      asideEmail: 'البريد الإلكتروني', asideLoc: 'الموقع', asideTime: 'وقت الرد', asideTimeVal: 'عادةً يومَا عمل',
      ph: { name: 'محمد أحمد', email: 'mohammad@mithal.com', subject: 'ما الموضوع؟', message: 'رسالتك …' },
    },
    footer: {
      tag: 'برمجيات تعليمية عصرية.',
      product: 'المنتج', legal: 'قانوني', contact: 'تواصل',
      lApp: 'التطبيق', lAbout: 'من نحن',
      rights: 'جميع الحقوق محفوظة.',
    },
    cookie: {
      text: 'يستخدم هذا الموقع ملفات تعريف ارتباط ضرورية تقنياً فقط. لا تتبّع ولا تحليلات. اقرأ المزيد في',
      link: 'سياسة الخصوصية',
      accept: 'حسناً',
    },
    legal: {
      back: 'العودة إلى الرئيسية',
      notice: 'هذه النصوص القانونية مُلزِمة قانونياً باللغة الألمانية فقط. النص الألماني أدناه هو النسخة المعتمدة.',
      impressum: 'بيانات الناشر',
      datenschutz: 'سياسة الخصوصية',
      agb: 'الشروط',
      widerruf: 'حق الإلغاء',
    },
  },
};
