/* Die Wrapper <div class="c-…"> trennen nur das CSS der Bausteine (Vue: scoped) – fürs Layout dürfen sie nicht
   existieren, sonst klebt z. B. der sticky Header nur innerhalb seines Wrappers und scrollt mit weg.
   .c-photo sitzt direkt auf dem Foto (class="slot c-photo") und ist damit nicht gemeint. */
:is(div, span)[class^="c-"] { display: contents; }

/* aus default.vue (Nuxt), unverändert – nur in .c-page eingepackt */
.c-page {
/* Sand liegt hier statt auf body: der body-Hintergrund dient Safari (iOS) als Farbe der
   Browserleiste und wechselt am Seitenende auf Footer-Dunkel (siehe SiteFooter) */
.page { display: flex; flex-direction: column; min-height: 100vh; background: var(--sand); }
main { flex: 1; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--sand);
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font: 600 15px var(--font);
}
.skip:focus { top: 12px; }
}

/* aus SiteHeader.vue (Nuxt), unverändert – nur in .c-header eingepackt */
.c-header {
/* Eigener Name: bleibt beim Seitenwechsel stehen */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--sand); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
.bar { max-width: var(--max-w); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 22px; flex-wrap: nowrap; white-space: nowrap; font: 500 16px var(--font); flex: 1; }
.nav a, .mobile a { text-decoration: none; color: var(--ink); }
.nav a { transition: color var(--t-hover) ease; }
.nav a.is-active { color: var(--teal); font-weight: 700; }
.actions { display: flex; align-items: center; gap: 10px; flex: none; }
.open { color: var(--muted); }

.burger {
  all: unset; display: none; cursor: pointer; position: relative;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  transition: background var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-hover) var(--ease);
}
.burger:active { transform: scale(.94); }
.burger:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.burger span {
  position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform var(--t-layout) var(--ease), opacity var(--t-hover) ease, background var(--t-hover) ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
/* Hover nur mit echter Maus – auf Touch bliebe er sonst hängen */
@media (hover: hover) {
  .burger:hover { background: var(--teal); border-color: var(--teal); transform: scale(1.06); }
  .burger:hover span { background: #fff; }
}
.burger[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); }
.burger[aria-expanded="true"] span { background: var(--sand); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile { display: none; grid-template-rows: 0fr; transition: grid-template-rows var(--t-layout) var(--ease); }
.mobile.is-open { grid-template-rows: 1fr; }
.mobile__inner { overflow: hidden; min-height: 0; }
.mobile nav { display: flex; flex-direction: column; padding: 4px 20px 20px; border-top: 1px solid var(--line); background: var(--sand); }
.mobile a {
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); font: 600 18px var(--font);
  opacity: 0; transform: translateY(-10px);
  transition: opacity var(--t-layout) ease, transform var(--t-layout) var(--ease);
}
.mobile a:nth-child(2) { transition-delay: 45ms; }
.mobile a:nth-child(3) { transition-delay: 90ms; }
.mobile a:nth-child(4) { transition-delay: 135ms; }
.mobile a:nth-child(5) { transition-delay: 180ms; }
.mobile a:nth-child(6) { transition-delay: 225ms; border-bottom: 0; }
.mobile a.is-active, .mobile a.is-contact { color: var(--teal); }
.mobile.is-open a { opacity: 1; transform: none; }

@media (max-width: 1179px) {
  /* .actions davor: muss gegen display:flex aus OpenState gewinnen, unabhängig von der Ladereihenfolge der Styles */
  .nav, .actions .open { display: none; }
  .bar { gap: 12px; }
  .actions { margin-left: auto; }
  .burger { display: block; }
  .mobile { display: grid; }
}
/* Sehr schmale Displays: Button steckt auch im Menü – sonst wird der Burger abgeschnitten */
@media (max-width: 359px) {
  .actions .btn { display: none; }
}
}

/* aus SiteFooter.vue (Nuxt), unverändert – nur in .c-footer eingepackt */
.c-footer {
.footer { background: var(--ink); color: var(--mist); }
.inner { max-width: var(--max-w); margin: 0 auto; padding: 64px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
/* Festes Raster: 4 Spalten Desktop, 2 Tablet, 1 Handy */
@media (min-width: 560px) { .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brand { display: flex; flex-direction: column; gap: 14px; }
.name { font: 800 18px/1.15 var(--font); letter-spacing: .03em; color: var(--sand); }
.brand img { height: 48px; width: auto; align-self: flex-start; filter: invert(1); mix-blend-mode: screen; }
.brand span { font-size: 15px; line-height: 1.55; max-width: 260px; }
.col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.col a { text-decoration: none; color: var(--sand); }
.col a.more { color: var(--mint); }
/* Schwarze Strichzeichnung auf Weiß → weiß auf dem dunklen Footer (wie das Taucher-Logo) */
.cmas { height: 128px; width: auto; align-self: flex-start; filter: invert(1); mix-blend-mode: screen; }
.bottom { border-top: 1px solid var(--line-on-dark); }
.bottom > div { max-width: var(--max-w); margin: 0 auto; padding: 20px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; line-height: 1.5; color: var(--muted-dark); }
.legal { display: flex; gap: 20px; }
.legal a { text-decoration: none; }
}

/* aus SiteNotice.vue (Nuxt), unverändert – nur in .c-notice eingepackt */
.c-notice {
/* Eigener Name: Balken bleibt beim Seitenwechsel stehen, nur der Text blendet um */
.notice {
  view-transition-name: notice;
  background: var(--teal); color: #fff;
  padding: 10px 24px;
  display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
  font: 500 15px/20px var(--font); text-align: center;
}
.link { all: unset; cursor: pointer; position: relative; color: #fff; font-weight: 700; text-decoration: underline; }
.short { display: none; }
/* Schmale Bildschirme (Handy, kleines Tablet): Kurzfassung, damit der Balken einzeilig bleibt */
@media (max-width: 879px) {
  .notice { gap: 12px; padding: 10px 16px; font-size: 14px; flex-wrap: nowrap; white-space: nowrap; }
  .long { display: none; }
  .short { display: inline; }
}
/* Größere Tippfläche, ohne den Balken höher zu machen oder den Text zu verschieben */
.link::after { content: ''; position: absolute; inset: -10px -6px; }
.link:hover { color: #fff; }
.link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
}

/* aus OpenState.vue (Nuxt), unverändert – nur in .c-openstate eingepackt */
.c-openstate {
.open-state { display: flex; align-items: center; gap: 7px; font: 500 14px var(--font); opacity: 0; transition: opacity var(--t-state) ease; }
.open-state.is-ready { opacity: 1; }
/* Rot = geschlossen, Grün = geöffnet */
.dot { width: 8px; height: 8px; border-radius: 50%; background: #D9573E; }
.dot.is-open { background: #3FBF7F; }
}

/* aus DepthGauge.vue (Nuxt), unverändert – nur in .c-gauge eingepackt */
.c-gauge {
.gauge { position: fixed; right: 10px; top: calc(50% - 150px); z-index: 15; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.title { font: 600 12px var(--mono); letter-spacing: .1em; color: var(--sand); background: #14202BD9; padding: 4px 6px; border-radius: 3px; pointer-events: none; }
.track { position: relative; width: 28px; height: 260px; cursor: pointer; display: flex; justify-content: center; touch-action: none; }
.rail { position: relative; width: 4px; height: 100%; background: #14202B26; border-radius: 2px; pointer-events: none; }
.fill { position: absolute; left: 0; top: 0; width: 4px; background: linear-gradient(var(--mint), var(--deep)); border-radius: 2px; }
.label {
  position: absolute; left: -26px; width: 56px; margin-top: -13px; text-align: center;
  background: var(--teal); color: var(--sand); font: 600 13px var(--mono);
  padding: 5px 7px; border-radius: 3px; white-space: nowrap; box-shadow: 0 4px 12px #0004;
}
/* Nur einblenden, wenn rechts neben dem 1280er-Inhalt genug Rand frei ist */
@media (max-width: 1399px) { .gauge { display: none; } }
}

/* aus CourseDatesDialog.vue (Nuxt), unverändert – nur in .c-dialog eingepackt */
.c-dialog {
.modal { position: fixed; inset: 0; z-index: 200; background: #0B1B2BB3; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: var(--sand); color: var(--ink); border-radius: 14px; width: 100%; max-width: 640px; max-height: min(86vh, 760px); overflow: auto; box-shadow: 0 30px 80px #0006; display: flex; flex-direction: column; }

/* Öffnen: Hintergrund blendet ein, Fenster gleitet leicht hoch.
   Schließen: dieselbe Bewegung rückwärts, etwas langsamer und gleichmäßig. */
.modal-enter-active { animation: fadeIn var(--t-state) ease; }
.modal-enter-active .dialog { animation: swapIn var(--t-state) var(--ease); }
.modal-leave-active { animation: fadeOut var(--t-close) ease-in-out forwards; pointer-events: none; }
.modal-leave-active .dialog { animation: swapOut var(--t-close) ease-in-out forwards; }

.head { position: sticky; top: 0; z-index: 1; background: var(--sand); padding: 24px 28px 16px; display: flex; justify-content: space-between; align-items: start; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.head > div { display: flex; flex-direction: column; gap: 6px; }
.head h2 { margin: 0; font: 700 30px/1.1 var(--font); }
/* SVG statt „×“-Zeichen – das Schriftzeichen sitzt nicht exakt mittig */
.close { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); background: var(--foam); }
.close svg { display: block; }
.close:hover { background: var(--pale); }
.close:focus-visible { outline: 2px solid var(--teal); }
.list { padding: 4px 28px 8px; }
.foot { padding: 16px 28px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 380px; }
.foot p a { color: var(--teal); font-weight: 600; text-decoration: none; white-space: nowrap; }
.all { all: unset; cursor: pointer; font: 600 15px var(--font); color: var(--teal); padding: 10px 0; }
}

/* aus CourseDateList.vue (Nuxt), unverändert – nur in .c-datelist eingepackt */
.c-datelist {
.list { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.day { display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
.day b { font: 700 26px var(--font); }
.day span { font: 500 12px var(--mono); color: var(--muted); }
.info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.info b { font: 600 17px var(--font); }
.info span { font-size: 15px; color: var(--muted); }
.row .btn { font-size: 15px; padding: 10px 16px; }
}

/* aus PhotoSlot.vue (Nuxt), unverändert – nur in .c-photo eingepackt */
.c-photo {
.credit {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  font: 500 11px var(--font); color: #fff; background: #0008;
  padding: 2px 6px; border-radius: 3px; text-decoration: none;
  /* Urheber · Lizenz vollständig (Namensnennung) – lieber umbrechen als abschneiden */
  max-width: calc(100% - 16px); line-height: 1.35;
}
.credit-toggle { display: none; }
/* Schmale Bildschirme, kleine Fotos: nur „©“ – der volle Nachweis (Pflicht bei CC-Lizenzen)
   blendet beim Antippen daneben ein und bleibt verlinkt */
@media (max-width: 839px) {
  .credit-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; left: 6px; bottom: 6px; z-index: 2; width: 24px; height: 24px; padding: 0;
    border: 0; border-radius: 50%; background: #0008; color: #fff; font: 600 13px/1 var(--font);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  /* größere Tippfläche als das sichtbare Zeichen */
  .credit-toggle::before { content: ''; position: absolute; inset: -10px; }
  .credit-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .credit.is-compact {
    left: 36px; bottom: 6px; max-width: calc(100% - 42px);
    opacity: 0; visibility: hidden; transition: opacity var(--t-hover) ease, visibility var(--t-hover);
  }
  .credit.is-compact.is-open { opacity: 1; visibility: visible; }
}
}

/* aus InfoTip.vue (Nuxt), unverändert – nur in .c-infotip eingepackt */
.c-infotip {
.tip { position: relative; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.i {
  all: unset; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; cursor: help;
  display: inline-grid; place-items: center; border: 1px solid var(--teal); color: var(--teal);
  font: 700 11px/1 var(--mono); transition: background var(--t-hover) ease, color var(--t-hover) ease;
}
.i:hover, .i[aria-expanded="true"] { background: var(--teal); color: #fff; }
.i:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.bubble {
  /* öffnet nach links: das ⓘ steht meist am Ende einer Zeile, rechts ist oft der Kartenrand */
  position: absolute; right: -8px; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: min(280px, 80vw);
  padding: 8px 10px; border-radius: 6px; background: var(--ink); color: var(--sand);
  font: 400 14px/1.45 var(--font); text-wrap: pretty; box-shadow: 0 8px 24px #14202B33;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-state) ease, visibility var(--t-state);
}
.bubble.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* aus EmphasisText.vue (Nuxt), unverändert – nur in .c-em eingepackt */
.c-em {
/* Link im Fließtext: Farbe des Umfelds, dezent unterstrichen */
.em-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: text-decoration-color var(--t-hover) ease; }
.em-link:hover, .em-link:focus-visible { text-decoration-color: currentColor; }
}


/* Nur im Visual Editor: Datum/Status eines Reisetermins öffnen das Formular in der Seitenleiste (EditRecordViewHelper) */
.dive-edit { cursor: pointer; border-bottom: 1px dashed currentColor; }
.dive-edit:hover, .dive-edit:focus-visible { color: var(--mint); outline: none; }

/* Nur im Visual Editor: „+ Termin“ unter der Terminliste einer Reise (öffnet die Termine in der Seitenleiste) */
.dive-edit:has(.dive-add) { border: 0; align-self: flex-start; }
.dive-add { display: inline-block; padding: 8px 14px; border: 1px dashed var(--mint); border-radius: 999px; font: 600 14px var(--font); color: var(--mint); }
.dive-edit:hover .dive-add, .dive-edit:focus-visible .dive-add { background: var(--mint); color: var(--ink); border-style: solid; }
.dive-add--light { color: var(--teal); border-color: var(--teal); }
.dive-edit:hover .dive-add--light, .dive-edit:focus-visible .dive-add--light { background: var(--teal); color: #fff; }
/* Kurstermine im Editor: anklickbare Tag/Monats-Box behält ihr Layout; „+ Kurstermin“ unter der Liste */
.c-datelist .day > .dive-edit { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px dashed currentColor; }
.c-datelist .add:has(.dive-add) { padding-top: 18px; }
.c-datelist .add:not(:has(.dive-add)) { display: none; }
button.dive-new { all: unset; cursor: pointer; }
