/* ---------- Fonts (self-hosted, SIL OFL 1.1, see assets/fonts/OFL.txt) ---------- */

/* Barlow 400, latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Barlow 400, latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow 600, latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Barlow 600, latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow Condensed 600, latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Barlow Condensed 600, latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow Condensed 700, latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Barlow Condensed 700, latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* TSE GmbH Engineering */

:root {
  --ink: #16181b;
  --steel: #3f4347;
  --steel-2: #5b6066;
  --muted: #5b6066;
  --line: #d9dcdf;
  --paper: #ffffff;
  --concrete: #eef0f1;
  --concrete-2: #e3e6e8;
  --blue: #1a14f0;
  --blue-dark: #110cb4;
  --blue-soft: #e8e7fe;
  --dark: #15171a;
  --dark-2: #1f2226;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* blue is too dark on the dark footer and facts strip */
.site-footer :focus-visible,
.facts :focus-visible {
  outline-color: #fff;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-ghost {
  border-color: currentColor;
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* The frosted background lives on a pseudo element. A backdrop-filter on the
   header itself would trap the fixed mobile menu inside the header box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(22, 24, 27, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a:not(.btn) {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  position: relative;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.main-nav a:not(.btn):hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav .btn {
  margin-left: 10px;
  min-height: 44px;
  padding: 8px 20px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: #c9dbe3 url("../img/hero-concrete.jpg") center / cover no-repeat;
  background-image: image-set(url("../img/hero-concrete.webp") type("image/webp"), url("../img/hero-concrete.jpg") type("image/jpeg"));
  overflow: hidden;
}

.hero::before {
  /* light veil on the text side so the copy stays readable on the concrete */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.62) 42%, rgba(255, 255, 255, 0.08) 70%, rgba(255, 255, 255, 0) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: clamp(48px, 8vw, 104px);
}

.hero h1 .accent {
  color: var(--blue);
}

.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--steel);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 68% center;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(22, 24, 27, 0.35);
}

.hero-badge {
  position: absolute;
  left: -28px;
  bottom: 28px;
  background: var(--blue);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: 0 16px 32px -12px rgba(26, 20, 240, 0.6);
  max-width: 230px;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
}

.hero-badge span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-top: 6px;
}

/* ---------- Facts strip ---------- */

.facts {
  background: var(--dark);
  color: #fff;
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.facts li {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.facts li:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts svg {
  width: 34px;
  height: 34px;
  flex: none;
  color: #fff;
}

.facts strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.facts span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-alt {
  background: var(--concrete);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head p {
  color: var(--steel);
  font-size: 1.15rem;
}

/* ---------- Services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 4px;
  background: var(--blue);
}

.card {
  overflow: hidden;
}

.card-img {
  width: calc(100% + 56px);
  max-width: none;
  margin: -32px -28px 24px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.03);
}

.media-title {
  margin: clamp(48px, 6vw, 72px) 0 20px;
  font-size: 1.5rem;
}

.card:hover {
  border-color: #b9bdc2;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(22, 24, 27, 0.35);
}

.card .card-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 6px;
}

.card p {
  color: var(--steel);
  margin: 0;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.media-row figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-row .fig-cad img {
  object-fit: contain;
  background: #c8c8c8;
}

.media-row figcaption {
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Bridge (Europe <-> China) ---------- */

.bridge {
  /* steel-blue veil instead of black: the port stays visible, text stays readable */
  background:
    linear-gradient(180deg, rgba(13, 22, 40, 0.86) 0%, rgba(13, 22, 40, 0.62) 50%, rgba(13, 22, 40, 0.38) 100%),
    #1b2a40 url("../img/bridge-port.jpg") center 65% / cover no-repeat;
  background-image:
    linear-gradient(180deg, rgba(13, 22, 40, 0.86) 0%, rgba(13, 22, 40, 0.62) 50%, rgba(13, 22, 40, 0.38) 100%),
    image-set(url("../img/bridge-port.webp") type("image/webp"), url("../img/bridge-port.jpg") type("image/jpeg"));
  color: #fff;
  overflow: hidden;
  padding-bottom: clamp(150px, 17vw, 220px);
}

.bridge h2 {
  color: #fff;
}

.bridge .eyebrow {
  color: #c9c7ff;
}

.bridge .section-head p {
  color: rgba(255, 255, 255, 0.88);
}

.route {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.route-end {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 24px 48px -24px rgba(5, 10, 20, 0.6);
}

.route-end small {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.route-end strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 4px 0 6px;
}

.route-end span {
  color: var(--steel-2);
  font-size: 0.98rem;
}

.route-line {
  width: clamp(120px, 22vw, 300px);
  height: 40px;
  color: #fff;
}

.route-line .dash {
  stroke-dasharray: 6 8;
  animation: route-flow 1.4s linear infinite;
}

@keyframes route-flow {
  to {
    stroke-dashoffset: -28;
  }
}

/* Steps sit on a white panel that overlaps the bottom of the photo band */

.steps-band {
  /* flow-root keeps the panel's negative margin from collapsing into the band,
     so the panel overlaps the photo instead of the band covering it */
  display: flow-root;
  background: var(--paper);
}

.steps-panel {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(110px, 12vw, 160px));
  background: var(--paper);
  border-top: 4px solid var(--blue);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 34px 70px -34px rgba(13, 22, 40, 0.45);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.steps li:first-child {
  padding-left: 0;
  border-left: 0;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 12px;
}

.steps h3 {
  font-size: 1.35rem;
}

.steps p {
  color: var(--steel);
  font-size: 0.98rem;
  margin: 0;
}

.contact-media {
  position: relative;
  margin-top: 24px;
}

.contact-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about-text p {
  color: var(--steel);
}

.about-text p.lead {
  font-size: 1.25rem;
  color: var(--ink);
}

.person {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px 24px 20px 20px;
  background: var(--concrete);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.person-photo {
  flex: none;
  width: clamp(112px, 11vw, 148px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 24px -14px rgba(22, 24, 27, 0.5);
}

.person > div {
  min-width: 0;
  overflow-wrap: break-word;
}

/* small phones: photo above the text instead of squeezing the text */
@media (max-width: 440px) {
  .person {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .person-photo {
    width: 128px;
  }
}

.person strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.1;
}

.person span {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
}

.person .person-role {
  margin: 4px 0 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.about-side {
  display: grid;
  gap: 16px;
}

.about-media {
  position: relative;
  margin: 0;
}

.about-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius);
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.values li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.values svg {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
}

.values h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.values p {
  margin: 0;
  color: var(--steel);
  font-size: 1rem;
}

/* ---------- Location ---------- */

.location-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(22, 24, 27, 0.4);
}

.location-grid img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.location-info {
  padding: clamp(28px, 4vw, 48px);
}

.location-info address {
  font-style: normal;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.location-info ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-info li {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--steel);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s;
  min-width: 0;
}

.contact-list a:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.contact-list svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--blue);
}

.contact-list small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list strong {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.form {
  background: var(--concrete);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
  min-width: 0;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #7f858c;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 20, 240, 0.18);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #c0262d;
}

.field-error {
  display: none;
  color: #c0262d;
  font-size: 0.9rem;
  margin-top: 4px;
}

.field.has-error .field-error {
  display: block;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 4px 0 20px;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  color: var(--blue);
}

.form-status:empty {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.9rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  background: var(--concrete);
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
}

.legal-hero h1 {
  margin: 0;
  overflow-wrap: break-word;
}

/* long German words like "Datenschutzerklärung" must not overflow on 320px */
@media (max-width: 380px) {
  .legal-hero h1 {
    font-size: 2.1rem;
  }
}

.legal {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}

/* Same column as logo and page title; only the line length is limited */
.legal .wrap > * {
  max-width: 820px;
}

.legal h2 {
  font-size: 1.7rem;
  margin-top: 1.8em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  font-size: 1.3rem;
  margin: 1.8em 0 0.5em;
}

.legal h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.4em 0 0.4em;
}

.legal h2 + h3,
.legal h3 + h4 {
  margin-top: 0.8em;
}

.legal p,
.legal address,
.legal li {
  color: var(--steel);
  font-style: normal;
}

.legal address {
  margin-bottom: 1em;
}

.legal ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.legal li {
  margin-bottom: 0.6em;
}

.legal a {
  overflow-wrap: anywhere;
}

.legal .legal-caps {
  font-size: 0.92em;
  line-height: 1.6;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal .legal-source {
  margin-top: 2.4em;
  font-size: 0.9rem;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================= Breakpoints ================= */

/* Small laptops / large tablets */
@media (max-width: 1100px) {
  .hero-badge {
    left: 16px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .steps li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

/* Tablets: collapse navigation into the burger menu */
@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .brand img {
    height: 38px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    padding: 16px var(--gutter) 32px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a:not(.btn) {
    padding: 18px 0;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:not(.btn)::after {
    display: none;
  }

  .main-nav a.is-active {
    color: var(--blue);
  }

  .main-nav .btn {
    margin: 24px 0 0;
    width: 100%;
    min-height: 54px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.15) 100%);
  }

  .hero-visual {
    max-width: 640px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-grid img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* Tablets and below: facts strip stacks */
@media (max-width: 900px) {
  .facts ul {
    grid-template-columns: 1fr;
  }

  .facts li {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
  }

  .facts li:first-child {
    border-top: 0;
  }
}

/* Large phones */
@media (max-width: 720px) {

  .media-row {
    grid-template-columns: 1fr;
  }

  .route {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
  }

  .route-line {
    width: 72px;
    height: 40px;
    justify-self: center;
    margin: 16px 0;
    transform: rotate(90deg);
  }
}

/* Phones */
@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-badge {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -36px 0 0 16px;
    max-width: 240px;
  }

  .steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .steps li,
  .steps li:nth-child(odd) {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .steps li:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .steps li:last-child {
    padding-bottom: 0;
  }


  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form .btn {
    width: 100%;
  }

  .person {
    padding: 18px;
  }

  .values li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* WebP via <picture>: the wrapper must not change layout, the img stays the box */
picture {
  display: contents;
}

/* <source> is not display:none by default; inside a grid it would take a cell */
picture > source {
  display: none;
}
