/* =========================
   ESSELHANS CLEAN PREMIUM UI
   v3 - FULL REBUILD MATCHED TO YOUR HTML
========================= */

:root {
  --bg: #09090d;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);

  --text: #f4f1ea;
  --muted: #b9b0a6;

  --accent: #c98b4f;
  --accent-soft: rgba(201, 139, 79, 0.18);

  --shadow: rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   PAGE WRAPPER
========================= */

.page {
  width: min(1120px, 92%);
  margin: auto;
  padding: 28px 0 60px;
}

/* =========================
   TOPBAR (NAV)
========================= */

.topbar {
  position: sticky;
  top: 14px;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 12px 16px;
  margin-bottom: 36px;

  border-radius: 999px;
  border: 1px solid var(--border);

  background: rgba(9, 9, 13, 0.72);
  backdrop-filter: blur(14px);

  box-shadow: 0 18px 45px var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;

  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);

  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;

  transition: 0.25s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  border-color: rgba(201, 139, 79, 0.5);
}

/* =========================
   HERO
========================= */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;

  padding: 42px;
  border-radius: 32px;

  border: 1px solid var(--border);
  background: linear-gradient(135deg, #14141a, #0b0b10);

  box-shadow: 0 25px 70px var(--shadow);

  margin-bottom: 26px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;

  border-radius: 999px;
  border: 1px solid var(--border);

  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: var(--muted);
  background: rgba(255,255,255,0.04);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 14px;
  letter-spacing: -0.05em;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 700px;
}

/* HERO ACTIONS */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;
  border-radius: 999px;

  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);

  color: var(--text);
  text-decoration: none;
  font-weight: 800;

  transition: 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
  background: var(--accent-soft);
}

.button.primary {
  background: var(--accent);
  color: #1a120a;
  border-color: rgba(255,255,255,0.2);
}

/* =========================
   BANNER
========================= */

.banner-wrap {
  border-radius: 26px;
  overflow: hidden;

  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   SECTIONS
========================= */

.section-card {
  margin-top: 24px;
  padding: 28px;

  border-radius: 26px;
  border: 1px solid var(--border);

  background: rgba(255,255,255,0.04);
  box-shadow: 0 20px 60px var(--shadow);
}

.section-head {
  margin-bottom: 18px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* =========================
   NEWS BOX
========================= */

.news-box {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 18px;

  padding: 18px;

  border-radius: 20px;
  border: 1px solid var(--border);

  background: rgba(255,255,255,0.05);
}

.news-box img {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.news-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: var(--accent);
  font-weight: 900;
}

/* =========================
   VIDEO
========================= */

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;

  border-radius: 20px;
  overflow: hidden;

  border: 1px solid var(--border);
  box-shadow: 0 18px 50px var(--shadow);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   TILE GRID
========================= */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile {
  padding: 20px;

  border-radius: 22px;
  border: 1px solid var(--border);

  background: rgba(255,255,255,0.05);

  text-decoration: none;
  color: var(--text);

  transition: 0.25s ease;
}

.tile:hover {
  transform: translateY(-5px);
  background: var(--card-strong);
  border-color: rgba(201,139,79,0.5);
}

.tile span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 900;
}

.tile p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   PLATFORMS
========================= */

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platforms a {
  padding: 10px 14px;
  border-radius: 999px;

  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);

  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

/* =========================
   FOOTER
========================= */

footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
}

/* =========================
   ANIMATIONS
========================= */

.hero, .section-card, .tile, .news-box {
  animation: fadeIn 0.5s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MOBILE
========================= */

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

  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-box {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    border-radius: 20px;
  }
}

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

/* =========================
   UNIFIED SITE POLISH
   Shared visual layer for all active pages
========================= */

:root {
  --bg: #09090d;
  --surface: rgba(15, 15, 21, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f4f1ea;
  --muted: #b9b0a6;
  --accent: #c98b4f;
  --accent-soft: rgba(201, 139, 79, 0.17);
  --shadow: rgba(0, 0, 0, 0.42);
}

html {
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 139, 79, 0.13), transparent 28%),
    radial-gradient(circle at 86% 6%, rgba(106, 86, 128, 0.10), transparent 26%),
    linear-gradient(rgba(7, 7, 10, 0.88), rgba(7, 7, 10, 0.96)),
    url("bilder/hintergrund-eselhans.png");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 28px 0 58px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 12px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(9, 9, 13, 0.82);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-links {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a,
.button,
.link-button,
.button-row a,
.button-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.button:hover,
.link-button:hover,
.button-row a:hover,
.button-row button:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  border-color: rgba(201, 139, 79, 0.55);
}

.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  border-color: rgba(201, 139, 79, 0.55);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.menu-toggle-icon {
  display: grid;
  width: 18px;
  gap: 4px;
}

.menu-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
.link-button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(201, 139, 79, 0.85);
  outline-offset: 3px;
}

.button.primary {
  background: var(--accent);
  color: #171008;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero,
.section-card,
.legal-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 34px;
  margin-bottom: 24px;
}

.hero:has(.banner-wrap) {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.section-card,
.legal-card {
  padding: 26px;
  margin-top: 22px;
}

.legal-card {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-size: 4.4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-card h1 {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h2,
.album-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

h3,
.song-title {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead,
.section-text,
.tile p,
.song-meta,
.lyrics,
.notice,
.meta {
  color: var(--muted);
}

.lead {
  max-width: 760px;
  font-size: 1.08rem;
}

.grid,
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile,
.song-card,
.news-box,
.notice,
.banner-wrap,
.video-frame {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: none;
}

.tile,
.song-card {
  min-width: 0;
  overflow: hidden;
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 20px;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.tile:hover,
.song-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: rgba(201, 139, 79, 0.5);
}

.tile span,
.news-label {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-icon,
.tile .platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 4px 0 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  overflow: hidden;
}

.platform-logo {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.platform-youtube .platform-logo rect {
  fill: #d94b42;
}

.platform-youtube .platform-logo path,
.platform-youtube-music .platform-logo path,
.platform-apple .platform-logo path {
  fill: #fff7ed;
}

.platform-youtube-music .platform-logo circle:first-child {
  fill: #d94b42;
  opacity: 0.92;
}

.platform-youtube-music .platform-logo circle:nth-child(2) {
  fill: rgba(9, 9, 13, 0.34);
}

.platform-spotify .platform-logo circle {
  fill: #42b869;
}

.platform-spotify .platform-logo path {
  fill: none;
  stroke: #08120c;
  stroke-width: 4;
  stroke-linecap: round;
}

.platform-apple .platform-logo rect {
  fill: #d95f8d;
  opacity: 0.86;
}

.platform-amazon .platform-logo rect {
  fill: #2f97c8;
  opacity: 0.86;
}

.platform-amazon .platform-logo text {
  fill: #fff7ed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 900;
}

.platform-amazon .platform-logo path {
  fill: none;
  stroke: #fff7ed;
  stroke-width: 3.4;
  stroke-linecap: round;
}

.platform-eselhans .platform-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.tile-button {
  order: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid rgba(201, 139, 79, 0.45);
  border-radius: 8px;
  background: rgba(201, 139, 79, 0.14);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.featured-platform {
  grid-column: span 2;
  background: rgba(201, 139, 79, 0.10);
  border-color: rgba(201, 139, 79, 0.38);
}

.banner-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.banner-wrap img,
.song-card img,
.news-box img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.news-box {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.news-list,
#news-container {
  display: grid;
  gap: 16px;
}

.news-section-title {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.news-box img {
  max-width: none;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.news-cover {
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.news-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.song-card {
  background: rgba(255, 255, 255, 0.045);
}

.song-card img {
  height: 176px;
}

.song-content {
  padding: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lyrics {
  margin-top: 12px;
  white-space: pre-line;
}

.modal-open {
  overflow: hidden;
}

.lyrics-modal[hidden] {
  display: none;
}

.lyrics-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 3, 6, 0.74);
}

.lyrics-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 820px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 15, 21, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.lyrics-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.lyrics-text {
  margin-top: 18px;
  color: var(--text);
  white-space: pre-line;
  line-height: 1.72;
}

#search {
  width: 100% !important;
  max-width: 520px;
  min-height: 44px;
  padding: 11px 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: var(--text) !important;
  outline: none !important;
}

#search:focus {
  border-color: rgba(201, 139, 79, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(201, 139, 79, 0.16);
}

.search-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.search-status {
  margin: 0;
  color: var(--muted);
}

.search-summary .button {
  min-height: 36px;
  padding: 7px 11px;
}

.search-summary .button[hidden] {
  display: none;
}

footer {
  margin-top: 34px;
  padding: 22px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

footer a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.88;
}

footer a:hover {
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    border-radius: 8px;
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .hero,
  .hero:has(.banner-wrap),
  .grid,
  .grid.two,
  .tile-grid,
  .news-box {
    grid-template-columns: 1fr;
  }

  .featured-platform {
    grid-column: auto;
  }

  h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(94%, 1120px);
    padding-top: 16px;
  }

  .topbar {
    top: 8px;
    gap: 10px;
    padding: 10px;
  }

  .nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .nav-links a {
    width: 100%;
    min-height: 42px;
    padding: 9px 8px;
    font-size: 0.86rem;
  }

  .hero,
  .section-card,
  .legal-card {
    padding: 20px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2,
  .album-title {
    font-size: 1.65rem;
  }

  .lead {
    font-size: 1rem;
  }

  .news-box {
    align-items: start;
  }

  .button,
  .link-button {
    width: 100%;
  }

  .tile-button {
    width: 100%;
  }

  .lyrics-modal {
    align-items: stretch;
    padding: 12px;
  }

  .lyrics-dialog {
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .lyrics-close {
    position: static;
    width: 100%;
    margin-bottom: 14px;
  }
}

@media (max-width: 700px) {
  html.has-mobile-menu .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  html.has-mobile-menu .brand {
    justify-content: flex-start;
    min-width: 0;
  }

  html.has-mobile-menu .menu-toggle {
    display: inline-flex;
  }

  html.has-mobile-menu .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none !important;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(9, 9, 13, 0.96);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
  }

  html.has-mobile-menu .nav-links.is-open {
    display: grid !important;
  }

  html.has-mobile-menu .nav-links a {
    min-height: 44px;
  }
}
