/* ==========================================================================
   Z Marine GmbH – Startseite
   ========================================================================== */

/* Fließtext-Variante (16px / 24px, halbfett) */
.copy { font-size: 16px; font-weight: 500; line-height: 24px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; background: url(../img/unser-boot.jpg) 50% 50% / cover; }
.hero::before, .hero__video::before {
  content: ""; position: absolute; inset: 0;
  background: #fff; opacity: 0.57;
}
.hero__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__video::before { z-index: 1; }
/* Video bleibt unsichtbar, bis es wirklich läuft – solange ist das Standbild zu sehen */
.hero__video iframe, .hero__video > div {
  position: absolute; top: 50%; left: 50%;
  max-width: none; border: 0;
  transform: translate(-50%, -50%);
  opacity: 0; visibility: hidden;
  /* ausblenden erst, wenn der nächste Player darüber liegt; danach ganz aus der Darstellung nehmen */
  transition: opacity 1s linear 1s, visibility 0s linear 2s;
}
.hero__video iframe.is-front { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero__inner {
  display: flex; justify-content: space-between; align-items: stretch;
  max-width: 1600px; margin: 0 auto; padding: 6em 0 5em;
}
.hero__text { position: relative; width: 100%; min-width: 0; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
.hero__media { position: relative; width: 50%; min-width: 0; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__title { font-size: 82px; font-weight: 700; color: var(--ink); }
.hero__lead { width: 79%; font-weight: 500; color: var(--ink); }
.hero__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 10px; }
.hero__ship { padding-top: 38px; }

/* Schiff fährt von hinten nach vorne und stoppt */
.zm-arrive {
  --band-h: 380px;   /* Höhe des Blocks */
  --ship-h: 920px;   /* Endgröße des Schiffs */
  --far-scale: 0.22; /* Startgröße hinten */
  --from-x: -55%;    /* Startposition */
  --duration: 12s;   /* Dauer der Fahrt */
  --bottom: -100%;
  position: relative; width: 100%; height: var(--band-h); overflow: visible;
}
.zm-arrive__pos { position: absolute; left: 50%; bottom: var(--bottom); transform: translateX(-50%); transform-origin: bottom center; }
.zm-arrive__ship {
  transform-origin: bottom center;
  transform: translateX(var(--from-x)) translateY(-22%) scale(var(--far-scale));
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.28));
  will-change: transform;
}
.zm-arrive__ship img { display: block; width: auto; max-width: none; height: var(--ship-h); }
.zm-arrive.is-in .zm-arrive__ship { animation: zm-drive var(--duration) cubic-bezier(0.18, 0.7, 0.28, 1) forwards; }
@keyframes zm-drive {
  0% { transform: translateX(var(--from-x)) translateY(-22%) scale(var(--far-scale)); }
  100% { transform: translateX(0) translateY(0) scale(1); }
}
@media (max-width: 768px) {
  .zm-arrive { --band-h: 220px; --ship-h: 520px; --from-x: -45%; }
}
@media (prefers-reduced-motion: reduce) {
  .zm-arrive__ship { transform: scale(1); animation: none; }
}

/* ---------- Laufband ---------- */
.marquee { padding: 10px; }
.zm-mq {
  --mq-color: #0a2030; --mq-accent: #d97a3c; --mq-size: 1.2rem; --mq-speed: 28s; --mq-gap: 34px;
  width: 100%; padding: 18px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.zm-mq__track { display: flex; width: max-content; white-space: nowrap; animation: zm-scroll var(--mq-speed) linear infinite; }
.zm-mq span {
  display: inline-flex; align-items: center; gap: var(--mq-gap);
  padding: 0 calc(var(--mq-gap) / 2);
  color: var(--mq-color);
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: var(--mq-size); line-height: 1;
}
.zm-mq span::after { content: "\2693"; font-style: normal; font-size: 0.75em; color: var(--mq-accent); opacity: 0.7; }
@keyframes zm-scroll { to { transform: translateX(-50%); } }

/* ---------- Über Z Marine (Bilder + Text) ---------- */
.about__inner { display: flex; max-width: 1481px; margin: 0 auto; padding: 3% 0; }
.about__media { width: 50%; min-width: 0; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
.about__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 10px; align-items: start; }
.about__row img { display: block; width: 100%; }
.about__row img.is-cover { object-fit: cover; object-position: center center; }
.about__row:first-child img.is-cover { height: 254px; }
.about__row:last-child img.is-cover { height: 280px; }
.about__text { width: 50%; min-width: 0; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.about__title { font-size: 47px; font-weight: 700; color: var(--ink); }
.about__text .copy { width: 79%; }

/* ---------- Dunkles Überschriftenband ---------- */
.band { background: var(--navy); }
.band__inner { display: flex; flex-direction: column; gap: 20px; max-width: 1140px; margin: 0 auto; padding: 6% 0 0; }
.band__title { font-size: 47px; font-weight: 700; color: #fff; }
.band--center .band__title { text-align: center; }
.band__copy { width: 79%; align-self: center; text-align: center; color: #fff; }

/* ---------- Leistungs-Kacheln ---------- */
.services { margin-bottom: 4em; }

/* ---------- Anspruch (Text + Bild) ---------- */
.promise { display: flex; width: 88%; margin: 0 auto; padding: 3% 0; }
.promise__text { width: 50%; min-width: 0; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.promise__title { font-size: 43px; font-weight: 700; color: var(--ink); }
.promise__text .copy { width: 90%; }
.promise__text .btn { align-self: flex-start; }

.checklist { padding-top: 15px; margin-bottom: -9px; }
.checklist::after, .checklist li::before { content: ""; display: block; width: 84%; border-top: 1px solid #000; }
.checklist li { position: relative; display: flex; align-items: center; padding: 12px 0; color: #000; }
.checklist li::before { position: absolute; left: 0; top: 0; }
.checklist__icon { flex: 0 0 38.75px; display: flex; color: var(--gold); }
.checklist__icon svg { width: 31px; height: 31px; fill: currentColor; }
.checklist__text { padding-left: 5px; }
.checklist b { font-weight: 700; }

.promise__media {
  width: 50%; min-width: 0; padding: 10px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: url(../img/schuettgut-hafen.jpg) 0 0 / cover no-repeat;
}
.promise__card-wrap { padding: 10px; }
.promise__card { display: flex; flex-direction: column; gap: 20px; padding: 12px; border-radius: 28px; background: var(--navy); }
.promise__card h2 { margin-bottom: -13px; font-size: 43px; font-weight: 700; letter-spacing: -2.5px; color: #fff; }
.promise__card .copy { width: 90%; font-size: 18px; color: #fff; }

/* ---------- Kennzahlen ---------- */
.stats { background: var(--navy); }
.stats__inner { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1300px; margin: 0 auto; padding: 5em 0; }
.stat { width: 24%; min-width: 0; padding: 10px; text-align: center; color: #fff; }
.stat__number { font-family: "DM Sans", sans-serif; font-size: 65px; font-weight: 300; line-height: 1.3em; letter-spacing: -3px; }
.stat__number sup {
  position: relative; top: -5px; vertical-align: super;
  font-family: "Inter", sans-serif; font-size: 22px; font-weight: 600; line-height: 1.5em; letter-spacing: -0.3px;
}
.stat__label { color: #fff; font-family: "Archivo", sans-serif; font-size: 18px; font-weight: 300; line-height: 1.9em; letter-spacing: 0.5px; }

/* ---------- Flotte ---------- */
.fleet { padding: 28px; background: var(--navy); }

.growth { padding: 0 10px; background: var(--navy); }
.growth__inner { display: flex; max-width: 1140px; margin: 0 auto; padding: 10px 0; }
.growth__text, .growth__figure { min-width: 0; padding: 10px; display: flex; flex-direction: column; gap: 20px; border: 1px dotted var(--text); color: #fff; }
.growth__text { width: 100%; border-right-width: 0; }
.growth__text h2 { font-size: 34px; color: #fff; }
.growth__figure { width: 50%; justify-content: center; border-left-width: 0; }
.growth__figure h2 { text-align: end; font-style: italic; color: var(--gold); }

.spacer { height: 40px; background: var(--navy); }

/* ---------- Karriere-Teaser ---------- */
.careers { position: relative; background: url(../img/rhein-weinberge.jpg) center center / cover; }
.careers::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.24) 100%); opacity: 0.5;
}
.careers__inner { position: relative; display: flex; max-width: 1140px; margin: 0 auto; padding: 3% 0; }
.careers__intro, .careers__card { position: relative; display: flex; flex-direction: column; gap: 20px; }
.careers__intro::before, .careers__card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  border-radius: inherit; background-color: inherit;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.careers__intro > *, .careers__card > * { position: relative; }
.careers__intro { width: 50%; min-width: 0; padding: 3%; }
.careers__intro p { color: #ebebeb; }
.careers__intro .btn { align-self: flex-start; }
.careers__heading { width: 89%; }
.careers__heading h2 { margin-bottom: 20px; color: #fff; font-family: "Roboto", sans-serif; font-size: 51px; font-weight: 600; }
.careers__side { width: 50%; min-width: 0; padding: 10px; display: flex; flex-direction: column; justify-content: center; }
.careers__card { width: 99%; justify-content: center; padding: 6%; border-radius: 32px; background-color: var(--navy); }

.ticklist li { display: flex; align-items: center; color: #fff; }
.ticklist__icon { flex: 0 0 17.5px; display: flex; }
.ticklist__icon svg { width: 14px; height: 14px; fill: #fff; }
.ticklist__text { padding-left: 5px; }

/* ---------- Einsatzgebiet ---------- */
.area { padding: 0 10px; }
.area__inner { display: flex; max-width: 1234px; margin: 0 auto; padding: 10px 0; }
.area__map { width: 68%; min-width: 0; padding: 10px; }
.area__text { width: 50%; min-width: 0; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
.area__title { font-size: 43px; font-weight: 700; color: var(--ink); }
.area__text .copy { width: 90%; }
.area__text .btn { align-self: flex-start; }

.area-tabs { padding: 10px; }
.area-tabs__inner { padding: 10px; }
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.tabs__tab {
  padding: 18px; border: 0; border-radius: 0;
  background: var(--navy); color: #fff;
  font-family: "Inter", sans-serif; font-size: 11px; font-weight: 500; line-height: 11px;
  letter-spacing: 1px; text-transform: uppercase; text-align: center;
  cursor: pointer; transition: 0.3s;
}
.tabs__tab span { display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tabs__tab:hover { background: #ff0000; }
.tabs__tab[aria-selected="true"] { background: #920000; }
.tabs__panel { display: none; flex-direction: column; margin-top: 20px; padding: 10px; }
.tabs__panel.is-active { display: flex; }
.tabs__panel .copy { width: 63%; align-self: center; text-align: center; }
.tabs__list + .tabs__panel .copy { text-align: start; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1366px) {
  .hero__inner { padding: 18em 0 17em; }
  .hero__title { font-size: 50px; }
  .hero__actions { grid-template-columns: repeat(2, 1fr); }
  .hero__ship { margin-left: 105%; padding: 23px; }

  .about__title { font-size: 50px; }
  .band__title { font-size: 50px; text-align: center; }
  .promise__title { font-size: 31px; letter-spacing: -1.7px; }
  .promise__card h2 { font-size: 50px; }
  .stat__number { font-size: 60px; }
  .stat__number sup { font-size: 21px; }
  .area__title { font-size: 50px; }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .hero__actions { width: 693px; }
  .promise { width: 100%; }
}

@media (max-width: 1024px) {
  .tabs__tab { font-size: 12px; line-height: 12px; }
  .hero__title, .about__title, .band__title, .promise__title, .promise__card h2, .area__title { font-size: 40px; }
  .stat__number { font-size: 45px; }
  .stat__number sup { font-size: 22px; }
  .stat__label { font-size: 15px; }
}

@media (max-width: 767px) {
  .hero__inner, .about__inner, .growth__inner, .careers__inner, .area__inner { flex-wrap: wrap; }
  .hero__text, .hero__media, .about__media, .about__text, .promise__text, .promise__media,
  .growth__text, .growth__figure, .careers__intro, .careers__side, .careers__card, .area__map, .area__text { width: 100%; }

  .kicker { font-size: 16px; }

  .hero__inner { padding: 0; }
  .hero__title { font-size: 22px; letter-spacing: -0.7px; }
  .hero__lead { width: 100%; }
  .hero__actions { grid-template-columns: 1fr; }
  .hero__ship { margin-left: 0; }

  .about__row:first-child img.is-cover { height: 112px; }
  .about__row:last-child img.is-cover { height: 123px; }
  .about__title { font-size: 26px; letter-spacing: -0.9px; }
  .about__text .copy { width: 100%; }

  .band__title { font-size: 28px; }
  .band--center .band__title { font-size: 38px; }

  .promise { flex-wrap: wrap; width: 100%; }
  .promise__text .kicker { font-size: 20px; text-align: center; }
  .promise__title { font-size: 19px; letter-spacing: -0.6px; text-align: center; }
  .promise__text .copy { width: 100%; text-align: center; }
  .promise__card h2 { font-size: 28px; text-align: center; }

  .stat { width: 49%; }
  .stat__number sup { font-size: 21px; }

  .fleet { padding: 0; }

  .careers__heading h2 { font-size: 24px; }

  /* wie im Original: Kartenblock ist mobil auf 183.8px Höhe begrenzt, die Karte ragt darüber hinaus */
  .area__map-box { max-height: 183.8px; margin-bottom: 4%; }
  .area__title { font-size: 38px; text-align: center; }
  .area__text .copy { width: 100%; }

  /* Tabs werden mobil zum Akkordeon: Inhalt direkt unter dem jeweiligen Titel */
  .tabs { display: flex; flex-direction: column; gap: 2px; }
  .tabs__list { display: contents; }
  .tabs__tab, .tabs__panel { order: var(--i); }
  .tabs__tab { font-size: 11px; line-height: 2.2em; }
  .tabs__panel { margin-top: 18px; }
}
