/* ================================================================
   Astro Planner v2 — watchlist.css (Improved Design v2.1)
   Modernes Design mit weichen Schatten und eleganten Animationen
   ================================================================ */

/* ── Variablen ──────────────────────────────────────────────── */
.mbastro-v2-watchlist {
  --c-panel:    linear-gradient(135deg, #1e2836 0%, #2a3547 100%);
  --c-panel2:   #1a2332;
  --c-field-bg: linear-gradient(135deg, #2d3d52 0%, #344355 100%);
  --c-field-bd: #4a5d78;
  --c-accent:   linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --c-accent-solid: #667eea;
  --c-accent-h: linear-gradient(135deg, #7c93f5 0%, #8b5db8 100%);
  --c-green:    #4ade80;
  --c-text:     #f1f5f9;
  --c-label:    #94a3b8;
  --c-muted:    #64748b;
  --c-dark-text:#1e293b;
  --c-card-bd:  #e2e8f0;
  --r:          8px;
  --r-lg:       12px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.15);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.2);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.25);
  --glow-accent: 0 0 20px rgba(102, 126, 234, 0.3);

  max-width: 1240px;
  margin: 0 auto;
  font-family: var(--font);
  color: var(--c-dark-text);
}

/* ================================================================
   HEADER-PANEL (im Stil des Planner Filter-Panels)
   ================================================================ */
/* Wrapper für Header und Filter zusammen */
.mbastro-v2-watchlist-controls {
  background: var(--c-panel);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  margin-bottom: 16px;
}

.mbastro-v2-watchlist-controls::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-accent);
  opacity: 0.8;
}

.mbastro-v2-watchlist-head {
  padding: 0;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
  position: relative;
  overflow: visible;
}

.mbastro-v2-watchlist-head::before {
  display: none;
}

.mbastro-v2-watchlist-head-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  overflow: visible;
}

@media (max-width: 800px) {
  .mbastro-v2-watchlist-head-content {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  
  .mbastro-v2-watchlist-left {
    min-width: 0;
  }
}

.mbastro-v2-watchlist-login {
  background: linear-gradient(135deg, #fff6f6 0%, #fef2f2 100%);
  border: 1px solid #fecaca;
  padding: 14px 16px;
  border-radius: 12px;
  margin: 12px 0;
  box-shadow: 0 2px 8px rgba(254, 202, 202, 0.2);
  font-weight: 500;
  color: #991b1b;
}

.mbastro-v2-watchlist-left {
  flex: 1;
  min-width: 180px;
}

/* ── Custom Multiselect Styles ──────────────────────────────── */
.ap-multiselect { 
  position: relative;
  display: inline-flex;
}

.mbastro-v2-watchlist-display {
  display: flex;
  align-items: center;
  gap: 0;
}

.mbastro-v2-watchlist-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-ms-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  transition: all 0.25s ease;
  border-radius: var(--r);
  flex-shrink: 0;
  font-size: 36px;
  line-height: 1;
  color: var(--c-accent-solid);
}

.ap-ms-trigger:hover {
  background: rgba(102, 126, 234, 0.15);
  color: #7c93f5;
}

.ap-multiselect.is-open .ap-ms-trigger {
  transform: rotate(180deg);
}

.ap-ms-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  width: max-content;
  background: linear-gradient(135deg, #2d3d52 0%, #344355 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: var(--r);
  z-index: 10001;
  overflow-y: auto;
  max-height: 400px;
  box-shadow: var(--shadow-lg), var(--glow-accent);
  animation: slideDown 0.2s ease;
}
.ap-ms-dropdown[hidden] { display: none; }

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ap-ms-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--c-text);
  transition: all 0.15s ease;
  user-select: none;
  font-weight: 500;
}
.ap-ms-option:hover { 
  background: rgba(102, 126, 234, 0.15);
  padding-left: 16px;
}
.ap-ms-option.is-selected {
  background: rgba(102, 126, 234, 0.1);
  font-weight: 600;
}

/* ── Watchlist Select Wrapper ───────────────────────────────── */
.mbastro-v2-watchlist-multiselect {
  display: inline-flex;
}

.mbastro-v2-watchlist-select {
  width: auto;
  min-width: 280px;
  max-width: 400px;
  box-sizing: border-box;
  background: var(--c-field-bg);
  border: 1px solid var(--c-field-bd);
  border-radius: var(--r);
  color: #f1f5f9 !important;
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 12px;
  padding-right: 36px;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-weight: 500;
  text-align: left;
}

.mbastro-v2-watchlist-select:hover {
  border-color: #6a7e99;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
  color: #f1f5f9 !important;
}

.mbastro-v2-watchlist-select:focus {
  border-color: var(--c-accent-solid);
  background: linear-gradient(135deg, #344355 0%, #3d4f66 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), var(--glow-accent);
  transform: translateY(-1px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: #f1f5f9 !important;
}

.mbastro-v2-watchlist-select option {
  background: #2d3748;
  color: #f1f5f9 !important;
}

.mbastro-v2-watchlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

/* Settings Dropdown */
.mbastro-v2-watchlist-settings-dropdown {
  position: relative;
  display: inline-block;
}

.mbastro-v2-watchlist-settings-btn {
  padding: 10px;
  border-radius: var(--r);
  border: none;
  background: transparent;
  color: var(--c-accent-solid);
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
}

.mbastro-v2-watchlist-settings-btn:hover {
  color: #7c93f5;
  transform: scale(1.1);
}

.mbastro-v2-watchlist-settings-btn[aria-expanded="true"] {
  color: #7c93f5;
}

.mbastro-v2-watchlist-settings-menu {
  position: fixed;
  top: 0;
  right: 0;
  background: var(--c-panel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), var(--glow-accent);
  min-width: 200px;
  z-index: 1000;
  padding: 8px;
  animation: slideDown 0.2s ease;
  /* Position wird dynamisch per JavaScript gesetzt */
}

.mbastro-v2-watchlist-settings-menu[hidden] {
  display: none;
}

.mbastro-v2-watchlist-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--c-text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--r);
  text-align: left;
}

.mbastro-v2-watchlist-menu-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.mbastro-v2-watchlist-menu-item:hover {
  background: rgba(102, 126, 234, 0.15);
  color: var(--c-text);
  padding-left: 16px;
}

.mbastro-v2-watchlist-menu-item:hover svg {
  opacity: 1;
}

.mbastro-v2-watchlist-actions .mbastro-v2-btn {
  padding: 10px 16px;
  border-radius: var(--r);
  border: 1px solid var(--c-field-bd);
  background: var(--c-field-bg);
  color: var(--c-label);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.mbastro-v2-watchlist-actions .mbastro-v2-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.2s;
}

.mbastro-v2-watchlist-actions .mbastro-v2-btn:hover {
  border-color: #6a7e99;
  color: var(--c-text);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mbastro-v2-watchlist-actions .mbastro-v2-btn:hover::before {
  opacity: 1;
}

/* ================================================================
   FILTER-PANEL (unterhalb Header)
   ================================================================ */

.mbastro-v2-filters-row {
  padding: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
}

.mbastro-v2-filters-row::before {
  display: none;
}

/* Filter Grid Layout */
.mbastro-v2-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0px 24px 24px;
  align-items: flex-end;
}

.mbastro-v2-filter-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mbastro-v2-filter-label {
  color: var(--c-text);
  letter-spacing: 0.02em;
  padding-left: 2px;
}

@media (max-width: 900px) {
  .mbastro-v2-filters-row {
    gap: 10px;
  }
  
  .mbastro-v2-filter-group {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 100%;
  }
}

/* Filter Inputs */
.mbastro-v2-filters-row select,
.mbastro-v2-filters-row input[type="date"],
.mbastro-v2-filters-row input[type="number"] {
  width: auto;
  min-width: 140px;
  box-sizing: border-box;
 background: var(--global-palette9);
  border: 1px solid var(--c-field-bd);
  border-radius: var(--r);
  color: #f1f5f9 !important;
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.mbastro-v2-filter-group select,
.mbastro-v2-filter-group input {
  width: 100%;
}

.mbastro-v2-filter-group .ap-multiselect,
.mbastro-v2-filter-group .ap-ms-trigger {
  width: 100%;
}

/* Type-Filter Button im Filter-Group sollte wie ein normales Input aussehen */
.mbastro-v2-filter-group .ap-ms-trigger {
  width: 100% !important;
  min-width: 140px;
  height: auto !important;
  min-height: 54px;
  line-height: 1.5 !important;
  box-sizing: border-box;
 background: var(--global-palette9);
  border: 1px solid var(--c-field-bd) !important;
  border-radius: var(--r);
  color: #f1f5f9 !important;
  font-family: var(--font);
  font-size: 14px !important;
  padding: 10px 12px !important;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  justify-content: space-between !important;
  cursor: pointer;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
}

.mbastro-v2-filter-group .ap-ms-trigger:hover {
  border-color: #6a7e99;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
  background: var(--c-field-bg);
  color: #f1f5f9;
}

.mbastro-v2-filter-group .ap-ms-trigger:focus {
  border-color: var(--c-accent-solid);
  background: linear-gradient(135deg, #344355 0%, #3d4f66 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), var(--glow-accent);
}

.mbastro-v2-filter-group .ap-ms-label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
}

.mbastro-v2-filter-group .ap-ms-chevron {
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.25s ease;
}

/* Verhindere Rotation des Type-Filter-Triggers (nur Watchlist-Dropdown soll rotieren) */
.mbastro-v2-filter-group .ap-multiselect.is-open .ap-ms-trigger {
  transform: none;
}

/* Aber rotiere das Chevron */
.mbastro-v2-filter-group .ap-multiselect.is-open .ap-ms-chevron {
  transform: rotate(180deg);
}

.mbastro-v2-filters-row select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  font-weight: 500;
}

.mbastro-v2-filters-row select:hover,
.mbastro-v2-filters-row input[type="date"]:hover,
.mbastro-v2-filters-row input[type="number"]:hover {
  border-color: #6a7e99;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
  color: #f1f5f9 !important;
}

.mbastro-v2-filters-row select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.mbastro-v2-filters-row select:focus,
.mbastro-v2-filters-row input[type="date"]:focus,
.mbastro-v2-filters-row input[type="number"]:focus {
  border-color: var(--c-accent-solid);
  background: linear-gradient(135deg, #344355 0%, #3d4f66 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), var(--glow-accent);
  transform: translateY(-1px);
  color: #f1f5f9 !important;
}

.mbastro-v2-filters-row select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.mbastro-v2-filters-row select option {
  background: #2d3748;
  color: #f1f5f9 !important;
}

.mbastro-v2-filters-row input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) brightness(1.2);
  cursor: pointer;
  transition: filter 0.2s;
}

.mbastro-v2-filters-row input[type="date"]:hover::-webkit-calendar-picker-indicator {
  filter: invert(0.8) brightness(1.4);
}

.mbastro-v2-filters-row input[type="number"]::-webkit-inner-spin-button {
  opacity: 0.4;
}

.mbastro-v2-filters-row input::placeholder {
  color: #607d99;
}

/* Checkbox Label */
.mbastro-v2-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  border-radius: var(--r);
  transition: all 0.2s ease;
}

.mbastro-v2-filter-check:hover {
  background: rgba(255,255,255,0.03);
}

.mbastro-v2-filter-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--c-accent-solid);
  flex-shrink: 0;
}

/* ================================================================
   OBJEKT-CARDS (exakte Kopie aus results.css)
   ================================================================ */
.mbastro-v2-card {
  background: var(--c-panel);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
  position: relative;
  margin-bottom: 12px;
}

.mbastro-v2-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
  opacity: 0.6;
}

.mbastro-v2-card:hover { 
  box-shadow: var(--shadow-lg), var(--glow-accent);
  transform: translateY(-2px);
  border-color: rgba(102, 126, 234, 0.3);
}

.mbastro-v2-card-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-accent-solid);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.mbastro-v2-card-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s ease;
}

.mbastro-v2-card-title-link:hover .mbastro-v2-card-title {
  color: #7c93f5;
  text-decoration: underline;
  text-decoration-color: rgba(102, 126, 234, 0.5);
  text-underline-offset: 3px;
}

.mbastro-v2-card-name {
  font-weight: 400;
}

.mbastro-v2-card-alt-catalog {
  color: var(--c-card-bd);
  font-weight: 500;
  font-family: monospace;
  letter-spacing: 0.02em;
  opacity: 0.7;
margin-top: -10px;
  margin-bottom: -6px;
}

/* 3-Spalten Body */
.mbastro-v2-card-body {
  display: grid;
  grid-template-columns: 1.5fr 2fr 2fr;
  gap: 0;
  min-height: 140px;
}

@media (max-width: 900px) {
  .mbastro-v2-card-body {
    grid-template-columns: 1fr;
  }
}

/* Spalte 1: Objektinformationen + Buttons */
.mbastro-v2-card-col1 {
  padding: 16px 18px 14px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mbastro-v2-card-info-row {
  color: var(--c-text);
  display: flex;
  gap: 8px;
  line-height: 1.4;
}

.mbastro-v2-card-label {
  color: var(--c-label);
  min-width: 70px;
  flex-shrink: 0;
}

/* Buttons am Ende von Spalte 1 */
.mbastro-v2-card-actions { 
  display: flex; 
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.mbastro-v2-btn-note {
  padding: 7px 12px;
  border-radius: var(--r);
  border: 1px solid var(--c-field-bd);
  background: var(--c-field-bg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--c-label);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mbastro-v2-btn-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.2s;
}

.mbastro-v2-btn-note:hover { 
  border-color: #6a7e99;
  color: var(--c-text);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mbastro-v2-btn-note:hover::before {
  opacity: 1;
}

/* Spalte 2: Bild + Credits */
.mbastro-v2-card-col2 {
  padding: 16px 18px 14px;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mbastro-v2-card-image-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mbastro-v2-card-image-link {
  display: block;
  text-align: center;
}

.mbastro-v2-card-image-link:hover .mbastro-v2-card-image {
  transform: scale(1.02);
}

.mbastro-v2-card-image {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  object-fit: cover;
  max-height: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.mbastro-v2-card-image:hover {
  transform: scale(1.02);
}

.mbastro-v2-card-credits {
  font-size: 10px;
  color: var(--c-muted);
  font-style: italic;
  text-align: center;
  line-height: 1.3;
  opacity: 0.8;
}

/* Spalte 3: Remove Button + Diagramm */
.mbastro-v2-card-col3 {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
}

/* Remove Button (wie Watchlist-Stern in results.css) */
.mbastro-v2-watchlist-remove-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.mbastro-v2-btn-remove-from-watchlist {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-field-bd);
  background: var(--c-field-bg);
  color: var(--c-label);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mbastro-v2-btn-remove-from-watchlist:hover {
  border-color: #ef4444;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.mbastro-v2-card-diagram {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.mbastro-v2-card-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.1) 50%, rgba(148, 163, 184, 0.2) 100%);
}

.mbastro-v2-diagram-loading,
.mbastro-v2-diagram-error {
  font-size: 12px;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  text-align: center;
  font-weight: 500;
}

.mbastro-v2-diagram-vis {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.2);
}

.mbastro-v2-diagram-chart {
  width: 100%;
}

.mbastro-v2-diagram-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.mbastro-v2-diagram-caption {
  font-size: 10px;
  color: var(--c-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Notiz */
.mbastro-v2-note-wrap {
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
}

.mbastro-v2-note-text {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--c-field-bd);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 13px;
  resize: vertical;
  color: var(--c-text);
  transition: all 0.2s ease;
  background: var(--c-field-bg);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.mbastro-v2-note-text:focus {
  border-color: var(--c-accent-solid);
  background: linear-gradient(135deg, #344355 0%, #3d4f66 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), var(--glow-accent);
  transform: translateY(-1px);
}

.mbastro-v2-note-text::placeholder {
  color: #607d99;
}

.mbastro-v2-note-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mbastro-v2-btn-save-note {
  padding: 7px 12px;
  border-radius: var(--r);
  border: 1px solid var(--c-field-bd);
  background: var(--c-field-bg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--c-label);
  transition: all 0.2s ease;
}

.mbastro-v2-btn-save-note:hover {
  border-color: #6a7e99;
  color: var(--c-text);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mbastro-v2-note-status {
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 500;
}

/* ================================================================
   RESPONSIVE DESIGN - Mobile & Tablet Optimierungen
   ================================================================ */

/* Tablet: 900px - 1024px */
@media (max-width: 1024px) {
  .mbastro-v2-watchlist {
    max-width: 100%;
  }
}

/* Tablet: 768px - 900px */
@media (max-width: 900px) {
  
  .mbastro-v2-watchlist-head-content {
    padding: 22px 20px 20px;
  }
  
  /* Filters Row */
  .mbastro-v2-filters-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 18px 20px;
    gap: 12px;
  }
  
  /* Result Cards - 2 Spalten oben, dritte unten */
  .mbastro-v2-card-body {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  
  .mbastro-v2-card-col1 {
    grid-column: 1;
    grid-row: 1;
  }
  
  .mbastro-v2-card-col2 {
    grid-column: 2;
    grid-row: 1;
  }
  
  .mbastro-v2-card-col3 {
    grid-column: 1 / -1;
    grid-row: 2;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
  }
  
  .mbastro-v2-card-diagram {
    flex: 1;
    min-width: 200px;
  }
}

/* Tablet Portrait: 600px - 768px */
@media (max-width: 768px) {
  
  /* Header */
  .mbastro-v2-watchlist-head-content {
    padding: 20px 18px 18px;
    gap: 16px;
  }
  
  .mbastro-v2-watchlist-multiselect {
    width: auto;
  }
  
  .mbastro-v2-watchlist-select {
    font-size: 13px;
    padding: 9px 10px;
    padding-right: 32px;
  }
  
  /* Filters Row - stapeln */
  .mbastro-v2-filters-row {
    padding: 16px 18px;
    gap: 10px;
  }
  
  .mbastro-v2-filter-group {
    flex: 1 1 auto;
    min-width: 140px;
  }
  
  .mbastro-v2-filter-sort,
  .mbastro-v2-filter-date,
  .mbastro-v2-filter-location,
  .mbastro-v2-filter-horizon,
  .mbastro-v2-filter-lat,
  .mbastro-v2-filter-lon,
  .mbastro-v2-filter-minalt {
    font-size: 13px;
    padding: 9px 10px;
  }
  
  /* Result Cards - vollständig gestapelt */
  .mbastro-v2-card-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .mbastro-v2-card-col1 {
    grid-column: 1;
    grid-row: 1;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    padding: 16px 18px 14px;
    padding-right: 56px; /* Platz für Remove-Button */
  }
  
  .mbastro-v2-card-col2 {
    grid-column: 1;
    grid-row: 2;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
  }
  
  .mbastro-v2-card-image {
    max-width: 300px;
    max-height: 250px;
  }
  
  .mbastro-v2-card-col3 {
    grid-column: 1;
    grid-row: 3;
    border-top: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
    background: transparent;
  }
  
  /* Button-Styling wenn in col3 (mobile) */
  .mbastro-v2-card-col3 .mbastro-v2-card-actions {
    padding: 12px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 0;
  }
  
  .mbastro-v2-card-diagram {
    width: 100%;
    padding: 12px 18px;
  }
  
  /* Remove-Button oben rechts positionieren */
  .mbastro-v2-watchlist-remove-wrap {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 10;
  }
  
  .mbastro-v2-card-diagram {
    width: 100%;
    padding: 12px 18px;
  }
}

/* Mobile: 480px - 600px */
@media (max-width: 600px) {
  
  .mbastro-v2-watchlist-controls {
    border-radius: 10px;
  }
  
  /* Header */
  .mbastro-v2-watchlist-head-content {
    padding: 18px 16px 16px;
    gap: 14px;
  }
  
  .mbastro-v2-watchlist-label {
    font-size: 16px;
  }
  
  .ap-ms-trigger {
    width: 22px;
    height: 22px;
  }
  
  /* Type-Filter in Filter-Group muss volle Breite behalten */
  .mbastro-v2-filter-group .ap-ms-trigger {
    width: 100% !important;
    height: auto !important;
    min-height: 54px;
  }
  
  .mbastro-v2-watchlist-select {
    font-size: 12px;
    padding: 8px 10px;
    padding-right: 30px;
  }
  
  .mbastro-v2-watchlist-actions .mbastro-v2-btn {
    padding: 9px 14px;
    font-size: 12px;
  }
  
  /* Filters Row */
  .mbastro-v2-filters-row {
    padding: 14px 16px;
  }
  
  .mbastro-v2-filter-group {
    flex: 1 1 auto;
    min-width: 130px;
  }
  
  .mbastro-v2-filter-sort,
  .mbastro-v2-filter-date,
  .mbastro-v2-filter-location,
  .mbastro-v2-filter-horizon,
  .mbastro-v2-filter-lat,
  .mbastro-v2-filter-lon,
  .mbastro-v2-filter-minalt {
    font-size: 12px;
    padding: 8px 10px;
  }
  
  .mbastro-v2-filter-check {
    font-size: 12px;
  }
  
  /* Result Cards */
  .mbastro-v2-card {
    border-radius: 10px;
  }
  
  .mbastro-v2-card-header {
    padding: 12px 16px 10px;
  }
  
  .mbastro-v2-card-title {
    font-size: 1.05rem;
  }
  
  .mbastro-v2-card-col1 {
    padding: 12px;
    padding-right: 50px;
  }
  
  .mbastro-v2-card-col1 {
    padding: 12px;
    padding-right: 50px;
  }
  
  .mbastro-v2-card-info-row {
    font-size: 13px;
  }
  
  .mbastro-v2-card-label {
    min-width: 65px;
    font-size: 13px;
  }
  
  .mbastro-v2-card-col2 {
    padding: 12px;
  }
  
  .mbastro-v2-card-image {
    max-width: 250px;
    max-height: 200px;
  }
  
  .mbastro-v2-card-col3 {
    padding: 0; /* Kein Padding, da Button absolut positioniert ist */
  }
  
  .mbastro-v2-btn-remove-from-watchlist {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  /* Remove-Button Position anpassen */
  .mbastro-v2-watchlist-remove-wrap {
    top: 12px;
    right: 12px;
  }
  
  .mbastro-v2-card-diagram {
    padding: 10px 12px;
  }
  
  /* Button-Container */
  .mbastro-v2-card-actions {
    padding: 10px 12px;
  }
  
  /* Note */
  .mbastro-v2-note-wrap {
    padding: 10px 12px 12px;
  }
  
  .mbastro-v2-note-text {
    font-size: 12px;
    padding: 9px 10px;
  }
}

/* Kleine Mobile Geräte: unter 480px */
@media (max-width: 480px) {
  
  .mbastro-v2-watchlist-controls {
    border-radius: 8px;
  }
  
  /* Header */
  .mbastro-v2-watchlist-head-content {
    padding: 16px 14px 14px;
    gap: 12px;
  }
  
  .mbastro-v2-watchlist-label {
    font-size: 15px;
  }
  
  .ap-ms-trigger {
    width: 20px;
    height: 20px;
    font-size: 36px;
  }
  
  /* Type-Filter in Filter-Group muss volle Breite behalten */
  .mbastro-v2-filter-group .ap-ms-trigger {
    width: 100% !important;
    height: auto !important;
    min-height: 56px;
    font-size: 13px !important;
  }
  
  .mbastro-v2-watchlist-left {
    min-width: 0;
  }
  
  .mbastro-v2-watchlist-select {
    font-size: 11px;
    padding: 7px 9px;
    padding-right: 28px;
  }
  
  .mbastro-v2-watchlist-actions {
    width: 100%;
    gap: 8px;
  }
  
  .mbastro-v2-watchlist-settings-btn {
    padding: 8px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  
  .mbastro-v2-watchlist-settings-menu {
    min-width: 180px;
    right: 0;
    left: auto;
  }
  
  .mbastro-v2-watchlist-menu-item {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .mbastro-v2-watchlist-actions .mbastro-v2-btn {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  /* Filters Row */
  .mbastro-v2-filters-row {
    padding: 12px 14px;
    gap: 8px;
  }
  
  .mbastro-v2-filter-group {
    flex: 1 1 auto;
    min-width: 120px;
  }
  
  .mbastro-v2-filter-sort,
  .mbastro-v2-filter-date,
  .mbastro-v2-filter-location,
  .mbastro-v2-filter-horizon,
  .mbastro-v2-filter-lat,
  .mbastro-v2-filter-lon,
  .mbastro-v2-filter-minalt {
    font-size: 11px;
    padding: 7px 9px;
  }
  
  .mbastro-v2-filter-check {
    font-size: 11px;
  }
  
  /* Result Cards */
  .mbastro-v2-card {
    border-radius: 8px;
  }
  
  .mbastro-v2-card-header {
    padding: 10px 14px 8px;
  }
  
  .mbastro-v2-card-title {
    font-size: 1.2rem;
  }
  
  .mbastro-v2-card-alt-catalog {
    font-size: 1rem;
  }
  
  .mbastro-v2-card-col1 {
    padding: 10px;
    padding-right: 46px; /* Platz für den kleineren absolut positionierten Remove-Button */
  }
  
  .mbastro-v2-card-info-row {
    font-size: 12px;
    gap: 6px;
  }
  
  .mbastro-v2-card-label {
    min-width: 60px;
    font-size: 12px;
  }
  
  .mbastro-v2-card-actions {
    gap: 5px;
  }
  
  .mbastro-v2-btn-note {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .mbastro-v2-card-col2 {
    padding: 10px;
  }
  
  .mbastro-v2-card-image {
    max-width: 200px;
    max-height: 180px;
  }
  
  .mbastro-v2-card-credits {
    font-size: 9px;
  }
  
  .mbastro-v2-card-col3 {
    padding: 0; /* Kein Padding, da Button absolut positioniert ist */
    gap: 10px;
  }
  
  .mbastro-v2-btn-remove-from-watchlist {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  /* Remove-Button Position anpassen */
  .mbastro-v2-watchlist-remove-wrap {
    top: 10px;
    right: 10px;
  }
  
  .mbastro-v2-card-diagram {
    padding: 8px 10px;
  }
  
  .mbastro-v2-diagram-vis {
    font-size: 10px;
  }
  
  .mbastro-v2-diagram-caption {
    font-size: 9px;
  }
  
  /* Note */
  .mbastro-v2-note-wrap {
    padding: 8px 10px 10px;
  }
  
  .mbastro-v2-note-text {
    font-size: 11px;
    padding: 8px 9px;
  }
  
  .mbastro-v2-btn-save-note {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .ap-ms-option {
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* ================================================================
   MODAL
   ================================================================ */
.mbastro-v2-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mbastro-v2-modal[hidden] {
  display: none;
}

.mbastro-v2-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.mbastro-v2-modal-dialog {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #1e2836 0%, #2a3547 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(102, 126, 234, 0.3);
  max-width: 500px;
  width: calc(100% - 32px);
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mbastro-v2-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mbastro-v2-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #667eea;
  letter-spacing: -0.01em;
}

.mbastro-v2-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.mbastro-v2-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.mbastro-v2-modal-body {
  padding: 24px;
}

.mbastro-v2-modal-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
}

.mbastro-v2-modal-message {
  display: none;
  font-size: 15px;
  line-height: 1.6;
  color: #f1f5f9;
}

.mbastro-v2-modal-input {
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(135deg, #2d3d52 0%, #344355 100%);
  border: 1px solid #4a5d78;
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mbastro-v2-modal-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.mbastro-v2-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.mbastro-v2-modal-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
}

.mbastro-v2-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #f1f5f9;
}

.mbastro-v2-modal-confirm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: #fff;
}

.mbastro-v2-modal-confirm:hover {
  background: linear-gradient(135deg, #7c93f5 0%, #8b5db8 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Destruktiver Button (für Löschen-Dialog) */
.mbastro-v2-modal-confirm.mbastro-v2-modal-destructive {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.mbastro-v2-modal-confirm.mbastro-v2-modal-destructive:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@media (max-width: 600px) {
  .mbastro-v2-modal-dialog {
    max-width: calc(100% - 24px);
  }
  
  .mbastro-v2-modal-header {
    padding: 16px 18px 14px;
  }
  
  .mbastro-v2-modal-title {
    font-size: 1.1rem;
  }
  
  .mbastro-v2-modal-body {
    padding: 18px;
  }
  
  .mbastro-v2-modal-footer {
    padding: 14px 18px 16px;
  }
}

/* ================================================================
   Diagram Tooltip Mobile Anpassung
   ================================================================ */
@media (max-width: 599px) {
  .mbastro-v2-diagram-tooltip {
    font-size: 11px !important;
    white-space: normal !important;
    max-width: 180px !important;
    line-height: 1.3 !important;
    padding: 3px 6px !important;
  }
}
