/* =========================================================================
   HOKIOI – Die Schiffe des Teufels
   Statischer Nachbau der ehemaligen WordPress/Elementor-Seite.
   Maße, Farben und Fonts entsprechen 1:1 dem Original.
   ========================================================================= */

/* ---------- Fonts (lokal) ---------- */
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bungee-normal-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bungee-normal-latin-400.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;
}
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-narrow-normal-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pt-sans-narrow-normal-latin-400.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;
}
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-narrow-normal-latin-ext-700.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pt-sans-narrow-normal-latin-700.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;
}
/* Roboto (variabel) – nur für den Kauf-Button */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-normal-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-normal-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;
}

/* ---------- Design-Tokens (Farben aus dem Elementor-Kit) ---------- */
:root {
  --red: #E41B18;
  --green: #61CE70;          /* globale Akzentfarbe → Button */
  --ink: #090A0A;
  --text: #6D6D6D;
  --footer-text: #A9AEB3;   /* heller als im Original (#54595F) für bessere Lesbarkeit */
  --tint: #E0FFFD80;         /* halbtransparentes Cyan hinter Button & Karussell */

  --font-display: 'Bungee', sans-serif;
  --font-text: 'PT Sans Narrow', sans-serif;
  --font-button: 'Roboto', sans-serif;

  --gap: 10px;               /* Elementor-Spaltenabstand „default“ */
  --page-max: 1440px;        /* maximale Inhaltsbreite – Hintergründe skalieren darin planbar */
  --paper: #ede1cd;          /* Papierton am unteren Rand von boat-background.jpg */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.618;
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  background-color: #000;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.41575em; }
strong, b { font-weight: 700; }
h1, h2 { margin: 0; font-weight: 400; }

.text { font-family: var(--font-text); }

/* ---------- Raster ---------- */
.page { max-width: var(--page-max); margin: 0 auto; overflow-x: clip; }
.section { position: relative; }
.row { display: flex; width: 100%; }
.col { position: relative; min-width: 0; padding: var(--gap); }
.col__inner { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0; overflow: hidden; }
.hero__row { min-height: 75vh; align-items: center; }
.hero__col { width: 50%; display: flex; flex-direction: column; }
.hero__col--empty { padding: 0; }
.hero__col:not(.hero__col--empty) { padding-top: 30px; } /* Abstand wie im Original (leeres Tracking-Widget) */

.hero__title { text-align: center; margin-bottom: 20px; line-height: 0; }
.hero__title img { width: 55%; }

.hero__tagline {
  margin: 0 20% 20px;
  font-size: 1.3em;
  color: var(--red);
  text-align: center;
}


/* ---------- Buch ---------- */
.book {
  background: url('../img/boat-background.jpg') center right / cover no-repeat;
}
.book__spacer { width: 54.953%; padding: 0; }
.book__col { width: 45%; padding: 0; display: flex; align-items: center; }
.book__col > .col__inner { margin: 12%; padding: var(--gap); }

.book__heading {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  margin-bottom: 20px;
}
.book__text {
  font-size: 1.4em;
  color: var(--ink);
  text-align: right;
}

/* Video-Vorschau (lokales Thumbnail, verlinkt auf YouTube) */
.video-link {
  position: relative;
  display: block;
  margin-top: 10px;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.video-link img { width: 100%; transition: transform .4s ease; }
.video-link__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 68px; height: 48px;
  transform: translate(-50%, -50%);
}
.video-link__bg { fill: #212121; fill-opacity: .8; transition: fill .2s, fill-opacity .2s; }
.video-link:hover img, .video-link:focus-visible img { transform: scale(1.03); }
.video-link:hover .video-link__bg, .video-link:focus-visible .video-link__bg { fill: #f00; fill-opacity: 1; }

/* ---------- Kaufen + Karussell (gemeinsamer Hintergrund) ---------- */
.band { background: url('../img/hokioi-site-background-scaled.jpg') center / cover no-repeat; }

/* Hintergrundgrafik als eigener Block unter Logo + Text – nur mobil.
   Zeigt den oberen rechten Quadranten (gleiches Seitenverhältnis wie das Gesamtbild). */
.hero-art {
  display: none;
  aspect-ratio: 2560 / 1636;
  background: url('../img/hokioi-site-background-scaled.jpg') right top / 200% auto no-repeat;
}

/* ---------- Kaufen ---------- */
.buy {
  background-color: var(--tint);
  padding: 7% 0;
  text-align: center;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 20px 40px;
  border-radius: 5px;
  background-color: var(--green);
  color: #fff;
  font-family: var(--font-button);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: all .3s;
}
.button:hover, .button:focus-visible { color: #fff; }
.button__icon { width: 1.125em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Karussell ---------- */
.gallery {
  background-color: var(--tint);
  padding: 5% 0;
}
.carousel {
  --per-view: 3;
  --spacing: 5px;
  position: relative;
  margin: 0 30px;
  padding-bottom: 30px;
}
.carousel__viewport { overflow: hidden; touch-action: pan-y; }
.carousel__track {
  display: flex;
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--spacing)) / var(--per-view));
  margin-right: var(--spacing);
  text-align: center;
}
.carousel__slide img {
  display: block;
  width: 100%;
  border-radius: 3px;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel__arrow {
  position: absolute;
  top: calc(50% - 15px);
  transform: translateY(-50%);
  width: 25px; height: 25px;
  margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  background: none;
  color: rgba(238, 238, 238, .9);
  cursor: pointer;
  z-index: 2;
}
.carousel__arrow svg { width: 25px; height: 25px; fill: currentColor; }
.carousel__arrow--prev { left: -30px; }
.carousel__arrow--next { right: -30px; }
.carousel__arrow::before {          /* größere Touch-Fläche, unsichtbar */
  content: '';
  position: absolute;
  inset: -10px;
}

.carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 26px;
}
.carousel__dot {
  position: relative;
  width: 6px; height: 6px;
  margin: 0 6px; padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  opacity: .2;
  cursor: pointer;
}
.carousel__dot::before { content: ''; position: absolute; inset: -8px; }
.carousel__dot.is-active { opacity: 1; }

/* ---------- Geschichte ---------- */
.story {
  background: #fff url('../img/paper-scaled.jpg') center center / cover no-repeat;
  overflow: hidden;
}
.story__row { align-items: stretch; }
.story__side { padding: 0; display: flex; align-items: flex-end; }
.story__side--left { width: 25%; justify-content: flex-start; }
.story__side--left img { max-width: 84%; }
.story__side--right { width: 29.959%; justify-content: flex-end; }
.story__side--right img { width: 100%; }

.story__main { width: 45.041%; padding: 0; display: flex; align-items: center; }
.story__main > .col__inner { margin: 5% 0; padding: var(--gap); }

.story__text {
  columns: 2;
  font-size: 1.2em;
  color: #000;
}
/* hält die Margin des letzten Absatzes im Spalten-Balancing (wie Elementor-Clearfix) */
.story__text::after { content: ''; display: block; }


/* ---------- Footer ---------- */
.footer { background-color: #000; overflow: hidden; }
.footer__inner { max-width: 1140px; margin: 0 auto; padding: var(--gap); }
.footer__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -25px;
  padding: 0;
  list-style: none;
}
.footer__list li { margin: 0 25px; }
.footer__list a {
  display: flex;
  align-items: center;
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--footer-text);
}
.footer__list a:hover { color: #fff; }
.footer__list a:hover span { text-decoration: underline; }
.footer__list a[aria-current="page"] { color: #fff; }
.footer__list span { padding-left: 5px; }
.footer__icon { width: 17.5px; height: 14px; fill: #fff; flex: none; }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.legal-page .page { flex: 1; display: flex; flex-direction: column; width: 100%; }
.legal-page .legal { flex: 1; }
.legal-header {
  padding: 40px 20px;
  background: url('../img/hokioi-site-background-scaled.jpg') center top / cover no-repeat;
  text-align: center;
}
.legal-header a { display: inline-block; }
.legal-header img { width: min(320px, 70vw); }

.legal {
  background: #fff url('../img/paper-scaled.jpg') center top / cover no-repeat;
  padding: 60px 20px 80px;
}
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-text);
  font-size: 1.2em;
  color: #000;
}
.legal h1 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
  margin-bottom: 40px;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  margin: 2em 0 .6em;
}
.legal h3 {
  font-family: var(--font-text);
  font-size: 1.1em;
  font-weight: 700;
  margin: 1.4em 0 .3em;
}
.legal__para { font-family: var(--font-text); font-weight: 700; font-size: 1.15em; }
.legal ul { margin: 0 0 1.41575em; padding-left: 1.2em; }
.legal li { margin-bottom: .2em; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal address { font-style: normal; margin: 0 0 1.41575em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0 1em; margin: 0 0 1.41575em; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
.legal__back {
  margin-top: 3em;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
}
.legal__back a { color: var(--ink); text-decoration: none; }
.legal__back a:hover { color: var(--red); }

@media (max-width: 767px) {
  .legal-header { background: #000; }
  .legal { padding: 40px 20px 60px; }
  .legal h1 { font-size: 24px; margin-bottom: 28px; }
  .legal h2 { font-size: 18px; }
  .legal__inner { font-size: 1.1em; }
}

/* ---------- Fokus (Tastatur) ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Einblend-Animationen (wie Elementor „Entrance Animation“) ---------- */
.js .animate { visibility: hidden; }
.js .animate.is-animated {
  visibility: visible;
  animation-duration: 1.25s;
  animation-fill-mode: both;
}
.is-animated[data-animation="fadeInLeft"]   { animation-name: fadeInLeft; }
.is-animated[data-animation="slideInLeft"]  { animation-name: slideInLeft; }
.is-animated[data-animation="slideInRight"] { animation-name: slideInRight; }

@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideInLeft {
  from { transform: translate3d(-100%, 0, 0); visibility: visible; }
  to   { transform: translate3d(0, 0, 0); }
}
@keyframes slideInRight {
  from { transform: translate3d(100%, 0, 0); visibility: visible; }
  to   { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .js .animate { visibility: visible; }
  .js .animate.is-animated { animation: none; }
}

/* ---------- Responsive ---------- */

/* Desktop + Tablet: Hintergründe gehören zu ihrer Sektion im Container und
   skalieren mit dessen Breite – bei jeder Fensterbreite derselbe Bildausschnitt. */
@media (min-width: 768px) {
  /* Hero hat exakt das Seitenverhältnis der Grafik (2560 × 1636) */
  .hero {
    display: flex;
    align-items: center;
    aspect-ratio: 2560 / 1636;
    padding: 3% 0;
    background: #000 url('../img/hokioi-site-background-scaled.jpg') left top / cover no-repeat;
  }
  .hero__row { min-height: 0; }

}

/* Desktop: Bootsgrafik immer in voller Breite, Text rechts; reicht die Höhe
   nicht, geht es im Papierton weiter */
@media (min-width: 1025px) {
  .book {
    display: flex;
    align-items: center;
    aspect-ratio: 1500 / 685;
    background: var(--paper) url('../img/boat-background.jpg') left top / 100% auto no-repeat;
  }
  .book__col > .col__inner { margin: 6% 12%; }
}

/* Tablet + Mobil: Bootsgrafik als vollständiges Banner, Text darunter */
@media (max-width: 1024px) {
  .book { background: var(--paper) url('../img/boat-background.jpg') left top / 100% auto no-repeat; }
  .book .row { flex-wrap: wrap; }
  .book__spacer { width: 100%; aspect-ratio: 1500 / 685; }
  .book__col { width: 100%; justify-content: center; }
  .book__col > .col__inner { max-width: 640px; margin: 0 auto; padding: 10px 20px 50px; }
  .book__text { text-align: center; }
}

/* Tablet */
@media (max-width: 1024px) {
  .carousel { --per-view: 2; }
}

/* Mobil */
@media (max-width: 767px) {
  /* Logo + Tagline auf Schwarz, darunter die Grafik in voller Breite */
  .hero { padding: 40px 0 20px; background: #000; }
  .hero__row { min-height: 0; }
  .hero-art { display: block; }

  .row { flex-wrap: wrap; }
  .col { width: 100% !important; }

  .hero__col--empty { display: none; }
  .hero__title img { width: 90vw; }
  .hero__tagline { margin: 5% 5% 20px; }


  .carousel { --per-view: 1; }

  .story__side--left { display: none; }
  .story__text { columns: 1; }
}
