/* JMS Orchestra - Main Stylesheet */

/* ========================================
   CSS Variables
   ======================================== */
:root {
  /* Colors */
  --jms-yellow: #F5C518;
  --jms-gold: #D4A017;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border-light: #e2e8f0;

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 3rem;
  --section-padding-mobile: 2rem;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--jms-yellow);
  color: var(--text-dark);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

.text-accent {
  color: var(--jms-gold);
}

.text-muted {
  color: var(--text-muted);
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section {
  padding: var(--section-padding-mobile) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-padding) 0;
  }
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
}

.section-yellow {
  background-color: var(--jms-yellow);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  height: 64px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--jms-gold);
}

.navbar-menu {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
}

.navbar-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.navbar-menu a:hover {
  color: var(--jms-gold);
}

.navbar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: transform 0.2s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 64px; /* Account for fixed navbar */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #ffffff;
  max-width: 600px;
}

.hero-content h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--jms-yellow);
  color: var(--text-dark);
}

.btn-primary:hover {
  background-color: var(--jms-gold);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--text-dark);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #1e293b;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(245, 197, 24, 0.1);
  color: var(--jms-gold);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.card-link {
  display: block;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flyer-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

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

.archive-item {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.archive-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.archive-item img {
  width: 100%;
  display: block;
}

.concert-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.concert-cover {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.concert-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.concert-cover.active {
  outline: 3px solid var(--jms-gold);
  outline-offset: 2px;
}

.concert-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.concert-cover:hover img {
  transform: scale(1.05);
}

.concert-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-light) 100%);
  color: var(--text-light);
  font-size: 0.875rem;
}

.concert-cover-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: #ffffff;
}

.concert-cover-title h3 {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 0.125rem;
}

.concert-cover-title p {
  font-size: 0.75rem;
  opacity: 0.9;
  color: #ffffff;
}

.concert-gallery {
  display: none;
  margin-top: 2.5rem;
}

.concert-gallery.active {
  display: block;
}

.concert-gallery-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.concert-gallery-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  color: var(--text-muted);
}

.schedule-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.schedule-table thead {
  background-color: var(--text-dark);
}

.schedule-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.schedule-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  vertical-align: top;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover {
  background-color: var(--bg-light);
}

.schedule-table .schedule-date {
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-dark);
}

.schedule-table tr.schedule-concert {
  background-color: rgba(245, 197, 24, 0.12);
}

.schedule-table tr.schedule-concert:hover {
  background-color: rgba(245, 197, 24, 0.2);
}

.schedule-table tr.schedule-concert td {
  color: var(--text-dark);
  font-weight: 600;
}

.schedule-table tr.schedule-weekend td {
  background-color: rgba(15, 23, 42, 0.03);
  font-style: italic;
}

.ordnung-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 850px;
  margin: 0 auto;
}

/* ========================================
   Grid Layouts
   ======================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

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

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

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

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

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

/* ========================================
   Flex Layouts
   ======================================== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

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

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ========================================
   Two Column Layout
   ======================================== */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-col {
    flex-direction: row;
    align-items: center;
  }

  .two-col > * {
    flex: 1;
  }
}

/* ========================================
   Stats
   ======================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--jms-gold);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========================================
   Testimonials
   ======================================== */
.testimonial {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.875rem;
}

.testimonial-event {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ========================================
   Tags / Pills
   ======================================== */
.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
}

.tag-primary {
  background-color: rgba(245, 197, 24, 0.2);
  color: var(--jms-gold);
}

.tag-muted {
  background-color: var(--bg-light);
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: var(--jms-yellow);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--jms-gold);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   Contact Info
   ======================================== */
.contact-card {
  background-color: var(--bg-light);
  padding: 1.5rem 2rem;
  border-radius: 8px;
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-item {
  margin-bottom: 1.25rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-muted);
}

.contact-item a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--jms-gold);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--jms-yellow);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.footer-grid > div > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.footer-grid > div > p + p {
  margin-top: 0.5rem;
}

.footer h3 {
  color: #ffffff;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--jms-yellow);
}

.footer address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.pt-nav { padding-top: 64px; }

.hidden { display: none; }

@media (max-width: 767px) {
  .md-hidden { display: none; }
}

/* ========================================
   Page Header (for subpages)
   ======================================== */
.page-header {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
}

.page-header .hero-bg {
  position: absolute;
  inset: 0;
}

.page-header .hero-overlay {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9));
}

.page-header-content {
  position: relative;
  z-index: 10;
  color: #ffffff;
  padding: 0 1rem;
}

.page-header-content h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-header-content p {
  font-size: 1.125rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}
