
/* =========================================================
   0) Reset & Base
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Nata Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background-color: #202020;
  color: #939393;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #e59928;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#content a[target="_blank"][rel~="noopener"]::after{
    content:"";
    display:inline-block;
    width:1.1em;
    height:1.1em;
    background-color: currentColor;
    -webkit-mask: no-repeat center / contain
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h5v2H7v10h10v-3h2v5H5V5z"/></svg>');
    mask: no-repeat center / contain
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h5v2H7v10h10v-3h2v5H5V5z"/></svg>');
    vertical-align: sub;
}
#content a[data-wh-icon-added][target="_blank"][rel~="noopener"]::after {
  display: none;
}

p {
  line-height: 1.6;
  margin-bottom: 0.5em;
}

ul,
ol {
  padding: 1em 0;
}

ul {
  list-style: square;
}

ol {
  list-style: decimal;
}

ul ul,
ol ol,
ol ul,
ul ol {
  padding: 0;
}

ul li,
ol li {
  margin: 5px 0 5px 30px;
  padding-bottom: 5px;
  line-height: 1.6em;
}

ul li li,
ol li li {
  font-weight: normal;
}

li li {
  color: #777777;
}

/* Basis */
dl{ margin:1rem 0 1.5rem; }
dt{
  color:#fff; font-weight:700;
  margin-top:.9rem;
}
dd{
  margin:.25rem 0 0;
  padding-left:.8rem;
  color:#cfcfcf;
  border-left:2px solid #2a2a2a;
}
dd + dt{ margin-top:1rem; }

input[type="checkbox"] {
  cursor: pointer;
}

/* =========================================================
   1) Typography
   ========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fff;
  font-family: "Cinzel", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  margin: 20px 0 5px 0;
}

h1 {
  font-size: 3.4rem;
  letter-spacing: .005em;
}

h2 {
  font-size: 2rem;
  letter-spacing: .003em;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: .003em;
}

h4 {
  font-size: 1.2rem;
}

.lead {
  font-size: 1.2em;
}

.text-align-center {
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

del.schutz {
  text-decoration: none;
}

/* =========================================================
   2) Layout / Structure
   ========================================================= */
.inner {
  max-width: 1100px;
  margin: 0 auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.container,
.guide,
.guide-grid {
  overflow: visible;
}

/* ensure sticky isn't clipped */

.website {
  position: relative;
  min-height: 100vh;
}

html, body { height: 100%; }
.website { min-height: 100dvh; display: flex; flex-direction: column; }
#content { flex: 1 0 auto; padding-bottom: 20px; }     /* Inhalt füllt den verfügbaren Platz */
footer   { position: relative; margin-top: auto; }   /* schiebt den Footer nach unten */

/* space for footer */

.row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.row .row {
  gap: 10px;
}

.col {
  flex: 1;
}

.col-8 {
  flex: 2;
}

.col-4 {
  flex: 1;
}

/* =========================================================
   3) Header & Navigation
   ========================================================= */
header.website-header {
  background-color: #272727;
  padding: 20px 0;
  border-bottom: 2px solid #1e1e1e;
  margin-bottom: 50px;
}

header.website-header>.inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.site-title {
  margin: 0;
}

.site-title a {
  display: block;
  align-items: center;
  text-decoration: none;
}

.site-title img {
  display: block;
  height: 60px;
}

nav.main,
nav.social {
  display: flex;
  flex-direction: row;
  align-items: center;
}

nav.main ul,
nav.social ul {
  display: flex;
  flex-direction: row;
  list-style: none;
}

nav.main ul li,
nav.social ul li {
  margin: 0 35px 0 0;
}

nav.main ul li:last-child,
nav.social ul li:last-child {
  margin-right: 0;
}

nav.main ul li a {
  color: #e59928;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
}

nav.social img {
  width: 24px;
  height: 24px;
}

nav.social ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
}

.nav-link.is-active {
  color: #fff;
  font-weight: 600;
  position: relative;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* =========================================================
   4) Footer
   ========================================================= */
footer {
  padding: 20px 0;
  background-color: #272727;
  color: #aaa;
  text-align: center;
  border-top: 2px solid #1e1e1e;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

footer nav ul li {
  margin: 0 10px;
}

footer nav ul li:last-child {
  margin-right: 0;
}

footer nav ul li a {
  color: #aaa;
  text-decoration: underline;
  font-size: 0.8rem;
}

footer .trademark {
  font-size: 0.8rem;
  color: #767676;
  margin: 10px 0;
}

/* =========================================================
   5) Sidebar
   ========================================================= */
.sidebar p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.sidebar ul.cards {
  margin: 0;
  padding: 0;
}

.sidebar h3 {
  padding-top: 0;
  margin-top: 15px;
}
.main h2 {
  padding-top: 0;
  margin-top: 15px;
}

/* =========================================================
   6) Cards
   ========================================================= */
.cards {
  list-style: none;
}

.cards .card {
  margin: 0;
}

.card a {
  display: block;
  background-color: #422a4f;
  padding: 10px 15px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cards a .title {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.cards a .description {
  font-size: 0.9rem;
}

.cards a .meta {
  font-size: 0.8rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  padding: 1em;
}

.cards a .meta .category {
  background-color: #422a4f;
  padding: 2px 5px;
  border-radius: 3px;
  margin-right: 10px;
  text-transform: uppercase;
}
.cards a .meta .category.news {
    background-color: #811c1c;
}

.cards a .meta .date {
  background-color: #ffffff1c;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.cards a img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s ease;
  max-height: 185px;
}

.cards a:hover {
  box-shadow: 0 0px 0px 1px rgb(96 59 101);
}

.cards.big a {
  background-color: #131313;
  padding: 10px 15px 0;
  text-shadow: 1px 1px 0px #00000061;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cards.big a:hover {
  box-shadow: 0 0px 0px 1px rgb(66 40 69);
}

.cards.big a:hover img {
  transform: scale(1.1);
}

.grid.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

article.card {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Nata Sans';
  font-size: 1.05rem;
  margin: .25rem 0 .35rem;
}

.card-teaser {
  opacity: .9;
  margin: 0 0 .6rem;
}

.card-meta {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.card-actions {
  margin-top: auto;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.card-thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  padding: .5rem .8rem;
  border-radius: 10px;
  text-decoration: none;
}

.btn:hover {
  background: #5d3c6f;
}

/* =========================================================
   7) Sparkles (decoration)
   ========================================================= */
.sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sparkles .spark {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  animation: sparkRiseUp 2.5s linear infinite;
}

.sparkles .spark:nth-child(1) {
  left: 8%;
  animation-delay: 0.2s;
}

.sparkles .spark:nth-child(2) {
  left: 15%;
  animation-delay: 0.5s;
}

.sparkles .spark:nth-child(3) {
  left: 25%;
  animation-delay: 0.0s;
}

.sparkles .spark:nth-child(4) {
  left: 35%;
  animation-delay: 0.7s;
}

.sparkles .spark:nth-child(5) {
  left: 45%;
  animation-delay: 0.3s;
}

.sparkles .spark:nth-child(6) {
  left: 55%;
  animation-delay: 0.9s;
}

.sparkles .spark:nth-child(7) {
  left: 65%;
  animation-delay: 0.4s;
}

.sparkles .spark:nth-child(8) {
  left: 75%;
  animation-delay: 0.8s;
}

.sparkles .spark:nth-child(9) {
  left: 85%;
  animation-delay: 0.6s;
}

@keyframes sparkRiseUp {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(-200px) scale(0.2);
    opacity: 0;
  }
}

/* =========================================================
   8) Filters (chips)
   ========================================================= */
.filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

/* Base style */
.chip {
  --chip-color: #bbb;
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chip-color) 60%, #444 40%);
  color: var(--chip-color);
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  user-select: none;
}

.chip:hover {
  background: color-mix(in srgb, var(--chip-color) 12%, transparent);
  border-color: var(--chip-color);
}

.chip.is-active {
  background: color-mix(in srgb, var(--chip-color) 20%, transparent);
  border-color: var(--chip-color);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-color) 35%, transparent);
}

.chip:focus-visible {
  outline: 2px solid var(--chip-color);
  outline-offset: 2px;
}

/* Neutral */
.filters .chip[data-filter="all"],
.filters .chip[data-filter-class="all"],
.filters .chip[data-filter-type="all"] {
  --chip-color: #bfbfbf;
}

/* Addons – tags */
.filters .chip[data-filter="mplus"] {
  --chip-color: #00BFA5;
}

.filters .chip[data-filter="raid"] {
  --chip-color: #E57373;
}

.filters .chip[data-filter="ui"] {
  --chip-color: #7E57C2;
}

.filters .chip[data-filter="level"] {
  --chip-color: #FFA726;
}

.filters .chip[data-filter="trade"] {
  --chip-color: #FFC107;
}

.filters .chip[data-filter="qol"] {
  --chip-color: #90A4AE;
}

/* WeakAuren – types */
.filters .chip[data-filter-type="rotation"] {
  --chip-color: #50E3C2;
}

.filters .chip[data-filter-type="defense"] {
  --chip-color: #FF8A65;
}

.filters .chip[data-filter-type="interrupt"] {
  --chip-color: #FFD166;
}

.filters .chip[data-filter-type="boss"] {
  --chip-color: #A29BFE;
}

.filters .chip[data-filter-type="timer"] {
  --chip-color: #4FC3F7;
}

.filters .chip[data-filter-type="utility"] {
  --chip-color: #B2FF59;
}

.filters .chip[data-filter-type="mplus"] {
  --chip-color: #00BFA5;
}

/* WeakAuren – class colors */
.filters .chip[data-filter-class="death-knight"] {
  --chip-color: #C41F3B;
}

.filters .chip[data-filter-class="demon-hunter"] {
  --chip-color: #A330C9;
}

.filters .chip[data-filter-class="druid"] {
  --chip-color: #FF7D0A;
}

.filters .chip[data-filter-class="evoker"] {
  --chip-color: #33937F;
}

.filters .chip[data-filter-class="hunter"] {
  --chip-color: #A9D271;
}

.filters .chip[data-filter-class="mage"] {
  --chip-color: #40C7EB;
}

.filters .chip[data-filter-class="monk"] {
  --chip-color: #00FF96;
}

.filters .chip[data-filter-class="paladin"] {
  --chip-color: #F58CBA;
}

.filters .chip[data-filter-class="priest"] {
  --chip-color: #FFFFFF;
}

.filters .chip[data-filter-class="rogue"] {
  --chip-color: #FFF569;
}

.filters .chip[data-filter-class="shaman"] {
  --chip-color: #0070DE;
}

.filters .chip[data-filter-class="warlock"] {
  --chip-color: #8787ED;
}

.filters .chip[data-filter-class="warrior"] {
  --chip-color: #C79C6E;
}

/* =========================================================
   9) Badges (keep legacy + new variable-based)
   ========================================================= */
/* Legacy badge (kept for compatibility; overridden below) */
.badge {
  background: #2a2a2a;
  border-radius: 999px;
  padding: .15rem .45rem;
  font-size: .75rem;
}

/* Modern variable-based badge (takes precedence) */
.badge {
  --badge-color: #bbb;
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--badge-color);
  background: transparent;
  font-size: .75rem;
  line-height: 1.2;
  white-space: nowrap;
}

.badge--solid {
  background: color-mix(in srgb, currentColor 18%, transparent);
}

.card-meta .badge {
  margin-right: .35rem;
  margin-bottom: .25rem;
}

/* Class badge colors */
.badge--class[data-class="death-knight"] {
  --badge-color: #C41F3B;
}

.badge--class[data-class="demon-hunter"] {
  --badge-color: #A330C9;
}

.badge--class[data-class="druid"] {
  --badge-color: #FF7D0A;
}

.badge--class[data-class="evoker"] {
  --badge-color: #33937F;
}

.badge--class[data-class="hunter"] {
  --badge-color: #A9D271;
}

.badge--class[data-class="mage"] {
  --badge-color: #40C7EB;
}

.badge--class[data-class="monk"] {
  --badge-color: #00FF96;
}

.badge--class[data-class="paladin"] {
  --badge-color: #F58CBA;
}

.badge--class[data-class="priest"] {
  --badge-color: #FFFFFF;
}

.badge--class[data-class="rogue"] {
  --badge-color: #FFF569;
}

.badge--class[data-class="shaman"] {
  --badge-color: #0070DE;
}

.badge--class[data-class="warlock"] {
  --badge-color: #8787ED;
}

.badge--class[data-class="warrior"] {
  --badge-color: #C79C6E;
}

/* Better legibility for very light colors when solid */
.badge--class.badge--solid[data-class="priest"],
.badge--class.badge--solid[data-class="rogue"],
.badge--class.badge--solid[data-class="hunter"],
.badge--class.badge--solid[data-class="mage"] {
  color: #111;
  border-color: transparent;
  background: color-mix(in srgb, var(--badge-color) 55%, #111 0%);
}

/* Type badges */
.badge--type[data-type="rotation"] {
  --badge-color: #50E3C2;
}

.badge--type[data-type="defense"] {
  --badge-color: #FF8A65;
}

.badge--type[data-type="interrupt"] {
  --badge-color: #FFD166;
}

.badge--type[data-type="boss"] {
  --badge-color: #A29BFE;
}

.badge--type[data-type="timer"] {
  --badge-color: #4FC3F7;
}

.badge--type[data-type="utility"] {
  --badge-color: #B2FF59;
}

.badge--type[data-type="mplus"] {
  --badge-color: #00BFA5;
}

/* Addon tag badges */
.badge--tag[data-tag="mplus"] {
  --badge-color: #00BFA5;
}

.badge--tag[data-tag="raid"] {
  --badge-color: #E57373;
}

.badge--tag[data-tag="ui"] {
  --badge-color: #7E57C2;
}

.badge--tag[data-tag="level"] {
  --badge-color: #FFA726;
}

.badge--tag[data-tag="trade"] {
  --badge-color: #FFC107;
}

.badge--tag[data-tag="qol"] {
  --badge-color: #90A4AE;
}

.d-meta{display:flex;flex-wrap:wrap;gap:.35rem;margin:.35rem 0 .6rem}
.pill{--c:#888;display:inline-block;padding:.2rem .55rem;border-radius:999px;
  font-size:.8rem;line-height:1.1;color:#111;background:var(--c)}
/* optionale Farbakzente je nach Thema */
.pill.grey{
    --c:#555555;
    color: #fff;
}
.pill.green{
    --c:#1f8b7c;
    color: #fff;
}
.pill.blue{
    --c:#297adf;
    color: #fff;
}
.pill.orange{
    --c:#e59928;
    color: #fff;
}
.pill.yellow{
    --c:#ad941c;
    color: #fff;
}
.pill.purple{
    --c:#7E57C2;
    color: #fff;
}
.pill.red{
    --c:#c25757;
    color: #fff;
}
.pill.lightgrey{
    --c:#90A4AE;
    color: #fff;
}
.pill.lightblue{
    --c:#2e9cd3;
    color: #fff;
}
.pill.darkblue{
    --c:#1f2b65;
    color: #fff;
}
.pill.lightgreen{
    --c:#498b1f;
    color: #fff;
}
.pill.brown{
    --c:#c28357;
    color: #fff;
}
.pill.pink {
    --c:#7d3e61;
    color: #fff;
}




/* =========================================================
   10) Guide Page (layout, toc, sections)
   ========================================================= */
/* Head & meta */
.guide-head .lead {
  opacity: .9;
  margin: .25rem 0 1.5rem;
}

.guide-meta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  opacity: .9;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

/* Grid: Content + right TOC */
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky aside TOC */
.guide-toc {
  position: sticky;
  top: 1em;
  height: max-content;
  align-self: start;
  z-index: 1;
}

.toc-box {
  position: static;
  max-height: calc(100vh - var(--header-offset, 80px) - 32px);
  overflow: auto;
  padding: .9rem;
}

.toc-title {
  display: block;
  margin-bottom: .5rem;
  opacity: .9;
}

#toc-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

#toc-nav li {
  margin: .25rem 0;
  padding: 0;
}

#toc-nav a {
  display: block;
  text-decoration: none;
  padding: .5rem .5rem;
  border-radius: 8px;
  color: #cfcfcf;
}

#toc-nav a:hover {
  background: #272727;
}

#toc-nav a.is-current {
  background: #333;
  color: #fff;
}

#toc-nav .lvl-2 a {
  font-weight: 600;
}

#toc-nav .lvl-3 a {
  padding-left: 1.2rem;
  font-size: .95em;
  opacity: .95;
}

.toc-top {
  display: inline-block;
  margin-top: .6rem;
  font-size: .9rem;
}

/* Sections within guide content */
.guide-content section, .gadget section {
  background: #181818;
  padding: 1em 1em 0.5em;
  border-radius: 5px;
  border: 1px solid #2a2a2a;
  margin-bottom: 2em;
  color: #bbb;
}
strong {
  color: #c9c9c9;
}

/* First heading in a section: tighten top margin */
section>h2:first-child,
section>h3:first-child {
  margin-top: 0;
}

/* Scroll offset for anchor jumps */
.guide-content h2,
.guide-content h3 {
  scroll-margin-top: 50px;
}

/* adjust h3 font family inside guide sections */
.guide-content section h3 {
  font-family: "Nata Sans", sans-serif;
}

.guide-content figure {
  padding: 1em 0;
}

/* =========================================================
   11) Tables (unchanged structure)
   ========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  padding: 10px;
  text-align: left;
}

table thead th {
  background-color: #000000;
  color: #fff;
}

table tr:nth-child(even) {
  background-color: #ffffff05;
}

table tr:nth-child(odd) {
  background: #00000017;
}

table caption {
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

table img {
  max-width: 100px;
  height: auto;
  border-radius: 5px;
}

tr.break {
  border-top: 3px solid #444;
}

table th.subhead {
  background-color: #101010;
  color: #8b8b8b;
  font-weight: normal;
  font-size: 0.8em;
  padding: 0.2em 0.7em;
}

/* color helpers used inside tables */
.white {
  color: #ffffff;
}

.green {
  color: #1ea11e;
}

.blue {
  color: #3074cd;
}

.purple {
  color: #b333b3;
}

.orange {
  color: #ffa500;
}

.yellow {
  color: #c5c230;
}

.grey {
  color: #808080;
}

.red {
  color: #991a1a;
}

/* Media helpers */
figcaption {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.5em;
  text-align: center;
}

.tierlist img {
  max-width: 40px;
}

/* =========================================================
   12) Mobile adjustments
   ========================================================= */
@media (max-width: 1120px){
  .inner {
    padding-left: 10px;
    padding-right: 10px;
  }
  header.website-header>.inner {
    flex-direction: column;
  }
  nav.main ul {
    justify-content: center;
    width: 100%;
  }
  nav.social { display: none; }
  .site-title img {
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .guide-toc {
    position: static;
  }
}

@media (max-width: 900px){
  .row{ flex-direction: column; gap: 16px; }
  .col, .col-8, .col-4{ flex: 1 1 auto; }
  .cards .row {
    gap: 0;
  }
}
@media (max-width: 800px){
  h1 {
    font-size: 2.5em;
  }
  h2 {
    font-size: 1.6rem;
  }
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
  }
  .table-wrap {
    overflow-x: scroll;
    width: 100%;
  }
}
@media (max-width: 670px){
  nav.main ul, nav.meta ul {
    flex-wrap: wrap;
  }
  nav.meta ul {
    justify-content: center;
    width: 100%;
  }
  nav.main ul li, nav.meta ul li {
    margin: 0 15px 10px;
    text-align: center;
  }
}





/* 1) Flex-/Grid-Items dürfen kleiner als ihr Inhalt werden */
.guide-content { 
  min-width: 0;
}

/* 2) Der Scroll-Wrapper muss begrenzen und scrollen dürfen */
.table-wrap{
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 3) Tabelle darf breiter sein als der Viewport (dann Scrollbar) */
.table-wrap > table{
  min-width: 600px;     /* optional: Mindestbreite, wenn dir das gefällt */
  border-collapse: collapse;
}

/* 4) (Optional) sehr lange Strings in Zellen brechen können */
.table-wrap td, 
.table-wrap th{
  overflow-wrap: break-word; /* nur setzen, wenn URLs/IDs alles sprengen */
}

pre {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    border: 1px solid rgb(0 0 0 / 20%);
    background: rgb(0 0 0 / 10%);
    padding: 0.5em;
    margin: 0.5em 0;
}

code {
  display: block;        /* macht es zu einem Block, wie <pre> */
  font-family: monospace;
  background: #313131;
  color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 0.5em 0;
  white-space: pre-line;
}
code.inline {
  display: inline-block;
  padding: 3px 5px;
  font-size: 1rem;
  margin: 0;
  line-height: 1em;
}

.wow-streamer-bar {
  background:#150f18;
  color:#fff;
  padding:1rem;
}
.wow-streamer-bar__title {
  font-weight:600;
  margin-bottom:1rem;
  text-align: center;
}
.wow-streamer-bar__list {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin:0; padding:0;
  justify-content:center;
}
.wow-streamer-bar__list li {
  text-align:center;
}
.wow-streamer-bar__list a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
}
.wow-streamer-bar__list img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  will-change: filter, transform;
}
.wow-streamer-bar__list a:hover img {
    filter: none;
}
.wow-streamer-bar__list span {
  margin-top:0.4rem;
}

.tiles {
  background: url("../img/tiles.png") repeat;
  padding: 1em;
  margin-bottom: 2em;
  min-height: 200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.tiles img {
  max-width: 320px;
}

.big {
  font-size: 1.2em;
}



.tabset { 
  margin: 1.5rem 0; 
  --surface: #1f2227;          /* Panel-Hintergrund (dark) */
  --panel:   #14171b;          /* Content-Fläche */
  --border:  #2a2a2a;          /* Rahmenfarbe */
  --text:    #e7e9ee;
  --muted:   #9aa3ad;
}
.tabset .tabs{
  display:flex; flex-wrap:wrap; align-items:flex-end; gap:0 .25rem;
}
.tabset .tab{ position:relative; order:0; }
.tabset .tab input{ position:absolute; inset:0; opacity:0; pointer-events:none; }
.tabset .tab span{
  display:inline-block; padding:.55rem 1rem; line-height:1;
  color: #e59928;
  border-bottom:none;
  border-radius:5px 5px 0 0; cursor:pointer; user-select:none;
}
.tabset .tab span:hover{ filter:brightness(1.05); }
.tabset .tab span:focus-visible{ outline:2px solid #60a5fa; outline-offset:2px; }
.tabset .panel{
  order:1; flex: 1 1 100%; display:none;
  border:1px solid var(--border);
  padding: 1rem 1.25rem;
}
.tabset label:has(> input:checked) span{
  border:1px solid var(--border);
  border-bottom: 1px solid #181818;
  margin-bottom: -1px;
}
.tabset label:has(> input:checked) + .panel{ display:block; }
/* Mobile/Overflow – Tabs umbrechen oder horizontal scrollen */
@media (max-width: 640px){
  .tabset .tabs{ padding:.25rem }
  .tabset .tab span{ font-size:.95rem }
}
.tabs{ overflow:auto; scrollbar-width:thin }
.tabs::-webkit-scrollbar{ height:6px }
.tabs::-webkit-scrollbar-thumb{ background:#3a414a; border-radius:4px }
/* Optional: SEO-/NoScript-Fallback – macht alle Panels sichtbar, wenn CSS/JS blockiert */
noscript .panel, .no-css .panel{ display:block !important }

.text-color-arcane     { color:#5fb3f9; }  /* Arkan  */
.text-color-fire       { color:#ff4500; }  /* Feuer  */
.text-color-frost      { color:#58c4ff; }  /* Frost  */
.text-color-holy       { color:#ffd64a; }  /* Heilig */
.text-color-nature     { color:#6ad36e; }  /* Natur  */
.text-color-shadow     { color:#b084ff; }  /* Schatten */
.text-color-physical   { color:#c79c6e; }  /* Physisch */
.table--wow .sep { opacity:.6; }

.text-color-astral      { color:#bf80ff; }
.text-color-chaos       { color:#a330c9; }
.text-color-cosmic      { color:#c0b660; }
.text-color-elemental   { color:#aad555; }
.text-color-flamestrike { color:#ff9966; }
.text-color-frostfire   { color:#ff80b2; }
.text-color-froststorm  { color:#80ff80; }
.text-color-froststrike { color:#a3d8d8; }
.text-color-holystorm   { color:#bfff80; }
.text-color-holystrike  { color:#e6c080; }
.text-color-plague      { color:#80bf40; }
.text-color-radiant     { color:#ffbf00; }
.text-color-shadowflame { color:#bf8040; }
.text-color-shadowfrost { color:#80bfbf; }
.text-color-shadowstrike{ color:#a94e7d; }
.text-color-spellfire   { color:#ff40bf; }
.text-color-spellfrost  { color:#33acff; }
.text-color-spellstrike { color:#df80b2; }
.text-color-stormstrike { color:#a3d896; }
.text-color-twilight    { color:#bfbf40; }
.text-color-volcanic    { color:#ffbf40; }

.col-8 .col-6 p.title {
    font-size: 1.1em;
}

/* === Crest Calculator UI Addons === */
:root {
  --cc-gap: 16px;
  --cc-gap-lg: 24px;
  --cc-muted: rgba(255,255,255,.65);
  --cc-ok: #53d36b;
  --cc-warn: #f0a45d;
  --cc-bad: #ff7373;
}

/* Grid helpers */
.cc-grid { display: grid; gap: var(--cc-gap); }
.cc-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cc-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cc-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px){ .cc-grid-4{grid-template-columns: repeat(2,1fr);} }
@media (max-width: 700px){
  .cc-grid-2, .cc-grid-3, .cc-grid-4 { grid-template-columns: 1fr; }
}

/* Cards: nutzt deine bestehende Card-Optik; nur Abstände vereinheitlichen */
.cc-card { padding: 16px; border-radius: 10px; background: var(--card-bg, #11151b); box-shadow: var(--card-shadow, 0 0 0 1px rgba(255,255,255,.06)); }
.cc-card h3 { margin: 0 0 8px; font-size: 15px; letter-spacing:.2px; }
.cc-section { margin-top: 28px; }
.cc-muted { color: var(--cc-muted); }

/* KPI */
.cc-kpi { display:flex; align-items: center; justify-content: space-between; }
.cc-kpi .cc-num { font-size: 42px; font-weight: 700; line-height: 1; }
.cc-kpi small { display:block; margin-top: 4px; color: var(--cc-muted); }

/* Crest tiles */
.cc-crest { display:flex; flex-direction: column; gap: 6px; }
.cc-crest .cc-rows { display:grid; grid-template-columns: repeat(2,auto); gap: 4px 10px; align-items:center; }
.cc-badge { display:inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 18px; }
.cc-badge.ok { background: rgba(83,211,107,.12); color: var(--cc-ok); }
.cc-badge.warn { background: rgba(240,164,93,.12); color: var(--cc-warn); }
.cc-badge.bad { background: rgba(255,115,115,.12); color: var(--cc-bad); }

/* Table */
.cc-table { width:100%; border-collapse: collapse; }
.cc-table th, .cc-table td { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.06); }
.cc-table th { text-align:left; font-weight:600; color: var(--cc-muted); }

/* Tiny helpers */
.cc-row { display:flex; align-items:center; gap: 10px; }
.cc-right { text-align:right; margin-left:auto; }
.cc-mt { margin-top: var(--cc-gap); }
.cc-mt-lg { margin-top: var(--cc-gap-lg); }

.gadget textarea {
  padding: 0.5em;
  font-family: 'Nata Sans';
  background: #3b3b3b;
  color: #dfdfdf;
  overflow:auto;
  scrollbar-width:thin;
  max-width: 100%;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  border: 1px solid #474747;
  font-size: 1rem;
  border-radius: 3px;
}
.gadget textarea::-webkit-scrollbar {
  width: 8px;
}
.gadget textarea::-webkit-scrollbar-track {
  background: transparent;
}
.gadget textarea::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: background-color 0.2s;
}
.gadget textarea::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}
.gadget select {
  padding: 0.36em 0.5em;
  min-width: 200px;
  font-family: 'Nata Sans';
  background: #3b3b3b;
  color: #dfdfdf;
  border: 1px solid #474747;
  font-size: 1rem;
  border-radius: 3px;
}
.gadget input[type="checkbox"] {
  accent-color: #4e2f5f;
  height: 16px;
  width: 16px;
  margin: 3px 0;
}
.gadget label.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.gadget label.checkbox:hover {
  background: rgba(255, 255, 255, 0.05);
}
.gadget button {
  padding: 0.5em 1.5em 0.4em;
  background: #422a4f;
  color: #fff;
  border: 1px solid #4e2f5f;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2em;
  margin: 0.2em 0;
}
.gadget .col.card {
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  padding: 1em;
}
.gadget .grid > .row {
  padding-bottom: 1em;
}
.gadget .calcresult {
  font-size: 3em;
}
.gadget .calcresult .small {
  font-size: 0.6em;
}