/* easydive.at – Design-System "Tiefes Wasser, ruhig" */

/* ---------- Fonts ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-regular.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --c-deep: #071527;
  --c-navy: #0B1F33;
  --c-navy-2: #0F2A45;
  --c-panel: #14324F;
  --c-panel-2: #1B3D5C;
  --c-text: #F4EFE6;
  --c-text-2: #CFC7B8;
  --c-muted: #8FA1B3;
  --c-sand: #E3CBA0;
  --c-sand-2: #F0DDB8;
  --c-red: #C8102E;
  --c-line: rgba(244, 239, 230, 0.14);
  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-content: 1120px;
  --w-text: 68ch;
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4rem; --s-7: 6rem; --s-8: 8rem;
  --section-y: clamp(4rem, 9vw, 8rem);
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-navy);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-sand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-sand-2); }
a[target="_blank"]::after { content: " \2197\FE0E"; font-size: 0.8em; line-height: 1; }
:focus-visible { outline: 2px solid var(--c-sand); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; margin: 0 0 var(--s-3); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--c-text-2); max-width: var(--w-text); }
.eyebrow { font-family: var(--f-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-sand); margin: 0 0 var(--s-2); }
.prose { max-width: var(--w-text); }
.prose p { color: var(--c-text-2); }
.muted { color: var(--c-muted); }
.small { font-size: 0.9rem; }
.container { width: min(100% - 2.5rem, var(--w-content)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--panel { background: var(--c-navy-2); }
.section--deep { background: var(--c-deep); }
.section__head { max-width: var(--w-text); margin-bottom: var(--s-5); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-sand); color: var(--c-deep); padding: var(--s-1) var(--s-2); z-index: 100; }
.skip-link:focus { left: var(--s-2); }
.rule { border: 0; border-top: 1px solid var(--c-line); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 500; text-decoration: none; line-height: 1;
  background: none; cursor: pointer;
  border: 1px solid var(--c-sand); color: var(--c-sand);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--c-sand); color: var(--c-deep); transform: translateY(-1px); }
.btn--primary { background: var(--c-sand); color: var(--c-deep); }
.btn--primary:hover { background: var(--c-sand-2); }
.btn--ghost { border-color: var(--c-line); color: var(--c-text); }
.btn--ghost:hover { background: rgba(244, 239, 230, 0.08); color: var(--c-text); }

/* ---------- Header / Nav (ohne JS bedienbar) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 51, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--c-text); }
.brand__logo { width: 40px; height: auto; flex: none; }
.brand__name { font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand__sub { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.nav-toggle:focus-visible + .nav-toggle__label { outline: 2px solid var(--c-sand); outline-offset: 2px; border-radius: 6px; }
.nav-toggle__label { display: none; cursor: pointer; padding: 0.5rem; color: var(--c-text); }
@media (min-width: 861px) { .nav-toggle { display: none; } }
.nav-toggle__label svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: var(--s-3); }
.nav a { color: var(--c-text-2); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--c-sand-2); }
.nav a.nav__ext { color: var(--c-sand); border: 1px solid var(--c-line); padding: 0.35rem 0.8rem; border-radius: 999px; }
@media (max-width: 860px) {
  .nav-toggle__label { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-deep); border-bottom: 1px solid var(--c-line);
  }
  .nav a { padding: 0.9rem 1.25rem; border-top: 1px solid var(--c-line); }
  .nav a.nav__ext { padding: 0.9rem 1.25rem; border: 0; border-top: 1px solid var(--c-line); border-radius: 0; }
  .nav-toggle:checked ~ .nav { display: flex; }
  /* Rechtsseiten: einziger Link, kein Burger-Menue -> immer sichtbar */
  .nav--single { display: flex; position: static; flex-direction: row; align-items: center; background: none; border-bottom: 0; }
  .nav--single a { padding: 0; border-top: 0; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg picture { height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 21, 39, 0.25) 0%, rgba(7, 21, 39, 0.55) 45%, var(--c-navy) 100%); }
.hero__glow { position: absolute; inset: -20%; z-index: -1; pointer-events: none; opacity: 0.55; mix-blend-mode: screen;
  background:
    radial-gradient(40% 35% at 25% 20%, rgba(90, 160, 200, 0.35), transparent 70%),
    radial-gradient(35% 30% at 75% 35%, rgba(60, 130, 180, 0.28), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.08); } }
.hero__content { padding-block: var(--s-7) var(--s-6); }
.hero__closed { font-family: var(--f-head); font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 400; color: var(--c-sand); margin: 0 0 var(--s-3); }
.hero__flag { width: 44px; height: 44px; margin-bottom: var(--s-3); }

/* ---------- Zeitleiste ---------- */
.timeline { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-4); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.55rem; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--c-line); }
.timeline li { position: relative; padding-left: 2.6rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--c-navy); border: 2px solid var(--c-sand); }
.timeline__year { display: block; font-family: var(--f-head); font-size: 1.6rem; color: var(--c-sand); line-height: 1; margin-bottom: 0.35rem; }
.timeline h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.timeline p { color: var(--c-text-2); margin: 0; max-width: 60ch; }
@media (min-width: 860px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .timeline::before { left: 0.55rem; right: 0.55rem; top: 0.55rem; bottom: auto; height: 1px; width: auto; }
  .timeline li { padding-left: 0; padding-top: 2.2rem; }
  .timeline li::before { top: 0; left: 0; }
}
.signature { font-family: var(--f-head); font-size: 1.2rem; color: var(--c-sand); margin-top: var(--s-4); }
.source-note { font-size: 0.9rem; color: var(--c-muted); margin-top: var(--s-4); }

/* ---------- Vergleich ---------- */
.compare { margin-top: var(--s-4); }
.compare__stage { display: grid; gap: var(--s-3); }
.compare__item { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.compare__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.compare__badge { position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(7, 21, 39, 0.75); color: var(--c-sand); font-family: var(--f-head); font-size: 1.1rem; padding: 0.25rem 0.7rem; border-radius: 999px; }
.compare__captions { display: grid; gap: var(--s-2); margin-top: var(--s-3); font-size: 0.92rem; color: var(--c-muted); }
@media (min-width: 768px) {
  .compare__stage, .compare__captions { grid-template-columns: 1fr 1fr; }
  .compare--slider .compare__stage { display: block; position: relative; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
  .compare--slider .compare__item { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
  .compare--slider .compare__item picture { height: 100%; }
  .compare--slider .compare__item img { height: 100%; }
  .compare--slider .compare__item--after { clip-path: inset(0 0 0 var(--pos, 50%)); }
  .compare--slider .compare__item--after .compare__badge { left: auto; right: 0.8rem; }
  .compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
  .compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--c-sand); transform: translateX(-1px); pointer-events: none; }
  .compare__handle::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--c-sand); color: var(--c-deep); display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
  .compare--slider .compare__stage:focus-within { outline: 2px solid var(--c-sand); outline-offset: 3px; }
  .compare--slider .compare__stage:focus-within .compare__handle { background: var(--c-sand-2); }
}

/* ---------- Gedenken ---------- */
.memorial { text-align: center; max-width: 640px; margin-inline: auto; }
.memorial__photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--s-4); border: 3px solid var(--c-sand); box-shadow: var(--shadow); }
.memorial__meta { color: var(--c-muted); font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: var(--s-4); }
.memorial p { color: var(--c-text-2); }
.memorial__rip { font-family: var(--f-head); font-size: 1.5rem; color: var(--c-sand); margin-top: var(--s-4); }

/* ---------- Karten ---------- */
.cards { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--c-panel); border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: rgba(227, 203, 160, 0.45); }
.card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__body h3 { margin: 0; }
.card__domain { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-sand); }
.card__body p { color: var(--c-text-2); flex: 1; margin: 0; }
.card--compact { background: var(--c-navy-2); }
@media (min-width: 860px) { .card--compact { grid-column: span 2; flex-direction: row; } .card--compact .card__img { flex: 0 0 38%; } .card--compact .card__img picture { display: block; height: 100%; } .card--compact .card__img img { height: 100%; aspect-ratio: auto; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .contact { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.contact__list li { padding-left: var(--s-3); border-left: 2px solid var(--c-sand); }
.contact__label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.15rem; }
.contact__list a { font-size: 1.15rem; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-deep); border-top: 1px solid var(--c-line); padding-block: var(--s-6) var(--s-4); color: var(--c-text-2); font-size: 0.95rem; }
.footer-grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h2 { font-family: var(--f-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-sand); margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--c-text-2); text-decoration: none; }
.site-footer a:hover { color: var(--c-sand-2); }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--c-line); font-size: 0.85rem; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; }

/* ---------- Rechtsseiten ---------- */
.legal { padding-block: var(--s-6) var(--s-7); }
.legal .container { max-width: min(760px, 72ch); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: var(--s-5); }
.legal h3 { font-size: 1.15rem; margin-top: var(--s-4); }
.legal p, .legal li { color: var(--c-text-2); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: var(--s-3) 0; }
.legal .table-wrap { overflow-x: auto; margin: var(--s-3) 0; }
.legal .table-wrap table { margin: 0; min-width: 32rem; }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.legal th { color: var(--c-sand); font-weight: 500; }
.legal .back { margin-bottom: var(--s-4); display: inline-block; }

/* ---------- Reveal (nur mit JS aktiv) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__glow { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Cookie-Consent Theme ---------- */
#cc-main { --cc-font-family: var(--f-body); --cc-bg: #0F2A45; --cc-primary-color: #F4EFE6; --cc-secondary-color: #CFC7B8; --cc-btn-primary-bg: #E3CBA0; --cc-btn-primary-color: #071527; --cc-btn-primary-hover-bg: #F0DDB8; --cc-btn-secondary-bg: #1B3D5C; --cc-btn-secondary-color: #F4EFE6; --cc-btn-secondary-hover-bg: #24507a; --cc-toggle-on-bg: #E3CBA0; --cc-toggle-off-bg: #3b5674; --cc-toggle-on-knob-bg: #071527; --cc-separator-border-color: rgba(244,239,230,.14); --cc-cookie-category-block-bg: #14324F; --cc-cookie-category-block-border: rgba(244,239,230,.14); --cc-cookie-category-block-hover-bg: #1B3D5C; --cc-overlay-bg: rgba(7,21,39,.6); --cc-link-color: #E3CBA0; --cc-footer-bg: #0B1F33; --cc-footer-color: #CFC7B8; --cc-footer-border-color: rgba(244,239,230,.14); --cc-btn-border-radius: 999px; --cc-modal-border-radius: 14px; }
