/* assets/style.css */

:root {
  --bg: #f7f6f3;
  --fg: #222222;
  --fg-soft: #555555;
  --accent: #999999;
  --line: #dddddd;
  --max-width: 900px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;

  /* Neu dazu: */
  flex: 1;                    /* nimmt den Raum zwischen Header und Footer ein */
  display: flex;              /* macht main selbst zu einem Flex-Container */
  flex-direction: column;     /* Sections weiter untereinander */
  justify-content: center;    /* vertikal zentrieren */
}

/* Top bar / Nav */

.header {
  padding: 1.25rem 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.site-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.nav a {
  text-decoration: none;
  color: var(--fg-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.nav a:hover,
.nav a:focus,
#current{
  border-color: var(--accent);
}

/* Sub Nav bar / Nav */

.subnav {
  display: flex;
  justify-content: center;   /* zentriert die Links horizontal */
  gap: 1.2rem;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}



.subnav {
  display: flex;
  gap: 1.2rem;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}


.subnav a {
  text-decoration: none;
  color: var(--text-color);
}

.subnav a#current {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}



/* Language */

.lang-switch {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

.ly-int[lang="ga"],
.ly-int[lang="sa"],
.ly-int[lang="fa"],
.ly-int[lang="he"] {
  font-family: "Noto Serif", serif;
}

.ly-int[lang="ja"],
.ly-int[lang^="zh"],
.ly-int[lang="ar"],
.ly-int[lang="en"] {
  font-family: "Noto Sans", sans-serif;
}


.ly-int[dir="rtl"] {
  unicode-bidi: isolate;
  text-align: right;
}

.ly-int[lang="zh"],
.ly-int[lang="zh-Hans"],
.ly-int[lang="zh-Hant"] {
  font-family: "Noto Sans SC", "Microsoft YaHei", "SimSun", sans-serif;
  line-height: 1.6;
}

.ly-int[lang="ja"] {
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  line-height: 1.7;
}

.ly-int[lang="sa"] {
  font-family:
    "Noto Serif Devanagari",
    "Noto Sans Devanagari",
    "Kalimati",
    serif;
  line-height: 1.6;
}

.ly-int[lang="ga"] {
  font-family:
    "Noto Serif",
    "Charis SIL",
    "Georgia",
    serif;
}

.ly-int[lang="fa"] {
  unicode-bidi: isolate;
  text-align: right;
  font-family: "Iranian Sans", "Tahoma", "Arial Unicode MS", sans-serif;
  line-height: 1.8;
}

.ly-phon[lang="fa-Latn"] {
  unicode-bidi: isolate;
}

.ly-int[lang="he"] {
  unicode-bidi: isolate;
  text-align: right;
  font-family: "Noto Sans Hebrew", "Arial Hebrew", "David", sans-serif;
  line-height: 1.8;
}

.ly-phon[lang="he-Latn"] {
  unicode-bidi: isolate;
}

.ly-int[lang="iu"] {
  font-family: "Noto Sans Canadian Aboriginal", "Euphemia", "Aboriginal Sans", sans-serif;
  font-size: 1.1em;
}

.ly-phon[lang="iu-Latn"] {
  font-family: "Noto Sans", Arial, sans-serif;
}

.ly-int[lang="bo"] {
  font-family: "Noto Sans Tibetan", "Jomolhari", "Kailasa", sans-serif;
  font-size: 1.5em; /* Deutlich größer */
  line-height: 2.2; /* Mehr Zeilenhöhe für Stapelungen */
  letter-spacing: 0.05em; /* Etwas mehr Abstand zwischen Zeichen */
}

.ly-phon[lang="bo-Latn"] {
  font-family: "Noto Sans", Arial, sans-serif;
}

.ly-int[lang="hi"] {
  font-family: "Noto Sans Devanagari", "Mangal", "Nirmala UI", sans-serif;
  line-height: 1.8;
}

.ly-phon[lang="hi-Latn"] {
  font-family: "Noto Sans", Arial, sans-serif;
}

/* Typography */

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: 1rem;
  margin: 0 0 2rem;
  color: var(--fg-soft);
}

h2 {
  font-size: 0.9rem;
  margin: 2.5rem 0 1rem;
  color: var(--fg-soft);
}

p {
  margin: 0 0 0.9rem;
}



/* Hero */

.hero {
  text-align: center;
  margin: 3rem 0 2.5rem;
}

.hero-line {
  height: 1px;
  width: 55%;
  max-width: 380px;
  margin: 0 auto 1.75rem;
  background: rgba(0, 0, 0, 0.06);
}

.hero-title {
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.25);
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--fg-soft);
}

/* Sections */

.section {
  margin-bottom: 3rem;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--fg-soft);
}

/* Poem / Meta text */

.meta-block {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
}

.meta-block p {
  margin-bottom: 0.4rem;
}

/* Image */

.fig {
  margin: 2.5rem 0;
  text-align: center;
}

.fig img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

.fig-caption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--fg-soft);
}

/* Tracklist / Accordion */

.tracklist {
  border-top: 1px solid var(--line);
}

.tracklist details {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

.tracklist summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--fg);
}

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

.track-meta {
  font-size: 0.78rem;
  color: var(--fg-soft);
}

.track-body {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--fg-soft);
}

.track-body p {
  margin-bottom: 0.6rem;
}


.track-body a, .btn {
  display: inline-block;
  padding: 4px 10px;
  margin: 3px 0;
  border: 1px solid var(--accent, #999);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--accent, #666);
  background: rgba(0, 0, 0, 0.03);
  transition: all 0.18s ease;
}

.track-body a:hover, .btn:hover {
  background: var(--accent, #666);
  color: #fff;
  border-color: var(--accent, #666);
  cursor: pointer;
}

.track-body a:active, .btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap; /* sorgt dafür, dass sie bei kleinen Screens umbrechen */
}

.btn-row-center {
  display: flex;
  justify-content: center; /* horizontal zentrieren */
  gap: 1rem;               /* Abstand zwischen Buttons */
  flex-wrap: wrap;         /* Falls Mobile: untereinander */
  margin: 2rem 0;
}

/* Links */

a {
  color: var(--fg-soft);
}

a:hover {
  color: var(--fg);
}

/* Footer */

.footer {
  padding: 1.5rem 1.5rem 1.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 0.8rem;
  color: var(--fg-soft);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  color: var(--fg-soft);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Small screens */

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-title {
    font-size: 0.75rem; /* etwas kleiner auf Mobile */
  }

  .nav {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .nav a {
    display: block;
    padding: 0.4rem 0;
  }

  .hero-line {
    display: none;
  }
}

#one, .neutral-link {
text-decoration: none;
};

/* Panels: default stacked (mobile) */
.section .panel {
  width: 40%;
  height: 200px; /* Beispielhöhe – kannst du anpassen */
  margin-bottom: 1rem;
  
}

.panels {
  display: block;
}

.panel {
  width: 100%;
  margin-bottom: 1rem;
}

/* Nebeneinander ab Tablet */
@media (min-width: 768px) {
  .panels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .panel {
    width: 50%;
    margin-bottom: 0;
  }
}

.lyrics, .track-body {
text-align: center;


}

.album-prologue summary {
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--fg-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.album-prologue[open] summary {
  color: var(--fg);
}

.ly-int {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.ly-phon {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #777;
  margin-left: 1rem;
  margin-bottom: 1.25rem;
  font-style: italic;
  unicode-bidi: isolate;
}

.ly-translation {
  border-left: 2px solid #e0e0e0;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.ly-de,
.ly-en {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  margin-bottom: 0.75rem;
}


.ly-de::before {
  content: "DE";
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #aaa;
  display: block;
  margin-bottom: 0.25rem;
}

.ly-en::before {
  content: "EN";
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #aaa;
  display: block;
  margin-bottom: 0.25rem;
}



/* ========================================
   IPF Analysis Pages
   ======================================== */

/* Intro section */
.ipf-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.ipf-intro .section-intro {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Individual layer sections */
.ipf-layer {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ipf-layer h2 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--fg);
  font-weight: 500;
}

/* Subtle color coding for each layer (optional) */
.ipf-layer:nth-child(2) h2 { color: #8b7355; } /* Layer 1: earthy brown */
.ipf-layer:nth-child(3) h2 { color: #6b8e8e; } /* Layer 2: muted teal */
.ipf-layer:nth-child(4) h2 { color: #9b7b6b; } /* Layer 3: warm brown */
.ipf-layer:nth-child(5) h2 { color: #7b8b9b; } /* Layer 4: soft blue-gray */
.ipf-layer:nth-child(6) h2 { color: #8b8b7b; } /* Layer 5: olive */
.ipf-layer:nth-child(7) h2 { color: #7b7b8b; } /* Layer 6: dusty purple */
.ipf-layer:nth-child(8) h2 { color: #9b8b7b; } /* Layer 7: golden brown */
.ipf-layer:nth-child(9) h2 { color: #7b8b7b; } /* Layer 8: sage */

.ipf-layer h3 {
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--fg-soft);
  text-transform: none;
  letter-spacing: 0;
}

.layer-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg);
}

.layer-content p {
  margin-bottom: 0.9rem;
}

/* Synthesis section (if used) */
.ipf-synthesis {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  font-size: 0.95rem;
}

.ipf-synthesis h2 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Footer link on track accordion */
.track-footer, .back-link {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.ipf-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.ipf-link:hover,
.ipf-link:focus {
  color: var(--fg);
  border-bottom-color: var(--accent);
}



.back-link:hover {
  color: var(--fg);
}

/* ========================================
   Διά Analysis Pages - Accordion Layers
   ======================================== */

/* IPF layer as accordion */
.ipf-layer {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

.ipf-layer summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.3rem 0;
}

.ipf-layer summary::-webkit-details-marker {
  display: none;
}

.layer-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layer-question {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--fg-soft);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Subtle color coding for each layer */
.ipf-layer:nth-of-type(2) .layer-title { color: #8b7355; }
.ipf-layer:nth-of-type(3) .layer-title { color: #6b8e8e; }
.ipf-layer:nth-of-type(4) .layer-title { color: #9b7b6b; }
.ipf-layer:nth-of-type(5) .layer-title { color: #7b8b9b; }
.ipf-layer:nth-of-type(6) .layer-title { color: #8b8b7b; }
.ipf-layer:nth-of-type(7) .layer-title { color: #7b7b8b; }
.ipf-layer:nth-of-type(8) .layer-title { color: #9b8b7b; }
.ipf-layer:nth-of-type(9) .layer-title { color: #7b8b7b; }

.layer-content {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg);
}

.layer-content p {
  margin-bottom: 0.9rem;
}

/* Small screens */
@media (max-width: 640px) {
  .ipf-layer summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

/* ========================================
   Song-Landingpages
   ======================================== */

.track-section {
  padding-top: 0.5rem; /* statt 1.5rem, damit der Block näher ans Artwork-Top rückt */
}

.track-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Artwork */
.track-artwork img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Kurzinfos rechts (ab 768px) */
.track-info {
  font-size: 0.9rem;
  color: var(--fg-soft);
}

.track-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 0.5rem; /* war 1rem */
}

/* --- UPDATED: Kurzinfos EINSPALTIG --- */
.track-info-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;          /* etwas enger */
  margin-bottom: 0.5rem;/* war 1rem */
}

.track-info-row {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.meta-value {
  font-size: 0.9rem;
  color: var(--fg);
}

/* DE/EN-Switch */
.track-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.track-lang-switch span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.track-lang-switch a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  font-size: 0.8rem;
}

.track-lang-switch a:hover,
.track-lang-switch a:focus {
  border-bottom-color: var(--accent);
}

.track-lang-switch a.is-active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

/* Layout-Switch ab 768px: Artwork + Infos nebeneinander */
@media (min-width: 768px) {
  .track-hero {
    flex-direction: row;
    align-items: flex-start;
  }

  .track-artwork {
    flex: 0 0 40%;
  }

  .track-info {
    flex: 1;
  }
}

/* Lyrics zentriert unter dem Block */
.lyrics-centered {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

.lyrics-centered p {
  margin-bottom: 0.9rem;
}

/* DIA-Link oben / unten */
.track-dia-link {
  margin-bottom: 0.5rem;
}

/* DIA-Teaser ("Zusammenhalten") */
.track-dia-teaser {
  margin-top: 1rem;
  text-align: left; 
}

.track-dia-teaser h2 {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 1rem;
}

.track-dia-teaser h3 {
  font-size: 0.75rem;             /* kleiner als h2 */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.2rem 0 0.6rem;
  color: var(--fg-soft);          /* gleiche Farbe wie andere Meta-Headings */
}

.track-dia-teaser p {
  margin-bottom: 0.8rem;
  color: var(--fg);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* dia-link wie ipf-link */
.dia-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.dia-link:hover,
.dia-link:focus {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.track-back-link a {
  font-size: 0.8rem;
}

/* Lyrics-Heading */
.lyrics-heading {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fg-soft);
  margin-bottom: 1.2rem;
}

/* Credit-Angaben */
.lyrics-credits {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--fg-soft);
  line-height: 1.4;
}

.lyrics-credits strong {
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}


.track-streaming {
  margin-bottom: 0.75rem;
}

.track-streaming ul {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.track-streaming li {
  font-size: 0.85rem;
}

.track-streaming a {
  text-decoration: none;
  font-size: 0.85rem;
}


/* Hören & Produktion Block */
.track-listen-heading {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: left;
  color: var(--fg-soft);
  margin-bottom: 1rem;
}

.track-listen-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

/* Streaming-Teil */
.track-listen-links h3,
.track-ai-note h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 0.4rem;
}

.track-listen-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track-listen-links li {
  margin-bottom: 0.2rem;
}

.track-listen-links a {
  text-decoration: none;
  font-size: 0.9rem;
}

/* AI-Note */
.track-ai-note p {
  margin-bottom: 0.4rem;
}

.track-ai-disclaimer {
  font-size: 0.8rem;
  color: var(--fg-soft);
  line-height: 1.5;
}

/* Ab 768px: zwei Spalten nebeneinander */
@media (min-width: 768px) {
  .track-listen-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .track-listen-links,
  .track-ai-note {
    flex: 1;
  }
}


/* Navigation unter dem Artwork */
.track-nav {
  margin: 0.5rem 0 0.5rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.track-nav-link {
  font-size: 1.6rem;
  color: var(--fg-soft);
  text-decoration: none;
  transition: 0.25s;
  user-select: none;
}

.track-nav-link:hover {
  color: var(--fg);
}

details summary h2 {
  display: inline;
  cursor: pointer;
}

/* ========================================
   Διά – Track-Bilder-Galerie
   ======================================== */

.track-gallery {
  margin-top: 3rem;
}

.track-gallery h2 {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 1.5rem;
}

/* Grid-Layout: mobile = 1 Spalte, ab 768px = 3 Spalten */
.track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .track-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.track-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.track-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.poem img {
  width: min(400px, 80%);
  height: auto;
  border-radius: 6px;
}

.poem .fig, .poem .btn-row {
  display: flex;
  justify-content: center;
}

.track-card-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-soft);
  text-align: center;
}

.track-card-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.track-card-sub {
  font-size: 0.8rem;
}

/* ========================================
   Διά – Track-Bilder-Galerie
   ======================================== */

.track-gallery {
  margin-top: 3rem;
}

.track-gallery h2 {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 1.5rem;
}

/* Grid-Layout: mobile = 1 Spalte, ab 768px = 3 Spalten */
.track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .track-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.track-card {
  display: block;
}

.track-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Meta-Bereich unter dem Bild */
.track-card-meta {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--fg-soft);
  text-align: center;
}

/* Tracktitel / Bildname */
.track-card-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

/* DIA / Sprachlinks */
.track-card-dia {
  display: flex;
  flex-direction: column;   /* <<< macht Umbruch */
  align-items: center;      /* zentriert DE/EN */
  gap: 0.2rem;              /* kleiner Abstand */
}


/* „DIA“-Label */
.track-card-dia-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

/* Links für DE / EN */
.track-card-dia-links a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.05rem;
  color: var(--fg-soft);
}

.track-card-dia-links a:hover,
.track-card-dia-links a:focus {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.title-en {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--fg);
  display: inline-block;
  padding-bottom: 0.15rem;
  margin: 0 auto 0.2rem;
}

.title-de {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
}

.track-card-title-top {
  text-align: center;
  margin-bottom: 0.5rem;
  min-height: 3.8rem; /* nach Bedarf tweaken, damit alle Zeilen sauber fluchten */
}


.micro-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--fg-light);
  text-align: center;
}

.rainbow-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: linear-gradient(90deg,
    #ff0000,
    #ff7a00,
    #ffee00,
    #00c400,
    #0066ff,
    #7a00ff
  );
  transition: transform 0.15s ease;
}

.rainbow-btn:hover {
  transform: scale(1.04);
}


.release-note {
  margin: -0.5rem 0 1.4rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}

/* ========================================
   Video modules
   ======================================== */

.video-module {
  margin: 2rem 0;
}

.video-module--featured {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

.video-caption {
  font-size: 0.9rem;
  color: var(--fg-soft);
  margin-bottom: 0.6rem;
}

.video-credit {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.video-caption-sub {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.4rem;
}
