/* ============================================================
   Dice & Screen — Handbuch-Hub Styles
   Bronze-Dark-Stil, basiert auf itemhandbuch/styles.css
   Nur Hub-Bedarf: Hero, Karten, Platzhalter, Footer
   ============================================================ */

:root {
  --dns-bronze: #cb9b4c;
  --dns-deep-shadow: #141313;
  --dns-warm-black: #1f1914;
  --dns-cyan: #5c8899;
  --dns-soft-sand: #f5e6c2;
  --dns-glow-gold: rgba(203, 155, 76, 0.35);
  --dns-glow-cyan: rgba(92, 136, 153, 0.35);
  --dns-shadow-black: rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dns-soft-sand);
  background:
    radial-gradient(circle at 14% 18%, rgba(203, 155, 76, 0.2), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(92, 136, 153, 0.2), transparent 40%),
    radial-gradient(circle at 50% 76%, rgba(151, 97, 46, 0.2), transparent 48%),
    linear-gradient(180deg, var(--dns-deep-shadow) 0%, #1b1511 42%, #100d0b 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    125deg,
    rgba(255, 227, 173, 0.35) 0,
    rgba(255, 227, 173, 0.35) 1px,
    transparent 1px,
    transparent 14px
  );
}

/* ===== LAYOUT ===== */
.handbuch-root {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* ===== NAVIGATION ===== */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(203, 155, 76, 0.32);
  background: rgba(27, 21, 16, 0.7);
  color: #ddb46e;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}
.nav-back:hover {
  border-color: rgba(203, 155, 76, 0.6);
  box-shadow: 0 0 16px rgba(203, 155, 76, 0.18);
  color: #f4d79a;
}

/* ===== HERO ===== */
.index-hero {
  text-align: center;
  padding: 60px 20px 40px;
  margin-bottom: 30px;
}
.index-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f6e5bf;
  text-shadow: 0 0 20px var(--dns-glow-gold), 0 0 9px rgba(203, 155, 76, 0.25);
  margin-bottom: 10px;
}
.index-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #ddb46e;
  margin-bottom: 6px;
}
.index-tagline {
  font-size: 0.95rem;
  color: #a89878;
}

/* ===== 2-LINK-KARTE (Creator-Tool Sub-Seiten) ===== */
.hub-card-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.hub-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  border: 1px solid rgba(203, 155, 76, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 239, 206, 0.08), rgba(255, 239, 206, 0.02) 48%),
    rgba(27, 21, 16, 0.82);
  box-shadow:
    0 10px 28px var(--dns-shadow-black),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 22px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-left: 3px solid rgba(203, 155, 76, 0.5);
}
.hub-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 155, 76, 0.55);
  box-shadow:
    0 14px 32px var(--dns-shadow-black),
    0 0 22px rgba(203, 155, 76, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.hub-card-link-icon {
  font-size: 1.8rem;
  flex: 0 0 auto;
  line-height: 1;
}
.hub-card-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hub-card-link-text strong {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #f6e5bf;
}
.hub-card-link-text em {
  font-style: normal;
  font-size: 0.88rem;
  color: #e4d2ad;
  line-height: 1.5;
}

/* ===== INFO-NOTE (Hub-Hinweis) ===== */
.hub-info-note {
  background: rgba(203, 155, 76, 0.08);
  border-left: 3px solid rgba(203, 155, 76, 0.5);
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #e4d2ad;
}
.hub-info-note strong {
  color: #f6e5bf;
  font-family: 'Cinzel', serif;
}
.hub-info-note a {
  color: #ddb46e;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hub-info-note a:hover {
  color: #f4d79a;
}

/* ===== KARTEN-GRID ===== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

/* Einzelne zentrierte Karte (z.B. Creator-Handbuch) */
.hub-grid-single {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.hub-grid-single .hub-card {
  width: 100%;
  max-width: 520px;
}

/* ===== HUB-KARTE (aktiv) ===== */
.hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 1px solid rgba(203, 155, 76, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 239, 206, 0.08), rgba(255, 239, 206, 0.02) 48%),
    rgba(27, 21, 16, 0.82);
  box-shadow:
    0 10px 28px var(--dns-shadow-black),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 28px 30px;
  min-height: 200px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border-left: 3px solid rgba(203, 155, 76, 0.5);
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(203, 155, 76, 0.55);
  box-shadow:
    0 16px 36px var(--dns-shadow-black),
    0 0 22px rgba(203, 155, 76, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hub-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(203, 155, 76, 0.18), rgba(203, 155, 76, 0.04) 70%);
  box-shadow: 0 0 18px rgba(203, 155, 76, 0.12), inset 0 0 12px rgba(203, 155, 76, 0.08);
}

.hub-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f6e5bf;
  margin-bottom: 6px;
}

.hub-card-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: #ddb46e;
  margin-bottom: 10px;
}

.hub-card-desc {
  font-size: 0.92rem;
  color: #e4d2ad;
  line-height: 1.6;
  flex: 1;
}

.hub-card-cta {
  margin-top: 16px;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  color: #ddb46e;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.hub-card:hover .hub-card-cta {
  color: #f4d79a;
}

/* Sub-Link-Anzeige in Hub-Karten (Basisanleitung · Schema) */
.hub-card-sub-links {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  color: #a89878;
  letter-spacing: 0.02em;
}
.hub-card-sub-links span:nth-child(2) {
  color: rgba(203, 155, 76, 0.4);
}
.hub-card:hover .hub-card-sub-links {
  color: #c9a84c;
}

/* 2 Links in einer Hub-Karte (Creator-Tools) */
.hub-card-links {
  margin-top: 18px;
  display: block;
  width: 100%;
}
.hub-card-links a {
  display: block;
  width: fit-content;
  color: #ddb46e;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}
.hub-card-links a::after {
  content: "→";
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}
.hub-card-links a:hover {
  color: #f4d79a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(203, 155, 76, 0.6);
}
.hub-card-links a:hover::after {
  transform: translateX(3px);
}

/* ===== HUB-KARTE (Platzhalter / "Folgt") ===== */
.hub-card-upcoming {
  border-style: dashed;
  border-color: rgba(203, 155, 76, 0.2);
  border-left: 3px dashed rgba(203, 155, 76, 0.2);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(27, 21, 16, 0.82),
      rgba(27, 21, 16, 0.82) 18px,
      rgba(20, 19, 19, 0.82) 18px,
      rgba(20, 19, 19, 0.82) 36px
    );
  cursor: default;
}
.hub-card-upcoming:hover {
  transform: none;
  border-color: rgba(203, 155, 76, 0.2);
  box-shadow:
    0 10px 28px var(--dns-shadow-black),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hub-card-upcoming .hub-card h2,
.hub-card-upcoming h2 {
  color: #a89878;
}

.hub-card-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(203, 155, 76, 0.3);
  background: rgba(203, 155, 76, 0.06);
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  color: #a89878;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
.hub-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(203, 155, 76, 0.18);
  font-size: 0.85rem;
  color: #a89878;
}
.hub-footer a {
  color: #ddb46e;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hub-footer a:hover {
  color: #f4d79a;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .handbuch-root {
    padding: 40px 16px 60px;
  }
  .index-hero {
    padding: 40px 16px 30px;
  }
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hub-card {
    padding: 22px 24px;
    min-height: auto;
  }
}

@media (max-width: 500px) {
  .index-hero h1 {
    font-size: 2rem;
  }
}
