
* { box-sizing: border-box; }

:root {
  --bg: #0f0c1a;
  --bg-2: #120f22;
  --panel: rgba(23, 19, 39, 0.92);
  --panel-2: rgba(30, 25, 51, 0.96);
  --text: #f4f0ff;
  --muted: #c8c2e2;
  --accent: #b18cff;
  --accent-2: #7dd3fc;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --content-width: 1180px;
  --content-narrow: 980px;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(177, 140, 255, 0.14), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { line-height: 1.55; }

h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
button, a { font-family: inherit; }

.site-shell { min-height: 100vh; }

.content-wrap {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 9, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brandmark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
}

.brandmark-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.brandmark-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
}

.main-nav a:hover { color: var(--text); }

.hero-section { padding: 64px 0 28px; }

.hero-inner {
  width: min(100%, var(--content-narrow));
}

.hero-eyebrow,
.eyebrow,
.info-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.hero-section h1 {
  margin-top: 10px;
  max-width: none;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
}

.hero-copy {
  margin-top: 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-copy p + p {
  margin-top: 1.5em;
}

.page-hero .hero-inner {
  width: min(calc(100% - 32px), var(--content-width));
  max-width: var(--content-width);
  margin: 0 auto;
}

.page-hero .hero-copy {
  max-width: none;
}

.media-card > .section-header {
  display: none;
}


.finder-section { padding: 12px 0 28px; }

.app-shell { display: grid; gap: 22px; }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.site-header-copy { max-width: 760px; }

.subtitle {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 22px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.18s ease;
}

.question-container h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 16px;
}

.answers { display: grid; gap: 12px; }

.answer-button,
.primary-button,
.secondary-button,
.ghost-button,
.lang-button {
  appearance: none;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    color 0.12s ease;
}

.answer-button {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text);
}

.answer-button:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 140, 255, 0.55);
}

.answer-button.selected {
  background: rgba(177, 140, 255, 0.16);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(177, 140, 255, 0.12);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.primary-button {
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  color: #fff;
}

.secondary-button,
.ghost-button,
.lang-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.lang-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

.lang-button.active {
  background: rgba(177, 140, 255, 0.18);
  border-color: rgba(177, 140, 255, 0.5);
}

.lang-label {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.flag {
  position: relative;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  overflow: hidden;
  flex: 0 0 auto;
}

.flag-de {
  background: linear-gradient(to bottom, #111 0 33.33%, #c62828 33.33% 66.66%, #f7c948 66.66% 100%);
}

.flag-en {
  background: #1d3b8b;
}

.flag-en::before,
.flag-en::after,
.flag-en-diagonals::before,
.flag-en-diagonals::after {
  content: "";
  position: absolute;
  inset: 0;
}

.flag-en::before {
  background:
    linear-gradient(to right, transparent 40%, #fff 40% 60%, transparent 60%),
    linear-gradient(to bottom, transparent 35%, #fff 35% 65%, transparent 65%);
}

.flag-en::after {
  background:
    linear-gradient(to right, transparent 45%, #d92525 45% 55%, transparent 55%),
    linear-gradient(to bottom, transparent 40%, #d92525 40% 60%, transparent 60%);
}

.flag-en-diagonals::before {
  background: linear-gradient(28deg, transparent 43%, #fff 43% 50%, transparent 50% 57%, #fff 57% 64%, transparent 64%);
}

.flag-en-diagonals::after {
  background: linear-gradient(-28deg, transparent 43%, #fff 43% 50%, transparent 50% 57%, #fff 57% 64%, transparent 64%);
}

.media-card { display: flex; flex-direction: column; }

.question-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  min-height: 340px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

#question-image,
.question-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.question-image-fallback {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.full-width { grid-column: 1 / -1; }

.profile-preview,
.result-list { display: grid; gap: 10px; }

.profile-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  gap: 12px;
  align-items: center;
}

.profile-row span {
  color: var(--muted);
  font-size: 0.95rem;
}

.meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.result-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.result-card h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.result-card p,
.result-card li,
.result-card span {
  color: var(--muted);
}

.hidden { display: none !important; }

.info-section { padding: 18px 0 48px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.info-card h2 {
  margin-top: 8px;
  margin-bottom: 10px;
}

.info-card p:last-child {
  color: var(--muted);
}

.global-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: rgba(10, 8, 16, 0.62);
}

.footer-inner {
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .layout,
  .results-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    padding-right: 0;
    padding-top: 56px;
  }

  .lang-toggle {
    top: 14px;
    right: 0;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero-section {
    padding-top: 48px;
  }

  .hero-section h1 {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .content-wrap {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .card,
  .info-card {
    padding: 20px;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .actions,
  .header-actions {
    width: 100%;
  }

  .actions > *,
  .header-actions > * {
    width: 100%;
  }
}






/* =========================
   RESULT BOXES (COMPACT)
========================= */

.result-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.result-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.result-title-wrap {
  display: grid;
  gap: 4px;
}

.result-title-wrap strong {
  font-size: 1rem;
  line-height: 1.25;
}

.result-score {
  color: var(--accent-2);
  font-size: 0.92rem;
}

.result-short {
  color: var(--muted);
  line-height: 1.45;
}

.result-long {
  margin-top: 2px;
  color: var(--text);
  line-height: 1.55;
}

.icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-fallback {
  font-size: 1rem;
  color: var(--muted);
}

.combo-icons {
  position: relative;
  width: 74px;
  height: 48px;
  flex-shrink: 0;
}

.combo-icons .icon-bubble {
  position: absolute;
  top: 0;
}

.combo-icons .icon-bubble:first-child {
  left: 0;
  z-index: 2;
}

.combo-icons .icon-bubble:last-child {
  left: 26px;
  z-index: 1;
}

/* =========================
   LANGUAGE SWITCH IN MENU
========================= */

.header-inner {
  position: relative;
  padding-right: 196px;
}

.menu-language-switch {
  position: absolute;
  top: 10px;
  right: 0;
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 78px;
}

.lang-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-button.active {
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.28);
}

.lang-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.86rem;
}

.flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.18);
}

.flag-de {
  background: linear-gradient(180deg, #111111 0% 33.333%, #d00027 33.333% 66.666%, #ffce00 66.666% 100%);
}

.flag-en {
  background: #012169;
}

.flag-en::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 33%, #ffffff 33% 67%, transparent 67% 100%),
    linear-gradient(180deg, transparent 0 33%, #ffffff 33% 67%, transparent 67% 100%);
}

.flag-en::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%),
    linear-gradient(180deg, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%);
}

.flag-en-diagonals {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(35deg, transparent 0 37%, #ffffff 37% 47%, transparent 47% 53%, #ffffff 53% 63%, transparent 63% 100%),
    linear-gradient(-35deg, transparent 0 37%, #ffffff 37% 47%, transparent 47% 53%, #ffffff 53% 63%, transparent 63% 100%),
    linear-gradient(35deg, transparent 0 42.5%, #c8102e 42.5% 47%, transparent 47% 53%, #c8102e 53% 57.5%, transparent 57.5% 100%),
    linear-gradient(-35deg, transparent 0 42.5%, #c8102e 42.5% 47%, transparent 47% 53%, #c8102e 53% 57.5%, transparent 57.5% 100%);
}

@media (max-width: 980px) {
  .header-inner {
    padding-right: 0;
  }

  .menu-language-switch {
    position: static;
  }
}

@media (max-width: 680px) {
  .language-switch {
    width: 100%;
  }

  .lang-button {
    flex: 1 1 0;
    min-width: 0;
  }
}


/* =========================
   MATERIAL WIKI PAGE
========================= */

.materials-shell {
  display: grid;
  gap: 20px;
}

.materials-toolbar {
  padding: 18px 20px;
}

.materials-toolbar-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.7fr) auto;
  gap: 14px;
  align-items: end;
}

.materials-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.materials-search,
.materials-select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.materials-search:focus,
.materials-select:focus {
  outline: none;
  border-color: rgba(177, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(177, 140, 255, 0.12);
}

.materials-actions-wrap .secondary-button {
  width: 100%;
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.materials-grid-card,
.materials-detail-card {
  min-height: 100%;
}

.materials-section-header {
  margin-bottom: 16px;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.materials-tile {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 12px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease,
    box-shadow 0.12s ease;
}

.materials-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 140, 255, 0.45);
}

.materials-tile.is-active {
  background: rgba(177, 140, 255, 0.12);
  border-color: rgba(177, 140, 255, 0.7);
  box-shadow: 0 10px 24px rgba(177, 140, 255, 0.12);
}

.materials-tile-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.materials-tile-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.materials-tile-name {
  font-size: 0.94rem;
  line-height: 1.3;
}

.materials-tile-type {
  color: var(--muted);
  font-size: 0.8rem;
}

.materials-empty-note,
.materials-detail-empty {
  color: var(--muted);
}

.materials-detail-top {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: start;
}

.materials-detail-icon-wrap {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.materials-detail-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.materials-detail-headcopy h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
}

.materials-detail-subtitle {
  margin-top: 8px;
  color: var(--muted);
}

.materials-detail-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
}

.materials-detail-inline-label,
.materials-detail-block-label {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.materials-detail-summary-value {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 600;
}

.materials-detail-block {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.materials-detail-block.compact {
  margin-top: 16px;
}

.materials-detail-block p {
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line;
}

.materials-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.materials-stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.materials-stat-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.materials-stat-value {
  font-size: 1.02rem;
  font-weight: 600;
}

@media (max-width: 980px) {
  .materials-toolbar-row,
  .materials-layout,
  .materials-detail-top,
  .materials-stats-grid {
    grid-template-columns: 1fr;
  }

  .materials-detail-icon-wrap {
    width: 112px;
    height: 112px;
  }
}


.main-nav a.is-active {
  color: var(--text);
}

.lore-section {
  padding: 12px 0 72px;
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.lore-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lore-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.lore-card-link:hover .lore-card-cta {
  color: var(--text);
}

.lore-card-link:hover .lore-card-media img {
  transform: scale(1.02);
}

.lore-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

.lore-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.lore-card-media.is-empty {
  display: grid;
  place-items: center;
}

.lore-card-placeholder {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.lore-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.lore-card-body h2 {
  font-size: 1.3rem;
  line-height: 1.18;
}

.lore-card-body p {
  color: var(--muted);
}

.lore-card-cta,
.lore-backnav a {
  color: var(--accent-2);
  font-weight: 600;
}

.lore-backnav {
  margin-bottom: 18px;
}

.lore-backnav a {
  text-decoration: none;
}

.lore-article-shell {
  width: min(100%, 860px);
  margin: 0 auto;
}

.lore-article-header {
  display: grid;
  gap: 24px;
  margin-bottom: 30px;
}

.lore-article-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lore-article-headcopy h1 {
  margin-top: 10px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1;
}

.lore-article-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lore-richtext {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--text);
}

.lore-richtext > * + * {
  margin-top: 1.1em;
}

.lore-richtext h2,
.lore-richtext h3,
.lore-richtext h4 {
  line-height: 1.18;
  margin-top: 2.2em;
}

.lore-richtext p,
.lore-richtext ul,
.lore-richtext ol,
.lore-richtext blockquote,
.lore-richtext figure,
.lore-richtext table {
  color: var(--text);
}

.lore-richtext ul,
.lore-richtext ol {
  padding-left: 1.4rem;
}

.lore-richtext a {
  color: var(--accent-2);
}

.lore-richtext blockquote {
  margin-left: 0;
  padding: 18px 20px;
  border-left: 3px solid rgba(125, 211, 252, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 18px 18px 0;
}

.lore-richtext img,
.lore-richtext video,
.lore-richtext iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 18px;
  display: block;
}

.lore-richtext table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.lore-richtext th,
.lore-richtext td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.lore-status-card {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 26px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lore-status-card.is-error {
  border-color: rgba(177, 140, 255, 0.3);
}

@media (max-width: 700px) {
  .lore-card-body {
    padding: 18px;
  }

  .lore-richtext {
    font-size: 1rem;
  }
}

/* ===== Elegant Quote – Floating Quotes Outside ===== */
.quote {
  margin: 80px auto;
  max-width: 720px;

  text-align: center;
  color: var(--text);

  font-size: 1.35rem;
  line-height: 1.8;
  font-weight: 300;

  position: relative;
}

/* oberes Anführungszeichen (links außen) */
.quote::before {
  content: "“";
  position: absolute;
  left: -40px;
  top: -10px;

  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  font-family: serif;
}

/* unteres Anführungszeichen (rechts außen) */
.quote::after {
  content: "”";
  position: absolute;
  right: -40px;
  bottom: -20px;

  font-size: 4rem;
  color: var(--accent-2);
  opacity: 0.15;
  font-family: serif;
}

/* Zitattext */
.quote p {
  margin: 0;
}

/* dezente Linie unten */
.quote .divider {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--line),
    transparent
  );
  margin: 30px auto 0;
  opacity: 0.6;
}

/* Autor */
.quote .author {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  opacity: 0.7;
}


.result-design-heading {
  margin: 1.25rem 0 0.4rem;
  font-size: 1rem;
}

.result-design-intro {
  margin: 0 0 0.75rem;
  opacity: 0.9;
}

.result-design-text p {
  margin: 0 0 0.75rem;
}

.reset-highlight {
  border: 1px solid rgba(255, 215, 120, 0.7) !important;
  background: rgba(255, 215, 120, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 215, 120, 0.25),
              0 6px 18px rgba(255, 215, 120, 0.15);
  color: #ffe9b8;
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 215, 120, 0.25),
                0 6px 18px rgba(255, 215, 120, 0.15);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 215, 120, 0.4),
                0 10px 28px rgba(255, 215, 120, 0.35);
  }
}

.reset-highlight:hover {
  background: rgba(255, 215, 120, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 215, 120, 0.35),
              0 10px 28px rgba(255, 215, 120, 0.25);
}

/* ===== Wand Signature (Length + Flex) ===== */
.wand-signature {
  font-size: 0.95rem;
  letter-spacing: 0.04em;

  color: #ffe6a3;

  text-shadow:
    0 0 6px rgba(255, 210, 120, 0.35),
    0 0 12px rgba(255, 200, 100, 0.15);

  position: relative;
}

/* optional: ganz feine Linie darunter */
.wand-signature::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-top: 6px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 210, 120, 0.6),
    transparent
  );

  opacity: 0.6;
}

/* =========================================
   SHARE BOX
========================================= */

.result-share-box {
  width: 100%;
  margin-top: 32px;
}

.result-share-box.hidden {
  display: none;
}

.result-share-box__inner {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

/* Header */

.result-share-box__header h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--text);
}

.result-share-box__header p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

/* Input + Copy Row */

.result-share-box__field-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: stretch;
}

/* Input Feld */

.result-share-box__input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  line-height: 46px;

  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);

  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.result-share-box__input:hover {
  background: rgba(255, 255, 255, 0.07);
}

.result-share-box__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 3px rgba(177, 140, 255, 0.12);
}

.result-share-box__input::selection {
  background: rgba(177, 140, 255, 0.28);
  color: var(--text);
}

/* Copy Button (wie deine Navigation Buttons) */

.result-share-box__copy {
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;

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

.result-share-box__copy:hover {
  background: rgba(177, 140, 255, 0.08);
  transform: translateY(-1px);
}

.result-share-box__copy:active {
  transform: translateY(0);
}

/* Actions (Icons) */

.result-share-box__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Icon Buttons */

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  text-decoration: none;

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

/* Icon selbst */

.share-icon-btn i {
  font-size: 18px;
  color: var(--text);

  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

/* Hover Effekt */

.share-icon-btn:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.share-icon-btn:hover i {
  transform: scale(1.1);
}

/* Spezielle Farben */

.share-icon-btn.whatsapp i {
  color: #25D366;
}

.share-icon-btn.mail i {
  color: var(--accent);
}

/* Optional: nicer Hover Glow */

.share-icon-btn:hover i.fa-whatsapp {
  color: #3be07d;
}

.share-icon-btn:hover i.fa-envelope {
  color: #c4a3ff;
}

/* Mobile */

@media (max-width: 600px) {
  .result-share-box__field-row {
    flex-direction: column;
  }

  .result-share-box__copy {
    width: 100%;
  }

  .result-share-box__actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}

.logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(177, 140, 255, 0.35));
}

.logo-link {
  display: flex;
  align-items: center;
}

.result-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.result-action-row.two-boxes {
  grid-template-columns: 1fr 1fr;
}

.result-inquiry-box__actions {
  margin-top: 1rem;
}

.result-inquiry-button {
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;

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

.result-inquiry-note {
  margin-top: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .result-action-row.two-boxes {
    grid-template-columns: 1fr;
  }
}

.result-inquiry-details {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.result-inquiry-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.result-inquiry-label {
  color: var(--muted);
}

.result-inquiry-value {
  color: var(--text);
  text-align: right;
  font-weight: 600;
}

.result-inquiry-form {
  margin-top: 16px;
}

.result-inquiry-form__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.result-inquiry-form__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.result-inquiry-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(177, 140, 255, 0.12);
}

.result-inquiry-submit-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 16px;
}

.result-inquiry-email {
  flex: 1;
  min-width: 0;
}

.result-inquiry-button {
  white-space: nowrap;
  min-width: 170px;
}

@media (max-width: 600px) {
  .result-inquiry-submit-row {
    flex-direction: column;
  }

  .result-inquiry-button {
    width: 100%;
    min-width: 0;
  }
}

.inquiry-intro {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}
/* ===== Finder result layout refresh ===== */
.results-grid {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.results-grid-stacked {
  grid-template-columns: 1fr;
}

.results-materials-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.results-collapsible-summary::-webkit-details-marker {
  display: none;
}

.results-collapsible-summary h3 {
  margin: 0;
}

.results-collapsible-summary::after {
  content: none !important;
}

.results-collapsible[open] .results-collapsible-summary::after {
  content: "−";
}

.result-list {
  display: grid;
  gap: 14px;
}

.result-item {
  gap: 14px;
}

.result-title-wrap {
  gap: 6px;
}

.result-linked-name-wrap {
  display: block;
}

.result-linked-name {
  color: var(--text);
  text-decoration: none;
}

.result-linked-name:hover {
  color: var(--accent-2);
}

.result-summary {
  color: var(--text);   /* leicht hervorgehoben */
  font-weight: 400;         /* NICHT fett */
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 4px;
}

.result-top3 {
  color: var(--accent-2);
  font-size: 0.92rem;
  line-height: 1.4;
}

.result-description {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.6;
}

.combination-item {
  gap: 18px;
}

.result-combination-paragraph {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.result-combination-paragraph + .result-combination-paragraph {
  margin-top: 4px;
}

/* ===== Materials page refresh ===== */
.materials-toolbar-row.single {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.materials-search-wrap-wide {
  min-width: 0;
}

.materials-search-dropdown-wrap {
  position: relative;
}

.materials-count {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.materials-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 15, 34, 0.98);
  box-shadow: var(--shadow);
}

.materials-dropdown.is-open {
  display: block;
}

.materials-dropdown-item,
.materials-dropdown-empty {
  width: 100%;
  padding: 14px 16px;
}

.materials-dropdown-item {
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.materials-dropdown-item:last-child {
  border-bottom: 0;
}

.materials-dropdown-item:hover,
.materials-dropdown-item.is-active {
  background: rgba(177, 140, 255, 0.12);
}

.materials-dropdown-item-main {
  display: grid;
  gap: 2px;
}

.materials-dropdown-item-name {
  font-weight: 600;
}

.materials-dropdown-item-sub,
.materials-dropdown-item-type,
.materials-dropdown-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.materials-detail-card-full {
  width: 100%;
}

.materials-detail-top-wide {
  grid-template-columns: 132px minmax(0, 1fr);
}

.materials-stock-inline {
  color: #79d98a;
  font-size: 0.92rem;
  font-weight: 600;
  margin-left: auto;
  text-align: right;
}

.materials-detail-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.materials-detail-block p + p {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .results-grid,
  .results-materials-row,
  .materials-toolbar-row.single,
  .materials-detail-top-wide {
    grid-template-columns: 1fr;
  }

  .materials-actions-wrap .secondary-button {
    width: 100%;
  }
}

.results-collapsible-summary .chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease, opacity 0.2s ease;
  opacity: 0.75;
  margin-left: 12px;
}

.results-collapsible-summary:hover .chevron {
  opacity: 1;
}

.results-collapsible[open] .results-collapsible-summary .chevron {
  transform: rotate(-135deg);
}

/* ===== Finder results polish fix ===== */
.results-collapsible {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.results-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  border: 0;
	background: transparent;
	width: 100%;
	text-align: left;
	font: inherit;
	color: inherit;
}

.results-collapsible-summary::-webkit-details-marker {
  display: none;
}

.results-collapsible-summary::after,
.results-collapsible[open] .results-collapsible-summary::after {
  content: none !important;
}

.results-collapsible-summary > #profile-heading,
.results-collapsible-summary > span:first-child {
  flex: 1 1 auto;
}

.results-collapsible-summary .chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin-left: auto;
  border-right: 2px solid rgba(244, 240, 255, 0.85);
  border-bottom: 2px solid rgba(244, 240, 255, 0.85);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
  opacity: 0.78;
}

.results-collapsible-summary:hover .chevron {
  opacity: 1;
}

.results-collapsible[open] .results-collapsible-summary .chevron {
  transform: rotate(-135deg);
}

.results-collapsible-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 20px;
  transition: max-height 0.38s ease, opacity 0.28s ease, padding-top 0.28s ease, padding-bottom 0.28s ease;
}

.results-collapsible.is-open .results-collapsible-content {
  max-height: 1000px;
  opacity: 1;
  padding-top: 2px;
  padding-bottom: 20px;
}

.result-item {
  gap: 12px;
}

.result-header {
  align-items: start;
}

.result-title-wrap {
  display: grid;
  gap: 5px;
  align-content: start;
}

.result-linked-name,
.result-combination-title a {
  color: var(--text);
  text-decoration: none;
}

.result-linked-name:hover,
.result-combination-title a:hover {
  color: var(--accent-2);
}

.result-combination-title {
  font-size: 1rem;
  line-height: 1.28;
}

.result-top3 {
  color: var(--accent-2);
  font-size: 0.92rem;
  line-height: 1.45;
}

.result-description {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.62;
}

.combination-item {
  gap: 16px;
}

.result-combination-paragraph {
  margin: 0;
  color: var(--text);
  line-height: 1.72;
}

.result-combination-paragraph + .result-combination-paragraph {
  margin-top: 2px;
}

#combinations-heading,
#woods-heading,
#cores-heading {
  margin-bottom: 12px;
}

.result-item-collapsible {
  gap: 0;
  overflow: hidden;
}

.result-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.result-toggle .result-title-wrap {
  gap: 4px;
}

.result-card-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(244, 240, 255, 0.85);
  border-bottom: 2px solid rgba(244, 240, 255, 0.85);
  transform: rotate(45deg);
  transition: transform 0.25s ease, opacity 0.2s ease;
  opacity: 0.78;
  margin-left: 12px;
}

.result-item-collapsible.is-open .result-card-chevron {
  transform: rotate(-135deg);
}

.result-collapsible-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
  margin-top: 0;
}

.result-item-collapsible.is-open .result-collapsible-content {
  max-height: 320px;
  opacity: 1;
  margin-top: 12px;
}

.result-more-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-2);
  text-decoration: none;
}

.result-more-link:hover {
  color: var(--text);
}

.result-item-collapsible .result-header {
  align-items: center;
}

.info-link {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  text-decoration: none;
}

.info-link:hover {
  background: rgba(177, 140, 255, 0.12);
}

.hero-title {
  width: 100%;
  text-align: center;
  margin: 0;
}

.hero-logo {
  max-width: 420px;   /* anpassen */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 32px auto;
}

.footer-link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  margin: 0 6px;
}

.footer-link:hover {
  opacity: 0.7;
}