/* HT DiveWorks – v1.1 · alle Schriften lokal, keine externen Verbindungen */

@font-face { font-family: "Barlow"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #1b3568;
  --navy-deep: #0e2042;
  --blue-light: #6bbad4;
  --white: #f0f6ff;
  --muted: rgba(205, 224, 242, 0.82);
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(107, 186, 212, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  min-height: 100vh;
  background: var(--navy-deep);
  color: var(--white);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-light); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--blue-light); color: var(--navy-deep);
  padding: 10px 16px; border-radius: 8px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Hintergrund ── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 0%, #1a4a7a 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, #0a2a50 0%, transparent 60%),
    linear-gradient(180deg, #0d2d55 0%, #071828 100%);
}
.caustic {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    radial-gradient(ellipse 200px 80px at 25% 15%, rgba(107, 186, 212, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 160px 60px at 70% 35%, rgba(107, 186, 212, 0.05) 0%, transparent 70%);
  animation: causticShift 8s ease-in-out infinite alternate;
}
@keyframes causticShift {
  0% { transform: translateX(0); opacity: 0.6; }
  100% { transform: translateX(30px); opacity: 1; }
}

.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.bubble {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.3), rgba(107, 186, 212, 0.06));
  border: 1px solid rgba(107, 186, 212, 0.22);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(var(--drift)); opacity: 0; }
}
.bubble:nth-child(1)  { left: 8%;  width: 8px;  height: 8px;  animation-duration: 9s;   animation-delay: 0s;   --drift: 20px; }
.bubble:nth-child(2)  { left: 18%; width: 5px;  height: 5px;  animation-duration: 12s;  animation-delay: 1.5s; --drift: -15px; }
.bubble:nth-child(3)  { left: 30%; width: 12px; height: 12px; animation-duration: 10s;  animation-delay: 3s;   --drift: 10px; }
.bubble:nth-child(4)  { left: 42%; width: 6px;  height: 6px;  animation-duration: 14s;  animation-delay: 0.8s; --drift: -20px; }
.bubble:nth-child(5)  { left: 55%; width: 9px;  height: 9px;  animation-duration: 11s;  animation-delay: 4s;   --drift: 25px; }
.bubble:nth-child(6)  { left: 68%; width: 4px;  height: 4px;  animation-duration: 13s;  animation-delay: 2s;   --drift: -10px; }
.bubble:nth-child(7)  { left: 78%; width: 14px; height: 14px; animation-duration: 9.5s; animation-delay: 5s;   --drift: 15px; }
.bubble:nth-child(8)  { left: 88%; width: 7px;  height: 7px;  animation-duration: 11s;  animation-delay: 1s;   --drift: -25px; }
.bubble:nth-child(9)  { left: 12%; width: 10px; height: 10px; animation-duration: 15s;  animation-delay: 6s;   --drift: 18px; }
.bubble:nth-child(10) { left: 60%; width: 5px;  height: 5px;  animation-duration: 10s;  animation-delay: 3.5s; --drift: -12px; }

.page { position: relative; z-index: 10; }

/* ── Navigation ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 24, 40, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(107, 186, 212, 0.14);
}
.nav-bar {
  max-width: 1000px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: 0.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { color: var(--blue-light); }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 8px 2px; display: inline-block;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-light); }

.nav-toggle {
  display: none;
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(107, 186, 212, 0.5); border-radius: 10px;
  padding: 9px 14px; font: 500 14px "Barlow", sans-serif; letter-spacing: 0.06em; cursor: pointer;
  min-height: 44px;
}

/* ── Animationen (Eingang) ── */
@keyframes floatIn { to { opacity: 1; transform: translateY(0); } }
.anim { opacity: 0; transform: translateY(22px); animation: floatIn 1s var(--ease) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.2s; } .d3 { animation-delay: 0.35s; }
.d4 { animation-delay: 0.5s; }  .d5 { animation-delay: 0.65s; } .d6 { animation-delay: 0.8s; }
.d7 { animation-delay: 0.95s; }

/* ── Hero ── */
.hero {
  min-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 24px 72px;
}
.hero-logo { width: min(320px, 78vw); margin-bottom: 34px; filter: drop-shadow(0 6px 24px rgba(107, 186, 212, 0.25)); }
.eyebrow {
  font-family: "Barlow Condensed", sans-serif; font-weight: 300;
  font-size: clamp(13px, 2vw, 15px); letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 16px;
}
.hero h1 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: clamp(48px, 10vw, 96px); line-height: 0.94; letter-spacing: -0.01em; margin-bottom: 26px;
}
.hero h1 em { font-style: normal; color: var(--blue-light); }
.divider { width: 50px; height: 2px; background: linear-gradient(90deg, transparent, var(--blue-light), transparent); margin: 0 auto 24px; }
.hero-sub { font-weight: 300; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.7; max-width: 580px; color: var(--muted); margin-bottom: 36px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(107, 186, 212, 0.1); border: 1px solid rgba(107, 186, 212, 0.3);
  border-radius: 100px; padding: 9px 20px; font-size: 14px; letter-spacing: 0.03em; color: var(--blue-light);
  margin-bottom: 36px;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #e0b252; display: block; }

.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 15px;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  padding: 14px 32px; border-radius: 100px; transition: all 0.3s; min-height: 48px; display: inline-flex; align-items: center;
}
.btn-primary { background: var(--blue-light); color: var(--navy-deep); border: 1.5px solid var(--blue-light); }
.btn-primary:hover { background: #fff; border-color: #fff; box-shadow: 0 0 28px rgba(107, 186, 212, 0.4); }
.btn-secondary { background: transparent; color: var(--blue-light); border: 1.5px solid rgba(107, 186, 212, 0.55); }
.btn-secondary:hover { border-color: var(--blue-light); background: rgba(107, 186, 212, 0.1); }

/* ── Abschnitte ── */
section { padding: 72px 24px; max-width: 920px; margin: 0 auto; }
.label {
  font-family: "Barlow Condensed", sans-serif; font-weight: 300;
  font-size: 13px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 12px;
}
section h2 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: clamp(32px, 5vw, 48px); line-height: 1; margin-bottom: 20px;
}
.intro { color: var(--muted); font-weight: 300; font-size: 17px; max-width: 640px; margin-bottom: 36px; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 26px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s;
  display: flex; flex-direction: column; gap: 8px;
}
.card:hover { border-color: rgba(107, 186, 212, 0.5); background: rgba(107, 186, 212, 0.06); }
.card h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 22px; line-height: 1.15; }
.card p { font-weight: 300; font-size: 16px; color: var(--muted); }
.tag {
  align-self: flex-start; margin-top: auto; padding: 3px 12px; border-radius: 100px;
  background: rgba(107, 186, 212, 0.1); border: 1px solid rgba(107, 186, 212, 0.28);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-light);
}
.card .tag { margin-top: 10px; }

/* ── Kontakt ── */
#kontakt { text-align: center; }
#kontakt .intro { margin-left: auto; margin-right: auto; }
.contact-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px;
  padding: 12px 36px; max-width: 480px; margin: 0 auto; text-align: left;
}
.contact-row { padding: 16px 0; border-bottom: 1px solid rgba(107, 186, 212, 0.12); }
.contact-row:last-child { border-bottom: none; }
.contact-row dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 2px; }
.contact-row dd { font-size: 18px; }
.contact-row a { color: var(--white); text-decoration: none; }
.contact-row a:hover { color: var(--blue-light); text-decoration: underline; }

/* ── Footer ── */
.site-footer { border-top: 1px solid rgba(107, 186, 212, 0.12); padding: 48px 24px 36px; position: relative; z-index: 10; }
.footer-grid { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.site-footer h4 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 12px;
}
.site-footer p, .site-footer li { font-size: 14px; font-weight: 300; line-height: 1.9; color: var(--muted); list-style: none; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue-light); text-decoration: underline; }
.footer-bottom {
  max-width: 920px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(107, 186, 212, 0.1);
  font-size: 13px; color: rgba(205, 224, 242, 0.55);
}

.footer-center { border-top: 0; margin-top: 0; padding-top: 0; text-align: center; }

/* ── Rechtstexte ── */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal h1 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(38px, 7vw, 54px); color: var(--white); line-height: 1; margin-bottom: 8px; }
.legal .meta { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 30px; }
.legal h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 22px; color: var(--white); margin: 30px 0 8px; letter-spacing: 0.03em; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.back { display: inline-block; margin-bottom: 24px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.back:hover { text-decoration: underline; }

/* ── Mobil ── */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: rgba(7, 24, 40, 0.97); border-bottom: 1px solid rgba(107, 186, 212, 0.18);
  }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 15px; min-height: 48px; width: 100%; border-bottom: 1px solid rgba(107, 186, 212, 0.1); }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-card { padding: 8px 22px; }
  section { padding: 56px 20px; }
}

/* ── Reduzierte Bewegung ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubbles, .caustic { display: none; }
  .anim { opacity: 1; transform: none; animation: none; }
  * { transition: none !important; }
}

/* Logbuch-Seite */
.stats-page { max-width: 960px; margin: 0 auto; padding: 56px 24px 72px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.stats-page h1 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(40px, 8vw, 64px); color: var(--white); line-height: 1; margin-bottom: 14px; }
.stats-page h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 26px; color: var(--white); margin: 44px 0 8px; letter-spacing: 0.03em; }
.stats-page .intro { max-width: 680px; margin-bottom: 30px; }
.stats-page .note { font-size: 15px; margin-bottom: 14px; }
.stats-page .note.end { margin-top: 36px; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 18px 16px; }
.stat b { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 34px; color: var(--white); line-height: 1.05; }
.stat span { font-size: 14px; color: var(--muted); }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 12px; margin-bottom: 8px; }
.bar-label { font-size: 15px; }
.bar { width: 100%; height: 14px; display: block; }
.bar rect { fill: var(--blue-light); }
.bar-val { text-align: right; color: var(--white); font-weight: 500; }
.places { margin-top: 28px; grid-template-columns: 1fr; }
.places .card p strong { color: var(--white); font-weight: 500; }
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .bars li { grid-template-columns: 110px 1fr 34px; }
}

/* Tabellen, Fakten, Zeitleiste */
.table-wrap { overflow-x: auto; margin: 10px 0 20px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-weight: 500; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.18); padding: 8px 10px; white-space: nowrap; }
table.data td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top; }
.facts { list-style: none; padding: 0; margin: 10px 0 20px; }
.facts li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.facts strong { color: var(--white); font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 20px 0; border-left: 2px solid var(--card-border); }
.timeline li { padding: 0 0 22px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-light); }
.timeline strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 600; color: var(--white); }
.stats-page a { color: var(--blue-light); }

/* Über mich */
.about .lead { font-size: 20px; line-height: 1.6; color: var(--white); max-width: 680px; margin-bottom: 28px; }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 8px; }
.glance div { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px; }
.glance dt { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-light); }
.glance dd { margin: 4px 0 0; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 30px; color: var(--white); line-height: 1.1; }
.about p { max-width: 720px; }
.cta-line { margin-top: 24px; }
@media (max-width: 720px) { .glance { grid-template-columns: 1fr 1fr; } .about .lead { font-size: 18px; } }
.stats-page p { margin-bottom: 14px; }
.stats-page a.btn { color: var(--navy-deep); text-decoration: none; }

.pull { margin: 34px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue-light); font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: clamp(26px, 5vw, 36px); line-height: 1.2; color: var(--white); max-width: 640px; }

/* Fotos */
figure { margin: 0; }
.credit { display: block; font-size: 11px; color: var(--muted); opacity: .75; margin-top: 4px; }
.about h2 { clear: none; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; border-radius: 14px; display: block; }
.gallery figure { display: flex; flex-direction: column; }

.about-head { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.about-head h1 { margin-bottom: 0; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--blue-light); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.gallery figcaption .credit { display: inline; margin-left: 6px; }
.gallery a { display: block; }
@media (max-width: 720px) { .avatar { width: 84px; height: 84px; } .about-head { gap: 14px; } .gallery { grid-template-columns: 1fr; } }

.gallery-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .gallery-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-3 { grid-template-columns: 1fr; } }

/* Hochkant-Bild in der Galerie: belegt zwei Zeilen */
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall a { position: relative; flex: 1 1 auto; min-height: 240px; }
.gallery figure.tall img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: center 40%; }
@media (max-width: 720px) {
  .gallery figure.tall { grid-row: auto; }
  .gallery figure.tall a { position: static; min-height: 0; }
  .gallery figure.tall img { position: static; aspect-ratio: 3 / 4; }
}
