body {
  font-family: Arial, sans-serif;
  margin: 20px;
}

.lang-switch {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
  margin: 0;
}

/* ---- Kopfbereich mit Cover-Collage ---- */
.hero {
  --tile: 90px;
  position: relative;
  height: calc(var(--tile) * 2);
  margin: 0 0 16px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, var(--tile));
  grid-auto-columns: var(--tile);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.hero-collage.ready {
  opacity: 1;
}

.hero-collage span {
  display: block;
  width: var(--tile);
  height: var(--tile);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 110px 14px 18px;
}

#pageTitle {
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero .lang-switch button {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.hero .lang-switch button.is-active {
  background: #fff;
  border-color: #fff;
  color: #1b5e20;
}

.lang-switch button {
  border: 1px solid #999;
  border-radius: 4px;
  background: #fff;
  padding: 4px 8px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: 1px solid #999;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

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

.scroll-to-top:hover {
  background: #1b5e20;
}



.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 50;
  padding: 8px 0 6px;
  border-bottom: 1px solid #ddd;
}

.nav-az {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0 0 4px;
  position: sticky;
  top: 47px; /* JS overrides this dynamically via updateNavAzTop() */
  background: #fff;
  z-index: 49;
  padding: 6px 0 4px;
  border-bottom: 1px solid #eee;
}

.nav-az-btn {
  padding: 4px 7px;
  min-width: 28px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  transition: background 0.15s, color 0.15s;
}

.nav-az-btn:hover {
  background: #e8f5e9;
  color: #2e7d32;
}

.nav-az-btn.is-active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}
.filter-bar input,
.filter-bar select,
.filter-bar button {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
}

.filter-bar input {
  min-width: 230px;
  flex: 1 1 240px;
}

#resultCount {
  margin: 4px 0 12px;
  font-weight: 700;
}

.cart-panel {
  margin: 0 0 18px;
  padding: 14px;
  border: 2px solid #2e7d32;
  border-radius: 10px;
  background: #f4fbf5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.cart-head h3,
.cart-head p,
#cartTotal {
  margin: 0;
}

.cart-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#cartItems {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #d4e7d7;
}

.cart-jump-btn {
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.cart-jump-btn:hover,
.cart-jump-btn:focus-visible {
  text-decoration: underline;
  outline: none;
}

.remove-item-btn,
#cartClear,
#cartCopy,
#cartShare,
#cartMail {
  padding: 6px 10px;
  border: 1px solid #999;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

#cartMail {
  border-color: #2e7d32;
}


.table-wrapper {
  width: 100%;
  overflow-x: auto; /* horizontal scroll bei vielen Spalten */
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  padding: 4px;
  border: 1px solid #ccc;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(10px, 1.4vw, 16px);
}





.record-block {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fafafa;
}

.record-block.jump-highlight {
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.35);
}

.rec-text p {
  margin: 2px 0;
  font-size: 1rem;
}

.rec-text p.rec-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #000;
}

.rec-text p.rec-meta {
  color: #444;
}

.rec-text p.rec-price {
  font-weight: 700;
}

.rec-text p.rec-link {
  font-size: 0.9rem;
}

/* ---- Ansicht „Bilder“: Karten mit großem Cover oben, Text darunter ---- */
#recordList.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--w, 240px), 1fr));
  gap: 14px;
  margin: 12px 0;
}

.view-grid .record-block {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.rec-img {
  aspect-ratio: 1 / 1;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.view-grid .record-block {
  cursor: pointer;
}

.view-grid .record-block:hover,
.view-grid .record-block:focus-visible {
  border-color: #2e7d32;
  outline: none;
}

.rec-noimg {
  color: #777;
  font-size: 0.85rem;
  text-align: center;
  padding: 6px;
}

.view-grid .rec-text {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

.view-grid .rec-text p {
  font-size: 0.92rem;
}

.view-grid .rec-text p.rec-title {
  font-size: 1rem;
}

.view-grid .add-cart-btn {
  margin-top: auto;
}

.view-grid .rec-text p:last-of-type {
  margin-bottom: 8px;      /* Abstand zum Button, der unten bündig sitzt */
}

/* ---- Ansicht „Liste“: kompakte Zeilen, Klick öffnet das Detailfenster ---- */
#recordList.view-list {
  margin: 12px 0;
}

.view-list .record-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 8px 10px;
  cursor: pointer;
}

.view-list .record-block:hover,
.view-list .record-block:focus-visible {
  background: #eef7ef;
  border-color: #2e7d32;
  outline: none;
}

.view-list .rec-text {
  flex: 1;
  min-width: 0;
}

.view-list .add-cart-btn {
  margin: 0;
  flex: none;
}

/* ---- Umschalter Bilder / Liste ---- */
.view-switch {
  display: flex;
  flex: 0 0 100%;          /* eigene Zeile unter den Filtern, bleibt mit der Filterleiste angeheftet */
  margin: 0;
}

.filter-bar .view-switch button {
  padding: 5px 12px;
}

.view-switch button {
  font: inherit;
  padding: 6px 12px;
  border: 1px solid #bbb;
  background: #fff;
  cursor: pointer;
}

.view-switch button:first-child {
  border-radius: 4px 0 0 4px;
}

.view-switch button:last-child {
  border-radius: 0 4px 4px 0;
  border-left: 0;
}

.view-switch button.is-active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.size-ctl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  font-size: 14px;
}

.size-ctl[hidden] {
  display: none;
}

.size-ctl input {
  width: 140px;
  padding: 0;
}

/* ---- Detailfenster ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-media {
  position: relative;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 0 0 4px;
  cursor: pointer;
}

.modal-nav:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.8);
}

.modal-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

#detailPrev {
  left: 8px;
}

#detailNext {
  right: 8px;
}

.modal-pos {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
}

.modal-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: #ececec;
}

.modal-img img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

#detailBody {
  padding: 12px 16px 16px;
}

#detailBody .add-cart-btn {
  margin-top: 10px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  body {
    margin: 12px;
  }
  .hero {
    --tile: 64px;
  }
  .hero-text {
    padding: 0 12px 10px 12px;
  }
  #pageTitle {
    font-size: 1.25rem;
  }
  #recordList.view-grid {
    gap: 8px;
  }
  .view-grid .rec-text {
    padding: 6px 8px 8px;
  }
  .view-grid .rec-text p {
    font-size: 0.82rem;
  }
  .view-grid .rec-text p.rec-title {
    font-size: 0.9rem;
  }
}

.add-cart-btn {
  position: relative;
  z-index: 30;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid #999;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.add-cart-btn.is-saved {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}


/* ---- Ergänzungen ---- */
.nav-az-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: #fff;
  color: #333;
}

.load-more {
  display: block;
  margin: 16px auto 60px;
  padding: 8px 18px;
  border: 1px solid #2e7d32;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.load-more[hidden] {
  display: none;
}

.load-error {
  color: #b71c1c;
  font-weight: 700;
}

.legal-link {
  margin: 0 0 12px;
  font-size: 14px;
}

.notice {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fff7e0;
  border-left: 4px solid #e0a800;
  border-radius: 4px;
  color: #5c4500;
  font-size: 0.9em;
}

/* ---- Teilen-Schaltflächen ---- */
.share-btn {
  margin: 10px 0 0 8px;
  padding: 6px 10px;
  border: 1px solid #999;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

#cartShare[hidden] {
  display: none;
}

/* ---- Dunkler Modus (Umschalter oben rechts, sonst Einstellung des Geräts) ---- */
html[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] body {
  background: #121212;
  color: #e4e4e4;
}

[data-theme="dark"] a {
  color: #8ab4f8;
}

[data-theme="dark"] .filter-bar {
  background: #121212;
  border-bottom-color: #333;
}

[data-theme="dark"] .filter-bar input,
[data-theme="dark"] .filter-bar select,
[data-theme="dark"] .filter-bar button,
[data-theme="dark"] .view-switch button,
[data-theme="dark"] .nav-az-btn,
[data-theme="dark"] .nav-az-btn:disabled,
[data-theme="dark"] .load-more,
[data-theme="dark"] .share-btn,
[data-theme="dark"] .add-cart-btn,
[data-theme="dark"] .remove-item-btn,
[data-theme="dark"] #cartClear,
[data-theme="dark"] #cartCopy,
[data-theme="dark"] #cartShare,
[data-theme="dark"] #cartMail {
  background: #2a2a2a;
  color: #e4e4e4;
  border-color: #666;
}

[data-theme="dark"] .nav-az-btn:hover {
  background: #1f3d22;
  color: #9ccc65;
}

[data-theme="dark"] .nav-az {
  background: #121212;
  border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .filter-bar .view-switch button.is-active,
[data-theme="dark"] .add-cart-btn.is-saved {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

[data-theme="dark"] .cart-panel {
  background: #16241a;
  box-shadow: none;
}

[data-theme="dark"] .cart-item {
  border-top-color: #2a4a30;
}

[data-theme="dark"] #cartClear:disabled,
[data-theme="dark"] #cartCopy:disabled,
[data-theme="dark"] #cartShare:disabled,
[data-theme="dark"] #cartMail:disabled {
  color: #777;
  border-color: #444;
}

[data-theme="dark"] .record-block,
[data-theme="dark"] .view-grid .record-block {
  background: #1e1e1e;
  border-color: #3a3a3a;
}

[data-theme="dark"] .rec-text p.rec-title {
  color: #fff;
}

[data-theme="dark"] .rec-text p.rec-meta {
  color: #b8b8b8;
}

[data-theme="dark"] .rec-img,
[data-theme="dark"] .modal-img {
  background: #2a2a2a;
}

[data-theme="dark"] .rec-noimg {
  color: #999;
}

[data-theme="dark"] .view-list .record-block:hover,
[data-theme="dark"] .view-list .record-block:focus-visible {
  background: #1f3d22;
  border-color: #2e7d32;
}

[data-theme="dark"] .modal-card {
  background: #1e1e1e;
}

[data-theme="dark"] .notice {
  background: #3a3000;
  color: #ffe08a;
}

[data-theme="dark"] .load-error {
  color: #ff8a80;
}

/* ---- Handy: Suche & Filter hinter einem einzeiligen Ausklappmenü ---- */
.filter-toggle { display: none; }
.filter-panel { display: contents; }

@media (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
  .filter-bar { gap: 0; padding: 6px 0; }
  .filter-bar .filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
  }
  .filter-toggle .filter-caret { margin-left: auto; transition: transform .15s; }
  .filter-bar.is-open .filter-caret { transform: rotate(180deg); }
  .filter-badge {
    background: #2e7d32; color: #fff; border-radius: 10px;
    padding: 0 7px; font-size: 0.8rem; line-height: 1.4;
  }
  .filter-panel { display: none; }
  .filter-bar.is-open .filter-panel {
    display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 100%;
    padding-top: 8px; max-height: 70vh; overflow-y: auto;
  }
  .filter-bar input { min-width: 0; flex: 1 1 100%; font-size: 16px; } /* 16px verhindert Zoom auf dem iPhone */
  .filter-bar select { flex: 1 1 45%; font-size: 16px; }
}

[data-theme="dark"] .filter-badge { background: #4caf50; color: #111; }

@media (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
  .filter-panel .nav-az { position: static; flex: 0 0 100%; margin: 0; padding: 6px 0 0; border-bottom: 0; }
}

.est-price { font-style: italic; }

.meta-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 6px 0 10px; font-size: 0.85rem; }
.meta-row p { margin: 0; }

/* Adresse links, Impressum/Aktualisiert rechts (zweizeilig); auf dem Handy untereinander */
.info-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; margin: 12px 0 10px; }
.info-row #contactText { margin: 0; flex: 1 1 auto; }
.addr-part { display: inline-block; }
.meta-col { margin-left: auto; text-align: right; font-size: 0.85rem; }
.meta-col p { margin: 0; }
@media (max-width: 600px) {
  /* Impressum bleibt auch auf dem Handy rechts oben, auf Höhe des Namens */
  .info-row { flex-wrap: nowrap; gap: 0 10px; }
  .info-row #contactText { flex: 1 1 0; min-width: 0; font-size: 0.92rem; overflow-wrap: anywhere; }
  .meta-col { flex: 0 1 38%; font-size: 0.78rem; }
}

.info-row { padding: 0 18px; }   /* linksbündig mit dem Text im Header */

@media (max-width: 600px) { .info-row { padding: 0 12px; } }

/* ---- Kopfbereich: Titel, Kontakt, Umschalter, Impressum liegen im Bild ---- */
.hero { height: auto; min-height: calc(var(--tile) * 2); }
.hero-collage { grid-template-rows: repeat(4, var(--tile)); }
.hero::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.58)); }
.hero-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 18px; }
.hero-left { flex: 1 1 auto; min-width: 0; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.hero-left p { margin: 0; }
#contactIntro { margin: 6px 0 4px; font-size: 0.9rem; }
.hero #contactText { font-size: 0.95rem; }
.hero #contactText a { color: #fff; }
.hero-right { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hero-right .lang-switch { position: static; }
.hero .meta-col { margin: 0; color: #fff; text-align: right; font-size: 0.8rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.hero .meta-col a { color: #fff; }
.hero .legal-link { margin: 0; font-size: inherit; }
@media (max-width: 600px) {
  .hero-inner { padding: 12px; gap: 8px; }
  .hero-right { flex: 0 1 38%; }
  .hero .meta-col { font-size: 0.74rem; }
  .hero #contactText { font-size: 0.88rem; }
  #contactIntro { font-size: 0.82rem; }
}

/* Kontaktsatz: gleiche Größe wie die Adresse, je eine Leerzeile davor und danach */
#contactIntro, .hero #contactText { font-size: 0.95rem; }
.hero-left #contactIntro { margin: 1.2em 0; }
@media (max-width: 600px) {
  #contactIntro, .hero #contactText { font-size: 0.88rem; }
}

/* Impressum / Aktualisiert: mehr Zeilenabstand */
.hero .meta-col { line-height: 1.6; }
.hero .meta-col p + p { margin-top: 6px; }

/* Listenansicht: alles in einer Zeile, Umbruch nur bei Platzmangel (zwischen den Angaben) */
.view-list .rec-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.view-list .rec-text p { margin: 0; flex: 0 1 auto; }
.view-list .rec-text .rec-title { margin: 0; }
/* Computer, Laptop, iPad: Merklisten-Button rechts in derselben Zeile */
.view-list .rec-text .add-cart-btn { margin: 0 0 0 auto; align-self: center; }
/* iPhone (Hoch- und Querformat): Button in eigener Zeile unter den Angaben (Außenabstand rechts = 100 % erzwingt den Umbruch) */
@media (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
  .view-list .rec-text .add-cart-btn { margin: 4px 100% 0 0; align-self: flex-start; }
}

/* Listenansicht: Discogs-Link und Merklisten-Button als Gruppe */
.view-list .rec-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.view-list .rec-actions .rec-link { order: 1; margin: 0; }
.view-list .rec-actions .add-cart-btn { order: 2; margin: 0; align-self: auto; }
@media (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
  /* iPhone: eigene Zeile, Button links, Link rechts daneben */
  .view-list .rec-actions { flex: 0 0 100%; margin: 4px 0 0; justify-content: flex-start; }
  .view-list .rec-actions .add-cart-btn { order: 1; }
  .view-list .rec-actions .rec-link { order: 2; }
}

/* A-Z-Register: 4 Bereiche, in der Filterleiste neben den Feldern (Zeile mit Bilder/Liste) */
.filter-panel .nav-az { position: static; top: auto; flex: 0 0 auto; display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; border: 0; background: none; align-items: center; }
.filter-bar .view-switch { flex: 1 1 auto; }
.filter-panel .nav-az .nav-az-btn { padding: 6px 12px; font-size: 13px; min-width: 0; }
@media (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
  .filter-panel .nav-az { flex: 0 0 100%; margin: 0; }
  .filter-panel .nav-az .nav-az-btn { flex: 1 1 0; }
  .filter-bar .view-switch { flex: 0 0 100%; }
}
[data-theme="dark"] .filter-panel .nav-az { background: none; }

/* iPhone hoch- und quer: A-Z-Bereiche direkt unter Genre und Jahr, danach Filter zurücksetzen und Bilder/Liste */
@media (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
  .filter-panel .nav-az { order: 1; }
  .filter-panel #resetFilters { order: 2; }
  .filter-panel .view-switch { order: 3; }
}

/* ---- Hinweise zur Liste (Pop-up) ---- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.hero .meta-col .notes-link { font-weight: 700; }
.notes-card { padding: 22px 22px 18px; }
.notes-card h3 { margin: 0 40px 12px 0; }
.notes-card ol { margin: 0; padding-left: 22px; }
.notes-card li { margin: 0 0 10px; line-height: 1.45; }
[data-theme="dark"] .notes-card { color: #e8e8e8; }

/* Hinweis-Link unter "Bei Fragen ..." */
.hero-left #contactIntro { margin: 1.2em 0 .35em; }
.hero-left .notes-link { margin: 0 0 1.2em; font-size: 0.95rem; font-weight: 700; }
.hero-left .notes-link .link-btn { color: #fff; text-shadow: inherit; }
@media (max-width: 600px), (orientation: landscape) and (max-height: 500px) { .hero-left .notes-link { font-size: 0.88rem; } }

/* iPhone hochkant: Bilder/Liste bleiben außerhalb des Ausklappmenüs, direkt unter der Menü-Zeile */
@media (max-width: 600px) and (orientation: portrait) {
  .filter-bar > .view-switch { flex: 0 0 100%; margin-top: 6px; }
}

/* Computer/iPad: Suche, Formate, Länder, Genres, Jahre, Filter zurücksetzen, A-Z-Felder; Bilder/Liste in neuer Zeile */
@media (min-width: 601px) and (not ((orientation: landscape) and (max-height: 500px))) {
  .filter-panel .nav-az { order: 1; margin: 0; }
  .filter-bar .view-switch { order: 2; flex: 0 0 100%; }
}
