/**
 * Component Styles
 * Wiederverwendbare UI-Komponenten
 */

/* ========================================
   Location Header (im Speicher)
   ======================================== */
.location-header {
  padding: 6px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--location-bg);
  color: var(--location-color);
  border: var(--location-border, none);
}

/* Logo-Container für Venue-Namen */
.logo-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Vertikaler Logo-Container (für Club 73 im Speicher) */
.logo-container-vertical {
  flex-direction: column;
  gap: 0;
}

/* Venue-Namen (standardmäßig versteckt) */
.venue-name {
  display: none;
  font-weight: bold;
  font-size: 16px;
}

/* Venue-Namen anzeigen wenn aktiviert */
body.venuenamen .venue-name {
  display: inline;
}

body.venuenamen .logo-container-vertical .venue-name {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1;
}

/* Club 73: SVG schrumpfen wenn Venuenamen aktiv */
body.venuenamen .Club73 .logo-container-vertical svg,
body.venuenamen .Club73 .logo-container-vertical img {
  height: 30px;
}

/* Club 73 im Speicher: gleiche Höhe wie andere Header */
#location-speicher .location-header.Club73 {
  padding: 6px;
}

#location-speicher .location-header.Club73 .logo-container-vertical svg,
#location-speicher .location-header.Club73 .logo-container-vertical img {
  height: 58px; /* 70px - 12px padding */
}

.location-header img,
.location-header svg {
  height: 70px;
  width: auto;
  max-width: 150px;
}

.location-header.Hafenbahnhof img {
  height: 36px;
}

.location-header.Aalhaus {
  padding: 0; /* Kompensiert 12px Border oben + unten */
}

.location-header.Aalhaus img,
.location-header.Aalhaus svg {
  height: 58px; /* 82px - 24px Border = 58px für Logo */
}

.location-spalten-header img,
.location-spalten-header svg {
  height: 60px;
  width: auto;
  max-width: 250px;
}

.location-spalten-header.Aalhaus {
  padding: 0; /* Kompensiert 12px Border oben + unten */
}

.location-spalten-header.Aalhaus img,
.location-spalten-header.Aalhaus svg {
  height: 56px; /* 80px - 24px Border = 56px für Logo */
}

/* ========================================
   Location Spalten-Header (im Grid)
   ======================================== */
.location-spalten-header {
  grid-column: 1 / -1;
  font-weight: bold;
  padding: 10px;
  background: var(--location-bg);
  color: var(--location-color);
  border: var(--location-border, none);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========================================
   Konzert-Karten
   ======================================== */
.location-konzerte > a {
  padding: 10px;
  border-radius: 6px;
  display: block;
  text-decoration: none;
  background: var(--location-bg, #eee);
  color: var(--location-color, inherit);
  border: var(--location-border, none);
}

.location-konzerte > a h1 {
  font-size: 13pt;
  text-align: center;
  margin: 0;
  padding: 0;
}

.location-konzerte > a h2,
.location-konzerte > a time {
  font-size: 10pt;
}

.location-konzerte > a h2 {
  text-align: center;
  width: 100%;
  display: block;
}

.location-konzerte > a.Aalhaus {
  padding: 0; /* Kompensiert 12px Border */
}

/* ========================================
   Details (Datum, Zeit, Unterraum)
   ======================================== */
.details {
  display: flex;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
  gap: 8px;
}

.details > * {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.startdatum {
  margin-right: auto;
}

.unterraum {
  text-align: center;
  margin: 0 auto;
  flex-shrink: 2;
}

.startzeit {
  margin-left: auto;
}

/* ========================================
   Drag & Drop States
   ======================================== */
.wird-gezogen {
  opacity: 0.4;
  filter: grayscale(100%);
}

.insert-marker {
  width: 50px;
}

/* ========================================
   Select Dropdown (in Location Header)
   ======================================== */
.location-header > select {
  background: var(--location-color);
  color: var(--location-bg);
  border: none;
  border-radius: 4px;
  padding: 4px;
}

/* ========================================
   Suche
   ======================================== */
.location-spalten-header.Suche {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  width: 100%;
  box-sizing: border-box;
  min-height: 80px; /* Gleiche Höhe wie andere Header (60px Logo + 20px Padding) */
}

.suche-icon-wrapper {
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.suche-icon-wrapper img {
  height: 30px;
  width: 30px;
}

.suche-input {
  flex: 1;
  min-width: 150px;
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.suche-input:focus {
  border-color: #666;
}

.suche-input::placeholder {
  color: #999;
}

.location-header.Suche {
  background: #f5f5f5;
}

.location-header.Suche img {
  height: 40px;
  width: 40px;
}

/* ========================================
   Chronologie
   ======================================== */
.location-spalten-header.Chronologie,
.location-header.Chronologie {
  background: #e8f4e8;
  color: #2d5a2d;
}

.location-spalten-header.Chronologie img,
.location-spalten-header.Chronologie svg,
.location-header.Chronologie img,
.location-header.Chronologie svg {
  height: 50px;
  width: auto;
}

.chronologisch-tag-header {
  font-weight: bold;
  padding: 12px 10px 6px;
  font-size: 16px;
  color: #555;
  border-bottom: 1px solid #ddd;
  margin-top: 8px;
  text-align: center;
}

.chronologisch-tag-header:first-child {
  margin-top: 0;
}

.chronologisch-konzerte > a {
  padding: 8px 10px;
}
