/* =============================================================
   ELMI IAB Investment - Custom Styles
   Inter Font: lokal (DSGVO), SIL OFL 1.1
   ============================================================= */

/* ---- Inter Variable Font: lokal ---- */

/* latin-ext - Deckt erweiterte lateinische Zeichen ab */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* latin - Basiszeichensatz inkl. deutschen Umlauten (ä ö ü ß) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---- Space Grotesk: Headings (lokal, DSGVO), SIL OFL 1.1 ---- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---- Headings: Space Grotesk, tight tracking, tight leading ---- */

h1, h2, h3, .font-display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
}


/* ---- CSS Custom Properties (ELMI Brand) ---- */

:root {
  --elmi-purple:      #7456f1;
  --elmi-purple-mid:  #704BF7;
  --elmi-purple-dark: #8401C0;
  --elmi-navy:        #102136;
  --elmi-navy-light:  #1a3550;
  --elmi-orange:      #FF8000;
  --elmi-orange-dark: #d96e00;
  --elmi-gray:        #4d5d6d;
  --elmi-light:       #f8f6ff;

  /* Gradient und Schatten-Tokens: bei Bedarf via var() verwenden */
  --gradient-elmi: linear-gradient(135deg, #7456f1 0%, #8401C0 100%);
}


/* ---- Navbar scroll state ---- */

#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: var(--elmi-navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 16px rgba(0,0,0,.3);
}


/* ---- Smooth scroll ---- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* navbar height */
}


/* ---- Focus-visible ring (Accessibility) ---- */

:focus-visible {
  outline: 2px solid var(--elmi-purple);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ---- FAQ Accordion ---- */
/* Answers collapse via max-height + opacity; JS toggles .is-open on .faq-item */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 600px; /* großzügiger Wert, deckt alle Antworten ab */
  opacity: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}


/* ---- Form inputs: hover/active state ---- */

.form-input:hover {
  border-color: #c4b5fd; /* purple-300 */
}


/* ---- Range slider: cross-browser ---- */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--elmi-purple);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--elmi-purple);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--elmi-purple);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--elmi-purple);
}


/* ---- Section transition: fade-in on scroll ---- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---- Formular-Fehlerfeld ---- */

.field-error {
  display: block;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #f87171; /* red-400 */
  outline-color: #f87171;
}


/* ---- Print: hide nav and hero BG ---- */

@media print {
  #navbar, #hero .absolute { display: none; }
  #hero { min-height: auto; padding-top: 2rem; }
}


/* ---- Reduced motion (WCAG 2.3.3) ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---- Odoo Kontaktformular (eingebettetes iframe) ----
   Feste Hoehe, da Odoo bei Cross-Origin-iframes keine Auto-Resize-
   Nachricht sendet. Mobil sind die Felder gestapelt -> mehr Hoehe noetig.
   Falls das Formular oben/unten abgeschnitten wird oder viel Leerraum
   entsteht, einfach die height-Werte anpassen. */

.odoo-form-iframe {
  display: block;
  width: 100%;
  height: 1100px;          /* Mobil: Felder gestapelt */
  border: 0;
}

@media (min-width: 1024px) {
  .odoo-form-iframe {
    height: 1000px;        /* Desktop: kompaktere Darstellung */
  }
}
