/* assets/site.css — pixel.ruhr Frontend */

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

:root {
  --bg:       #0a0a0a;
  --bg2:      #111;
  --border:   #222;
  --text:     #d8d8d8;
  --muted:    #666;
  --accent:   #c8a96e;
  --white:    #f0f0f0;
  --header-h: 100px;
  --max-w:    1200px;
  --narrow-w: 780px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,10,10,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  height: var(--header-h);
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo img { height: 80px; width: auto; }
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--white);
}

.site-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.site-nav a {
  padding: 6px 12px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
  border-radius: 4px;
  transition: color .2s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--white);
}
.site-nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ===== Layout ===== */

.site-body { min-height: calc(100vh - var(--header-h) - 120px); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
}
.container--narrow { max-width: var(--narrow-w); }

.section { padding: 48px 0; }
.section-dark { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ===== Start Hero ===== */

.start-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}
.hero-sub {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ===== Grid (Konzerte/Festivals/Start) ===== */

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

.grid-item {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.grid-item:hover {
  border-color: #333;
  transform: translateY(-2px);
}

.grid-item-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
}
.grid-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.grid-item:hover .grid-item-img img { transform: scale(1.03); }
.grid-item-placeholder { width: 100%; height: 100%; background: #1a1a1a; }

.grid-item-info {
  padding: 12px 14px 14px;
}
.grid-item-type {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.grid-item-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 4px;
}
.grid-item-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ===== Aktuell Liste ===== */

.aktuell-list { display: flex; flex-direction: column; gap: 1px; }

.aktuell-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.aktuell-item:hover { color: var(--white); }
.aktuell-img { width: 80px; height: 56px; flex-shrink: 0; overflow: hidden; border-radius: 3px; }
.aktuell-img img { width: 100%; height: 100%; object-fit: cover; }
.aktuell-info { flex: 1; }
.aktuell-info h3 { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.aktuell-meta { font-size: 12px; color: var(--muted); }
.aktuell-arrow { color: var(--muted); font-size: 18px; flex-shrink: 0; }

/* ===== Overview Header ===== */

.overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.overview-header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
}

.year-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.year-filter a {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  transition: all .15s;
}
.year-filter a:hover { border-color: #444; color: var(--text); }
.year-filter a.active { border-color: var(--accent); color: var(--accent); }

/* ===== List Overview (Aktuell/Tonträger) ===== */

.list-overview { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.list-item:hover { color: var(--white); }
.list-item-img { width: 100px; height: 72px; flex-shrink: 0; overflow: hidden; border-radius: 3px; background: var(--bg2); }
.list-item-img img { width: 100%; height: 100%; object-fit: cover; }
.list-item-body { flex: 1; }
.list-item-body h2 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.list-item-meta { font-size: 13px; color: var(--muted); }
.list-item-arrow { color: var(--muted); font-size: 20px; flex-shrink: 0; }

/* ===== Pagination ===== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  font-size: 13px;
}
.pagination a {
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 3px;
  transition: border-color .15s;
}
.pagination a:hover { border-color: var(--accent); }
.pagination span { color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

/* ===== Artikel ===== */

.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 14px;
}
.article-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.meta-date::before { content: '📅 '; opacity: .6; }
.meta-venue::before { content: '📍 '; opacity: .6; }

.article-album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
}
.album-rating { color: var(--accent); font-weight: 600; }

/* Artikel-Inhaltsblöcke */
.article-body > * + * { margin-top: 28px; }

.block-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.block-text p + p { margin-top: 1em; }
.block-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 2em 0 0.1em;
  line-height: 1.2;
}
.block-text h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 2em 0 0.2em;
  line-height: 1.3;
}
.block-text h2:first-child,
.block-text h3:first-child { margin-top: 0; }
.block-text h2 + br,
.block-text h3 + br { display: none; }
.block-text br { display: block; margin-bottom: 0.6em; }

.block-image img {
  width: 100%;
  border-radius: 3px;
}

/* Masonry-Galerie */
.block-gallery {
  columns: 3;
  column-gap: 8px;
  margin-bottom: 3em;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
}
.masonry-item img {
  width: 100%;
  height: auto;
  transition: transform .3s, opacity .2s;
  display: block;
}
.masonry-item:hover img { transform: scale(1.02); opacity: .9; }

.article-links {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.article-links h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.article-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.article-links a {
  font-size: 13px;
  color: var(--accent);
  border: 1px solid #333;
  padding: 4px 12px;
  border-radius: 3px;
  transition: border-color .15s;
}
.article-links a:hover { border-color: var(--accent); }

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ===== Kommentare ===== */

.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.comments-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.comments-list { margin-bottom: 32px; }
.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 13px;
}
.comment-head strong { color: var(--white); }

.comment-notice {
  padding: 12px 16px;
  background: #1a2a1a;
  border: 1px solid #2a4a2a;
  border-radius: 4px;
  color: #6aaa6a;
  font-size: 14px;
  margin-bottom: 20px;
}
.form-error {
  padding: 12px 16px;
  background: #2a1a1a;
  border: 1px solid #4a2a2a;
  border-radius: 4px;
  color: #c06060;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ===== Formulare (Kommentar / Kontakt) ===== */

.comment-form h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.form-field label small { font-weight: 400; }
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: #444;
}
.btn-submit {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  display: inline-block;
}
.btn-submit:hover { background: #b09060; }

.contact-alt { margin-top: 20px; font-size: 13px; color: var(--muted); }
.contact-alt a { color: var(--accent); }

/* ===== Statische Seiten ===== */

.static-content { margin-top: 24px; }
.static-content h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 28px 0 8px;
}
.static-content p { margin-bottom: 12px; font-size: 15px; }
.static-content a { color: var(--accent); }

/* ===== Footer ===== */

.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 48px;
}
.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a, .footer-social a {
  font-size: 13px;
  color: var(--muted);
  transition: color .15s;
}
.footer-links a:hover, .footer-social a:hover { color: var(--text); }
.footer-social { display: flex; gap: 16px; margin-left: auto; }
.footer-copy { width: 100%; font-size: 12px; color: #444; }
.footer-copy a { color: #555; }

.text-link { color: var(--accent); font-size: 13px; }
.muted { color: var(--muted); }

/* ===== Lightbox ===== */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lb-img {
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 2px;
  cursor: default;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 8px;
  transition: color .15s;
}
.lb-close { top: 16px; right: 20px; font-size: 32px; }
.lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .grid-overview { grid-template-columns: repeat(2, 1fr); }
  .grid-overview--large { grid-template-columns: repeat(3, 1fr); }
  .block-gallery { columns: 2; }
}

@media (max-width: 600px) {
  .site-nav { display: none; flex-direction: column; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 0; }
  .nav-open .site-nav { display: flex; }
  .nav-toggle { display: flex; }
  .grid-overview { grid-template-columns: repeat(2, 1fr); }
  .grid-overview--large { grid-template-columns: repeat(2, 1fr); }
  .block-gallery { columns: 2; }
  .form-row { grid-template-columns: 1fr; }
  .list-item-img { display: none; }
  .article-header h1 { font-size: 22px; }
}

/* ===== Homepage Redesign ===== */

/* Aktuell-Sektion */
.home-aktuell {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.home-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.home-section--alt {
  background: var(--bg2);
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.home-section-head h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-more {
  font-size: 12px;
  color: var(--accent);
  transition: opacity .15s;
}
.home-more:hover { opacity: .7; }

/* Aktuell Featured+List Layout */
.aktuell-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.aktuell-featured {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg2);
}
.aktuell-featured-img {
  width: 100%; height: 100%;
}
.aktuell-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.aktuell-featured:hover .aktuell-featured-img img { transform: scale(1.03); }

.aktuell-featured-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.aktuell-featured-date {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.aktuell-featured-venue {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
.aktuell-featured-overlay h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.aktuell-list-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aktuell-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: border-color .15s;
  flex: 1;
}
.aktuell-list-item:hover { border-color: #333; }
.aktuell-list-img {
  width: 72px; height: 52px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bg);
}
.aktuell-list-img img { width: 100%; height: 100%; object-fit: cover; }
.aktuell-list-info { flex: 1; min-width: 0; }
.aktuell-list-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aktuell-list-info p { font-size: 11px; color: var(--muted); }
.aktuell-list-item > span { color: var(--muted); flex-shrink: 0; }

/* Home Grid (Konzerte/Festivals) */
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.home-card:hover {
  border-color: #333;
  transform: translateY(-2px);
}
.home-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
}
.home-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.home-card:hover .home-card-img img { transform: scale(1.04); }
.home-card-placeholder { width: 100%; height: 100%; background: #161616; }
.home-card-info {
  padding: 10px 12px 12px;
}
.home-card-info h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 4px;
}
.home-card-info p {
  font-size: 11px;
  color: var(--muted);
}

/* Consent field */
.consent-field { margin-top: 4px; }
.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
.consent-label input { margin-top: 3px; flex-shrink: 0; }
.consent-label a { color: var(--accent); }
.form-hint { font-size: 12px; color: var(--muted); margin: 8px 0 16px; }

/* Static content list */
.static-content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0 16px;
}
.static-content ul li { margin-bottom: 4px; font-size: 15px; }

/* Logo in header */
.site-logo img, .site-logo object {
  height: 80px;
  width: auto;
}

/* Responsive Homepage */
@media (max-width: 900px) {
  .aktuell-strip { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .aktuell-featured-overlay h3 { font-size: 15px; }
}

/* ===== SUCHE ===== */

.nav-search-icon {
  display: flex;
  align-items: center;
  opacity: .7;
  transition: opacity .2s;
}
.nav-search-icon:hover { opacity: 1; }

.search-form {
  padding: 20px;
  margin-bottom: 28px;
}
.search-main {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.search-input {
  flex: 1;
  background: var(--bg3, #111);
  border: 1px solid var(--border, #2e2e2e);
  border-radius: var(--radius, 4px);
  color: var(--text, #e0e0e0);
  font-size: 16px;
  padding: 10px 14px;
  font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--accent, #c8a96e); }
.search-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.search-select {
  background: var(--bg3, #111);
  border: 1px solid var(--border, #2e2e2e);
  border-radius: var(--radius, 4px);
  color: var(--text, #e0e0e0);
  font-size: 13px;
  padding: 7px 10px;
  font-family: inherit;
  cursor: pointer;
}
.search-select:focus { outline: none; border-color: var(--accent, #c8a96e); }
.search-results-header { margin-bottom: 16px; }
.search-count { font-size: 13px; color: var(--muted, #666); }
.search-no-results { color: var(--muted, #666); font-size: 14px; padding: 20px 0; }
.search-suggestions h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, #666);
  margin-bottom: 12px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--bg2, #1a1a1a);
  border: 1px solid var(--border, #2e2e2e);
  border-radius: 3px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--muted, #888);
  text-decoration: none;
  transition: all .15s;
}
.tag:hover { border-color: var(--accent, #c8a96e); color: var(--text, #e0e0e0); }

/* ===== Doppel-Block ===== */
.block-doppel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.doppel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  cursor: zoom-in;
  display: block;
}
