:root {
  --gap: 24px;
  --max: 1600px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow: hidden; /* important: body should not be the scroller */
}

h1, h2, h3, h4, h5, h6 {
  margin: 0em;
  padding: 0em;
}

i {
  color:#F7672B;
}

a.button {
  text-decoration: none;
  color: #fff;
  background: #F7672B;
  padding: 1em 2em;
  border-radius:10px;
}

/* The snapping scroller */
.snap {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Each panel is a snap shell */
.panel {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: block;
  padding: 3em;
}

/* Vertically center content in all panels except the header */
.panel:not(#header) {
  display: flex;
  align-items: center;
}

.panel:not(#header) .content {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

/* .content is only a width wrapper now */
.content {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

/* Media: no cropping, allow full column width */
.media {
  width: 100%;
  max-width: none;
  border-radius: 18px;
  overflow: hidden;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background:none;
}

.media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}
.media video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Titles */
.section-title{
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.05;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 600px){
  .panel{ padding: 1.5em; }
}

.text h6 {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: #F7672B;
}

.text h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.05;
}

.text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 60ch;
}

/* BG Video */
video.bg {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  inset: 0;
  z-index: -99;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: -98;
  background: linear-gradient(
    to bottom,
    rgba(0, 25, 54, 1.0) 15%,
    rgba(0, 25, 54, 0.85) 70%,
    rgba(0, 25, 54, 0.80) 100%
  );
}

/* HEADER */
#header {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0 2em;
}
#header-basic {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0 2em;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#header #content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

nav {
  position: relative;
  width: 100%;
  height: 116px;
  background: #001936;
  z-index: 100;
}

nav img {
  margin-left: 0em;
  height: 50px;
  margin-top: 33px;
}

nav ul {
  float: right;
  margin: 0em;
  padding: 2em;
  padding-right: 0em;
}

nav ul li {
  display: inline-block;
  margin: 1em 1em;
  margin-right:0em;
}

nav ul li a {
  text-decoration: none;
  border-bottom: 1px #fff dotted;
  color: #fff;
}

/*Burger Menu*/
nav a.burger {
  position: absolute;
  right: 0em;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: none;
  border: none;
}

nav a.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* bar positions */
nav a.burger span:nth-child(1) { top: 14px; }
nav a.burger span:nth-child(2) { top: 21px; }
nav a.burger span:nth-child(3) { top: 28px; }

/* open state */
nav a.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav a.burger.open span:nth-child(2) {
  opacity: 0;
}
nav a.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#header h1 { font-size: 8vw; color: #fff; }
#header h1 span { color: #F7672B; }
#header h3 { margin-top: 2.0vw; font-size: 2.0vw; color: #fff; }

@media (max-width:500px) {
  nav a.burger {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 116px;
    left: 0;
    right: 0;
    width: 100%;
    float: none;
    background-color: #001936;
    margin: 0em;
    padding: 1em 0em;
    z-index: 200;
  }

  nav ul li {
    display: block;
    width: 100%;
    margin: 0em;
    padding: 0.75em 2em;
  }
}

/* Reusable: text left and image right */
.twoCol {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: var(--gap);
  align-items: center;
}

/* If a title exists, it spans both columns */
.twoCol .section-title {
  grid-column: 1 / -1;
  justify-self: start;
  margin-bottom: 0.5em;
}

/* Desktop placement */
.twoCol .text { grid-column: 1; }
.twoCol .media { grid-column: 2; }

/* Mobile: image below text */
@media (max-width: 900px) {
  .twoCol {
    grid-template-columns: 1fr;
  }

  .twoCol .section-title {
    grid-column: 1;
    margin-bottom: 0.75em;
  }

  .twoCol .text {
    grid-column: 1;
    grid-row: 2;
  }

  .twoCol .media {
    grid-column: 1;
    grid-row: 3;
  }
}

/* FEATURES sections */
#multimedia, #preciseConcise {
  background: none;
  color: #fff;
}

#references {
  background: #fff;
  color: #001936;
}

/* Platform */
#platform {
  background: #fff;
  color: #001936;
}
#platform.transparent {
  background:#fbfbfb;
}

/* Keep platform custom layout, plus its existing responsive behavior */
#platform .platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--gap);
  row-gap: 16px;
  align-items: center;
}

#platform .section-title {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  text-align: left;
  margin: 0;
}

#platform .section-subtitle {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  margin: 0;
  color: #F7672B;
}

#platform .text {
  grid-column: 1;
  grid-row: 2;
}

#platform .media {
  grid-column: 2;
  grid-row: 2;
}

/* Mobile: stack */
@media (max-width: 900px) {
  #platform .platform-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  #platform .section-title {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }

  #platform .section-subtitle {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }

  #platform .text {
    grid-column: 1;
    grid-row: 3;
  }

  #platform .media {
    grid-column: 1;
    grid-row: 4;
  }
}

/* Add Ons */
#addOns {
  min-height: auto;
  padding: 12em 0em;
  color: #fff;
}

#addOns .addons-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 28px;
  justify-items: center;
  text-align: center;
}

#addOns .section-title {
  margin: 0;
  justify-self: center;
  text-align: center;
}

#addOns .addons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px 48px;
  justify-items: center;
  align-items: center;
  text-align: center;
  width: min(700px, 100%);
}

#addOns .addons-list li {
  padding: 14px 16px;
  border-radius: 14px;
  width: 100%;
  max-width: 320px;
}

@media (max-width: 700px) {
  #addOns .addons-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #addOns .addons-list li {
    max-width: 420px;
  }
}

/* Footer */
#footer {
  background: #fff;
  min-height: auto;
}

#footer .footer-content {
  display: block;
}

#footer .footer-text {
  margin: 0;
  text-align: left;
}

#footer .footer-text a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

/* Imprint */
body.imprint-page{
  overflow: auto;
}

body.imprint-page #imprint{
  min-height: calc(100vh - 116px);
  padding: 140px 20px 60px;
}

#imprint{
  min-height: calc(100vh - 116px);
  padding: 140px 20px 60px;
  display: flex;
  justify-content: center;
}

.imprint-card{
  width: min(900px, 100%);
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 40px 36px;
  color: #001936;
}

.imprint-card h1{
  font-size: clamp(32px, 4vw, 54px);
  margin-bottom: 18px;
}

.imprint-card h2{
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 18px;
  color: #001936;
  opacity: 0.9;
}

.imprint-card p{
  margin: 0;
  line-height: 1.65;
  opacity: 0.9;
}

.imprint-card a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}