@charset "utf-8";

/*
 * Diver on Tour – Tauchjournal Detailseite
 * Datei: /assets/css/tauchjournal-detail.css
 * Gilt nur für:
 * /tauchjournal-detail.php
 * /tauchjournal/slug.html
 */

:root {
  --dot-tj-blue: #063f46;
  --dot-tj-blue-dark: #042f35;
  --dot-tj-green: #118c7e;
  --dot-tj-bg: #f5faf9;
  --dot-tj-card: #ffffff;
  --dot-tj-text: #173238;
  --dot-tj-muted: #60787c;
  --dot-tj-border: #d7e7e9;
  --dot-tj-soft: #eaf6f4;
  --dot-tj-radius: 18px;
  --dot-tj-shadow: 0 8px 22px rgba(0, 45, 55, 0.08);
}

body {
  background: var(--dot-tj-bg);
}

main {
  background: var(--dot-tj-bg);
}

.dot-tj-container {
  width: min(1040px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.dot-tj-kicker {
  margin: 0 0 8px;
  color: var(--dot-tj-green);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   Detail Header
   ========================================================= */

.dot-tj-detail {
  padding-bottom: 46px;
  background: var(--dot-tj-bg);
}

.dot-tj-detail-hero {
  padding: 34px 0 30px;
  background: linear-gradient(135deg, #063f46, #0b6570);
  color: #ffffff;
}

.dot-tj-detail-hero .dot-tj-kicker {
  color: #b8fff5;
}

.dot-tj-detail-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 4.5vw, 3.45rem);
  line-height: 1.12;
}

.dot-tj-detail-meta {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.02rem;
  line-height: 1.45;
}

.dot-tj-detail-sites {
  margin: 10px 0 0;
  color: #ffffff;
  font-weight: 800;
}

/* =========================================================
   Detail Inhalt
   ========================================================= */

.dot-tj-detail > .dot-tj-container {
  padding-top: 30px;
}

.dot-tj-detail-mainimage {
  margin: 0 0 24px;
  overflow: hidden;
  background: var(--dot-tj-soft);
  border: 1px solid var(--dot-tj-border);
  border-radius: var(--dot-tj-radius);
  box-shadow: var(--dot-tj-shadow);
}

.dot-tj-detail-mainimage img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.dot-tj-detail-section {
  margin: 0 0 22px;
  padding: 26px;
  background: var(--dot-tj-card);
  border: 1px solid var(--dot-tj-border);
  border-radius: var(--dot-tj-radius);
  box-shadow: var(--dot-tj-shadow);
}

.dot-tj-detail-section h2 {
  margin: 0 0 12px;
  color: var(--dot-tj-blue);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.22;
}

.dot-tj-detail-section p {
  margin: 0;
  color: var(--dot-tj-text);
  font-size: 1.04rem;
  line-height: 1.72;
}

.dot-tj-detail-text {
  color: var(--dot-tj-text);
  font-size: 1.04rem;
  line-height: 1.78;
}

.dot-tj-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.dot-tj-detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--dot-tj-soft);
  color: var(--dot-tj-blue);
  font-size: 0.92rem;
  font-weight: 800;
}

/* =========================================================
   Video
   ========================================================= */

.dot-tj-video {
  margin-top: 4px;
}

.dot-tj-video-player {
  display: block;
  width: 100%;
  height: auto;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
}

.dot-tj-video--landscape {
  max-width: 900px;
}

.dot-tj-video--portrait {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.dot-tj-video--portrait .dot-tj-video-player {
  max-height: 680px;
  object-fit: contain;
}

/* =========================================================
   Bildergalerie
   ========================================================= */

.dot-tj-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dot-tj-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--dot-tj-soft);
}

.dot-tj-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================
   Zurück-Button
   ========================================================= */

.dot-tj-detail-nav {
  margin-top: 26px;
}

.dot-tj-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--dot-tj-blue);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.dot-tj-card__button:hover {
  background: var(--dot-tj-blue-dark);
  color: #ffffff;
}

/* =========================================================
   404 / Leerzustand
   ========================================================= */

.dot-tj-empty {
  padding: 28px;
  background: var(--dot-tj-card);
  border: 1px solid var(--dot-tj-border);
  border-radius: var(--dot-tj-radius);
  box-shadow: var(--dot-tj-shadow);
}

.dot-tj-empty h1,
.dot-tj-empty h3 {
  margin: 0 0 12px;
  color: var(--dot-tj-blue);
}

.dot-tj-empty p {
  margin: 0 0 12px;
  line-height: 1.65;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 760px) {
  .dot-tj-container {
    width: min(100% - 24px, 1040px);
  }

  .dot-tj-detail-hero {
    padding: 28px 0 26px;
  }

  .dot-tj-detail > .dot-tj-container {
    padding-top: 24px;
  }

  .dot-tj-detail-section {
    padding: 21px;
    margin-bottom: 18px;
  }

  .dot-tj-detail-tags {
    gap: 7px;
  }

  .dot-tj-detail-tags span {
    padding: 7px 10px;
    font-size: 0.88rem;
  }

  .dot-tj-video--landscape,
  .dot-tj-video--portrait {
    max-width: 100%;
  }

  .dot-tj-video-player {
    border-radius: 14px;
  }

  .dot-tj-gallery {
    grid-template-columns: 1fr;
  }
}