/**
 * Mobile-spezifische Styles
 */

html, body {
  height: 100%;
}

body {
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  max-height: calc(100% - var(--unterstreifen-height, 40px) - env(safe-area-inset-bottom));
}

header img {
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
  flex-shrink: 1;
}

header,
header.location-header {
  padding: 16px;
  padding-right: calc(16px + 44px + 10px); /* Platz für Zahnrad reservieren */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0;
  position: relative; /* für absolutes Zahnrad */
}

/* Logo kann schrumpfen wenn nötig */
header > img,
header > svg {
  height: 50px;
  width: auto;
  flex-shrink: 1;
  min-width: 30px;
  object-fit: contain;
}

/* Einstellungen-Button absolut rechts positioniert */
header > .einstellungen-button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Bei Suche: Input statt Logo */
header.Suche .mobile-suche-input {
  flex: 1;
  min-width: 0;
  max-width: 300px;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

#mobile-location-select {
  font-size: 18px;
  padding: 6px;
  border-radius: 6px;
  border: none;
  flex-shrink: 0;
  color: var(--location-color, inherit);
  background: var(--location-bg, white);
}

/* Nochtspeicher Dropdown: eyecancer-Farben statt Header-Farben */
header.Nochtspeicher #mobile-location-select {
  background: #a60f43;
  color: #0fa672;
}

#mobile-konzerte {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#mobile-konzerte a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background: var(--location-bg, #eee);
  color: var(--location-color, inherit);
  border: var(--location-border, none);
  position: relative;
}

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

#mobile-konzerte .titel {
  font-size: 25px;
  margin: 6px 0;
  text-align: center;
}

/* Mobile: Datum/Details etwas kleiner */
#mobile-konzerte .details {
  font-size: 12px;
}

#mobile-konzerte .startdatum,
#mobile-konzerte .unterraum,
#mobile-konzerte .preis {
  font-size: 12px;
}

#mobile-konzerte .genres {
  font-size: 12px;
}

/* Mobile-spezifische Details-Anpassungen */
.unterraum {
  font-size: 15px;
}

/* ========================================
   Mobile Suche
   ======================================== */
.mobile-suche-input {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
}

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

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

header.Suche {
  --location-bg: #f5f5f5;
  --location-color: #333;
  background: var(--location-bg, #f5f5f5);
  color: var(--location-color, #333);
}

header.Suche #mobile-location-select {
  background: var(--location-bg, #f5f5f5);
  color: var(--location-color, #333);
}


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

header.Chronologie {
  --location-bg: #e8f4e8;
  --location-color: #2d5a2d;
  background: var(--location-bg, #e8f4e8);
  color: var(--location-color, #2d5a2d);
}

header.Chronologie #mobile-location-select {
  background: var(--location-bg, #e8f4e8);
  color: var(--location-color, #2d5a2d);
}
