/* Skip link (aus Layout.astro) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: #fff;
  padding: 0.75em 1.2em;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header (aus Header.astro) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.logo-img {
  height: 58px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--ink);
  margin: 0 8px;
}

.primary-nav > ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.primary-nav > ul > li {
  position: relative;
}
.primary-nav > ul > li > a {
  display: block;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.primary-nav > ul > li.active > a,
.primary-nav > ul > li > a:hover {
  color: var(--signal-dark);
  border-bottom-color: var(--signal);
}

.sub-nav {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: -0.9rem;
  min-width: 220px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px -12px rgba(28, 43, 54, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-children:hover .sub-nav,
.has-children:focus-within .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-nav a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.sub-nav a:hover { background: var(--paper); color: var(--signal-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 88px 0 0 0;
    background: var(--paper);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    border-top: 1px solid var(--line);
  }
  .primary-nav.open { transform: translateX(0); }

  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 2rem;
  }
  .primary-nav > ul > li > a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .sub-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0.5rem 1rem;
    display: none;
  }
  .has-children.open .sub-nav { display: block; }
}

/* Footer (aus Footer.astro) */
.site-footer {
  background: var(--ink);
  color: #b9c3cd;
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}
.footer-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}
.site-footer p { color: #b9c3cd; margin: 0 0 0.9em; line-height: 1.6; }
.site-footer a { color: #dfe5ea; }
.site-footer a:hover { color: var(--signal); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.2rem 0;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; color: #8492a0; }

.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  color: #dfe5ea;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.cookie-settings-link:hover { color: var(--signal); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Lightbox (aus Lightbox.astro, war :global) */
main img:not([data-no-lightbox]) {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  flex-direction: column;
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox-caption {
  color: #dfe5ea;
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  margin: 1rem 0 0;
  text-align: center;
  max-width: 70ch;
}
.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-nav.show {
  display: flex;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-prev {
  left: clamp(0.5rem, 3vw, 1.75rem);
}
.lightbox-next {
  right: clamp(0.5rem, 3vw, 1.75rem);
}
@media (max-width: 640px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }
}

/* Cookie-Consent-Banner (aus CookieConsent.astro) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  display: none;
}
.cookie-banner.open {
  display: block;
}
.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text {
  color: #dfe5ea;
  font-size: 0.88rem;
  margin: 0;
  max-width: 70ch;
  flex: 1 1 320px;
}
.cookie-text a {
  color: #fff;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}
.btn-ghost-cookie {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #dfe5ea;
  padding: 0.7em 1.4em;
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-ghost-cookie:hover {
  background: rgba(255, 255, 255, 0.08);
}
.cookie-actions .btn {
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}
