.name-generator-hero {
  height: auto;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  align-items: start;
  padding: clamp(2.25rem, 5vw, 4rem) 1rem clamp(3rem, 6vw, 5rem);
}

.name-generator-hero::after {
  background-image: url("../img/Webseite_BG.png");
  background-position: center;
}

.name-generator-card {
  width: min(980px, calc(100% - 40px));
  padding: clamp(1.7rem, 4vw, 2.6rem);
}

.name-generator-intro {
  width: min(700px, 100%) !important;
  max-width: none;
  margin-bottom: 1.7rem !important;
}

.name-generator-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(245, 240, 232, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.30);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.name-generator-option {
  min-width: 0;
}

.name-generator-option label {
  display: block;
  margin: 0 0 0.42rem;
  color: rgba(245, 240, 232, 0.72);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.name-generator-option select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 2.2rem 0.55rem 0.72rem;
  color: var(--white);
  background: #181818;
  border: 1px solid rgba(245, 240, 232, 0.24);
  border-radius: 7px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 140ms ease, border-color 140ms ease;
}

.name-generator-option select:hover:not(:disabled),
.name-generator-option select:focus-visible:not(:disabled) {
  border-color: rgba(245, 240, 232, 0.48);
  outline: none;
}

.name-generator-option select:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.name-generator-action {
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.name-generator-button {
  width: 100%;
  max-width: none;
  min-height: 2.65rem;
  margin: 0;
  font-size: 0.9rem;
}

.name-generator-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.name-generator-panel {
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(245, 240, 232, 0.20);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
  text-align: left;
}

.name-generator-panel h2 {
  margin: 0;
  color: var(--white);
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-size: clamp(1.45rem, 2.7vw, 1.9rem);
  font-weight: 500;
  line-height: 1.05;
}

.name-generator-description p {
  width: 100%;
  max-width: none;
  min-height: calc(2 * 1.48em);
  margin: 0.55rem 0 0;
  color: rgba(245, 240, 232, 0.80);
  font-size: 0.94rem;
  line-height: 1.48;
}

.name-generator-results {
  padding-bottom: 1.3rem;
}

.name-generator-list {
  counter-reset: generated-name;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.name-generator-list li {
  counter-increment: generated-name;
  display: flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(245, 240, 232, 0.14);
  border-radius: 7px;
  background: rgba(245, 240, 232, 0.035);
  color: rgba(245, 240, 232, 0.92);
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.name-generator-list li::before {
  content: counter(generated-name, decimal-leading-zero);
  flex: 0 0 2.2rem;
  margin-right: 0.7rem;
  color: rgba(245, 240, 232, 0.44);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.name-generator-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .name-generator-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .name-generator-card {
    width: min(100%, calc(100% - 24px));
    padding: 1.45rem 1rem 1.55rem;
  }

  .name-generator-options,
  .name-generator-list {
    grid-template-columns: 1fr;
  }

  .name-generator-button {
    width: 100%;
  }
}
