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

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.15);
}

/* === Link Card (index.html navigation items) === */
.link-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  margin-bottom: 1rem;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.15);
  text-decoration: none;
}

.link-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
}

.link-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* === Content Section (article pages) === */
.content-section {
  margin-bottom: 2rem;
}

.content-section h2 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* === Data Table (download lists) === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.data-table th {
  background: var(--secondary);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.data-table tr:hover {
  background: rgba(51, 65, 85, 0.3);
}

.data-table a {
  font-weight: 500;
}

@media (max-width: 600px) {
  .data-table th,
  .data-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* === Photo Grid === */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.photo-grid figure {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s;
}

.photo-grid figure:hover {
  transform: translateY(-3px);
}

.photo-grid img {
  width: 100%;
  display: block;
}

.photo-grid figcaption {
  padding: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* === Media Block (image + text side-by-side) === */
.media-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.media-block img {
  border-radius: var(--radius-sm);
  max-width: 300px;
}

@media (max-width: 768px) {
  .media-block {
    grid-template-columns: 1fr;
  }

  .media-block img {
    max-width: 100%;
  }
}

/* === Glossary / Alphabet Nav (mustermer.html) === */
.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 2rem;
}

.glossary-nav a {
  display: inline-block;
  width: 2.2rem;
  height: 2.2rem;
  line-height: 2.2rem;
  text-align: center;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background 0.15s;
}

.glossary-nav a:hover {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
}

.glossary-section {
  margin-bottom: 2rem;
}

.glossary-section h2 {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

.glossary-section dl {
  margin: 0;
}

.glossary-section dt {
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.75rem;
}

.glossary-section dd {
  margin-left: 1.5rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* === Audio list === */
.audio-list {
  list-style: none;
  padding: 0;
}

.audio-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--card-border);
}

.audio-list li:last-child {
  border-bottom: none;
}

/* === Video embed (standalone iframe wrapper) === */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 1.5rem;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
}

/* === Back to Top button === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
}

/* === Column layout for text content === */
.col-section {
  column-count: 2;
  column-gap: 2rem;
}

@media (max-width: 768px) {
  .col-section {
    column-count: 1;
  }
}

/* === Info box === */
.info-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

/* === Image with rounded border === */
.rounded-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
