.elementor-kit-6{--e-global-color-primary:#E30613;--e-global-color-secondary:#54595F;--e-global-color-text:#54595F;--e-global-color-accent:#296CA5;--e-global-color-6cf4b0c:#FFFFFF00;--e-global-color-ad5d8ba:#FFFFFF;--e-global-color-9f2b430:#000000;--e-global-typography-primary-font-family:"Noto Sans";--e-global-typography-primary-font-size:clamp(1.8rem, 0.55rem + 4vw, 2.8rem);--e-global-typography-primary-font-weight:500;--e-global-typography-primary-font-style:normal;--e-global-typography-secondary-font-family:"Noto Sans";--e-global-typography-secondary-font-size:clamp(1.2rem, 0.225rem + 3.12vw, 1.98rem);--e-global-typography-secondary-font-weight:500;--e-global-typography-secondary-text-transform:uppercase;--e-global-typography-text-font-family:"Noto Sans";--e-global-typography-text-font-size:clamp(0.9rem, 0.5875rem + 1vw, 1.15rem);--e-global-typography-text-font-weight:300;--e-global-typography-accent-font-family:"Noto Sans";--e-global-typography-accent-font-size:clamp(0.9rem, 0.5875rem + 1vw, 1.15rem);--e-global-typography-accent-font-weight:500;--e-global-typography-10c4df1-font-family:"Noto Sans";--e-global-typography-10c4df1-font-size:clamp(0.8rem, 0.4875rem + 1vw, 1.05rem);--e-global-typography-10c4df1-font-weight:400;--e-global-typography-10c4df1-line-height:1rem;--e-global-typography-b0394e0-font-family:"Noto Sans";--e-global-typography-b0394e0-font-size:clamp(0.8rem, 0.4875rem + 1vw, 1.05rem);--e-global-typography-b0394e0-font-weight:500;--e-global-typography-895b458-font-family:"Noto Sans";--e-global-typography-895b458-font-size:clamp(0.8rem, 0.4875rem + 1vw, 1.05rem);--e-global-typography-895b458-font-weight:400;--e-global-typography-c2ea539-font-family:"Noto Sans";--e-global-typography-c2ea539-font-size:clamp(0.8rem, 0.55rem + 0.8vw, 1rem);--e-global-typography-c2ea539-font-weight:400;--e-global-typography-6eea51b-font-family:"Noto Sans";--e-global-typography-6eea51b-font-size:clamp(1.5rem, 0.625rem + 2.8vw, 2.2rem);--e-global-typography-6eea51b-font-weight:400;--e-global-typography-6eea51b-text-transform:uppercase;--e-global-typography-70282ab-font-family:"Noto Sans";--e-global-typography-70282ab-font-size:clamp(1rem, 0.25rem + 2.4vw, 1.6rem);--e-global-typography-84d8255-font-family:"Noto Sans";--e-global-typography-84d8255-font-size:clamp(0.8rem, 0.55rem + 0.8vw, 1rem);--e-global-typography-975234b-font-family:"Noto Sans";--e-global-typography-975234b-font-size:clamp(0.7rem, 0.575rem + 0.4vw, 0.8rem);--e-global-typography-ae2fef0-font-family:"Noto Sans";--e-global-typography-ae2fef0-font-size:clamp(1rem, 0.5rem + 1.6vw, 1.4rem);--e-global-typography-ae2fef0-font-weight:600;--e-global-typography-ae2fef0-text-transform:uppercase;}.elementor-kit-6 e-page-transition{background-color:var( --e-global-color-primary );}.elementor-kit-6 button,.elementor-kit-6 input[type="button"],.elementor-kit-6 input[type="submit"],.elementor-kit-6 .elementor-button{font-family:var( --e-global-typography-c2ea539-font-family ), Sans-serif;font-size:var( --e-global-typography-c2ea539-font-size );font-weight:var( --e-global-typography-c2ea539-font-weight );}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1200px;}.e-con{--container-max-width:1200px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-kit-6 button,.elementor-kit-6 input[type="button"],.elementor-kit-6 input[type="submit"],.elementor-kit-6 .elementor-button{font-size:var( --e-global-typography-c2ea539-font-size );}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-kit-6{--e-global-typography-10c4df1-font-size:0.9rem;--e-global-typography-b0394e0-font-size:0.9rem;--e-global-typography-895b458-font-size:0.9rem;}.elementor-kit-6 button,.elementor-kit-6 input[type="button"],.elementor-kit-6 input[type="submit"],.elementor-kit-6 .elementor-button{font-size:var( --e-global-typography-c2ea539-font-size );}.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS */document.addEventListener('DOMContentLoaded', function () {
  // Datei-Upload Feld finden
  const input = document.querySelector('.rez-upload-input input[type="file"]');
  if (!input) return;

  const btnPhoto   = document.getElementById('rez-btn-photo');
  const btnScan    = document.getElementById('rez-btn-scan');
  const btnGallery = document.getElementById('rez-btn-gallery');

  function openFile(mode) {
    // Sicherheitshalber alles zurücksetzen
    input.removeAttribute('capture');
    input.removeAttribute('accept');

    // Wir wollen immer nur Bilder
    input.setAttribute('accept', 'image/*');

    if (mode === 'camera') {
      // Rückkamera bevorzugen (Android + iOS unterstützen das meistens)
      input.setAttribute('capture', 'environment');
    }

    // Klick auf das versteckte Input triggern
    input.click();
  }

  if (btnPhoto) {
    btnPhoto.addEventListener('click', function (e) {
      e.preventDefault();
      openFile('camera');   // Kamera direkt öffnen
    });
  }

  if (btnScan) {
    btnScan.addEventListener('click', function (e) {
      e.preventDefault();
      openFile('camera');   // technisch identisch, nur anderer Button-Text
    });
  }

  if (btnGallery) {
    btnGallery.addEventListener('click', function (e) {
      e.preventDefault();
      openFile('gallery');  // ohne capture → Dateiauswahl / Galerie
    });
  }
});/* End custom CSS */