@import url('fonts.css');

/* ==========================================================================
   MAXXEL GmbH – colours taken from the logo (navy → blue → sky gradient)
   ========================================================================== */
:root {
  --navy: #0b1b55;          /* darkest tone of the M */
  --ink: #101c44;           /* headings */
  --text: #2a3352;          /* body text */
  --text-2: #4b5573;
  --muted: #6b7591;
  --blue: #2f6fe0;          /* main accent (AA on white) */
  --blue-bright: #4a8ff0;   /* the blue "X" in the wordmark */
  --sky: #a9d3f5;           /* lightest tone of the M */
  --tint: #eef5fe;
  --bg: #ffffff;
  --bg-2: #f6f9fd;
  --line: #e2e8f3;
  --grad: linear-gradient(120deg, #0b1b55 0%, #2350c8 48%, #5aaef2 100%);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Montserrat', 'Inter', system-ui, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 14px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.7vh, 3.2rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.4vh, 2rem); font-weight: 700; }
h3 { font-size: 1.04rem; font-weight: 700; }
p { margin: 0 0 .9em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: clamp(10px, 1.8vh, 18px);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { font-size: clamp(1rem, 2vh, 1.16rem); color: var(--text-2); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: linear-gradient(120deg, #12307f, #2f6fe0); color: #fff; box-shadow: 0 6px 18px -8px rgba(47, 111, 224, .7); }
.btn--primary:hover { box-shadow: 0 10px 24px -8px rgba(47, 111, 224, .8); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 9px 16px; font-size: .84rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { height: 40px; width: auto; }
.brand__word { height: 16px; width: auto; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; position: relative; padding: 6px 0;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current='page'] { color: var(--ink); }
.nav__link[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); }
.lang { font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .12em; display: flex; gap: 6px; align-items: center; color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 2px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current='true'] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Main: fills the screen between header and footer ---------- */
.site-main { flex: 1; display: flex; align-items: center; position: relative; padding: clamp(16px, 3.4vh, 52px) 0; isolation: isolate; }
.bg-map { position: absolute; z-index: -1; pointer-events: none; }
.bg-map--corner { right: 0; bottom: 0; width: min(46vw, 720px); height: 80%; opacity: .55; }
.bg-map svg { width: 100%; height: 100%; }

/* ---------- Start ---------- */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 3vh, 30px); }
.facts { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px); margin-top: clamp(22px, 4.5vh, 48px); padding-top: clamp(16px, 2.6vh, 26px); border-top: 1px solid var(--line); }
.fact__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.35rem, 3.2vh, 1.9rem); color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.fact__label { font-size: .8rem; color: var(--muted); }
.hero__graphic { position: relative; aspect-ratio: 1 / .86; max-height: 54vh; width: 100%; justify-self: center; }
.hero__graphic svg { width: 100%; height: 100%; }

.industries { margin-top: clamp(24px, 5vh, 56px); }
.industries__title { font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.industries__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.industry { display: flex; align-items: center; gap: 10px; padding: clamp(10px, 1.6vh, 14px) 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-size: .86rem; font-weight: 500; color: var(--ink); line-height: 1.25; }
.industry svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* ---------- Page heads (Service, About) ---------- */
.page-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(18px, 3.8vh, 40px); }
.page-head h1 { margin: 0; }
.page-head .lead { margin: 0; }

/* ---------- Service ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.6vh, 28px) clamp(18px, 1.8vw, 26px); position: relative; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .2s ease; }
.card:hover { border-color: #c9d9f3; box-shadow: 0 14px 30px -18px rgba(11, 27, 85, .35); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(6px, 1.2vh, 12px); }
.card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.card__icon svg { width: 21px; height: 21px; }
.card h3 { margin: 0; }
.card p { font-size: .9rem; color: var(--text-2); margin: 0 0 clamp(8px, 1.4vh, 14px); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .76rem; padding: 3px 10px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); }

.process { display: flex; align-items: center; gap: 14px; margin-top: clamp(16px, 3.4vh, 34px); flex-wrap: wrap; font-size: .88rem; color: var(--text-2); }
.process__label { font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.process__step { display: inline-flex; align-items: center; gap: 8px; }
.process__step b { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-size: .72rem; display: grid; place-items: center; }
.process__arrow { color: var(--sky); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.about__text p { color: var(--text-2); font-size: clamp(.94rem, 1.85vh, 1.02rem); }
.about__text p.lead { color: var(--ink); font-weight: 500; font-size: clamp(1.02rem, 2.2vh, 1.18rem); }
.timeline { list-style: none; margin: clamp(14px, 2.6vh, 26px) 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: linear-gradient(90deg, var(--sky), var(--blue)); border-radius: 2px; }
.timeline li { position: relative; padding-top: 22px; font-size: .86rem; color: var(--text-2); line-height: 1.4; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline li:last-child::before { background: var(--blue); }
.timeline b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.partners { font-size: .9rem; color: var(--text-2); padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.partners a { font-weight: 600; }

.profile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.6vh, 26px); text-align: center; box-shadow: 0 20px 40px -28px rgba(11, 27, 85, .35); }
.profile__photo { width: clamp(110px, 20vh, 190px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto clamp(10px, 1.8vh, 16px); background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; overflow: hidden; position: relative; }
.profile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile h2 { font-size: 1.15rem; margin: 0 0 2px; }
.profile__role { font-size: .84rem; color: var(--muted); margin-bottom: clamp(8px, 1.6vh, 14px); }
.profile__note { font-size: .8rem; color: var(--muted); margin: clamp(8px, 1.6vh, 14px) 0 10px; }
.profile__links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); font-size: .82rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-top: 14px; padding-bottom: 14px; }
.site-footer address { font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer nav { display: flex; gap: 18px; }

/* ---------- Legal pages (normal scrolling) ---------- */
.legal { padding: clamp(40px, 6vh, 72px) 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.15rem; margin-top: 1.8em; }
.legal p, .legal dd { color: var(--text-2); }
.legal dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 24px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.todo { border: 1.5px dashed #d8a24a; background: #fff8ea; color: #7a5413; border-radius: 10px; padding: 18px 20px; font-size: .92rem; }
.todo b { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Animations ---------- */
.fade-in { animation: fadeIn .7s ease both; }
.fade-in--2 { animation-delay: .1s; }
.fade-in--3 { animation-delay: .2s; }
/* Movement only – content stays visible even if animations are throttled or disabled */
@keyframes fadeIn { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Short desktop screens: tighten so pages still fit ---------- */
@media (min-width: 961px) and (max-height: 820px) {
  :root { --header-h: 64px; }
  .card p { display: none; }
  .hero__graphic { max-height: 46vh; }
}

/* ---------- Tablet & phone: normal flow, scrolling allowed ---------- */
@media (max-width: 1100px) {
  .industries__list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .site-main { align-items: flex-start; }
  .hero, .about, .page-head { grid-template-columns: 1fr; }
  .hero__graphic { max-height: none; max-width: 520px; order: -1; aspect-ratio: 1 / .6; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .profile { max-width: 420px; }
  .bg-map--corner { opacity: .3; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 22px;
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 10px 0; font-size: .9rem; }
  .nav .btn { margin-top: 8px; }
  .lang { padding: 8px 0; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .industries__list { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .timeline li { padding: 0 0 0 26px; }
  .brand__word { height: 13px; }
  .brand__mark { height: 34px; }
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 10px; }
}

/* ---------- Skip link ---------- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
