
/* =========================================
   RICHWIN DESIGN
   GENEALOGIE – PERSONENVERZEICHNIS
   ========================================= */

.persons-page {
  --persons-bg: #15110d;
  --persons-surface: #211a14;
  --persons-surface-light: #2a2119;
  --persons-border: #4b3a2c;
  --persons-gold: #b38a5a;
  --persons-gold-light: #d8b890;
  --persons-text: #f5efe6;
  --persons-muted: #cdbeaf;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 32px 100px;

  color: var(--persons-text);
}

body:has(.persons-page) {
  background: #15110d;
}


/* =========================================
   EINLEITUNG
   ========================================= */

.persons-intro {
  max-width: 780px;
  margin-bottom: 65px;
}

.persons-back {
  display: inline-flex;
  align-items: center;

  min-height: 36px;
  margin-bottom: 36px;
  padding: 9px 15px;

  border: 1px solid var(--persons-border);
  border-radius: 7px;

  color: var(--persons-text);
  text-decoration: none;
  font-size: 12px;

  transition:
    border-color .2s ease,
    background .2s ease;
}

.persons-back:hover {
  border-color: var(--persons-gold);
  background: rgba(179,138,90,.1);
}

.persons-eyebrow {
  margin: 0 0 13px;

  color: var(--persons-gold-light);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.5;
}

.persons-intro h1 {
  margin: 0 0 19px;

  color: var(--persons-text);

  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
}

.persons-lead {
  margin: 0 0 14px;

  color: var(--persons-gold-light);

  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.persons-description {
  max-width: 700px;
  margin: 0;

  color: var(--persons-muted);

  font-size: 14px;
  line-height: 1.75;
}


/* =========================================
   SEKTIONSTITEL
   ========================================= */

.persons-section-heading {
  margin-bottom: 25px;
}

.persons-section-heading h2 {
  margin: 0 0 10px;

  color: var(--persons-text);

  font-size: clamp(23px, 3vw, 31px);
  font-weight: 800;
  line-height: 1.2;
}

.persons-section-heading > p:not(.persons-eyebrow) {
  max-width: 700px;
  margin: 0;

  color: var(--persons-muted);

  font-size: 13px;
  line-height: 1.7;
}


/* =========================================
   ALPHABETISCHES REGISTER
   ========================================= */

.persons-register {
  padding: 32px;

  border: 1px solid var(--persons-border);
  border-radius: 14px;

  background:
    radial-gradient(
      ellipse at 12% 5%,
      rgba(160,110,65,.12),
      transparent 65%
    ),
    linear-gradient(
      145deg,
      var(--persons-surface),
      #18130f
    );
}

.persons-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.persons-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 43px;

  height: 43px;
  padding: 0;

  border: 1px solid #725439;
  border-radius: 6px;

  background: rgba(24,19,15,.7);
  color: var(--persons-text);

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}


/* STARTSEITE HERVORHEBEN */

.persons-letter-start {
  flex-basis: 75px;

  border-color: var(--persons-gold);
  background: var(--persons-gold);
  color: #15110d;
}


/* HOVER UND AKTIVE BUCHSTABEN */

.persons-letter:hover,
.persons-letter:focus-visible,
.persons-letter[aria-current="page"] {
  background: var(--persons-gold);
  border-color: var(--persons-gold-light);

  color: #15110d;

  transform: translateY(-2px);
}

.persons-letter-start:hover,
.persons-letter-start:focus-visible {
  background: var(--persons-gold-light);
}


/* BUCHSTABEN MIT NAMENSÜBERSICHT */

.persons-letter-index {
  border-color: var(--persons-gold);
}


/* X – NICHT BELEGT */

.persons-letter-disabled {
  border-color: #63352f;
  background: #48201d;

  color: #a98b87;

  cursor: not-allowed;
  opacity: .65;
}

.persons-letter-disabled:hover {
  transform: none;
  background: #48201d;
  border-color: #63352f;
  color: #a98b87;
}


/* INFORMATION UNTER DEM ALPHABET */

.persons-register-hint {
  margin: 23px 0 0;

  color: var(--persons-muted);

  font-size: 12px;
  line-height: 1.65;
}


/* =========================================
   NAMENSVERZEICHNIS-VERLINKUNG
   ========================================= */

.persons-name-index {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
  margin-top: 30px;
  padding: 30px 34px;

  border: 1px solid var(--persons-border);
  border-radius: 12px;

  background: linear-gradient(
    140deg,
    #291e15,
    #19130e
  );
}

.persons-name-index > div {
  max-width: 620px;
}

.persons-name-index h2 {
  margin: 0 0 12px;

  color: var(--persons-text);

  font-size: 21px;
  line-height: 1.3;
}

.persons-name-index p:not(.persons-eyebrow) {
  margin: 0;

  color: var(--persons-muted);

  font-size: 13px;
  line-height: 1.7;
}

.persons-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
  gap: 12px;

  padding: 12px 16px;

  border: 1px solid var(--persons-gold);
  border-radius: 8px;

  color: var(--persons-text);

  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;

  transition:
    border-color .2s ease,
    background .2s ease;
}

.persons-action span {
  color: var(--persons-gold-light);

  font-size: 21px;
  line-height: .7;
}

.persons-action:hover {
  border-color: var(--persons-gold-light);
  background: rgba(179,138,90,.14);
}


/* =========================================
   INFORMATIONSKACHELN
   ========================================= */

.persons-information {
  margin-top: 75px;
}

.persons-information-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 15px;
}

.persons-info-card {
  min-width: 0;
  padding: 28px 25px;

  border: 1px solid var(--persons-border);
  border-radius: 12px;

  background: linear-gradient(
    150deg,
    #291f17,
    #17120e
  );
}

.persons-info-number {
  margin-bottom: 20px;

  color: rgba(216,184,144,.55);

  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.persons-info-card h3 {
  margin: 0 0 14px;

  color: var(--persons-text);

  font-size: 17px;
  line-height: 1.3;
}

.persons-info-card p {
  margin: 0 0 12px;

  color: var(--persons-muted);

  font-size: 12px;
  line-height: 1.75;
}

.persons-info-card p:last-child {
  margin-bottom: 0;
}


/* =========================================
   DATENSCHUTZHINWEIS
   ========================================= */

.persons-notice {
  display: grid;
  grid-template-columns: 40px 1fr;

  gap: 20px;
  margin-top: 35px;
  padding: 27px 30px;

  border: 1px solid rgba(179,138,90,.35);
  border-radius: 12px;

  background: rgba(42,33,25,.6);
}

.persons-notice-symbol {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: 1px solid var(--persons-gold);
  border-radius: 50%;

  color: var(--persons-gold-light);

  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
}

.persons-notice h2 {
  margin: 0 0 14px;

  color: var(--persons-gold-light);

  font-size: 17px;
}

.persons-notice p {
  margin: 0 0 11px;

  color: var(--persons-muted);

  font-size: 12px;
  line-height: 1.75;
}

.persons-notice a {
  display: inline-block;
  margin-top: 6px;

  color: var(--persons-gold-light);

  font-size: 12px;
  text-decoration: none;
}

.persons-notice a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================
   ABSCHLUSS
   ========================================= */

.persons-status {
  margin-top: 35px;
  padding: 20px 0;

  border-top: 1px solid var(--persons-border);
}

.persons-status p {
  margin: 0;

  color: var(--persons-muted);

  font-size: 12px;
  line-height: 1.65;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 950px) {

  .persons-page {
    padding: 35px 24px 80px;
  }

  .persons-information-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================================
   SMARTPHONE
   ========================================= */

@media (max-width: 650px) {

  .persons-page {
    padding: 28px 18px 65px;
  }

  .persons-intro {
    margin-bottom: 45px;
  }

  .persons-register {
    padding: 22px 17px;
  }

  .persons-alphabet {
    gap: 6px;
  }

  .persons-letter {
    flex-basis: 38px;
    height: 38px;
  }

  .persons-letter-start {
    flex-basis: 70px;
  }

  .persons-name-index {
    flex-direction: column;
    align-items: flex-start;

    padding: 25px 21px;
  }

  .persons-action {
    white-space: normal;
  }

  .persons-information {
    margin-top: 55px;
  }

  .persons-information-grid {
    grid-template-columns: 1fr;
  }

  .persons-notice {
    grid-template-columns: 1fr;
    padding: 23px 20px;
  }

}


/* =========================================
   REDUZIERTE BEWEGUNG
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  .persons-page a {
    transition: none;
  }

}
