/* =========================================
   Overlay for Bio / bio modal
   self-contained, responsive
========================================= */

.bio-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bio-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bio-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(6px);
}

.bio-modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(680px, calc(100% - 2rem));
  max-height: min(86dvh, 900px);
  margin: 0;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(17, 21, 38, 0.96),
    rgba(15, 19, 34, 0.92)
  );
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.2s ease;
}

.bio-overlay.is-open .bio-modal {
  transform: translateY(0) scale(1);
}

.bio-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.bio-modal__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.45);
}

.bio-modal__close:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.bio-modal__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.bio-modal__title {
  margin: 0 0 0.35rem;
  padding-right: 3rem;
  font-size: 2rem;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.bio-modal__role {
  margin: 0 0 1.25rem;
  color: var(--accent2);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bio-modal__text {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.6rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bio-modal__text p {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
  white-space: break-spaces;
  text-align: justify;
}

.bio-modal__text > * + * {
  margin-top: 1rem;
}

.bio-modal__text::-webkit-scrollbar {
  width: 6px;
}

.bio-modal__text::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--accent);
}

.bio-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.bio-download:hover {
  transform: translateY(-1px);
  border-color: var(--accent2);
  background: rgba(46, 229, 157, 0.12);
}

.bio-download:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .bio-overlay {
    padding: 0.75rem;
  }

  .bio-modal {
    width: min(100%, calc(100% - 1rem));
    max-height: 88dvh;
    padding: 1.4rem;
    border-radius: 22px;
  }

  .bio-modal__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.bio-modal__title {
    font-size: 1.65rem;
    padding-right: 2.75rem;
  }

  .bio-modal__role {
    margin-bottom: 1rem;
  }

  .bio-modal__text {
    padding-right: 0.35rem;
  }

  .bio-modal__close {
    top: 0.85rem;
    right: 0.85rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .bio-modal {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .bio-modal__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.bio-modal__title {
    font-size: 1.4rem;
  }

  .bio-modal__role {
    font-size: 0.95rem;
  }

  .bio-download {
    width: 100%;
    justify-content: center;
  }
}


@media (max-height: 920px) and (min-width: 681px) {
  .bio-modal {
    max-height: 82dvh;
    padding: 1.75rem;
  }
}

@media (max-height: 820px) and (min-width: 681px) {
  .bio-modal {
    max-height: 78dvh;
    padding: 1.5rem;
  }

  .bio-modal__title {
    font-size: 1.8rem;
  }

  .bio-modal__role {
    margin-bottom: 0.9rem;
  }

  .bio-download {
    margin-top: 1rem;
  }
}

@media (max-height: 760px) {
  .bio-modal {
    max-height: 76dvh;
    padding: 1.25rem;
  }

  .bio-modal__title {
    font-size: 1.55rem;
  }

  .bio-modal__role {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
  }

  .bio-download {
    margin-top: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-overlay,
  .bio-modal,
  .bio-modal__close,
  .bio-download {
    transition: none;
  }
}

/* =========================================
   Shared CD-Bestellung overlay
========================================= */

.cd-order-overlay {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.cd-order-overlay.is-open,
.cd-order-overlay:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cd-order-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.76);
  backdrop-filter: blur(8px);
}

.cd-order-modal {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(17, 21, 38, 0.97),
    rgba(10, 14, 28, 0.97)
  );
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s ease;
}

.cd-order-overlay.is-open .cd-order-modal,
.cd-order-overlay:target .cd-order-modal {
  transform: translateY(0) scale(1);
}

.cd-order-modal__content {
  padding: 2rem;
}

.cd-order-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.cd-order-modal__close:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(46, 229, 157, 0.45);
}

.cd-order-modal__close:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.cd-order-kicker {
  margin: 0 0 0.4rem;
  color: #f4e7ba;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cd-order-modal__title {
  margin: 0;
  padding-right: 3rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-family: "Raleway", sans-serif;
  font-weight: 300;
}

.cd-order-cover {
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  max-width: min(100%, 760px);
  text-align: center;
}

.cd-order-cover__button {
  position: relative;
  display: block;
  width: 55%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.cd-order-cover__button::after {
  content: "⌕";
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(4, 8, 18, 0.68);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.86;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.cd-order-cover__button:focus-visible {
  outline: 2px solid rgba(46, 229, 157, 0.85);
  outline-offset: 4px;
}

.cd-order-cover__button img {
  display: block;
  width: 100%;
  max-height: clamp(9rem, 24vw, 13.5rem);
  object-fit: contain;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.cd-order-cover__button:hover::after,
.cd-order-cover__button:focus-visible::after {
  opacity: 1;
  transform: scale(1.08);
  background: rgba(4, 8, 18, 0.82);
}

.cd-order-cover__button:hover img,
.cd-order-cover__button:focus-visible img {
  transform: scale(1.015);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.cd-order-cover figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  opacity: 0.78;
}

.cd-order-intro {
  display: grid;
  gap: 0.75rem;
  margin: 0.9rem 0 1.5rem;
  color: whitesmoke;
  line-height: 1.6;
}

.cd-order-intro p {
  margin: 0;
}

.cd-order-form {
  display: grid;
  gap: 1rem;
}

.cd-order-status {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  line-height: 1.5;
}

.cd-order-status[data-status="success"] {
  border-color: rgba(46, 229, 157, 0.45);
  background: rgba(46, 229, 157, 0.1);
}

.cd-order-status[data-status="error"] {
  border-color: rgba(255, 118, 118, 0.55);
  background: rgba(255, 118, 118, 0.1);
}

.cd-order-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cd-order-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cd-order-field,
.cd-order-fieldset {
  display: grid;
  gap: 0.45rem;
}

.cd-order-fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.cd-order-fieldset--compact {
  align-content: start;
}

.cd-order-field label,
.cd-order-fieldset legend {
  color: var(--text);
  font-size: 0.95rem;
}

.cd-order-fieldset legend {
  padding: 0 0.35rem;
}

.cd-order-required {
  color: var(--accent2);
}

.cd-order-field input,
.cd-order-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.cd-order-field input:focus,
.cd-order-field textarea:focus {
  border-color: rgba(46, 229, 157, 0.5);
  box-shadow: 0 0 0 3px rgba(46, 229, 157, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.cd-order-field textarea {
  min-height: 120px;
  resize: vertical;
}

.cd-order-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.cd-order-choice,
.cd-order-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
}

.cd-order-choice input,
.cd-order-consent input {
  margin-top: 0.25rem;
  accent-color: var(--accent2);
}

.cd-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.cd-cover-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  overflow: hidden;
  background: rgba(4, 6, 18, 0.78);
  backdrop-filter: blur(8px);
}

.cd-cover-lightbox[aria-hidden="true"] {
  display: none;
}

.cd-cover-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.cd-cover-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
}

.cd-cover-lightbox__dialog img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.cd-cover-lightbox__close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(4, 8, 18, 0.9);
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.cd-cover-lightbox__close:hover {
  transform: scale(1.04);
  background: rgba(13, 18, 34, 0.96);
  border-color: rgba(46, 229, 157, 0.45);
}

.cd-cover-lightbox__close:focus-visible {
  outline: 2px solid rgba(46, 229, 157, 0.85);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .cd-order-cover__button {
    width: min(72%, 18rem);
  }

  .cd-order-cover__button img {
    max-height: 10.5rem;
  }

  .cd-cover-lightbox {
    padding: 1rem;
  }

  .cd-cover-lightbox__dialog {
    max-width: 94vw;
    max-height: 80vh;
  }

  .cd-cover-lightbox__dialog img {
    max-height: 78vh;
  }
}

@media (max-height: 780px) {
  .cd-order-overlay {
    place-items: start center;
    overflow-y: auto;
    padding: 0.75rem;
  }

  .cd-order-modal {
    max-height: calc(100dvh - 1.5rem);
  }
}

@media (max-width: 720px) {
  .cd-order-modal__content {
    padding: 1.25rem;
  }

  .cd-order-form__grid {
    grid-template-columns: 1fr;
  }

  .cd-order-actions .btn {
    justify-content: center;
    width: 100%;
  }
}
