/* TRIMIX Tauchen AUSTRIA – gemeinsames Stylesheet
   Keine externen Schriften oder Skripte: alles kommt vom eigenen Server. */

:root {
  --abyss: #06263f;      /* tiefes Marineblau: Navigation, Fußzeile */
  --deep: #0a4a6e;       /* Überschriften */
  --lagoon: #1394a6;     /* Türkis: Linien, Akzente */
  --foam: #eaf6f8;       /* Seitenhintergrund */
  --paper: #fbfeff;      /* Lesefläche */
  --ink: #0c2233;        /* Fließtext */
  --signal: #ffa62b;     /* Signalorange (Tauchboje): Hinweis und Fokus */

  --font-body: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-head: "Avenir Next", "Segoe UI", "Trebuchet MS", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--deep); text-underline-offset: 0.18em; }
a:hover { color: var(--lagoon); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- Skip-Link ---------- */
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--signal);
  color: var(--abyss);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------- Kopfbereich mit Foto ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(20rem, 55vh, 30rem);
  padding: 2rem 0 5rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(6, 38, 63, 0.25) 0%, rgba(6, 38, 63, 0.88) 100%),
    url("../images/hero.jpg") center 35% / cover no-repeat,
    var(--abyss);
}

/* Wasseroberfläche: Welle in der Farbe der Navigation */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 44' preserveAspectRatio='none'%3E%3Cpath fill='%2306263f' d='M0 44V22c100 0 100-18 200-18s100 18 200 18 100-18 200-18 100 18 200 18 100-18 200-18 100 18 200 18v22z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(3, 20, 36, 0.55);
}

.hero--small {
  min-height: 8.5rem;
  padding-bottom: 3.5rem;
}
.hero--small::after { height: 1.75rem; }

.hero__brand {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(3, 20, 36, 0.55);
}
.hero__brand:hover { color: #fff; text-decoration: underline; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--abyss);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.25rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.85rem 0.9rem 0.7rem;
  border-bottom: 3px solid transparent;
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: #d8f1f5;
  text-decoration: none;
}
.nav a:hover { color: #fff; border-bottom-color: var(--lagoon); }
.nav a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
  border-bottom-color: var(--signal);
}

/* ---------- Inhalt ---------- */
.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
}

.banner {
  display: block;
  margin: 0 0 2.25rem;
  padding: 0.9rem 1.1rem;
  border-left: 0.5rem solid var(--abyss);
  background: var(--signal);
  color: var(--abyss);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}
.banner:hover { background: #ffb94f; color: var(--abyss); text-decoration: underline; }

.lead {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--abyss);
  text-wrap: pretty;
}
.lead--sub { font-size: 1.15rem; font-weight: 600; margin-top: 1.75rem; color: var(--deep); }

/* Vereinsziele: nummeriert, weil die Statuten (§ 2) dieselbe Reihenfolge nutzen */
.ziele {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ziel;
}
.ziele li {
  position: relative;
  margin: 0;
  padding: 0.9rem 0 0.9rem 3.25rem;
  border-top: 1px solid rgba(19, 148, 166, 0.35);
  counter-increment: ziel;
  font-size: 1.15rem;
  font-weight: 600;
}
.ziele li:last-child { border-bottom: 1px solid rgba(19, 148, 166, 0.35); }
.ziele li::before {
  content: counter(ziel);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 2.25rem;
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--lagoon);
}

/* Textseiten (Statuten, Datenschutz, Kontakt, Links, Videos) */
.text {
  padding: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}

.text h1,
.text h2 {
  font-family: var(--font-head);
  color: var(--deep);
  text-wrap: balance;
}
.text h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.text h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--lagoon);
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}
.text p { margin: 0 0 1rem; }
.text ol, .text ul { margin: 0 0 1rem; padding-left: 1.6rem; }
.text li { margin: 0 0 0.45rem; padding-left: 0.2rem; }
.text .partners__list li { padding-left: 0; }
.text li::marker { color: var(--lagoon); font-weight: 700; }

.text--center { text-align: center; }
.text--center address { font-style: normal; }
.text--center address p { margin-bottom: 1.1rem; }

/* Kontakt */
.kontakt { margin: 0; }
.kontakt__row {
  display: grid;
  gap: 0.1rem 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(19, 148, 166, 0.35);
}
.kontakt__row:last-child { border-bottom: 1px solid rgba(19, 148, 166, 0.35); }
.kontakt dt { font-family: var(--font-head); font-weight: 700; color: var(--abyss); }
.kontakt dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 40rem) {
  .kontakt__row { grid-template-columns: 15rem 1fr; }
}

/* Links / Partner */
.partners h2 { margin-top: 0.5rem; }
.text .partners__list {
  align-items: start;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  list-style: none;
}
.partner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  text-align: center;
}
.partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(19, 148, 166, 0.35);
  border-radius: 0.5rem;
}
.partner__logo img { display: block; max-height: 10rem; width: auto; }
.partner__adresse { margin: 0; font-size: 0.98rem; line-height: 1.5; }

/* Videos */
.video { margin-top: 2.5rem; }
.video h2 { margin-top: 0; }
.video p { margin-bottom: 0.4rem; }
.video__frame {
  margin-top: 1rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--abyss);
}
.video__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Fußzeile ---------- */
.footer {
  padding: 1.75rem 1.25rem 2.25rem;
  background: var(--abyss);
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-align: center;
}
.footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer a { color: #d8f1f5; }
.footer a:hover { color: #fff; }

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .skip, .hero, .nav, .footer, .banner { display: none; }
  .page { max-width: none; padding: 0; }
  a { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Direkt unter dem Seitentitel keine doppelte Linie */
.text h1 + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
