/* Railo — Impressum. Pflichtangaben nach § 5 DDG, im hellen Unterseiten-Stil
   (gleiche SubNav/Footer wie die anderen Seiten). Bewusst NICHT gelistet:
   AÜG-Erlaubnis (taucht im aktuellen Design nicht auf) und USt-IdNr.
   (noch nicht erteilt → entfällt, ist nur „soweit vorhanden" anzugeben). */
const { SubNav, RailoFooter, useRailoTheme } = window;

const IMP_DEFAULTS = /*EDITMODE-BEGIN*/{
  "akzent": ["#0a5cff", "#0048d6", "#0036a3"],
  "raster": "Dezent"
} /*EDITMODE-END*/;

function Block({ label, children }) {
  return (
    <div style={{ marginTop: 34 }}>
      <h2 style={{
        fontFamily: "var(--font-text)", fontSize: 12, fontWeight: 700,
        letterSpacing: "0.1em", textTransform: "uppercase",
        color: "var(--accent)", margin: "0 0 10px"
      }}>{label}</h2>
      <div style={{
        fontFamily: "var(--font-text)", fontSize: 17, lineHeight: 1.6,
        color: "var(--text-secondary)"
      }}>{children}</div>
    </div>);
}

function App() {
  const [t] = useTweaks(IMP_DEFAULTS);
  useRailoTheme(t);
  const link = { color: "var(--accent)", textDecoration: "none" };
  return (
    <React.Fragment>
      <SubNav />
      <main style={{ background: "var(--surface-page)", position: "relative", zIndex: 1 }}>
        <div style={{ maxWidth: 720, margin: "0 auto", padding: "clamp(56px, 8vw, 104px) 22px clamp(72px, 10vw, 120px)" }}>
          <h1 style={{
            fontFamily: "var(--font-display)", fontWeight: 600,
            fontSize: "clamp(36px, 6vw, 60px)", lineHeight: 1.05,
            letterSpacing: "var(--tracking-display)", color: "var(--text-primary)", margin: 0
          }}>Impressum</h1>

          <Block label="Angaben gemäß § 5 DDG">
            Railo GmbH<br />
            Lüneburger Landstraße 16<br />
            21368 Dahlenburg<br />
            Deutschland
          </Block>

          <Block label="Vertreten durch">
            Geschäftsführer: Aria Iranisefat
          </Block>

          <Block label="Kontakt">
            Telefon: <a href="tel:+4915201436843" style={link}>+49 152 01436843</a><br />
            E-Mail: <a href="mailto:iranisefat@railo-gmbh.com" style={link}>iranisefat@railo-gmbh.com</a>
          </Block>

          <Block label="Registereintrag">
            Eintragung im Handelsregister<br />
            Registergericht: Amtsgericht Lüneburg<br />
            Registernummer: HRB 213652
          </Block>

          <Block label="Verantwortlich für den Inhalt nach § 18 Abs. 2 MStV">
            Aria Iranisefat<br />
            Lüneburger Landstraße 16, 21368 Dahlenburg
          </Block>

          <Block label="Verbraucherstreitbeilegung">
            Wir sind nicht bereit oder verpflichtet, an Streitbeilegungsverfahren vor einer
            Verbraucherschlichtungsstelle teilzunehmen.
          </Block>
        </div>
      </main>
      <RailoFooter />
    </React.Fragment>);
}
ReactDOM.createRoot(document.getElementById("root")).render(<App />);
