:root {
  --primary-color: #d46bfd;
  --header-bg: #000000;
  --text-light: #ffffff;
  --hover-color: #e9aff8fd;
}

* {
  box-sizing: border-box;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--primary-color);
  font-family: Arial, Helvetica, sans-serif;
  text-align: justify;
  font-size: 0.6rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  color: #333;
  text-rendering: optimizeLegibility;
}

@media (min-width: 400px) {
  body {
    font-size: 0.8rem;
  }
}

@media (min-width: 800px) {
  body {
    font-size: 1rem;
  }
}

body.no-scroll { overflow: hidden; }

header {
  background: var(--header-bg);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  will-change: transform;
  backface-visibility: hidden;
  z-index: 1000;
}

header.shrink { padding: 5px 10px; min-height: 40px; }
header.shrink #main-nav,
header.shrink .hr1,
header.shrink .hr2 {
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  margin: 0;
}

#hamburger {
  position: absolute;
  left: 20px;
  transform: translateY(-120%);
  font-size: 12px;
  cursor: pointer;
  color: white;

  @media (min-width: 800px) {
    font-size: 20px;
  }
}

h1 {
  text-align: center;
  margin-top: 0.5rem;

  @media (min-width: 800px) {
    font-size: 2rem;
  }
}

#main-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  /* margin: 1rem 0; */
}

header a, footer a { color: white; text-decoration: none; }

.hr1 {
  margin: 0.5rem auto;
  color:white;
  width: 120px;

  @media (min-width: 400px) { width: 140px; }
  @media (min-width: 800px) { width: 200px; }
}

#overlay-nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  color: white;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

#overlay-nav.active { display: flex; }

#overlay-menu {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 2rem;
  text-align: center;
}

#overlay-menu a { color: white; text-decoration: none; }
#overlay-menu a:hover { color: #8a01c0; }

#close-overlay {
  position: absolute;
  top: 16px;
  left: 30px;
  font-size: 2rem;
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
}

main { flex: 1; }

.player {
  overflow: hidden;
  display: flex;
  justify-content: center; /* Zentriert den Inhalt horizontal */
  align-items: center;
  height: 2rem;
  font-family: monospace;
  font-size: 0.7rem;
  position: sticky;
  top: 40px;
  z-index: 1000;
  background-color: var(--header-bg);
  margin: 0;
  color: white;
  width: 100%;
  min-width: 0;
  padding: 0 5%  ; /* Etwas Abstand an den Seiten */

  @media (min-width: 400px) {
    position: sticky;
    top: 49px;
    font-size: 0.8rem;
  }

  @media (min-width: 800px) {
    font-size: 1rem;
    padding: 0 20%;
  }
}

.play-button {
  flex-shrink: 0;
  background: var(--header-bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.7rem;
  margin: 0 6px 0 20px;
  border-radius: 0;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 0;
  will-change: transform, background-color;
  backface-visibility: hidden;
}

.play-button:hover {
  background: var(--hover-color);
  color: var(--text-light);
  transform: scale(1.05);
}

.play-button:active {
  transform: scale(0.98);
}

.play-button:visited {
  color: var(--text-light);
}

.now-playing-label {
  flex-shrink: 0;
  font-weight: bold;
  margin-right: 5px;
  white-space: nowrap;
  z-index: 1001;
  position: relative;
  background: inherit;
    margin-right: 5px;
    white-space: nowrap;
    z-index: 1001;
    position: relative;
    background: inherit;
}

.song-scroll-container {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.song-title {
    position: absolute;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    animation: scroll-left 15s linear infinite;
    min-width: 0;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.main-content {
    max-width: calc(1800px + 4em);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-block-start: 1rem;

  @media (width > 1200px) {
    display: grid;
    grid-template-columns: 1fr 3fr 2fr;
    grid-template-rows: auto;
    gap: 2rem;
  }
    padding-inline: 2rem;
    align-items: start;
}

.article-feature-section {
  order: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;

  @media (width > 1200px) {
    padding: 0;
    padding-block-start: 0;
    order: 2;
  }
}

.cards-container-section {
  order: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;

  @media (width > 1200px) {
    padding: 0 2rem;  
    order: 1;
    padding-block-start: 0;
  }
}

.shorts-section {
  order: 2;

    @media (width > 1200px) {
      padding-inline: 0;
      order: 3;
    }
}

#article-container {
  display: flex;
  flex-direction: column;
  margin-inline: 10%;
  max-width: calc(900px + 4em);
  padding: 12px;
  margin-block: 1rem;
  background-color:#fcf8d76b;
  line-height: 1rem;

  @media (width > 800px) { line-height: 1.5rem; }
}

.article-feature {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background-color:#fcf8d76b;
  line-height: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  line-height: 1.2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  border-radius: 8px;

  @media (width > 800px) { 
    padding: 2rem;
    line-height: 1.6;
  }
}

.article-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(118, 75, 162, 0.15);
}

.article-feature-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.article-feature-meta img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  @media (width > 800px) { 
    max-width: 350px;
  }
}

.article-feature h2,
.article-feature h3,
.article-feature h4 {
  color: #333;
  line-height: 1.3;
}

.article-feature .headline {
  font-size: 0.7rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 1rem;

  @media (width > 800px) { 
    font-size: 1rem;
  }
}

.article-feature .intro-text {
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.4;

  @media (width > 800px) { 
    font-size: 1rem;
  }
}

.weiterlesen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 150px;
}

.weiterlesen-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
  text-decoration: none;
}

.article-feature h2, #article-container h2,
.article-feature h4, #article-container h4,
.article-feature p, #article-container p 
  { padding-inline: 5%;}

.article-feature h3, #article-container h3 
  { padding-inline: 5%; margin-block: 1rem;}

.short {
  display: flex;
  flex-direction: column;
  padding: 12px;
  margin-block: 1rem;
  background-color:#fcf8d76b;
}

.artist { font-family: 'Gill Sans', sans-serif; font-weight: bold; margin-bottom: px; }
.title { font-style: italic; margin-bottom: 12px; font-family: 'Courier New', monospace; }
.headline { margin-bottom: 8px; }
.month { margin-block: 12px 6px; }

.preview {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

/* Badge-System für Featured Article und Article.html */
.meta-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: default;
}

.weiterlesen-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: default;
  max-width: 5rem;
  margin-inline-start: 5%;
}


.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 1rem;
  max-width: 1400px;
  margin-block-end: 1rem;
  justify-content: center;

  @media (width > 300px) { grid-template-columns: repeat(2, 1fr); }
  @media (width > 768px) { grid-template-columns: repeat(4, 1fr); }
  @media (width > 1200px) {grid-template-columns: repeat(1, 1fr); }
}

/* index card styles */
.card-article {
  background: #fcf8d76b;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

@media (hover: hover) {
  .card-article {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Desktop Layout ab 1200px */
@media (min-width: 1200px) {
  .main-content {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    grid-template-areas:
      "calendar article instagram"
      "cards cards cards";
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
  }

  /* Linke Spalte - Release-Kalender */
  .release-calendar-section {
    grid-area: calendar;
  }

  /* Mittlere Spalte - Hauptartikel */
  .article-feature-section {
    grid-area: article;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Rechte Spalte - Insta-Posts */
  .instagram-section {
    grid-area: instagram;
  }

  /* Cards unter dem Hauptartikel */
  .cards-container-section {
    grid-area: cards;
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0;
  }

  .cards-container {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
    min-width: min-content;
  }

  .card-article {
    flex: 0 0 280px;
    margin-bottom: 0;
  }
}

.card-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-article:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

@media (hover: hover) {
  .card-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.15);
  }
}

.card-article img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 8px;

  @media (width > 1400px) { max-width: 150px; }
}

.card-meta { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center;
  width: 100%;
  gap: 0.4rem;
}

.card-artist { 
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
  font-weight: bold;
  font-size: 0.85rem;
  color: #000;
  line-height: 1.3;
  margin: 0;
}

@media (width > 400px) {
  .card-artist { font-size: 0.95rem; }
}

.card-title { 
  font-style: italic;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.3;
  margin: 0;
  padding-bottom: 0.5rem;
}

@media (width > 400px) {
  .card-title { font-size: 0.85rem; }
}

.card-article:focus {
  outline: 2px solid #764ba2;
  outline-offset: 2px;
}


@media (width > 1200px) {
  .card-article {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    max-width: 200px;
    width: 100%;
  }

  .card-article img {
    max-width: 120px;
    margin-bottom: 1rem;
    border-radius: 8px;
  }

  .card-meta {
    align-items: center;
    text-align: center;
  }
}

.shorts-section {
  font-size: 0.6rem;

  @media (width > 400px) {font-size: 0.6rem; }
  @media (width > 800px) { font-size: 0.8rem; }
  @media (width > 1200px) { font-size: 0.7rem; }
}

.short ul {
  text-decoration: none;
  list-style: none;
  text-indent: -2.5rem;
}

p { margin-bottom: 12px; }

/* Image styles */
img {
  max-width: 80%;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}

.lyrics {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  text-align: start;
  width: 90%;
  margin-inline: 5%;
  margin-block-end: 2rem; 
}

@media (width < 800px) {
  .lyrics { 
    font-size: 0.8rem; 
    line-height: 28px;
  }
}

.strophe {
  margin-bottom: 10px;
}

.verse {
  display: block;
  margin-bottom: 0;
  line-height: 1.2rem;

  @media (width < 800px ) { line-height: 1rem; }

}

.video {
  display: flex;
  justify-content: start;
  width: 90%;
  max-width: 600px; /* Optional, maximale Breite */
  aspect-ratio: 16 / 9;
  margin-inline: 5%;  
}

.video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.article-about {
    display: flex;
  flex-direction: column;
  margin-inline: 10%;
  max-width: calc(900px + 4em);
  padding: 12px;
  margin-block: 1rem;
  background-color:#fcf8d76b;
  line-height: 1rem;

  @media (width > 800px) { line-height: 1.5rem; }
}

.article-about h2 {
  margin-block-end: 1rem;
}

/* Formulare */
.formulargruppe {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 15px;
  padding-inline: 5%;
}

@media (width > 500px) {
  .formulargruppe { padding-inline: 10%; }
}

#submit { margin-left: 5%; }
@media (width > 500px) {
  #submit { margin-left: 10%; }
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  color: white;
  text-align: center;
  width: 100%;
}

footer ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0.25rem 0;
}

@media (width > 800px) {
  footer ul { padding-inline: 20%; }
}
/* ============================================
   RELEASE-KALENDER - KOMPAKTER LIST-VIEW
   ============================================ */


.release-calendar-section {
  order: 2;
  width: 100%;
  max-width: 1400px;
  /* padding-inline: 10%; */
  margin: 0 auto;
}

@media (width > 1200px) {
  .release-calendar-section {
    order: 3;
    padding-inline: 0;
    padding-block-start: 0;
  }
}

/* Inneres Kalender-Element (wie article-feature) */
.release-calendar {
  width: 100%;
  max-width: 100%;
  background: #fcf8d76b;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

@media (width > 1200px) {
  .release-calendar {
    padding: 1.5rem;
  }
}

.calendar-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #000;
}

/* Navigation */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* archive-cards */
.archive-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 5%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.archive-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  aspect-ratio: 2/4; /* Standard album art ratio */

  @media (width > 350px) {aspect-ratio: 2/3;}
}

.archive-card-image-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  aspect-ratio: 1/1; /* Keep images square */
  border-bottom: 1px solid #eee;
}

.archive-card:hover img {
  transform: scale(1.03);
}

/* Tablet - 3 columns */
@media (min-width: 768px) {
  .archive-cards-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
}

/* Desktop - 4 columns */
@media (min-width: 1200px) {
  .archive-cards-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
}

/* Hover effects only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.15);
  }
  .archive-card:hover img {
    transform: scale(1.05);
  }
}

.card-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  z-index: 1;
}

.card-artist {
  font-size: 0.9rem;
  margin: 0;
  color: #333;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size 0.2s ease;
  padding-inline: 1em;
}

.card-title {
  font-size: 0.8rem;
  margin: 0;
  color: #666;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-inline: 1em;
}

.archive-card-date {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.archive-card-excerpt {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.archive-card-link {
  display: inline-block;
  color: #764ba2;
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.archive-card-link:hover {
  color: #5c3a7f;
  text-decoration: underline;
}

.nav-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.nav-btn:hover {
  transform: scale(1.1);
}

.nav-btn:active {
  transform: scale(0.95);
}

.current-month {
  font-weight: bold;
  font-size: 1.1rem;
  color: #000;
  text-align: center;
  flex: 1;
}

@media (width < 600px) {
  .calendar-nav {
    padding: 0.75rem;
  }

  .current-month {
    font-size: 0.95rem;
  }

  .nav-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Release-Liste */
.release-list {
  background: white;
  border-radius: 12px;
  padding: 0 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Einzelner Release-Eintrag */
.release-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "badge ."
    "artist ."
    "title .";
  column-gap: 1rem;
  row-gap: 0.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.release-item:last-child {
  border-bottom: none;
}

/* Datum Badge */
.release-date-badge {
  grid-area: badge;
  /* background-color: var(--primary-color); */
  color: #333;
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: monospace;
  white-space: nowrap;
  align-self: start;
  margin-top: 0.1rem;
}

@media (width > 600px) {
  .release-date-badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
  }
}

/* Artist Name */
.release-artist {
  grid-area: artist;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
  font-weight: bold;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: #000;
  line-height: 1.3;
}

@media (width > 768px) {
  .release-artist {
    font-size: 1rem;
  }
}

/* Album Title */
.release-title {
  grid-area: title;
  font-style: italic;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
}

@media (width > 768px) {
  .release-title {
    font-size: 0.9rem;
  }
}

/* Responsive: Mobil vertikal stapeln */
@media (width < 400px) {
  .release-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "artist"
      "title";
    row-gap: 0.4rem;
  }

  .release-date-badge {
    align-self: auto;
    margin-top: 0;
    margin-bottom: 0.2rem;
  }
}

