/* Farben und Schriften wie auf divecenter-merlin.com */
@font-face{font-family:"Montserrat";font-weight:400;font-display:swap;src:url(fonts/montserrat-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-weight:500;font-display:swap;src:url(fonts/montserrat-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-weight:600;font-display:swap;src:url(fonts/montserrat-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Montserrat";font-weight:700;font-display:swap;src:url(fonts/montserrat-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Rubik";font-weight:800;font-display:swap;src:url(fonts/rubik-latin-800-normal.woff2) format("woff2")}

:root {
  --deep: #0f4a57;      /* Website: teal */
  --ocean: #0b6f95;     /* Website: theme-color */
  --sea: #0b7fab;       /* Website: ocean */
  --lagoon: #03a0cc;    /* Logo-Blau */
  --foam: #e6f3f8;
  --sand: #f2eee8;      /* Website: cream */
  --sun: #ffec00;       /* Website: gelber Button */
  --wa: #25d366;
  --ink: #151617;
  --muted: #5b5e62;
  --line: #e0dcd5;
  --card: #ffffff;
  --bg: #faf8f5;        /* Website: paper */
  --danger: #c2413a;
  --ok: #2b8a5e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 28px rgba(15,74,87,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sea); }
img { max-width: 100%; display: block; }
h1 { font-family: "Rubik", "Arial Black", system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; }

/* ---------- Kopfzeile ---------- */
.topbar {
  background: linear-gradient(120deg, var(--deep), var(--ocean));
  color: #fff;
  padding: 14px 16px;
  position: sticky; top: 0; z-index: 20;
}
.topbar .inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand-logo { height: 40px; width: auto; flex: none; }
.brand-sep { width: 1px; height: 28px; background: rgba(255,255,255,.35); }
.brand small { display: block; font-weight: 500; opacity: .75; font-size: 12px; letter-spacing: .3px; }
.topbar nav { margin-left: auto; display: flex; gap: 4px; }
.topbar nav a {
  color: #d6eef7; text-decoration: none; font-size: 14px; padding: 7px 11px; border-radius: 999px;
}
.topbar nav a:hover, .topbar nav a.active { background: rgba(255,255,255,.12); color: #fff; }

@media (max-width: 560px) {
  .topbar { padding: 10px 12px; }
  .topbar .brand > span:last-child, .topbar .brand-sep { display: none; }
  .brand-logo { height: 34px; }
  .topbar nav { gap: 0; }
  .topbar nav a { font-size: 13px; padding: 6px 8px; }
}
#qr svg { display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }

h1 { font-size: 24px; margin: 6px 0 4px; letter-spacing: -.2px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }

/* ---------- Karten ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 18px; border: 1px solid #e6f0f5;
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 400; }
input[type=text], input[type=password], input[type=date], input[type=number], select {
  width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--lagoon); outline-offset: 1px; border-color: var(--sea); }
.row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--sea); color: #fff; text-decoration: none; line-height: 1.2;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--ocean); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--foam); color: var(--ocean); }
.btn.secondary:hover { background: #d4eef7; }
.btn.danger { background: #fbe9e7; color: var(--danger); }
.btn.danger:hover { background: #f7d6d2; }
.btn.big { padding: 15px 22px; font-size: 16px; }
.btn.yellow { background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.btn.yellow:hover { background: var(--sun); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.wa:hover { background: #1fb457; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Tauchgang-Liste ---------- */
.dive-list { list-style: none; margin: 0; padding: 0; }
.dive-list li + li { border-top: 1px solid var(--line); }
.dive-list a { display: flex; align-items: center; gap: 14px; padding: 13px 4px; text-decoration: none; color: inherit; }
.dive-list a:hover { background: #f7fbfd; }
.dive-date {
  flex: none; width: 54px; text-align: center; border-radius: 10px; background: var(--foam); color: var(--ocean); padding: 6px 0;
  font-weight: 700; line-height: 1.1;
}
.dive-date span { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.dive-title { font-weight: 600; }
.dive-meta { color: var(--muted); font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--foam); color: var(--ocean); }
.pill.ok { background: #e3f4ec; color: var(--ok); }
.pill.warn { background: #fdf2dc; color: #94650c; }
.pill.err { background: #fbe9e7; color: var(--danger); }
.chev { margin-left: auto; color: #9db4c2; }
.dive-row { display: flex; align-items: center; }
.dive-row > a { flex: 1; min-width: 0; }
.row-del { flex: none; width: 38px; height: 38px; margin-left: 4px; border-radius: 50%; border: 0; background: transparent;
  color: #b9bcc0; cursor: pointer; display: grid; place-items: center; }
.row-del:hover, .row-del:focus-visible { background: #fbe9e7; color: var(--danger); }
.row-del svg { width: 18px; height: 18px; }

/* ---------- Upload ---------- */
.dropzone {
  border: 2px dashed #a9d6e6; border-radius: var(--radius); background: #f7fcfe;
  padding: 26px 16px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.dropzone.drag { background: var(--foam); border-color: var(--sea); }
.dropzone svg { width: 40px; height: 40px; color: var(--sea); margin: 0 auto 8px; }
.dropzone strong { display: block; font-size: 16px; }
.dropzone input { display: none; }

.queue { margin-top: 12px; display: grid; gap: 6px; }
.qitem { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; background: #f7fafc; border-radius: 8px; padding: 7px 10px; }
.qitem .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbar { grid-column: 1 / -1; height: 4px; background: #e2edf3; border-radius: 4px; overflow: hidden; }
.qbar i { display: block; height: 100%; width: 0; background: var(--sea); transition: width .2s; }
.qitem.done .qbar i { background: var(--ok); }
.qitem.fail .qbar i { background: var(--danger); }

/* ---------- Medien-Raster ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
@media (min-width: 700px) { .media-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; } }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #dfeaf0; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .badge {
  position: absolute; left: 6px; top: 6px; background: rgba(6,42,63,.75); color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center;
}
.tile .del {
  position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--danger); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.tile .del svg { width: 15px; height: 15px; }
.tile.processing::after {
  content: "Wird bearbeitet …"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(6,42,63,.55); color: #fff; font-size: 13px; font-weight: 600;
}
.tile.error::after {
  content: "Fehler"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(194,65,58,.65); color: #fff; font-size: 13px; font-weight: 600;
}
.tile button.open { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }

/* ---------- Video-Box ---------- */
.video-box video { width: 100%; border-radius: 10px; background: #000; }
.progress { height: 10px; background: #e2edf3; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sea), var(--lagoon)); transition: width .4s; }
.status-line { font-size: 14px; color: var(--muted); }

/* ---------- Teilen ---------- */
.share-link { display: flex; gap: 8px; }
.share-link input { font-size: 14px; }
#qr { background: #fff; padding: 10px; border-radius: 10px; display: inline-block; border: 1px solid var(--line); }
#qr img, #qr canvas { width: 180px; height: 180px; }

.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: #e3f4ec; color: var(--ok); }
.flash.err { background: #fbe9e7; color: var(--danger); }

.empty { text-align: center; color: var(--muted); padding: 28px 10px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(180deg, rgba(0,25,40,.35), rgba(0,25,40,.55)), url(img/hero-diver-1200.jpg) center / cover no-repeat, var(--deep); }
.login-card .brand-logo { height: 52px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-card .brand { color: var(--ink); margin-bottom: 18px; }

/* ---------- Gaeste-Galerie ---------- */
.hero {
  background: linear-gradient(180deg, rgba(0,25,40,.45) 0%, rgba(0,25,40,.15) 35%, rgba(0,25,40,.25) 65%, rgba(0,25,40,.7) 100%),
              url(img/hero-diver-1200.jpg) center 40% / cover no-repeat, var(--ocean);
  color: #fff; padding: 20px 16px 80px; position: relative; overflow: hidden; min-height: 340px;
}
@media (max-width: 560px) { .hero { background-image: linear-gradient(180deg, rgba(0,25,40,.45) 0%, rgba(0,25,40,.15) 35%, rgba(0,25,40,.25) 65%, rgba(0,25,40,.7) 100%), url(img/hero-diver-800.jpg); } }
.hero .brand-logo { height: 54px; }
.hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,.35); margin-top: 60px; }
.hero p { text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: 30px; margin: 18px 0 6px; }
.hero p { margin: 0; color: #eef7fa; }
.hero .meta { margin-top: 10px; font-size: 14px; color: #d4ecf5; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero .waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 50px; }
.lang { margin-left: auto; display: flex; gap: 4px; }
.lang a { color: #bfe2ef; text-decoration: none; font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 999px; }
.lang a.on { background: rgba(255,255,255,.16); color: #fff; }
.guest-wrap { max-width: 1100px; margin: -40px auto 0; padding: 0 16px 60px; position: relative; z-index: 2; }
.sticky-dl { position: sticky; bottom: 12px; display: flex; justify-content: center; margin-top: 18px; z-index: 5; }
.sticky-dl .btn:not(.yellow) { box-shadow: 0 8px 24px rgba(6,42,63,.3); }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(3,18,28,.94); display: none; z-index: 100; flex-direction: column; }
.lb.on { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: #fff; font-size: 14px; }
.lb-stage { flex: 1; display: grid; place-items: center; padding: 0 8px; min-height: 0; position: relative; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-bottom { padding: 12px 16px 20px; display: flex; justify-content: center; gap: 10px; }
.icon-btn { all: unset; cursor: pointer; color: #fff; padding: 8px; border-radius: 999px; display: grid; place-items: center; }
.icon-btn svg { width: 24px; height: 24px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 14px; }
.hide { display: none !important; }

/* ---------- Google-Bewertung ---------- */
.review-card { text-align: center; padding: 22px 18px; border: 2px solid var(--sun); }
.review-card h2 { margin: 2px 0 6px; font-size: 20px; }
.review-card p { margin: 0 auto 16px; max-width: 440px; font-size: 14px; }
.stars { color: #fbbc05; font-size: 26px; letter-spacing: 3px; line-height: 1; margin-bottom: 6px; }
.btn.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.btn.google:hover { background: #f8f9fa; }
.btn.google svg { width: 20px; height: 20px; }
.sheet { position: fixed; inset: 0; background: rgba(3,18,28,.55); display: none; align-items: flex-end; justify-content: center; z-index: 90; padding: 12px; }
.sheet.on { display: flex; animation: sheetIn .25s ease-out; }
.sheet-card { background: #fff; border-radius: 18px; padding: 22px 20px 18px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 -6px 30px rgba(0,0,0,.25); }
.sheet-card h2 { margin: 0 0 6px; font-size: 20px; }
.sheet-card p { font-size: 14px; margin: 0 0 16px; }
@keyframes sheetIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .sheet { align-items: center; } }

/* ---------- Download-Karte ---------- */
.dl-card { text-align: center; padding: 20px 18px; }
.dl-count { font-weight: 700; font-size: 15px; color: var(--muted); margin-bottom: 12px; letter-spacing: .2px; }
.btn.yellow.block { width: 100%; }
.btn.outline { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; }
.btn.outline:hover { background: var(--sand); }
