/* ============================================================
   Abyssal.ink – Tiefsee-Design-System
   ============================================================ */

:root {
  /* Palette am Studio-Poster ausgerichtet: Unterwasser-Look mit Eisblau */
  --abyss-black:   #04090D;
  --deep-blue-1:   #0B2430;
  --deep-blue-2:   #10394A;
  --ocean-blue:    #1D5A72;
  --aqua:          #4FB8D8;
  --aqua-bright:   #8FDCF2;
  --aqua-soft:     #A9E4F5;
  --foam:          #EAF6FA;
  --foam-dim:      rgba(234, 246, 250, 0.72);

  --font-display: 'Pirata One', 'DejaVu Serif', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --glass-bg:     rgba(16, 57, 74, 0.38);
  --glass-border: rgba(143, 220, 242, 0.16);
  --glow:         0 0 18px rgba(143, 220, 242, 0.35), 0 0 44px rgba(79, 184, 216, 0.15);
  --radius: 14px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--abyss-black);
  color: var(--foam);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--aqua-bright); text-decoration: none; transition: color .25s, text-shadow .25s; }
a:hover { color: var(--aqua-soft); text-shadow: 0 0 12px rgba(143, 220, 242, .55); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- Tiefsee-Hintergrund ---------- */
.ocean-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

.ocean-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(29, 90, 114, 0.45), transparent 60%),
    radial-gradient(900px 600px at 15% 20%, rgba(16, 57, 74, 0.55), transparent 65%),
    radial-gradient(1000px 900px at 50% 115%, rgba(79, 184, 216, 0.10), transparent 60%),
    linear-gradient(180deg, #08161d 0%, var(--abyss-black) 55%, #030709 100%);
}

/* Kaustik – wie Lichtbrechung unter Wasser */
.caustics {
  position: absolute; inset: -50%;
  background-image:
    radial-gradient(ellipse 300px 90px at 20% 30%, rgba(143,220,242,0.05), transparent 70%),
    radial-gradient(ellipse 400px 110px at 70% 60%, rgba(169,228,245,0.045), transparent 70%),
    radial-gradient(ellipse 260px 80px at 45% 80%, rgba(143,220,242,0.04), transparent 70%),
    radial-gradient(ellipse 350px 100px at 85% 15%, rgba(29,90,114,0.09), transparent 70%);
  animation: causticsDrift 26s ease-in-out infinite alternate;
}
@keyframes causticsDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* Schwebeteilchen */
.particles { position: absolute; inset: 0; overflow: hidden; }
.particles::before, .particles::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 85%, rgba(234,246,250,.25), transparent 60%),
    radial-gradient(1.5px 1.5px at 34% 60%, rgba(143,220,242,.30), transparent 60%),
    radial-gradient(2px 2px at 56% 92%, rgba(234,246,250,.18), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 70%, rgba(143,220,242,.22), transparent 60%),
    radial-gradient(2.5px 2.5px at 90% 88%, rgba(234,246,250,.14), transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 40%, rgba(169,228,245,.20), transparent 60%);
  animation: rise 30s linear infinite;
}
.particles::after { animation-duration: 44s; animation-delay: -18s; opacity: .6; }
@keyframes rise {
  from { transform: translateY(0); }
  to   { transform: translateY(-100vh); }
}

@media (prefers-reduced-motion: reduce) {
  .caustics, .particles::before, .particles::after { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 9, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.brand-logo { height: 56px; width: auto; filter: drop-shadow(0 0 10px rgba(143,220,242,.35)); }

.main-nav ul { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 9px 15px; border-radius: 10px;
  color: var(--foam-dim); font-weight: 500; font-size: .97rem; letter-spacing: .02em;
}
.main-nav a:hover { color: var(--aqua-bright); background: rgba(79,184,216,.08); text-shadow: none; }
.main-nav a.active { color: var(--aqua-bright); background: rgba(79,184,216,.12); box-shadow: inset 0 0 0 1px rgba(143,220,242,.25); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--aqua-bright); border-radius: 2px; transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(4,9,13,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 22px 18px; }
  .main-nav a { padding: 13px 14px; font-size: 1.05rem; }
}

/* ---------- Hero: das Original-Studio-Poster als Bühne ---------- */
.hero {
  position: relative; text-align: center; overflow: hidden;
  min-height: min(96vh, 1100px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 150px 0 110px;
  background: url('/abyssal.png') center top / cover no-repeat var(--abyss-black);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(4,9,13,0) 0%, rgba(4,9,13,0) 45%,
    rgba(4,9,13,.55) 82%, var(--abyss-black) 100%);
}
.hero .container { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .hero { min-height: 86vh; padding-bottom: 80px; }
}
.hero-logo { max-width: min(560px, 82vw); margin: 0 auto 24px; filter: drop-shadow(0 0 22px rgba(143,220,242,.45)) drop-shadow(0 4px 30px rgba(0,0,0,.5)); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 400; letter-spacing: .04em;
  text-shadow: 0 0 26px rgba(143,220,242,.35);
}
.hero .claim { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--foam-dim); margin: 14px auto 34px; max-width: 640px; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; }
.hero-wave svg { display: block; width: 100%; height: 90px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 999px;
  font-weight: 600; font-size: 1.02rem; letter-spacing: .03em;
  border: 1px solid rgba(143,220,242,.5); cursor: pointer;
  background: linear-gradient(135deg, rgba(79,184,216,.22), rgba(29,90,114,.32));
  color: var(--aqua-bright);
  box-shadow: var(--glow);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(79,184,216,.38), rgba(29,90,114,.45));
  box-shadow: 0 0 26px rgba(143,220,242,.55), 0 0 64px rgba(79,184,216,.25);
  text-shadow: none; color: #fff;
}
.btn--ghost { background: transparent; box-shadow: none; border-color: rgba(234,246,250,.25); color: var(--foam-dim); }
.btn--ghost:hover { border-color: var(--aqua-bright); color: var(--aqua-bright); box-shadow: var(--glow); }

/* Hervorgehobener Pflege-Button (leuchtet stärker als die anderen) */
.btn--pflege {
  background: linear-gradient(135deg, var(--aqua-bright), var(--ocean-blue));
  color: #04090D; font-weight: 700; border-color: #cdeffb;
  box-shadow: 0 0 24px rgba(143,220,242,.65), 0 0 60px rgba(79,184,216,.35);
  animation: pflegePulse 2.8s ease-in-out infinite;
}
.btn--pflege:hover {
  color: #04090D;
  background: linear-gradient(135deg, #d3f2fc, var(--aqua));
  box-shadow: 0 0 32px rgba(143,220,242,.9), 0 0 80px rgba(79,184,216,.45);
  text-shadow: none;
}
@keyframes pflegePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(143,220,242,.5), 0 0 48px rgba(79,184,216,.28); }
  50%      { box-shadow: 0 0 30px rgba(143,220,242,.85), 0 0 72px rgba(79,184,216,.45); }
}
@media (prefers-reduced-motion: reduce) { .btn--pflege { animation: none; } }

/* Hero-Buttons: nebeneinander, umbruchfähig auf Mobil */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.btn--small { padding: 9px 20px; font-size: .92rem; }
.btn--danger { border-color: rgba(255,110,110,.5); color: #ff9c9c; background: rgba(120,20,20,.25); box-shadow: none; }
.btn--danger:hover { background: rgba(160,30,30,.4); box-shadow: 0 0 18px rgba(255,90,90,.3); color: #fff; }

/* ---------- Abschnitte ---------- */
.section { padding: 72px 0; }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: .04em;
  margin-bottom: 8px; text-shadow: 0 0 18px rgba(143,220,242,.25);
}
.section-sub { color: var(--foam-dim); margin-bottom: 38px; max-width: 720px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Glass-Karten ---------- */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--aqua-bright); }
.card p { color: var(--foam-dim); }

/* Nummerierter Schritt-Badge auf Pflegekacheln */
.care-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
  font-weight: 800; font-size: 1rem; color: #04090D;
  background: linear-gradient(135deg, var(--aqua-bright), var(--ocean-blue));
  box-shadow: 0 0 16px rgba(143,220,242,.5);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: .95rem; font-weight: 500;
  background: rgba(16,57,74,.45); color: var(--foam-dim);
  border: 1px solid rgba(143,220,242,.14); transition: .25s;
}
.filter-btn:hover { color: var(--aqua-bright); border-color: rgba(143,220,242,.4); }
.filter-btn.active {
  background: linear-gradient(135deg, rgba(79,184,216,.3), rgba(29,90,114,.4));
  color: var(--aqua-bright); border-color: rgba(143,220,242,.55); box-shadow: var(--glow);
}
.filter-btn .count { opacity: .6; font-size: .85em; margin-left: 5px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  border: 1px solid rgba(143,220,242,.1);
  background: var(--deep-blue-1);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgba(143,220,242,.4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .item-caption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px;
  background: linear-gradient(0deg, rgba(4,9,13,.85), transparent);
  font-size: .9rem; color: var(--foam); opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .item-caption { opacity: 1; }
.gallery-item.hidden { display: none; }
.gallery-empty { color: var(--foam-dim); padding: 40px 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(3,5,8,.94); backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 0 60px rgba(143,220,242,.2); }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--foam-dim); font-size: .95rem; padding: 0 20px; }
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(16,57,74,.6); color: var(--aqua-bright); border: 1px solid var(--glass-border);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: .25s;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.lightbox-btn:hover { box-shadow: var(--glow); background: rgba(79,184,216,.3); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close { top: 22px; right: 18px; transform: none; }
@media (max-width: 640px) {
  .lightbox-btn { width: 42px; height: 42px; }
}

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

label { font-weight: 500; font-size: .95rem; display: block; margin-bottom: 7px; color: var(--foam); }
label .req { color: var(--aqua-bright); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 13px 16px; font-size: 1rem; font-family: inherit;
  background: rgba(4,9,13,.55); color: var(--foam);
  border: 1px solid rgba(143,220,242,.18); border-radius: 10px;
  transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(79,184,216,.18), 0 0 16px rgba(143,220,242,.15);
}
textarea { min-height: 130px; resize: vertical; }
select option { background: var(--deep-blue-1); }
.field-hint { font-size: .85rem; color: var(--foam-dim); margin-top: 5px; }
.checkbox-line { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--foam-dim); }
.checkbox-line input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--aqua); }

/* Honeypot unsichtbar */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* Flash-Meldungen */
.flash { max-width: var(--container); margin: 18px auto 0; padding: 15px 20px; border-radius: 10px; font-weight: 500; }
.flash--ok   { background: rgba(79,184,216,.14); border: 1px solid rgba(143,220,242,.4); color: var(--aqua-bright); }
.flash--error{ background: rgba(160,40,40,.18); border: 1px solid rgba(255,110,110,.4); color: #ffb3b3; }

/* ---------- FAQ Akkordeon ---------- */
.faq-item { border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 12px; background: var(--glass-bg); overflow: hidden; }
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--aqua-bright); font-size: 1.4rem; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--foam-dim); }

/* ---------- Tabellen (Preise, Admin) ---------- */
.table-wrap { overflow-x: auto; }
table.nice { width: 100%; border-collapse: collapse; }
table.nice th, table.nice td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(143,220,242,.1); }
table.nice th { color: var(--aqua-bright); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
table.nice td { color: var(--foam-dim); }
table.nice tr:hover td { background: rgba(79,184,216,.05); color: var(--foam); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; background: linear-gradient(180deg, transparent, rgba(11,36,48,.55) 30%, rgba(4,9,13,.9)); }
.wave-divider svg { display: block; width: 100%; height: 90px; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 34px 22px 30px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { max-width: 190px; opacity: .9; filter: drop-shadow(0 0 8px rgba(143,220,242,.3)); }
.footer-claim { color: var(--foam-dim); margin-top: 12px; font-style: italic; }
.footer-col h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--aqua-bright); margin: 14px 0 8px; }
.footer-col h3:first-child { margin-top: 0; }
.footer-col p { color: var(--foam-dim); font-size: .95rem; }
.footer-bottom { text-align: center; padding: 18px; border-top: 1px solid rgba(143,220,242,.08); color: rgba(234,246,250,.4); font-size: .85rem; }

/* ---------- Kontakt / Karte ---------- */
.map-embed { border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.4) brightness(.85); }

/* ============================================================
   ADMIN-BEREICH
   ============================================================ */
.admin-body { background: var(--abyss-black); }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; background: rgba(11,36,48,.5); border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.admin-top .brand-logo { height: 34px; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-nav a { padding: 8px 14px; border-radius: 9px; color: var(--foam-dim); font-size: .93rem; font-weight: 500; }
.admin-nav a:hover { background: rgba(79,184,216,.1); color: var(--aqua-bright); text-shadow: none; }
.admin-nav a.active { background: rgba(79,184,216,.16); color: var(--aqua-bright); }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 34px 22px 80px; }
.admin-main h1 { font-size: 1.7rem; margin-bottom: 6px; }
.admin-main .sub { color: var(--foam-dim); margin-bottom: 28px; }

/* Login */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 22px;
  background: url('/abyssal.png') center / cover no-repeat var(--abyss-black);
}
.login-card { width: 100%; max-width: 420px; text-align: center; }
.login-card .brand-logo { height: 52px; margin: 0 auto 22px; }
.login-card form { text-align: left; margin-top: 20px; }

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(143,220,242,.35); border-radius: var(--radius);
  padding: 46px 24px; text-align: center; color: var(--foam-dim); cursor: pointer;
  transition: .25s; background: rgba(16,57,74,.25);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--aqua-bright); box-shadow: var(--glow); color: var(--aqua-bright); }
.dropzone input[type="file"] { display: none; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.preview-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--glass-border); }

/* Admin-Bildergrid */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.admin-item { border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; background: var(--glass-bg); }
.admin-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.admin-item .meta { padding: 12px; display: grid; gap: 8px; font-size: .88rem; }
.admin-item .meta select, .admin-item .meta input { padding: 8px 10px; font-size: .88rem; }
.admin-item .row { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge--ok { background: rgba(79,184,216,.18); color: var(--aqua-bright); }
.badge--off { background: rgba(160,40,40,.2); color: #ffb3b3; }
.badge--new { background: rgba(143,220,242,.22); color: var(--aqua-bright); }

.inline-form { display: inline; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 34px; }
.stat-cards .card { text-align: center; padding: 22px; }
.stat-cards .num { font-size: 2.2rem; font-weight: 800; color: var(--aqua-bright); text-shadow: 0 0 16px rgba(143,220,242,.4); }
.stat-cards .lbl { color: var(--foam-dim); font-size: .9rem; }

.booking-detail { white-space: pre-wrap; }
