/* ================================================================
   nordische-runen.de — Viking Design System
   ================================================================ */

@import url('fonts.css');

/* ----------------------------------------------------------------
   CSS Variables
---------------------------------------------------------------- */
:root {
  --bg:          #0a0a10;
  --bg-card:     #12121c;
  --bg-elevated: #1a1a28;
  --gold:        #c9a227;
  --gold-light:  #e8c050;
  --gold-dim:    #7a6015;
  --forest:      #2a4a35;
  --forest-light:#3d6b4f;
  --text:        #e2d9c8;
  --text-muted:  #b0a28e;
  --text-faint:  #4a4035;
  --border:      #252535;
  --border-gold: rgba(201,162,39,0.25);
  --rune-red:    #8b2020;
}

/* ----------------------------------------------------------------
   Reset & Base
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: rgba(201,162,39,0.3); color: var(--text); }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Verhindert Overflow durch lange Wörter */
body, main, aside, section, article {
  overflow-wrap: break-word;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ----------------------------------------------------------------
   Typography
---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold);
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; color: var(--gold-light); }
h4 { font-size: 1.15rem; color: var(--text); }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-light); }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

strong { color: var(--gold-light); font-weight: 600; }

/* ----------------------------------------------------------------
   Layout
---------------------------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ----------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.site-header {
  background: linear-gradient(180deg, #060609 0%, rgba(6,6,9,0.95) 100%);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.site-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.site-logo .rune-logo {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(201,162,39,0.6);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold);
  background: rgba(201,162,39,0.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s;
}

.mobile-nav {
  display: none;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  display: block;
}
.mobile-nav a:hover { color: var(--gold); background: rgba(201,162,39,0.08); }

.mobile-nav .mobile-sub {
  font-size: 0.72rem;
  padding-left: 1.75rem;
  color: var(--text-faint);
  border-left: 2px solid var(--border);
  margin-left: 0.75rem;
  letter-spacing: 0.05em;
}
.mobile-nav .mobile-sub:hover { color: var(--gold); }

/* Dropdown Nav */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg,#0d0d18 0%,#08080f 100%);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 0.4rem;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  transform: translateX(-50%) translateY(-6px);
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(201,162,39,0.06);
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  font-family: 'Cinzel', serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  display: block;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: var(--gold);
  background: rgba(201,162,39,0.08);
}

/* ----------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(42,74,53,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(201,162,39,0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6,6,9,0.85) 0%, rgba(10,10,20,0.75) 40%, rgba(13,15,12,0.85) 100%),
    url('../img/hero-bg.jpg') center/cover no-repeat;
}

/* Animated rune particles */
.hero-runes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-rune-float {
  position: absolute;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  opacity: 0;
  animation: floatUp var(--dur, 12s) var(--delay, 0s) infinite ease-in-out;
  user-select: none;
  pointer-events: none;
}

@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  15%  { opacity: var(--op, 0.12); }
  85%  { opacity: var(--op, 0.12); }
  100% { opacity: 0; transform: translateY(-120px) rotate(15deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-rune-symbol {
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: 0 0 60px rgba(201,162,39,0.5), 0 0 120px rgba(201,162,39,0.2);
  animation: runeGlow 4s ease-in-out infinite alternate;
}

@keyframes runeGlow {
  from { text-shadow: 0 0 40px rgba(201,162,39,0.4), 0 0 80px rgba(201,162,39,0.15); }
  to   { text-shadow: 0 0 80px rgba(201,162,39,0.7), 0 0 160px rgba(201,162,39,0.3); }
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto;
}

/* ----------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a10;
}
.btn-primary:hover {
  background: var(--gold-light);
  color: #0a0a10;
  box-shadow: 0 0 30px rgba(201,162,39,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}
.btn-outline:hover {
  background: rgba(201,162,39,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ----------------------------------------------------------------
   Section System
---------------------------------------------------------------- */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: #07070d;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
  display: block;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 300px;
  justify-content: center;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.section-divider::after {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.section-divider span {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ----------------------------------------------------------------
   Cards
---------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(201,162,39,0.05);
}

.card-rune {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.card-rune:hover { color: inherit; }

.rune-glyph {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.75rem;
  transition: text-shadow 0.3s;
}

.card:hover .rune-glyph {
  text-shadow: 0 0 30px rgba(201,162,39,0.6);
}

.rune-name-de {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.rune-name-alt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.rune-keyword {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: rgba(201,162,39,0.07);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(201,162,39,0.15);
}

/* ----------------------------------------------------------------
   Rune Grid
---------------------------------------------------------------- */
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.rune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1rem;
}

.rune-grid-large {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

/* ----------------------------------------------------------------
   Aett Section
---------------------------------------------------------------- */
.aett-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.aett-number {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  min-width: 2.5rem;
}

.aett-title { margin-bottom: 0.25rem; }

.aett-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* ----------------------------------------------------------------
   Rune Detail Page
---------------------------------------------------------------- */
.rune-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rune-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(42,74,53,0.2) 0%, transparent 70%);
}

.rune-hero-symbol {
  font-size: clamp(6rem, 15vw, 10rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 80px rgba(201,162,39,0.5), 0 0 200px rgba(201,162,39,0.2);
  margin-bottom: 1.5rem;
  display: block;
  position: relative;
}

.rune-meta-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.badge {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 2px;
  border: 1px solid;
}

.badge-gold { color: var(--gold); border-color: rgba(201,162,39,0.3); background: rgba(201,162,39,0.07); }
.badge-green { color: #6db88a; border-color: rgba(109,184,138,0.3); background: rgba(109,184,138,0.05); }
.badge-red { color: #c06060; border-color: rgba(192,96,96,0.3); background: rgba(192,96,96,0.05); }

/* ----------------------------------------------------------------
   Info Tables
---------------------------------------------------------------- */
.rune-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.rune-info-table tr { border-bottom: 1px solid var(--border); }
.rune-info-table tr:last-child { border-bottom: none; }

.rune-info-table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}

.rune-info-table td:first-child {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 40%;
  white-space: nowrap;
}

.rune-info-table td:last-child {
  color: var(--text);
}

/* ----------------------------------------------------------------
   Sidebar Layout
---------------------------------------------------------------- */
.content-sidebar {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-areas: "sidebar main";
  gap: 3rem;
  align-items: start;
}

.content-sidebar > aside  { grid-area: sidebar; min-width: 0; }
.content-sidebar > main   { grid-area: main;    min-width: 0; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.sidebar-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { color: var(--gold); padding-left: 0.5rem; }

/* ----------------------------------------------------------------
   Meaning Box (Rune-Detailseite)
---------------------------------------------------------------- */
.meaning-box {
  background: linear-gradient(135deg, rgba(201,162,39,0.06), rgba(42,74,53,0.08));
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.meaning-box::before {
  content: attr(data-rune);
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.08;
  pointer-events: none;
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.meaning-item h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.meaning-item p {
  font-size: 0.95rem;
  margin: 0;
}

/* ----------------------------------------------------------------
   Navigation zwischen Runen
---------------------------------------------------------------- */
.rune-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0;
}

.rune-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.rune-nav-link:hover {
  border-color: var(--border-gold);
  background: var(--bg-elevated);
  color: inherit;
}
.rune-nav-link.nav-next { justify-content: flex-end; text-align: right; }

.rune-nav-glyph {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
}

.rune-nav-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.rune-nav-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* ----------------------------------------------------------------
   Features / Info Boxes
---------------------------------------------------------------- */
.info-box {
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
}

.info-box-title {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------------
   FAQ
---------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-question {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-question::after {
  content: '᛭';
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer { display: block; }

/* ----------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.site-footer {
  background: #060609;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-col h5 {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-rune-row {
  letter-spacing: 0.3em;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.2;
  text-align: center;
  margin-bottom: 2rem;
  user-select: none;
}

/* ----------------------------------------------------------------
   Breadcrumb
---------------------------------------------------------------- */
.breadcrumb {
  padding: 0.75rem 0;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold-dim); }

/* ----------------------------------------------------------------
   TOC (Table of Contents)
---------------------------------------------------------------- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-title {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc ol { padding-left: 1.25rem; margin: 0; }
.toc li { margin-bottom: 0.35rem; }
.toc a { font-size: 0.9rem; color: var(--text-muted); }
.toc a:hover { color: var(--gold); }

/* ----------------------------------------------------------------
   Page Header (Innenseiten)
---------------------------------------------------------------- */
.page-header {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #07070d 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: attr(data-rune);
  position: absolute;
  font-size: 20rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.02;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

/* ----------------------------------------------------------------
   Runic Divider Decoration
---------------------------------------------------------------- */
.runic-divider {
  text-align: center;
  margin: 3rem 0;
  color: var(--gold);
  opacity: 0.3;
  letter-spacing: 0.5em;
  font-size: 1.2rem;
  user-select: none;
}

/* ----------------------------------------------------------------
   Rechtliche Seiten
---------------------------------------------------------------- */
.legal-content h2 { margin-top: 2.5rem; }
.legal-content h3 { font-size: 1.1rem; color: var(--text-muted); }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.97rem; }

/* ----------------------------------------------------------------
   FAQ – Rune-Seiten (h3/p statt .faq-question/.faq-answer)
---------------------------------------------------------------- */
.faq-item > h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  margin-bottom: 0;
  letter-spacing: 0;
}

.faq-item > h3::after {
  content: '᛭';
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open > h3::after { transform: rotate(45deg); }

.faq-item > p {
  display: none;
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.faq-item.open > p { display: block; }

/* Sidebar-Überschrift auf Rune-Seiten (h3 statt h4) */
.sidebar-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 900px) {
  .content-sidebar {
    grid-template-columns: 1fr;
    grid-template-areas: "sidebar" "main";
  }

  .sidebar-card { position: static; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; }
}

@media (max-width: 600px) {
  /* Runentabelle Mobile: Ætt-Spalte ausblenden, Padding reduzieren */
  #lautwerte table tr > td:last-child,
  #lautwerte table tr > th:last-child { display: none; }

  #lautwerte table td { padding: 0.45rem 0.5rem !important; font-size: 0.88rem; }
  #lautwerte table td:first-child { font-size: 1.3rem !important; }
  #lautwerte table thead td {
    font-size: 0.65rem !important;
    letter-spacing: 0.04em !important;
    padding: 0.45rem 0.5rem !important;
    white-space: nowrap;
  }

  .hero { min-height: 70vh; }
  .section { padding: 3rem 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 2 Spalten auf kleinen Screens statt 3 */
  .alphabet-grid { grid-template-columns: 1fr; }
  .rune-grid { grid-template-columns: repeat(2, 1fr); }
  .rune-grid-large { grid-template-columns: repeat(2, 1fr); }

  /* Meaning-Grid einspaltiger */
  .meaning-grid { grid-template-columns: 1fr 1fr; }

  .rune-nav { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }

  /* Rune-Hero Symbol nicht überdimensioniert */
  .rune-hero-symbol { font-size: clamp(5rem, 20vw, 7rem); }

  /* Sidebar auf Mobile ausblenden + grid-area auf main beschränken */
  .content-sidebar .sidebar { display: none; }
  .content-sidebar {
    grid-template-areas: "main";
  }
}

@media (max-width: 400px) {
  .rune-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .rune-grid-large { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .rune-glyph { font-size: 2.5rem; }
  .rune-name-de { font-size: 0.9rem; }
  .card { padding: 1.25rem; }
}

/* ----------------------------------------------------------------
   Offene Daten (daten.html + daten-*.html)
---------------------------------------------------------------- */
.hero-daten {
  min-height: auto;
  display: block;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #07070d 0%, var(--bg) 100%);
}
.hero-daten h1 { margin-bottom: 1rem; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.hero-daten p { color: var(--text-muted); max-width: 720px; margin: 0 auto; }

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th, .compare-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-elevated);
  white-space: nowrap;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(201,162,39,0.04); }

.cell-empty { color: var(--text-faint); }

.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.related-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.related-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  color: inherit;
}
.related-card h4 { color: var(--gold); margin-bottom: 0.5rem; }
.related-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}
.changelog-list li {
  border-left: 2px solid var(--border-gold);
  padding: 0.35rem 0 0.35rem 1rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.changelog-list li strong {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  margin-right: 0.75rem;
}
