/* ============================================================
   Diartis Solutions — Release Notes
   css/releasenotes.css
   ============================================================ */

@font-face {
  font-family: 'FF Sanuk W05';
  src: local('../font/FF Sanuk Round Regular'), local('FF-Sanuk-Round-Regular'),
       url('../font/SanukRound-Regular.woff2') format('woff2'),
       url('../font/SanukRound-Regular.woff') format('woff'),
       url('../font/SanukRound-Regular.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

:root {
  --d-primary:        #00778b;
  --d-primary-dark:   #005f70;
  --d-primary-light:  #e0f3f6;
  --d-primary-mid:    #b8e2e9;
  --d-primary-border: #7fc9d4;
  --d-primary-bg:     #f0f8fa;
  --d-orange:         #e8720c;
  --d-orange-pale:    #fdf0e6;
  --d-orange-border:  #f4b27a;
  --d-yellow:         #fbae17;
  --d-yellow-pale:    #fff8e6;
  --d-yellow-border:  #fcd06b;
  --d-gray-bg:        #f4f5f7;
  --d-gray-border:    #d8dde6;
  --d-text:           #1a2e3a;
  --d-text-muted:     #5a6a7e;
  --d-text-light:     #8a95a8;
  --d-red:            #c0392b;
}

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

body {
  font-family: 'FF Sanuk W05', 'FF Sanuk Round', 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background: var(--d-gray-bg);
  color: var(--d-text);
  padding: 1.5rem 0;
  min-height: 100vh;
}

/* ── Shell ──────────────────────────────────────────────────── */
/* HINWEIS: fixe px-Höhe statt 100vh, da 100vh in eingebetteten
   Kontexten (iframe, Teams, SharePoint) zu Scroll-Problemen führt.
   Wert über JS oder CSS-Variable bei Bedarf anpassen.          */

/* ── Seiten-Wrapper: 80% Breite, zentriert ──────────────────── */
.rn-shell {
  display: flex;
  width: 80%; max-width: 1600px; min-width: 800px;
  margin: 0 auto;
  height: calc(100vh - 3rem);
  min-height: 500px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
  border-radius: 6px;
  border: 1px solid var(--d-primary-mid);
}

/* ── Hamburger Button ───────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 24px; height: 18px; background: none; border: none;
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--d-primary-dark); border-radius: 2px;
  transition: all .25s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Sidebar Overlay ────────────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.35); z-index: 199;
  pointer-events: none;
}
.sidebar-overlay.sidebar-overlay-visible { display: block; pointer-events: auto; }

/* ── Tablet (≤ 1100px): Hamburger-Menü ──────────────────────── */
@media (max-width: 1100px) {
  .rn-shell { width: 100%; min-width: 0; border-radius: 0; box-shadow: none; }
  .hamburger { display: flex; }
  .rn-sidebar {
    position: fixed; top: 0; left: -260px; height: 100dvh;
    width: 240px; z-index: 200;
    transition: left .25s ease;
    box-shadow: none;
  }
  .rn-sidebar.sidebar-open {
    left: 0;
    box-shadow: 4px 0 16px rgba(0,0,0,.15);
  }
  .highlights-grid, .hg { grid-template-columns: 1fr !important; max-width: 100%; }
  .highlight-card, .hc2 { width: 100%; box-sizing: border-box; }
  .hc-label, .hl { font-size: 9px; }
  .highlight-card h3, .hc2 h3 { font-size: 13px; }
  .highlight-card p,  .hc2 p  { font-size: 12px; }
  .filter-row { flex-direction: column; gap: .75rem; }
  .filter-col:first-child,
  .filter-col:last-child { flex: 1; width: 100%; }
  .atags-vtags { flex-wrap: wrap; }
  .ftag-vtag { font-size: 10px; padding: 2px 7px; }
  .ftag      { font-size: 10px; padding: 2px 7px; }
  .rcb-am-name { font-size: 11px; }
}

/* ── Mobile (≤ 700px) ───────────────────────────────────────── */
@media (max-width: 700px) {
  .rn-shell { height: 100dvh; }
  .highlights-grid, .hg { grid-template-columns: 1fr !important; max-width: 100%; }
  .highlight-card, .hc2 { width: 100%; box-sizing: border-box; }
  .hc-label, .hl { font-size: 9px; }
  .highlight-card h3, .hc2 h3 { font-size: 12px; }
  .highlight-card p,  .hc2 p  { font-size: 11px; }
  .rn-main { padding: 1rem; }
  .acc-gallery-strip { flex-direction: column; }
  .gi, .gi.gi-single { flex: 1 1 100%; max-width: 100%; }
  .filter-col:first-child,
  .filter-col:last-child { flex: 1; }

  /* Akkordeon-Header: Badges unter Titel */
  .ah { flex-wrap: wrap; align-items: flex-start; }
  .atags { margin-left: 0; margin-top: .4rem; width: 100%; align-items: flex-start; }

  /* Nur checked Badges anzeigen */
  .vtag-unchecked { display: none; }

  /* Badges kompakter */
  .vtag      { font-size: 9px;  padding: 1px 5px; }
  .ftag      { font-size: 9px;  padding: 1px 5px; }
  .ftag-vtag { font-size: 9px;  padding: 1px 5px; }

  /* Fussbereich */
  .rn-contact-banner { padding: .75rem 1rem; }
  .banner-title, .rcb-title { font-size: 13px; }
  .rcb-sub { font-size: 11px; }
  .rcb-am-name { font-size: 10px; }
}

/* ── Sidebar ────────────────────────────────────────────────── */
.rn-sidebar {
  width: 230px; min-width: 190px; flex-shrink: 0;
  background: var(--d-gray-bg);
  border-right: 1px solid var(--d-gray-border);
  padding: 1.5rem 0; overflow-y: auto;
}
.rn-sidebar-title {
  font-size: 12px; font-weight: 700; color: var(--d-primary-dark);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 0 1.25rem; margin-bottom: .75rem;
}

/* ── Sidebar Kurzklassen-Aliases ────────────────────────────── */
.rn-version-group, .vg { margin-bottom: .25rem; }

.rn-ver-label, .vl {
  font-size: 14px; font-weight: 600; color: var(--d-text-muted);
  padding: .35rem 1.25rem; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  user-select: none; transition: color .15s;
}
.rn-ver-label:hover, .vl:hover { color: var(--d-primary); }
.rn-ver-label.open,  .vl.open  { color: var(--d-primary-dark); }

.va {
  width: 12px; height: 13px; flex-shrink: 0;
  fill: var(--d-primary);
  transition: transform .2s; display: inline-block;
}
.rn-ver-label.open  .va, .vl.open  .va { transform: rotate(45deg); }

.rn-chapter-links, .cl { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.rn-chapter-links.visible, .rn-chapter-links.vis,
.cl.visible,               .cl.vis            { max-height: 200px; }

.rn-chapter-link, .ca {
  display: block; font-size: 13px; color: var(--d-text-light);
  padding: .28rem 1.25rem .28rem 2.75rem;
  cursor: pointer; border-left: 2px solid transparent;
  text-decoration: none; transition: all .15s;
}
.rn-chapter-link:hover, .ca:hover { color: var(--d-primary); border-left-color: var(--d-primary-mid); }
.rn-chapter-link.active,     .ca.active     { color: var(--d-primary-dark); border-left-color: var(--d-orange); font-weight: 600; }
.rn-chapter-link.nav-active, .ca.nav-active { color: var(--d-primary); font-weight: 700; border-left-color: var(--d-primary); }
.rn-chapter-link.hit-active, .ca.hit-active { color:  var(--d-yellow); font-weight: 700; border-left-color: var(--d-yellow); border-left-width: 3px; }

.ca.ca-parent { display: flex; align-items: center; }

.cl-sub { max-height: none; overflow: visible; }

.ca.ca-fn {
  font-size: 11px;
  padding: .22rem 1rem .22rem 3.25rem;
  color: var(--d-text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left-color: transparent;
  display: flex; align-items: center; gap: 6px;
}
.ca.ca-fn::before {
  content: '';
  display: inline-block; flex-shrink: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--d-primary);
  transition: background .15s;
}
.ca.ca-fn:hover { color: var(--d-primary); border-left-color: var(--d-primary-mid); }
.ca.ca-fn:hover::before { background: var(--d-primary); }
.ca.ca-fn.active { color: var(--d-primary-dark); border-left-color: var(--d-primary); font-weight: 600; }
.ca.ca-fn.active::before { background: var(--d-primary); }
.ca.ca-fn.nav-active { color: var(--d-primary); font-weight: 700; border-left-color: var(--d-primary); }
.ca.ca-fn.nav-active::before { background: var(--d-primary); }
.ca.ca-fn.hit-active { color: var(--d-yellow); font-weight: 700; border-left-color: var(--d-yellow); border-left-width: 3px; }
.ca.ca-fn.hit-active::before { background: var(--d-yellow); }

/* ── Right column ───────────────────────────────────────────── */
.rn-right { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--d-gray-bg); height: 100%; }

/* ── Page title ─────────────────────────────────────────────── */
.rn-page-title {
  background: var(--d-primary-bg);
  padding: .9rem 1.5rem .75rem; flex-shrink: 0;
  display: flex; align-items: center; gap: .75rem;
}
.rn-page-title h2 { font-size: 1.5rem; font-weight: 700; color: var(--d-primary-dark); letter-spacing: .01em; }
.rn-page-title h2 span { color: var(--d-text-muted); font-weight: 400; font-size: 14px; margin-left: 6px; }

/* ── Sticky filter card ─────────────────────────────────────── */
.filter-card {
  background: var(--d-primary-bg);
  border-bottom: 1px solid var(--d-primary-mid);
  padding: 1rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,119,139,.08);
}
.filter-section-label {
  font-size: 10px; font-weight: 700; color: var(--d-primary);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem;
}
.filter-row { display: flex; gap: 2.5rem; align-items: flex-start; }
.filter-col { flex: 1; }
.filter-col:first-child { flex: 1; }
.filter-col:last-child  { flex: 2; }

/* ── Tags ───────────────────────────────────────────────────── */
.tfb-tags { display: flex; flex-direction: column; gap: 8px; min-height: 28px; }
.tfb-row  { display: flex; flex-wrap: wrap; gap: 5px; }

/* Versions-Tags Filterleiste (Zeile 1) — ohne Checkbox, Teal-Stil */
.ftag-vtag {
  font-size: 11px; padding: 3px 10px; border-radius: 3px;
  cursor: pointer; border: 1px solid var(--d-primary-border); font-weight: 700;
  transition: all .15s; user-select: none;
  display: inline-flex; align-items: center; gap: 5px;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--d-primary-light); color: var(--d-primary-dark);
}
.ftag-vtag:hover { background: var(--d-primary-mid); }
.ftag-vtag.active-tag {
  background: var(--d-primary);
  border-color: var(--d-primary);
  color: #fff;
  box-shadow: 0 0 0 2px #00778b20;
}
.ftag-vtag .vtag-tx { display: none; opacity: .8; font-size: 12px; margin-left: 2px; }
.ftag-vtag.active-tag .vtag-tx { display: inline; color: #fff; }

.ftag {
  font-size: 11px; padding: 3px 10px; border-radius: 3px;
  cursor: pointer; border: 1px solid var(--d-gray-border); font-weight: 600;
  transition: all .15s; user-select: none;
  display: inline-flex; align-items: center; gap: 5px;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--d-gray-bg); color: var(--d-text-muted);
}
.ftag:hover {
  background: var(--d-gray-border);
  border-color: var(--d-gray-border);
  color: var(--d-text);
}
.ftag.active-tag {
  background: var(--d-primary);
  border-color: var(--d-primary);
  color: #fff;
  box-shadow: 0 0 0 2px #00778b20;
}

/* Accordion-Header: 2-zeilige Tag-Gruppe */
.atags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; margin-left: auto; pointer-events: none;}
.atags-vtags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.atags-normal { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

/* Versions-Badge im Akkordeon: checked */
.vtag {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 4px;
  text-transform: uppercase; letter-spacing: .04em;
}
.vtag-checked {
  background: var(--d-primary-light);
  color: var(--d-primary-dark);
  border: 1px solid var(--d-primary-border);
}
/* Versions-Badge im Akkordeon: unchecked */
.vtag-unchecked {
  background: transparent;
  color: #b0b8c4;
  border: 1px dashed #c8d0db;
  font-weight: 400;
}

/* Tag-Treffer Highlighting */
.atags .ftag.tag-hit {
  background: var(--d-yellow-border);
  border-color: var(--d-yellow-border);
  color: #fff;
}
.atags .vtag.tag-hit,
.atags .vtag-checked.tag-hit,
.atags .vtag-unchecked.tag-hit {
  background: var(--d-yellow-border);
  border: 1px solid var(--d-yellow-border);
  color: #fff;
}
.atags .vtag.tag-hit svg rect,
.atags .vtag-checked.tag-hit svg rect,
.atags .vtag-unchecked.tag-hit svg rect { stroke: #fff; }
.atags .vtag.tag-hit svg polyline,
.atags .vtag-checked.tag-hit svg polyline { stroke: #fff; }


.ftag.tag-hidden { display: none; }

.ftag .tag-x, .ftag .tx {
  font-size: 12px; opacity: .5; display: none;
  margin-left: 2px; line-height: 1;
}
.ftag.active-tag .tag-x,
.ftag.active-tag .tx    { display: inline; opacity: 1; color: #fff; font-weight: 700; }
.ftag .tag-x:hover, .ftag .tx:hover { opacity: 1; }

/* ── Search ─────────────────────────────────────────────────── */
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%; padding: 7px 30px 7px 36px; font-size: 14px;
  border: 1px solid var(--d-primary-border); border-radius: 4px;
  background: #fff; color: var(--d-text); outline: none; transition: border-color .15s;
}
.search-wrap input::placeholder { color: var(--d-text-light); }
.search-wrap input:focus { border-color: var(--d-primary); box-shadow: 0 0 0 2px #00778b20; }
.search-icon  {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--d-primary-border); pointer-events: none;
}
.search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--d-text-light); cursor: pointer; display: none; }
.search-clear:hover { color: var(--d-primary-dark); }

/* ── Status bar ─────────────────────────────────────────────── */
.status-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--d-text-muted); flex-wrap: wrap; min-height: 22px; padding-bottom: .25rem; }

.hit-count, .hc { font-weight: 700; color: var(--d-primary-dark); }

.nav-btns  { display: flex; gap: 3px; }
.nav-btn {
  background: #fff; border: 1px solid var(--d-primary-border); border-radius: 3px;
  padding: 2px 8px; font-size: 12px; line-height: 1; cursor: pointer;
  color: var(--d-primary-dark); font-weight: 600; transition: all .1s;
}
.nav-btn:disabled { opacity: .3; cursor: default; }
.nav-btn:hover:not(:disabled) { background: var(--d-primary-light); border-color: var(--d-primary); }
.clear-btn { font-size: 12px; color: var(--d-orange); cursor: pointer; margin-left: 26px; white-space: nowrap; }
.clear-btn:hover { text-decoration: underline; }
.sep { color: var(--d-primary-mid); }

/* ── Highlights ─────────────────────────────────────────────── */
mark.sh        { background: var(--d-yellow-border); color: #fff; border-radius: 2px; padding: 0 1px; }
mark.sh.active { background: var(--d-yellow-border); color: #fff; outline: 2px solid var(--d-primary); outline-offset: 1px; }

/* ── Scroll area ────────────────────────────────────────────── */
.rn-main { flex: 1; min-height: 0; overflow-y: auto; padding: 1.5rem 2rem; }

/* ══════════════════════════════════════════════════════════════
   VERSION
   ══════════════════════════════════════════════════════════════ */

.version-section,  .vs { margin-bottom: 3rem; }
.version-section + .version-section, .vs + .vs {
  border-top: 2px solid var(--d-primary-mid);
  padding-top: 2.5rem;
}
.version-collapsed,.vc { display: none; }

.rn-version-header, .vh { display: flex; align-items: baseline; gap: 12px; margin-bottom: .25rem; }
.rn-version-header h1, .vh h1 { font-size: 22px; font-weight: 700; color: var(--d-primary); }

.rn-version-date, .vd { font-size: 12px; color: var(--d-text-muted); }

.rn-divider, .vhr { border: none; margin: .6rem 0 1.5rem; width: 48px; }

.new-badge, .nb { font-size: 10px; background: var(--d-orange); color: #fff; border-radius: 3px; padding: 2px 7px; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   CHAPTER
   ══════════════════════════════════════════════════════════════ */

.chapter, .ch { margin-bottom: 2rem; scroll-margin-top: 8px; }

.chapter-title, .ct {
  font-size: 14px; font-weight: 700; color: var(--d-primary-dark);
  margin-bottom: .9rem; display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .05em;
}

.chapter-icon, .ci { width: 22px; height: 22px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; font-weight: 700; }
.icon-highlights, .ih { background: var(--d-orange);   color: #fff; }
.icon-features,   .if { background: var(--d-primary);  color: #fff; }

/* ── Highlight cards ────────────────────────────────────────── */

.highlights-grid, .hg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }

.highlight-card, .hc2 { background: #fff; border: 1px solid var(--d-gray-border); border-top: 3px solid var(--d-orange); border-radius: 4px; padding: 1rem 1.1rem; transition: border-color .15s, box-shadow .15s; }
.highlight-card.search-match, .hc2.search-match { border-color: var(--d-yellow-border); box-shadow: 0 1px 6px rgba(251,174,23,.15); }
.highlight-card.active-hit,   .hc2.active-hit   { border-color: var(--d-orange-border); box-shadow: 0 0 0 2px #e8720c30; }

.hc-label, .hl { font-size: 10px; font-weight: 700; color: var(--d-orange); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.highlight-card h3, .hc2 h3 { font-size: 14px; font-weight: 700; color: var(--d-text); margin-bottom: .25rem; }
.highlight-card p,  .hc2 p  { font-size: 13px; color: var(--d-text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   ACCORDIONS
   ══════════════════════════════════════════════════════════════ */

.accordion, .acc { border: 1px solid var(--d-gray-border); border-left: 3px solid var(--d-primary); border-radius: 4px; margin-bottom: 6px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.accordion.hidden, .acc.hidden { display: none; }
.accordion.tag-match,    .acc.tag-match,
.accordion.search-match, .acc.search-match,
.accordion.both-match,   .acc.both-match { border-left-color: var(--d-yellow-border); border-left-width: 4px; border-color: var(--d-yellow-border); }
.accordion.active-hit, .acc.active-hit,
.accordion.tag-match.active-hit, .acc.tag-match.active-hit,
.accordion.search-match.active-hit, .acc.search-match.active-hit,
.accordion.both-match.active-hit, .acc.both-match.active-hit { border-left-color: var(--d-yellow); border-left-width: 4px; border-color: var(--d-yellow-border); box-shadow: 0 1px 6px rgba(232,114,12,.15); }

/* Aktiver Tag-Treffer Badge → 2px Primary-Border */
.acc.active-hit .atags .ftag.tag-hit { outline: 2px solid var(--d-primary); outline-offset: 1px; }
.acc.active-hit .atags .vtag.tag-hit,
.acc.active-hit .atags .vtag-checked.tag-hit,
.acc.active-hit .atags .vtag-unchecked.tag-hit { outline: 2px solid var(--d-primary); outline-offset: 1px; }

.accordion-header, .ah { display: flex; align-items: center; gap: 8px; padding: .7rem 1rem; cursor: pointer; user-select: none; }
.accordion-header:hover, .ah:hover { background: var(--d-primary-bg); }

.ach {
  width: 12px; height: 13px; flex-shrink: 0;
  fill: var(--d-primary); transition: transform .2s; display: inline-block;
}
.acc.open .ach { transform: rotate(45deg); }

.acc-title, .at { font-size: 14px; font-weight: 600; color: var(--d-text); flex: 1; }

.acc-tags { display: flex; gap: 5px; flex-shrink: 0; }

.accordion-body, .ab { padding: 0 1rem .9rem; display: none; border-top: 1px solid var(--d-gray-border); }
.accordion.open .accordion-body,
.acc.open       .ab             { display: block; }
.accordion-body p, .ab p { font-size: 13px; color: var(--d-text-muted); line-height: 1.6; margin-top: .65rem; }
.ab ul { font-size: 13px; color: var(--d-text-muted); line-height: 1.6; margin: .5rem 0 .5rem 1.2rem; padding: 0; }
.ab ul li { margin-bottom: .2rem; }
.ab span { font-size: 13px; color: var(--d-text-muted); line-height: 1.6; }

/* ── Accordion Bildergalerie ────────────────────────────────── */

.acc-gallery, .gal { margin-top: .9rem; }

.acc-gallery-strip {
  display: flex; gap: 8px; align-items: flex-start;
  justify-content: center;
}

.acc-gallery-item, .gi {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
}

.gi.gi-single {
  flex: 0 0 50%;
  max-width: 50%;
}

.gi-img-wrap {
  position: relative; overflow: hidden; border-radius: 3px;
  border: 1px solid var(--d-gray-border);
  transition: border-color .15s, box-shadow .15s;
  aspect-ratio: 16/9; width: 100%;
}
.acc-gallery-item img, .gi img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .25s, transform .2s;
}
.gi-img-wrap::after {
  content: '⊕';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: rgba(255,255,255,.0);
  background: rgba(0,0,0,.18);
  transition: color .2s, background .2s;
  pointer-events: none;
}
.acc-gallery-item:hover .gi-img-wrap,
.gi:hover .gi-img-wrap {
  border-color: var(--d-primary-border); box-shadow: 0 0 0 2px #00778b20;
}
.acc-gallery-item:hover img,
.gi:hover img {
  filter: grayscale(0%); transform: scale(1.03);
}
.acc-gallery-item:hover .gi-img-wrap::after,
.gi:hover .gi-img-wrap::after {
  color: rgba(255,255,255,.9);
  background: rgba(0,119,139,.25);
}

.acc-gallery-caption, .gc { font-size: 11px; color: var(--d-text-light); text-align: center; line-height: 1.4; }

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════════ */
.lb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10, 22, 32, .9); z-index: 9000;
  align-items: center; justify-content: center; flex-direction: column;
}
.lb-overlay.open { display: flex; }
 
.lb-stage {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; max-width: 92vw; width: 100%;
}
 
.lb-img {
  display: block; max-width: 76vw; max-height: 72vh;
  width: auto; height: auto;
  border-radius: 5px; border: 1px solid rgba(255,255,255,.12);
  object-fit: contain; background: #fff;
}
 
.lb-arrow {
  background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background .15s; font-size: 18px;
  color: #fff;
}
.lb-arrow:hover { background: rgba(255,255,255,.45); }
.lb-arrow.lb-disabled { opacity: .25; cursor: default; pointer-events: none; }
 
.lb-caption-row {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 14px; width: 100%; padding: 0 60px;
}
.lb-caption { font-size: 13px; color: rgba(255,255,255,.85); text-align: center; flex: 1; font-family: 'Segoe UI', Arial, sans-serif; }
.lb-counter  { font-size: 12px; color: rgba(255,255,255,.45); white-space: nowrap; font-family: 'Segoe UI', Arial, sans-serif; }
 
.lb-close {
  position: fixed; top: 18px; right: 22px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,255,255,.8); line-height: 1;
  transition: background .15s; z-index: 9001;
}
.lb-close:hover { background: rgba(255,255,255,.22); }
/* ══════════════════════════════════════════════════════════════
   KONTAKT-BANNER
   ══════════════════════════════════════════════════════════════ */

.rn-contact-banner {
  background: var(--d-primary-bg);
  padding: .6rem 2rem;
  border-top: 1px solid var(--d-primary-mid);
  margin-top: 2rem;
}

.rcb-top { margin-bottom: .4rem; }

.rcb-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--d-text-muted);
}

.rcb-sub {
  font-size: 11px;
  color: var(--d-text-light);
  margin-top: 1px;
}

hr.rcb-divider {
  border: none;
  border-top: 1px solid var(--d-gray-border);
  margin-bottom: .5rem;
}

.rcb-am-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .15rem .75rem;
}

.rcb-am-name {
  font-size: 10px;
  font-weight: 400;
  color: var(--d-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
}

.rcb-am-name:hover {
  color: var(--d-primary);
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .rcb-am-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .rcb-am-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem .5rem; }
}
