@charset "utf-8";

/*
 * Diver on Tour – Tauchjournal Übersicht
 * Datei: /assets/css/tauchjournal-overview.css
 * Gilt nur für:
 * /tauchjournal.php
 * /tauchjournal.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,
.dot-tj-hero__inner {
  width: min(1120px, 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;
}

/* =========================================================
   Header Übersicht
   ========================================================= */

.dot-tj-hero {
  padding: 34px 0 30px;
  background: linear-gradient(135deg, #063f46, #0b6570);
  color: #ffffff;
}

.dot-tj-hero .dot-tj-kicker {
  color: #b8fff5;
}

.dot-tj-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.dot-tj-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* =========================================================
   Übersicht
   ========================================================= */

.dot-tj-section {
  padding: 36px 0 46px;
  background: var(--dot-tj-bg);
}

.dot-tj-section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.dot-tj-section-head h2 {
  margin: 0;
  color: var(--dot-tj-blue);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.dot-tj-section-head p {
  margin: 10px 0 0;
  color: var(--dot-tj-muted);
  line-height: 1.65;
}

.dot-tj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.dot-tj-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  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-card__image-link {
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  background: var(--dot-tj-soft);
  text-decoration: none;
}

.dot-tj-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.dot-tj-card__body {
  display: block;
  padding: 22px;
  background: var(--dot-tj-card);
}

.dot-tj-card__meta {
  margin: 0 0 8px;
  color: var(--dot-tj-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.dot-tj-card h3 {
  margin: 0;
  color: var(--dot-tj-blue);
  font-size: 1.28rem;
  line-height: 1.28;
}

.dot-tj-card h3 a {
  color: inherit;
  text-decoration: none;
}

.dot-tj-card h3 a:hover {
  text-decoration: underline;
}

.dot-tj-card__sites {
  margin: 12px 0 0;
  color: var(--dot-tj-green);
  font-weight: 800;
  line-height: 1.45;
}

.dot-tj-card__text {
  margin: 12px 0 0;
  color: var(--dot-tj-text);
  line-height: 1.6;
}

.dot-tj-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  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;
}

.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 – wichtig:
   Bild darf die Karte nicht nach unten aufziehen.
   ========================================================= */

@media (max-width: 760px) {
  .dot-tj-container,
  .dot-tj-hero__inner {
    width: min(100% - 24px, 1120px);
  }

  .dot-tj-hero {
    padding: 28px 0 26px;
  }

  .dot-tj-section {
    padding: 30px 0 38px;
  }

  .dot-tj-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dot-tj-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
  }

  .dot-tj-card__image-link {
    display: block;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    background: var(--dot-tj-soft);
  }

  .dot-tj-card__image {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: 240px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .dot-tj-card__body {
    display: block;
    padding: 20px;
    background: #ffffff;
  }

  .dot-tj-card__meta {
    font-size: 0.88rem;
  }

  .dot-tj-card h3 {
    font-size: 1.18rem;
  }

  .dot-tj-card__text {
    display: block;
    overflow: visible;
  }
}