/* TiefBIM – one page that dives from the visible model down to the data below it. No external requests. */
:root {
  /* The iceberg's width; its underwater part is 0.785 of it. */
  --ice-w: min(520px, calc(100vw - 32px));
  --sky: #eef6fb;
  --sky-2: #d9ecf7;
  --ink: #0b1f33;
  --ink-soft: #3d5468;
  --sea: #0b3557;
  --sea-2: #072541;
  --abyss: #030f1d;
  --ice: #7fd3ff;
  --ice-soft: #bfe6fb;
  --warm: #ffb547;
  --text-deep: #d8ecf9;
  --text-deep-soft: #93b4cc;
  --radius: 10px;
  --max: 1160px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--abyss);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.55;
  background: var(--abyss);
}

/* Sky above, sea below: the iceberg's waterline sits exactly on the edge between them. */
.sky {
  position: relative;
  z-index: 2;
  background: linear-gradient(var(--sky), var(--sky-2));
}

img {
  max-width: 100%;
  height: auto;
}

/* One language at a time: the root says which. */
html[data-lang="de"] [lang="en"],
html[data-lang="en"] [lang="de"] {
  display: none;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(16px, calc((100vw - var(--max)) / 2));
  background: var(--sky);
  border-bottom: 1px solid rgb(11 31 51 / 8%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.brand b {
  color: #1f6fa8;
}

.brand-mark {
  width: 30px;
  height: 30px;
  padding: 3px;
  background: var(--sea);
  border-radius: 7px;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 15px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgb(11 31 51 / 18%);
  border-radius: 6px;
}

.lang button {
  padding: 4px 9px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: #fff;
  background: var(--sea);
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  color: #062038;
  background: var(--warm);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(255 181 71 / 35%);
}

.btn-small {
  padding: 7px 14px;
  font-size: 14px;
}

.btn-ghost {
  color: var(--sea);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--sea);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 2px var(--sea), 0 6px 18px rgb(11 53 87 / 15%);
}

/* ------------------------------------------------------------- hero (above the water) */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 16px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #1f6fa8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 19px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 120px;
}

.iceberg {
  justify-self: center;
  width: var(--ice-w);
  /* Everything below y = 212 of 620 hangs under the water; the wave below the hero meets it there. */
  margin: 0 0 calc(var(--ice-w) * -0.785 + 30px);
}

.iceberg svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.ice-tip {
  filter: drop-shadow(0 6px 10px rgb(11 53 87 / 15%));
}

.ice-deep {
  animation: drift 9s ease-in-out infinite;
  transform-origin: 260px 400px;
}

@keyframes drift {
  50% {
    transform: translateY(6px);
  }
}

.ice-labels text {
  font-family: inherit;
}

.lbl-dark {
  fill: var(--sea);
  font-size: 34px;
  font-weight: 700;
}

.lbl-small-dark {
  fill: var(--ink-soft);
  font-size: 15px;
}

.lbl {
  fill: #fff;
  font-size: 30px;
  font-weight: 700;
}

.lbl-small {
  fill: #e4f5ff;
  font-size: 15px;
}

.lbl-chat {
  fill: var(--warm);
  font-size: 22px;
  font-weight: 700;
}

.waterline svg {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
}

.waterline {
  position: relative;
  z-index: -1;
  margin-top: -60px;
}

/* ------------------------------------------------------------- below the water */
.deep {
  position: relative;
  z-index: 1;
  color: var(--text-deep);
  background: linear-gradient(var(--sea), var(--sea-2) 1100px, var(--abyss) 2600px);
}

/* The first section shares its height with the underwater iceberg. */
@media (min-width: 961px) {
  #prinzip > h2,
  #prinzip > .section-lead,
  #prinzip .dive {
    max-width: 58%;
  }
}

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 16px 32px;
}

.section h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.section h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
}

.section-lead {
  max-width: 720px;
  margin: 0 0 36px;
  color: var(--text-deep-soft);
  font-size: 18px;
}

.deep .eyebrow {
  color: var(--ice);
}

/* A depth gauge on the left edge of each section. */
.depth {
  margin-bottom: 14px;
  color: var(--ice);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dive {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  border-left: 2px dashed rgb(127 211 255 / 35%);
}

.dive-step {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 22px 0 30px;
}

.dive-step::before {
  position: absolute;
  top: 30px;
  left: -36px;
  width: 14px;
  height: 14px;
  background: var(--ice);
  border: 3px solid var(--sea-2);
  border-radius: 50%;
  content: "";
}

.dive-depth {
  padding-top: 2px;
  color: var(--ice);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 15px;
}

.dive-step p {
  max-width: 640px;
  margin: 0;
  color: var(--text-deep-soft);
}

.dive-ground {
  padding: 26px;
  background: rgb(127 211 255 / 6%);
  border: 1px solid rgb(127 211 255 / 18%);
  border-radius: var(--radius);
}

.dive-ground::before {
  left: -42px;
}

.rules {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.rules li {
  margin: 10px 0;
  color: var(--text-deep-soft);
}

.rules b {
  color: #fff;
}

/* ------------------------------------------------------------- Chat IFC */
.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  background: #0d2236;
  border: 1px solid rgb(127 211 255 / 22%);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgb(0 0 0 / 45%);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--text-deep-soft);
  font-size: 15px;
}

.shot-main {
  margin-bottom: 56px;
}

.team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 64px;
}

.persona {
  padding: 18px 16px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-top: 3px solid var(--c);
  border-radius: var(--radius);
}

.persona img {
  display: block;
  margin-bottom: 10px;
  border-radius: 50%;
}

.persona h3 {
  color: var(--c);
  filter: brightness(1.35);
}

.persona p {
  margin: 0;
  color: var(--text-deep-soft);
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 56px;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius);
}

.feature-wide {
  grid-column: 1 / -1;
}

.feature .frame {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 18px;
  background: radial-gradient(circle at 50% 30%, rgb(127 211 255 / 14%), transparent 70%);
  border-radius: 8px;
}

.feature .frame img {
  width: auto;
  max-height: 520px;
}

.feature figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature figcaption b {
  color: #fff;
  font-size: 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  color: var(--text-deep-soft);
  border-left: 3px solid var(--ice);
}

.facts b {
  color: #fff;
}

/* ------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius);
}

.steps li > b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #062038;
  background: var(--ice);
  border-radius: 50%;
}

.steps p {
  margin: 0;
  color: var(--text-deep-soft);
}

/* ------------------------------------------------------------- contact */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-deep);
  font-size: 15px;
}

.contact-form .wide {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  padding: 11px 12px;
  color: #fff;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(127 211 255 / 25%);
  border-radius: 8px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--ice);
  outline-offset: 1px;
}

.contact-form .btn {
  justify-self: start;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-form .consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-deep-soft);
  font-size: 14px;
}

.contact-form .consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--ice);
}

/* Honeypot: invisible to people, filled in by bots. */
.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0;
  color: var(--text-deep-soft);
  font-size: 15px;
}

.form-status.good {
  color: #7be0a6;
}

.form-status.bad {
  color: var(--warm);
}

.contact {
  padding-bottom: 120px;
}

/* ------------------------------------------------------------- footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  padding: 28px 16px;
  color: var(--text-deep-soft);
  background: #020a14;
  font-size: 14px;
}

/* ------------------------------------------------------------- legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 16px 96px;
  color: var(--ink);
  background: var(--sky);
}

body.legal-page {
  background: var(--sky);
}

.legal h1 {
  font-size: 36px;
}

.legal h2 {
  margin-top: 32px;
  font-size: 20px;
}

.draft {
  padding: 12px 14px;
  color: #6a3b00;
  background: #fff1d9;
  border-left: 4px solid var(--warm);
}

/* ------------------------------------------------------------- smaller screens */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .cta {
    padding-bottom: 8px;
  }

  :root {
    --ice-w: min(420px, calc(100vw - 32px));
  }

  /* On narrow screens the text starts below the iceberg instead of beside it. */
  #prinzip {
    padding-top: calc(var(--ice-w) * 0.785 + 24px);
  }

  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }

  .team,
  .features,
  .steps,
  .facts,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .dive-step {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ice-deep {
    animation: none;
  }
}

/* ------------------------------------------------------------- to the app */
.cta-login {
  /* A light pill, readable whether it lands above or on the waterline. */
  display: inline-block;
  margin: 12px 0 0;
  padding: 5px 12px;
  color: var(--ink-soft);
  background: rgb(255 255 255 / 88%);
  border-radius: 999px;
  font-size: 15px;
}

.cta-login a {
  color: var(--sea);
  font-weight: 600;
}

.login-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin-top: 36px;
  padding: 20px 22px;
  background: rgb(127 211 255 / 8%);
  border: 1px solid rgb(127 211 255 / 30%);
  border-radius: var(--radius);
}

.login-card h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
}

.login-card p {
  max-width: 480px;
  margin: 0;
  color: var(--text-deep-soft);
  font-size: 15px;
}
