/* HoloDesk — global styles. Values follow the old Avada theme: black page, grey
   (#58585a) header and footer, red buttons (#b51621), Barlow Condensed for headings,
   navigation and buttons, Muli for text. */

/* ─── Fonts (self-hosted, as on the old site) ───────────────── */
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-v12-latin-700.woff2") format("woff2"),
       url("/assets/fonts/barlow-condensed-v12-latin-700.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Muli";
  src: url("/assets/fonts/Muli-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Tokens ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg:        #000000;
  --bg-2:      #111111;
  --bg-card:   #1a1a1a;
  --ink:       #ffffff;
  --ink-2:     #d9d9d9;
  --ink-3:     #a6a6a6;
  --line:      #3a3a3c;
  --line-2:    #58585a;
  --accent:    #e10707;   /* links */
  --red:       #b51621;   /* buttons, active nav item, heading line */
  --grey:      #58585a;   /* header and footer */
  --indigo:    #b51621;
  --indigo-dim: #3a0a0d;
  --cta-accent-ink: #ffffff;

  --sans:    "Muli", Arial, Helvetica, sans-serif;
  --heading: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --serif:   var(--sans);

  --radius:    0;
  --radius-lg: 0;
  --maxw:      1300px;
  --gutter:    clamp(20px, 5vw, 70px);
}

/* ─── Base ──────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
/* long URLs written out in the legal texts must not widen the page on phones */
.site-main a { overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0;
}
h1 { font-size: clamp(40px, 5vw, 70px); line-height: 1.16; margin: 0 0 0.2em; }
h2 { font-size: clamp(26px, 2.2vw, 30px); line-height: 1.16; margin: 0 0 0.6em; }
h3, h4 { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; margin: 1em 0 0.5em; }

img { max-width: 100%; height: auto; }

.wrap {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Sections that span the whole window although they sit inside .wrap. */
.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* The small red line the old site put above most headings ("Roter Strich"). */
.red-line::before,
.block-image-text__heading::before,
.block-team__heading::before {
  content: "";
  display: block;
  width: 25px;
  height: 1px;
  margin-bottom: 15px;
  background: var(--red);
}

/* Markdown pages (Impressum, Datenschutz, HoloLens 2 intro) */
.site-main {
  padding-bottom: 100px;
}
.site-main .wrap > h1:first-child { margin-top: 46px; }
.site-main .wrap > h2,
.site-main .wrap > h3,
.site-main .wrap > h4 { margin: 1.4em 0 0.4em; }
.site-main .wrap > h2 + p,
.site-main .wrap > h3 + p,
.site-main .wrap > h4 + p { margin-top: 0; }
.site-main .wrap > p > img:only-child { display: block; margin: 0 auto; }
.center { text-align: center; }
.site-main .wrap > h2.subtitle { margin-top: 0; font-size: 28px; }
/* Text pages (Impressum, Datenschutz): the old text column was about 860px wide. */
.site-main .wrap > p:not(:has(img)),
.site-main .wrap > ul,
.site-main .wrap > ol { max-width: 860px; }
.site-main .wrap > p.center { margin-inline: auto; }
.site-main table { border-collapse: collapse; width: 100%; font-size: 0.95rem; display: block; overflow-x: auto; }
.site-main td, .site-main th { border: 1px solid var(--line); padding: 0.5em 0.75em; vertical-align: top; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 21px;
  padding: 17px 40px;
  border: 1px solid var(--red);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 200ms, color 200ms;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: transparent; color: #fff; }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: var(--red); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.is-loading { opacity: 0.7; cursor: progress; }

/* ─── Header / nav ──────────────────────────────────────────── */
.nav {
  position: relative;
  z-index: 50;
  background: var(--grey);
  color: #fff;
}

.nav-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  height: 102px;
  padding: 0 30px;
}

.brand { display: flex; flex-shrink: 0; }
.brand img { display: block; width: 97px; height: 102px; }

.nav-links {
  display: flex;
  align-items: stretch;
  height: 95px;
  margin-left: auto;
  margin-right: 98px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  margin: 0 5px;
  color: #fff;
}
.nav-link:hover { text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-link.active { background: var(--red); }
.nav-link img { display: block; width: 18px; height: 12px; }

.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-inner { height: auto; min-height: 80px; align-items: center; flex-wrap: wrap; padding: 0 20px; }
  .brand img { width: 68px; height: 72px; }
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-toggle .icon-close { display: none; }
  .nav.is-open .nav-toggle .icon-menu { display: none; }
  .nav.is-open .nav-toggle .icon-close { display: block; }

  .nav-links {
    display: none;
    order: 10;
    width: 100%;
    height: auto;
    flex-direction: column;
    margin: 0 0 16px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-link { padding: 12px 10px; margin: 0; }
  html.nav-scroll-lock { overflow: hidden; }
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--grey);
  color: #fff;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 64px 50px;
}
.footer-widgets h4 {
  margin: 0 0 1em;
  font-size: 25.6px;
  line-height: 1.5;
}
.footer-widgets p { margin: 0 0 1em; }
.footer-widgets a:not(.btn) { color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0; }
.footer-social img { display: block; width: 45px; height: 45px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 20px;
  font-size: 13px;
}
.footer-bottom a { color: #fff; }
.footer-sep { margin: 0 4px; }
@media (max-width: 900px) {
  .footer-widgets { grid-template-columns: 1fr; }
}

/* ─── Progressive images (framework ResponsiveImage) ────────── */
.js-img-stack {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  justify-items: center;
}
.js-img-stack > img { grid-area: 1 / 1; width: 100%; min-width: 0; min-height: 0; }
.js-blur-placeholder { transition: opacity 300ms ease-out; }
.js-blur-placeholder.is-hidden { opacity: 0; }
.js-progressive-img { opacity: 0; transition: opacity 300ms ease-out; }
.js-progressive-img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js-blur-placeholder, .js-progressive-img { transition: none; }
}

/* ─── Contact form (framework component) ────────────────────── */
/* The old Avada form: no card, grey filled fields with rounded corners. */
.site-main .block-contact-form {
  background: none;
  border: 0;
  padding: 0;
  margin-block: 40px 0;
}
.site-main .block-contact-form__field span { font-size: 18px; color: var(--ink); }
.site-main .block-contact-form__field input:not([type="checkbox"]),
.site-main .block-contact-form__field textarea {
  background: #3e3e3e;
  border: 1px solid #212122;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
}
.site-main .block-contact-form__field input:not([type="checkbox"]) { min-height: 50px; padding: 0 16px; }
.site-main .block-contact-form__field textarea { padding: 16px; min-height: 114px; }
.site-main .block-contact-form__consent { align-items: center; }
.site-main .block-contact-form__consent span { font-size: 16px; color: var(--ink); }
.site-main .block-contact-form__consent a { color: var(--ink); }
.block-contact-form button[type="submit"] { text-transform: uppercase; }
