    :root {
      --bg-primary: #121418;
      --bg-secondary: #1A1D24;
      --bg-tertiary: #22262F;
      --bg-card: #1E2128;
      --bg-card-hover: #262A33;
      --accent-gold: #C9A962;
      --accent-gold-dim: rgba(201,169,98,0.12);
      --accent-gold-glow: rgba(201,169,98,0.25);
      --text-primary: #F0F0F0;
      --text-secondary: #A0A6B0;
      --text-muted: #6B7280;
      --text-dim: #4A4F5A;
      --border-subtle: rgba(255,255,255,0.06);
      --border-card: rgba(255,255,255,0.08);
      --border-hover: rgba(201,169,98,0.3);
      --shadow-card: 0 4px 20px rgba(0,0,0,0.3);
      --shadow-hover: 0 8px 32px rgba(0,0,0,0.4);
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 14px;
      --radius-xl: 18px;
      --sidebar-width: 320px;
    }

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

    html {
      overflow-x: hidden;
      max-width: 100vw;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      min-height: 100vh;
      line-height: 1.5;
      font-size: 14px;
      overflow-x: hidden;
      width: 100%;
      max-width: 100vw;
      display: flex;
      flex-direction: column;
    }
    
    /* Prevent horizontal scroll on mobile */
    html, body {
      overscroll-behavior-x: none;
    }

    /* Custom Scrollbar - Gold/Dark Theme */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: var(--bg-secondary);
      border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(201, 169, 98, 0.4);
      border-radius: 4px;
      transition: background 0.2s;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--accent-gold);
    }
    ::-webkit-scrollbar-corner {
      background: var(--bg-secondary);
    }
    /* Firefox scrollbar */
    * {
      scrollbar-width: thin;
      scrollbar-color: rgba(201, 169, 98, 0.4) var(--bg-secondary);
    }

    .app-layout {
      display: grid;
      grid-template-columns: 1fr;
      flex: 1;
      width: 100%;
    }

    /* Sidebar ist immer Overlay - kein Grid-Spalten-Platz reserviert */

    .main-content {
      min-width: 0;
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    /* ===== HEADER ===== */
    .header {
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-subtle);
      padding: 0.75rem 2rem 1rem;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      box-sizing: border-box;
    }
    
    /* Spacer for fixed header */
    .header-spacer {
      height: 110px;
    }

    .header-inner {
      width: 100%;
    }

    /* Header Row: Logo + Search */
    .header-row {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    /* Logo & Title */
    .logo-section {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      flex-shrink: 0;
    }

    .logo-icon {
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, var(--accent-gold) 0%, #E8D5A3 50%, var(--accent-gold) 100%);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      color: var(--bg-primary);
      box-shadow: 0 3px 10px rgba(201,169,98,0.3);
    }

    .logo-text {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-primary);
      letter-spacing: -0.02em;
      white-space: nowrap;
    }

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

    /* ===== SEARCH BAR ===== */
    .search-container {
      position: relative;
      flex: 1;
    }

    /* ===== RESPONSIVE BREAKPOINTS ===== */
    
    /* Large Tablet & Small Desktop */
    @media (max-width: 1200px) {
      .sidebar {
        width: min(320px, 85vw);
      }
      
      .detail-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
      }
      
      .detail-swatch-section {
        position: relative !important;
        top: auto !important;
      }
      
      .detail-swatch {
        height: 250px !important;
      }
    }

    /* Tablet */
    @media (max-width: 1024px) {
      .header-inner {
        max-width: 100%;
      }
      
      .cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
      }
      
      .filter-dropdown {
        min-width: min(200px, 80vw);
        max-width: 90vw;
      }
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
      .header {
        padding: 0.75rem 1rem;
      }
      
      .header-spacer {
        height: 160px;
      }
      
      .header-inner {
        max-width: 100%;
        padding: 0;
      }
      
      .header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
      }
      
      .logo-section {
        justify-content: center;
      }
      
      .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
      }
      
      .logo-text {
        font-size: 1.1rem;
      }
      
      .search-btn {
        padding: 0.8rem 1rem !important;
      }
      
      .search-btn span {
        display: none;
      }
      
      .filter-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem !important;
        width: 100%;
      }
      
      .filter-group {
        flex: 0 0 auto;
      }
      
      .filter-toggle-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
      }
      
      .filter-toggle-btn i:first-child {
        display: none;
      }
      
      .active-filters {
        width: 100%;
        margin-top: 0.5rem;
        overflow-x: auto;
      }
      
      .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
      }
      
      .card-swatch {
        height: 100px !important;
      }
      
      .card-body {
        padding: 0.75rem !important;
      }
      
      .card-title {
        font-size: 0.8rem !important;
      }
      
      .card-art {
        font-size: 0.7rem !important;
      }
      
      .results-section {
        padding: 1rem !important;
        width: 100%;
        max-width: 100%;
      }
      
      .sidebar {
        width: min(320px, 85vw) !important;
      }
      
      .color-values-grid {
        grid-template-columns: 1fr !important;
      }
      
      .detail-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
      }
      
      .detail-btn {
        flex: 1 1 auto;
        min-width: 45%;
      }
    }
    
    /* Small Mobile */
    @media (max-width: 480px) {
      .cards-grid {
        grid-template-columns: 1fr !important;
      }
      
      .card-swatch {
        height: 140px !important;
      }
      
      .filter-toggle-btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
      }
      
      .filter-bar {
        gap: 0.4rem !important;
      }
      
      .header {
        padding: 0.5rem 0.75rem;
      }
      
      .search-input {
        font-size: 0.85rem;
      }
      
      .logo-text {
        font-size: 0.95rem;
      }
      
      .detail-btn {
        flex: 1 1 100%;
        min-width: 100%;
      }
      
      .delta-section {
        flex-direction: column;
        gap: 1rem;
      }
      
      .delta-value-large {
        font-size: 1.5rem;
      }
      
      .properties-grid {
        gap: 0.4rem;
      }
      
      .property-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
      }
    }

    .search-bar {
      display: flex;
      align-items: center;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .search-bar:focus-within {
      border-color: var(--accent-gold);
      box-shadow: 0 0 0 3px var(--accent-gold-dim);
    }

    .search-icon {
      padding: 0 1rem;
      color: var(--text-muted);
      font-size: 1.1rem;
    }

    .search-spinner {
      padding: 0 0.5rem;
      color: var(--accent-gold);
      font-size: 1.1rem;
      animation: spin 1s linear infinite;
      display: inline-flex;
      align-items: center;
    }

    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .search-input {
      flex: 1;
      padding: 0.95rem 0;
      background: transparent;
      border: none;
      color: var(--text-primary);
      font-size: 0.95rem;
      outline: none;
    }

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

    /* Search Input Row */
    .search-input-row {
      display: contents;
    }
    
    .search-input-row .search-btn {
      order: 3;
    }

    /* Search Type Chips */
    .search-type-chips {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.35rem 0.6rem;
      border-left: 1px solid var(--border-subtle);
      order: 2;
    }

    .search-type-chip {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.35rem 0.65rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-full);
      color: var(--text-secondary);
      font-size: 0.75rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .search-type-chip:hover {
      background: var(--bg-card-hover);
      border-color: var(--accent-gold);
      color: var(--text-primary);
    }

    .search-type-chip.active {
      background: rgba(201, 169, 98, 0.2);
      border-color: var(--accent-gold);
      color: var(--accent-gold);
    }

    .search-type-chip.active:hover {
      background: rgba(201, 169, 98, 0.3);
      border-color: var(--accent-gold);
      color: var(--accent-gold);
    }

    .search-type-chip i {
      font-size: 0.7rem;
    }

    @media (max-width: 768px) {
      .search-container {
        width: 100% !important;
      }
      
      .search-bar {
        display: flex !important;
        flex-direction: column !important;
        border-radius: var(--radius-md) !important;
        overflow: hidden !important;
      }
      
      .search-input-row {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        order: 1 !important;
      }
      
      .search-input-row .search-icon {
        padding: 0 0.75rem !important;
        display: flex !important;
      }
      
      .search-input-row .search-btn {
        order: unset !important;
        display: flex !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0 var(--radius-lg) 0 0 !important;
        flex-shrink: 0 !important;
      }
      
      .search-input {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.75rem 0 !important;
        font-size: 0.9rem !important;
      }
      
      .search-type-chips {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        padding: 0.5rem 0.75rem !important;
        border-left: none !important;
        border-top: 1px solid var(--border-subtle) !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.4rem !important;
        order: 2 !important;
      }
      
      .search-type-chips::-webkit-scrollbar {
        display: none;
      }
      
      .search-btn span {
        display: none !important;
      }
    }

    @media (max-width: 480px) {
      .search-type-chip {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
      }
      
      .search-type-chip i {
        font-size: 0.65rem;
      }
      
      .search-input {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
      }
    }

    .search-btn {
      padding: 0.95rem 1.5rem;
      background: linear-gradient(135deg, var(--accent-gold) 0%, #D4B76A 100%);
      color: var(--bg-primary);
      font-weight: 600;
      font-size: 0.9rem;
      border: none;
      cursor: pointer;
      transition: all 0.2s;
    }

    .search-btn:hover:not(:disabled) {
      filter: brightness(1.1);
    }
    
    .search-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* ===== AUTOCOMPLETE ===== */
    .search-suggestions {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-card);
      max-height: 300px;
      overflow-y: auto;
      z-index: 100;
      display: none;
      margin-top: 4px;
    }
    
    .search-suggestions.open {
      display: block;
    }
    
    .suggestion-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      cursor: pointer;
      transition: background 0.15s;
      border-bottom: 1px solid var(--border-subtle);
    }
    
    .suggestion-item:last-child {
      border-bottom: none;
    }
    
    .suggestion-item:hover {
      background: var(--bg-card-hover);
    }
    
    .suggestion-swatch {
      width: 24px;
      height: 24px;
      border-radius: 4px;
      border: 1px solid var(--border-subtle);
      flex-shrink: 0;
    }
    
    .suggestion-text {
      flex: 1;
      font-size: 0.85rem;
      color: var(--text-primary);
    }

    /* ===== FILTER BAR ===== */
    .filter-bar {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }

    .filter-group {
      position: relative;
    }

    .filter-toggle-btn {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.9rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.2s;
    }

    .filter-toggle-btn:hover {
      border-color: var(--border-hover);
      color: var(--text-primary);
    }

    .filter-toggle-btn.has-selection {
      /* Neutral wie alle anderen Filter - gleicher Stil */
      border-color: var(--border-subtle);
      color: var(--text-secondary);
      background: var(--bg-tertiary);
    }

    .filter-toggle-btn .count-badge {
      background: var(--accent-gold);
      color: var(--bg-primary);
      font-size: 0.65rem;
      font-weight: 600;
      padding: 0.1rem 0.4rem;
      border-radius: 10px;
      min-width: 16px;
      text-align: center;
    }

    .filter-toggle-btn i.chevron {
      font-size: 0.65rem;
      transition: transform 0.2s;
    }

    .filter-toggle-btn.open i.chevron {
      transform: rotate(180deg);
    }

    .filter-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-card);
      min-width: 200px;
      max-height: 280px;
      overflow-y: auto;
      z-index: 100;
      display: none;
    }

    .filter-dropdown.open {
      display: block;
    }
    
    .filter-action-btn {
      flex: 1;
      padding: 0.35rem 0.6rem;
      font-size: 0.75rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
    }
    
    .filter-action-btn:hover {
      background: var(--accent-gold-dim);
      border-color: var(--accent-gold);
      color: var(--accent-gold);
    }

    .filter-option {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.6rem 0.9rem;
      cursor: pointer;
      transition: background 0.15s;
    }

    .filter-option:hover {
      background: var(--bg-card-hover);
    }

    .filter-option input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: var(--accent-gold);
      cursor: pointer;
    }

    .filter-option label {
      flex: 1;
      font-size: 0.8rem;
      color: var(--text-secondary);
      cursor: pointer;
    }

    .filter-option:hover label {
      color: var(--text-primary);
    }

    .filter-divider {
      display: none;
    }

    .active-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      flex: 1;
    }

    .filter-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.3rem 0.6rem;
      background: var(--accent-gold-dim);
      border: 1px solid var(--accent-gold);
      border-radius: 16px;
      color: var(--accent-gold);
      font-size: 0.7rem;
      font-weight: 500;
    }

    .filter-chip-remove {
      cursor: pointer;
      opacity: 0.7;
      transition: opacity 0.2s;
      font-size: 0.8rem;
    }

    .filter-chip-remove:hover {
      opacity: 1;
    }

    .filter-clear-all {
      padding: 0.3rem 0.6rem;
      background: transparent;
      border: 1px solid var(--border-subtle);
      border-radius: 16px;
      color: var(--text-muted);
      font-size: 0.7rem;
      cursor: pointer;
      transition: all 0.2s;
    }

    .filter-clear-all:hover {
      border-color: #ef4444;
      color: #ef4444;
    }

    /* ===== RESULTS AREA ===== */
    .results-section {
      flex: 1;
      padding: 1.5rem 2rem 2rem;
      overflow-y: auto;
    }

    .results-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.25rem;
    }

    .results-count {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0.8rem;
      background: var(--accent-gold-dim);
      border: 1px solid var(--accent-gold);
      border-radius: var(--radius-sm);
      color: var(--accent-gold);
      font-size: 0.85rem;
      font-weight: 500;
      margin-left: auto;
    }

    .results-count strong {
      color: var(--accent-gold);
      font-weight: 600;
    }

    .search-query-display {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0.8rem;
      background: var(--accent-gold-dim);
      border: 1px solid var(--accent-gold);
      border-radius: var(--radius-sm);
      color: var(--accent-gold);
      font-size: 0.85rem;
      font-weight: 500;
    }

    .search-query-display i {
      font-size: 0.8rem;
    }

    .sort-select {
      padding: 0.4rem 2rem 0.4rem 0.7rem;
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      font-size: 0.8rem;
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.5rem center;
      background-size: 10px;
    }

    /* ===== LOAD MORE ===== */
    .load-more-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
      padding: 2rem 0;
      margin-top: 1.5rem;
    }
    
    .load-more-btn {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 2rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      color: var(--accent-gold);
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .load-more-btn:hover {
      background: var(--bg-card-hover);
      border-color: var(--accent-gold);
    }
    
    .load-more-info {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    /* ===== COLOR CARDS GRID ===== */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 1.25rem;
      width: 100%;
    }

    .color-card {
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: all 0.25s ease;
      cursor: pointer;
      position: relative;
    }

    .color-card:hover {
      border-color: var(--border-hover);
      box-shadow: var(--shadow-hover);
      transform: translateY(-3px);
    }

    .card-swatch {
      height: 140px;
      position: relative;
      overflow: hidden;
    }

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

    .card-delta {
      font-size: 0.7rem;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      background: transparent;
      gap: 0.4rem;
    }

    .card-delta .delta-dot {
      display: none; /* Punkt nicht mehr anzeigen */
    }

    .card-delta .delta-percent {
      font-size: 0.65rem;
      opacity: 0.85;
    }

    /* Delta Badge Styles - 5-stufiges Schema */
    .card-delta.excellent {
      /* 0-1: Perfekt - Dunkelgrün */
      border: 1px solid rgba(34, 197, 94, 0.5);
      background: rgba(34, 197, 94, 0.1);
      color: #22c55e;
    }

    .card-delta.very-good {
      /* 1-2: Sehr gut - Hellgrün */
      border: 1px solid rgba(132, 204, 22, 0.5);
      background: rgba(132, 204, 22, 0.1);
      color: #84cc16;
    }

    .card-delta.acceptable {
      /* 2-4: Akzeptabel - Gelb */
      border: 1px solid rgba(250, 204, 21, 0.5);
      background: rgba(250, 204, 21, 0.1);
      color: #facc15;
    }

    .card-delta.poor {
      /* 4-5: Schlecht - Orange/Rot */
      border: 1px solid rgba(249, 115, 22, 0.5);
      background: rgba(249, 115, 22, 0.1);
      color: #f97316;
    }

    .card-delta.different {
      /* >5: Andere Farbe - Rot */
      border: 1px solid rgba(239, 68, 68, 0.5);
      background: rgba(239, 68, 68, 0.1);
      color: #ef4444;
    }

    .card-bookmark {
      position: absolute;
      top: 10px;
      left: 10px;
      width: 28px;
      height: 28px;
      background: rgba(0,0,0,0.4);
      backdrop-filter: blur(4px);
      border: none;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.7);
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.2s;
      opacity: 0;
      text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }

    .color-card:hover .card-bookmark {
      opacity: 1;
    }

    .card-bookmark:hover {
      background: var(--accent-gold);
      color: var(--bg-primary);
    }

    .card-bookmark.active {
      color: var(--accent-gold);
      opacity: 1;
    }

    .card-bookmark.active i {
      animation: bookmark-pulse 0.3s ease;
    }

    @keyframes bookmark-pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.3); }
      100% { transform: scale(1); }
    }

    /* Mobile: Icons always visible */
    @media (max-width: 768px) {
      .card-bookmark,
      .card-menu {
        opacity: 1 !important;
      }
    }

    .card-menu {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 28px;
      height: 28px;
      background: rgba(0,0,0,0.4);
      backdrop-filter: blur(4px);
      border: none;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.9);
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.2s;
      opacity: 0;
    }

    .color-card:hover .card-menu {
      opacity: 1;
    }

    .card-menu:hover {
      background: var(--accent-gold);
      color: var(--bg-primary);
    }

    .card-body {
      padding: 1rem;
    }

    .card-manufacturer {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .card-logo {
      position: absolute;
      right: 8px;
      bottom: 8px;
      max-width: 100px;
      max-height: 50px;
      width: auto;
      height: auto;
      object-fit: contain;
      opacity: 0.9;
    }

    .card-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 0.2rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .card-art {
      font-size: 0.8rem;
      color: var(--text-secondary);
      margin-bottom: 0.75rem;
    }

    .card-properties {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      min-height: 3.2rem; /* Feste Höhe für 2 Zeilen Tags */
      align-content: flex-start;
    }

    .card-footer {
      display: flex;
      justify-content: flex-end;
      margin-top: 0.5rem;
      padding-top: 0.5rem;
      border-top: 1px solid var(--border-subtle);
    }

    .property-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.25rem 0.55rem;
      background: var(--bg-tertiary);
      border-radius: 4px;
      font-size: 0.7rem;
      color: var(--text-muted);
    }

    .property-tag i {
      font-size: 0.65rem;
    }

    .property-tag.surface {
      /* Neutral wie alle anderen Tags */
    }

    /* ===== SIDEBAR (always overlay) ===== */
    .sidebar {
      position: fixed;
      top: 0;
      right: 0;
      width: var(--sidebar-width);
      height: 100vh;
      background: var(--bg-secondary);
      border-left: 1px solid var(--border-subtle);
      display: flex;
      flex-direction: column;
      z-index: 150;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }

    .sidebar.open {
      transform: translateX(0);
    }
    
    .sidebar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 1.25rem;
      border-bottom: 1px solid var(--border-subtle);
    }

    .sidebar-title {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-primary);
    }

    .sidebar-close {
      width: 28px;
      height: 28px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .sidebar-close:hover {
      background: var(--bg-card-hover);
      color: var(--text-primary);
    }

    /* ===== AKKORDEON LAYOUT ===== */
    .sidebar-accordion-container {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .sidebar-accordion {
      display: flex;
      flex-direction: column;
    }

    .accordion-section {
      border-bottom: 1px solid var(--border-subtle);
    }

    .accordion-header {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.9rem 1rem;
      background: transparent;
      border: none;
      cursor: pointer;
      transition: background 0.2s;
    }

    .accordion-header:hover {
      background: var(--bg-card-hover);
    }

    .accordion-header.active {
      background: var(--bg-card);
    }

    .accordion-title {
      display: flex;
      align-items: center;
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text-primary);
    }

    .accordion-title i {
      color: var(--accent-gold);
    }

    .accordion-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      background: var(--accent-gold);
      color: var(--bg-primary);
      font-size: 0.65rem;
      font-weight: 600;
      border-radius: 9px;
      margin-left: 0.5rem;
    }

    .accordion-icon {
      color: var(--text-muted);
      font-size: 0.75rem;
      transition: transform 0.3s ease;
    }

    .accordion-header.active .accordion-icon {
      transform: rotate(180deg);
    }

    .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }

    .accordion-content.open {
      max-height: 2000px;
    }

    .accordion-body {
      padding: 0.75rem 1rem 1rem;
    }

    /* ===== SIDEBAR COMPONENTS ===== */
    .sidebar-empty-msg {
      text-align: center;
      padding: 1.5rem 1rem;
      color: var(--text-muted);
      font-size: 0.8rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-md);
    }

    .sidebar-protected-msg {
      padding: 0.75rem;
      background: rgba(201, 169, 98, 0.15);
      border: 1px solid rgba(201, 169, 98, 0.3);
      border-radius: var(--radius-md);
      color: var(--accent-gold);
      font-size: 0.8rem;
    }

    .sidebar-hint {
      font-size: 0.75rem;
      color: var(--text-muted);
      padding: 0.5rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
    }

    .sidebar-action-btn {
      width: 100%;
      padding: 0.75rem 1rem;
      background: var(--accent-gold);
      color: var(--bg-primary);
      border: none;
      border-radius: var(--radius-md);
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .sidebar-action-btn:hover:not(:disabled) {
      background: #dab872;
      transform: translateY(-1px);
    }

    .sidebar-action-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .sidebar-secondary-btn {
      padding: 0.5rem 0.75rem;
      background: var(--bg-tertiary);
      color: var(--text-secondary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
    }

    .sidebar-secondary-btn:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-hover);
    }

    .sidebar-secondary-btn.small {
      padding: 0.25rem 0.5rem;
      font-size: 0.7rem;
    }

    .sidebar-icon-btn {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.2s;
    }

    .sidebar-icon-btn:hover {
      background: var(--bg-card-hover);
      color: var(--text-primary);
    }

    .sidebar-icon-btn.destructive:hover {
      background: rgba(220, 53, 69, 0.2);
      border-color: #dc3545;
      color: #dc3545;
    }

    .sidebar-footer {
      padding: 1rem;
      border-top: 1px solid var(--border-subtle);
    }

    /* ===== SIDEBAR COLOR CARD ===== */
    .sidebar-color-card {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem;
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-md);
      margin-bottom: 0.5rem;
      transition: all 0.2s;
    }

    .sidebar-color-card:hover {
      border-color: var(--border-hover);
    }

    .sidebar-color-card .swatch {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-sm);
      flex-shrink: 0;
    }

    .sidebar-color-card .info {
      flex: 1;
      min-width: 0;
    }

    .sidebar-color-card .title {
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--sidebar-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sidebar-color-card .subtitle {
      font-size: 0.7rem;
      color: var(--sidebar-text-muted);
    }

    .sidebar-color-card .actions {
      display: flex;
      gap: 0.25rem;
    }

    /* ===== SIDEBAR INPUTS ===== */
    .sidebar-label {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-secondary);
    }

    .sidebar-select {
      width: 100%;
      padding: 0.5rem 0.75rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-size: 0.8rem;
      cursor: pointer;
    }

    .sidebar-select:focus {
      border-color: var(--accent-gold);
      outline: none;
    }

    .sidebar-input-row {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .sidebar-input-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
    }

    .sidebar-input-group {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .sidebar-input-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      text-align: center;
    }

    .sidebar-input {
      width: 100%;
      padding: 0.5rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-size: 0.8rem;
      text-align: center;
    }

    .sidebar-input:focus {
      border-color: var(--accent-gold);
      outline: none;
    }

    .sidebar-checkbox-row {
      display: flex;
      align-items: center;
    }

    .sidebar-checkbox-label {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.8rem;
      color: var(--text-secondary);
      cursor: pointer;
    }

    .sidebar-checkbox-label input[type="checkbox"] {
      accent-color: var(--accent-gold);
    }

    /* ===== PALETTE STYLES ===== */
    .sidebar-palette-sliders {
      padding: 0.75rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-md);
    }

    .sidebar-slider-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .sidebar-slider-label {
      font-size: 0.75rem;
      color: var(--text-muted);
      width: 70px;
      flex-shrink: 0;
    }

    .sidebar-slider {
      flex: 1;
      height: 4px;
      accent-color: var(--accent-gold);
    }

    .sidebar-slider-value {
      font-size: 0.7rem;
      color: var(--text-secondary);
      width: 40px;
      text-align: right;
    }

    .sidebar-palette-group {
      margin-bottom: 0.75rem;
    }

    .sidebar-palette-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-bottom: 0.35rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .sidebar-palette-colors {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
    }

    .sidebar-palette-colors .palette-swatch {
      width: 28px;
      height: 28px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      border: 1px solid var(--border-subtle);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .sidebar-palette-colors .palette-swatch:hover {
      transform: scale(1.1);
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    /* ===== ICC CALCULATOR STYLES ===== */
    .icc-upload-zone {
      padding: 1.5rem;
      background: var(--bg-tertiary);
      border: 2px dashed var(--border-subtle);
      border-radius: var(--radius-md);
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
    }

    .icc-upload-zone:hover {
      border-color: var(--accent-gold);
      background: rgba(201, 169, 98, 0.05);
    }

    .icc-upload-zone.dragover {
      border-color: var(--accent-gold);
      background: rgba(201, 169, 98, 0.1);
    }

    .icc-upload-zone i {
      font-size: 1.5rem;
      color: var(--text-muted);
      display: block;
      margin-bottom: 0.5rem;
    }

    .icc-upload-zone span {
      display: block;
      font-size: 0.8rem;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .icc-upload-zone small {
      display: block;
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-top: 0.25rem;
    }

    .icc-upload-zone .upload-placeholder,
    .icc-upload-zone .upload-loading,
    .icc-upload-zone .upload-loaded {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .icc-upload-zone .upload-loaded i {
      color: var(--accent-gold);
    }

    .sidebar-spinner {
      width: 24px;
      height: 24px;
      border: 2px solid var(--border-subtle);
      border-top-color: var(--accent-gold);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .icc-settings-block {
      padding: 0.75rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-md);
    }

    .icc-result {
      padding: 0.75rem;
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-md);
    }

    .icc-result-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .icc-result-swatch {
      width: 48px;
      height: 48px;
      border-radius: var(--radius-sm);
      flex-shrink: 0;
    }

    .icc-result-swatch-small {
      width: 24px;
      height: 24px;
      border-radius: var(--radius-sm);
      flex-shrink: 0;
    }

    .icc-cmyk-values {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      font-size: 0.8rem;
      color: var(--text-secondary);
    }

    .icc-cmyk-values strong {
      color: var(--text-primary);
    }

    .icc-extended-results {
      padding-top: 0.5rem;
      border-top: 1px solid var(--border-subtle);
      margin-top: 0.5rem;
    }

    .icc-result-row {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-bottom: 0.25rem;
    }

    .icc-gamut-info {
      font-size: 0.75rem;
      padding: 0.5rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      color: var(--text-muted);
    }

    .icc-dual-result .icc-intent-card {
      padding: 0.75rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
    }

    .icc-intent-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
    }

    .icc-intent-name {
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text-primary);
    }

    .icc-best-badge {
      font-size: 0.65rem;
      padding: 0.15rem 0.4rem;
      background: var(--accent-gold);
      color: var(--bg-primary);
      border-radius: 4px;
      font-weight: 600;
    }

    .icc-intent-body {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .icc-cmyk-compact {
      font-size: 0.75rem;
      color: var(--text-secondary);
    }

    .icc-intent-details {
      display: flex;
      gap: 1rem;
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
    }

    .icc-history-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
    }

    .icc-history-list {
      max-height: 150px;
      overflow-y: auto;
    }

    .icc-history-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      margin-bottom: 0.35rem;
      cursor: pointer;
      transition: background 0.2s;
    }

    .icc-history-item:hover {
      background: var(--bg-card-hover);
    }

    .sidebar-empty {
      text-align: center;
      padding: 2rem 1rem;
      color: var(--text-muted);
    }

    .sidebar-empty i {
      font-size: 2.5rem;
      margin-bottom: 0.75rem;
      opacity: 0.4;
    }

    .sidebar-empty p {
      font-size: 0.85rem;
    }

    .sidebar-color-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem;
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-md);
      margin-bottom: 0.5rem;
      transition: all 0.2s;
    }

    .sidebar-color-item:hover {
      border-color: var(--border-hover);
    }

    .sidebar-swatch {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-sm);
      flex-shrink: 0;
    }

    .sidebar-color-info {
      flex: 1;
      min-width: 0;
    }

    .sidebar-color-name {
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sidebar-color-sub {
      font-size: 0.7rem;
      color: var(--text-muted);
    }

    .sidebar-color-remove {
      width: 24px;
      height: 24px;
      background: transparent;
      border: none;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .sidebar-color-remove:hover {
      background: rgba(239, 68, 68, 0.15);
      color: #ef4444;
    }

    /* Palette Section */
    .palette-section {
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border-subtle);
    }

    .palette-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
    }

    .palette-colors {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
    }

    .palette-color {
      width: 28px;
      height: 28px;
      border-radius: 4px;
      border: 1px solid var(--border-subtle);
      cursor: pointer;
      transition: all 0.2s;
    }

    .palette-color:hover {
      transform: scale(1.15);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .palette-color.base {
      border: 2px solid var(--accent-gold);
      box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px var(--accent-gold);
    }

    /* ICC Calculator Section */
    .icc-section {
      padding-top: 0.5rem;
    }

    .icc-upload-zone {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
      padding: 1.25rem;
      background: var(--bg-tertiary);
      border: 2px dashed var(--border-subtle);
      border-radius: var(--radius-md);
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
    }

    .icc-upload-zone:hover {
      border-color: var(--accent-gold);
      color: var(--accent-gold);
    }

    .icc-upload-zone i {
      font-size: 1.5rem;
    }

    .icc-upload-zone span {
      font-size: 0.8rem;
      font-weight: 500;
    }

    .icc-upload-zone .upload-hint {
      font-size: 0.7rem;
      font-weight: 400;
      opacity: 0.7;
    }

    .icc-profile-loaded {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.6rem 0.8rem;
      background: var(--accent-gold-dim);
      border: 1px solid var(--accent-gold);
      border-radius: var(--radius-sm);
      margin-bottom: 0.75rem;
    }

    .icc-profile-name {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      color: var(--accent-gold);
      font-size: 0.75rem;
      font-weight: 500;
    }

    .icc-profile-remove {
      background: none;
      border: none;
      color: var(--accent-gold);
      cursor: pointer;
      padding: 0.2rem;
      opacity: 0.7;
      transition: opacity 0.2s;
    }

    .icc-profile-remove:hover {
      opacity: 1;
    }

    .icc-input-section {
      margin-top: 1rem;
    }

    .icc-label {
      display: block;
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.4rem;
    }

    .icc-select {
      width: 100%;
      padding: 0.5rem 0.75rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      font-size: 0.8rem;
      margin-bottom: 0.75rem;
    }

    .icc-input-group {
      display: flex;
      gap: 0.4rem;
      margin-bottom: 0.75rem;
    }

    .icc-input {
      flex: 1;
      padding: 0.5rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-size: 0.8rem;
      text-align: center;
    }

    .icc-input:focus {
      outline: none;
      border-color: var(--accent-gold);
    }

    .icc-calculate-btn {
      width: 100%;
      padding: 0.65rem;
      background: linear-gradient(135deg, var(--accent-gold) 0%, #D4B76A 100%);
      border: none;
      border-radius: var(--radius-sm);
      color: var(--bg-primary);
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: filter 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
    }

    .icc-calculate-btn:hover {
      filter: brightness(1.1);
    }

    .icc-result {
      margin-top: 1rem;
      padding: 0.75rem;
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-md);
    }

    .icc-result-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
    }

    .icc-result-values {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .icc-value {
      font-size: 0.85rem;
      color: var(--text-primary);
      padding: 0.25rem 0.5rem;
      background: var(--bg-tertiary);
      border-radius: 4px;
    }

    .icc-value b {
      color: var(--accent-gold);
    }

    /* Sidebar Toggle Button */
    .sidebar-toggle {
      position: fixed;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      width: 36px;
      height: 80px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-subtle);
      border-right: none;
      border-radius: var(--radius-md) 0 0 var(--radius-md);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      cursor: pointer;
      z-index: 55;
      transition: all 0.3s ease;
    }

    .sidebar-toggle:hover {
      background: var(--bg-tertiary);
      width: 42px;
    }

    .sidebar-toggle.hidden {
      transform: translateY(-50%) translateX(100%);
    }

    .sidebar-toggle i {
      font-size: 1rem;
      color: var(--text-muted);
    }

    .sidebar-toggle-count {
      font-size: 0.65rem;
      font-weight: 600;
      color: var(--accent-gold);
    }
    

    /* ===== DETAIL PAGE MOCKUP ===== */
    .detail-page {
      display: none;
    }

    .detail-page.active {
      display: block;
    }

    .main-page.hidden {
      display: none;
    }

    .detail-header {
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-subtle);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      width: 100%;
      box-sizing: border-box;
    }
    
    .detail-page .detail-content {
      padding-top: 80px;
    }

    .detail-breadcrumb {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    
    .detail-back-btn {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 1rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      color: var(--text-secondary);
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      margin-left: auto;
      white-space: nowrap;
    }
    
    .detail-back-btn:hover {
      background: var(--accent-gold);
      color: var(--bg-primary);
      border-color: var(--accent-gold);
    }
    
    .detail-back-btn i {
      font-size: 0.85rem;
    }

    .detail-breadcrumb a {
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.2s;
    }

    .detail-breadcrumb a:hover {
      color: var(--accent-gold);
    }

    .detail-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
      display: grid;
      grid-template-columns: minmax(280px, 400px) 1fr;
      gap: 2rem;
      width: 100%;
    }

    .detail-swatch-section {
      position: sticky;
      top: 2rem;
      align-self: start;
    }

    .detail-swatch {
      width: 100%;
      aspect-ratio: 1;
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-card);
      margin-bottom: 1.5rem;
    }

    .detail-manufacturer-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-md);
    }

    .detail-manufacturer-logo img {
      max-height: 50px;
      max-width: 150px;
      opacity: 0.9;
    }

    .detail-info-section {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .detail-title-block {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
    }

    .detail-title {
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0.25rem;
    }

    .detail-material {
      font-size: 1.1rem;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
    }

    .detail-art {
      font-size: 0.95rem;
      color: var(--text-muted);
    }

    .detail-verified {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.35rem 0.7rem;
      background: rgba(34, 197, 94, 0.15);
      border: 1px solid rgba(34, 197, 94, 0.3);
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 500;
      color: #22c55e;
    }

    .detail-not-verified {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.35rem 0.7rem;
      background: rgba(245, 158, 11, 0.15);
      border: 1px solid rgba(245, 158, 11, 0.3);
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 500;
      color: #f59e0b;
    }

    .verification-hint {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 0.8rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      font-size: 0.72rem;
      color: var(--text-muted);
      line-height: 1.4;
      margin-bottom: 0.75rem;
    }

    .verification-hint i {
      color: var(--accent-gold);
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    .detail-actions {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
    }

    .detail-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.7rem 1.25rem;
      border-radius: var(--radius-md);
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }

    .detail-btn-primary {
      background: linear-gradient(135deg, var(--accent-gold) 0%, #D4B76A 100%);
      color: var(--bg-primary);
      border: none;
    }

    .detail-btn-primary:hover {
      filter: brightness(1.1);
      transform: translateY(-1px);
    }

    .detail-btn-secondary {
      background: var(--bg-card);
      color: var(--text-primary);
      border: 1px solid var(--border-card);
    }

    .detail-btn-secondary:hover {
      border-color: var(--border-hover);
      background: var(--bg-card-hover);
    }

    .detail-section {
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
    }

    .detail-section-title {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--accent-gold);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .color-values-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

    .color-value-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem 1rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
    }

    .color-value-label {
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text-muted);
    }

    .color-value-data {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .color-value-text {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-primary);
      font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    }

    .copy-btn {
      width: 26px;
      height: 26px;
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
    }

    .copy-btn:hover {
      background: var(--accent-gold);
      color: var(--bg-primary);
      border-color: var(--accent-gold);
    }

    .gamut-indicator {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.15rem 0.4rem;
      border-radius: 3px;
      font-size: 0.7rem;
      font-weight: 600;
      margin-right: 0.5rem;
    }

    .gamut-indicator i {
      font-size: 0.65rem;
    }

    .gamut-explanation {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.5rem 0;
      font-size: 0.72rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-top: 0.5rem;
    }

    .gamut-explanation .gamut-indicator {
      margin-right: 0;
    }

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

    .gamut-green {
      background: rgba(40, 167, 69, 0.15);
      color: #2ecc71;
    }

    .gamut-orange {
      background: rgba(255, 193, 7, 0.15);
      color: #f39c12;
    }

    .gamut-red {
      background: rgba(220, 53, 69, 0.15);
      color: #e74c3c;
    }

    .delta-section {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1rem;
      padding: 1rem 1.25rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-md);
    }

    .delta-value-large {
      font-size: 2rem;
      font-weight: 700;
      color: #22c55e;
      min-width: 60px;
    }
    
    .delta-value-large.excellent { color: #22c55e; }
    .delta-value-large.very-good { color: #4ade80; }
    .delta-value-large.acceptable { color: #facc15; }
    .delta-value-large.poor { color: #ef4444; }
    .delta-value-large.different { color: #dc2626; }
    
    .delta-description {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      min-width: 200px;
    }
    
    .delta-label {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .delta-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .delta-bar-container {
      flex: 1;
      min-width: 150px;
    }

    .delta-bar {
      height: 8px;
      background: linear-gradient(to right, 
        #22c55e 0%, #22c55e 20%, 
        #4ade80 20%, #4ade80 40%, 
        #facc15 40%, #facc15 80%, 
        #ef4444 80%, #ef4444 100%);
      border-radius: 4px;
      position: relative;
    }

    .delta-marker {
      position: absolute;
      top: -4px;
      width: 16px;
      height: 16px;
      background: var(--accent-gold, #C9A962);
      border: 2px solid var(--bg-primary, #1a1a1a);
      border-radius: 50%;
      transform: translateX(-50%);
      box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .delta-labels {
      display: flex;
      justify-content: space-between;
      margin-top: 0.5rem;
      font-size: 0.65rem;
      color: var(--text-muted);
    }

    .properties-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .property-item {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 0.9rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      font-size: 0.8rem;
      color: var(--text-secondary);
    }

    .property-item i {
      color: var(--accent-gold);
    }

    .tags-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .tag-item {
      padding: 0.35rem 0.7rem;
      background: var(--bg-tertiary);
      border-radius: 20px;
      font-size: 0.75rem;
      color: var(--text-secondary);
    }

    .external-links {
      display: flex;
      gap: 0.75rem;
    }

    .external-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.6rem 1rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      color: var(--text-secondary);
      font-size: 0.8rem;
      text-decoration: none;
      transition: all 0.2s;
    }

    .external-link:hover {
      border-color: var(--accent-gold);
      color: var(--accent-gold);
    }

    /* Page Toggle */
    /* Hide sidebar-toggle when sidebar is open */
    .sidebar-panel.open ~ .sidebar-toggle,
    body:has(.sidebar-panel.open) .sidebar-toggle {
      transform: translateY(-50%) translateX(100%);
    }

    /* Hide default sidebar elements from sidebar.html if present */
    .sidebar-float-btn,
    .sidebar-footer:not(.sidebar-panel-footer),
    .sidebar-container,
    #exportPDFBtn.sidebar-action-btn {
      display: none !important;
    }

    /* ===== SIDEBAR PANEL - Mockup Design ===== */
    .sidebar-panel {
      position: fixed;
      top: 110px;
      right: 0;
      width: var(--sidebar-width);
      height: calc(100vh - 110px);
      background: var(--bg-secondary);
      border-left: 1px solid var(--border-subtle);
      display: flex;
      flex-direction: column;
      z-index: 150;
      transform: translateX(100%);
      transition: transform 0.3s ease;
    }

    .sidebar-panel.open {
      transform: translateX(0);
    }

    /* Sidebar Header - kompakt wie Filterkarten (mit Spezifität für Mockup) */
    .sidebar-panel.sidebar-theme .sidebar-panel-header,
    .sidebar-theme.sidebar-panel .sidebar-panel-header {
      padding: 0.7rem 0.75rem;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--bg-card);
      flex-shrink: 0;
    }

    .sidebar-theme .sidebar-panel-header h5 {
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin: 0;
    }

    .sidebar-theme .sidebar-panel-header h5 i {
      color: var(--accent-gold);
      font-size: 0.85rem;
    }

    .sidebar-theme .sidebar-panel-close {
      width: 26px;
      height: 26px;
      background: transparent;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      cursor: pointer;
      font-size: 0.75rem;
      transition: all 0.2s;
    }

    .sidebar-theme .sidebar-panel-close:hover {
      background: var(--accent-gold);
      color: var(--bg-primary);
      border-color: var(--accent-gold);
    }

    /* Sidebar Body - minimales Padding */
    .sidebar-theme .sidebar-panel-body {
      flex: 1;
      overflow-y: auto;
      padding: 0.5rem;
      background: var(--bg-primary);
    }

    /* Accordion Container - einheitliche Abstände */
    .sidebar-theme #sidebarAccordion {
      display: flex;
      flex-direction: column;
    }

    /* ALLE Sidebar-Sektionen mit spezifischer ID haben einheitlichen Abstand */
    .sidebar-theme #accordionBookmarks,
    .sidebar-theme #accordionCompare,
    .sidebar-theme #accordionPalettes,
    .sidebar-theme #accordionIccCalculator,
    .sidebar-theme #accordionHistory {
      margin: 0 0 8px 0 !important;
    }

    /* PDF Button - kein unterer Abstand */
    .sidebar-theme #exportPDFBtn {
      margin: 0 !important;
    }

    /* Accordion Items - Basis-Styling */
    .sidebar-theme .accordion-item {
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-sm);
      overflow: hidden;
      transition: all 0.2s;
    }

    .sidebar-theme .accordion-item:hover {
      border-color: var(--border-hover);
    }

    .sidebar-theme .accordion-item.open {
      border-color: rgba(201, 169, 98, 0.4);
    }

    /* Accordion Header - kompakter */
    .sidebar-theme .accordion-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.6rem 0.7rem;
      cursor: pointer;
      background: transparent;
      transition: background 0.2s;
      border: none;
      width: 100%;
    }

    .sidebar-theme .accordion-header:hover {
      background: var(--bg-tertiary);
    }

    .sidebar-theme .accordion-header-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .sidebar-theme .accordion-header-left i {
      font-size: 0.8rem;
      color: var(--accent-gold);
      width: 16px;
      text-align: center;
    }

    .sidebar-theme .accordion-header-left span {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-secondary);
    }

    .sidebar-theme .accordion-header-right {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .sidebar-theme .accordion-badge {
      background: rgba(201, 169, 98, 0.2);
      color: var(--accent-gold);
      font-size: 0.65rem;
      font-weight: 600;
      padding: 0.1rem 0.4rem;
      border-radius: 8px;
      min-width: 16px;
      text-align: center;
    }

    .sidebar-theme .accordion-chevron {
      color: var(--text-dim);
      font-size: 0.65rem;
      transition: transform 0.2s;
    }

    .sidebar-theme .accordion-item.open .accordion-chevron {
      transform: rotate(180deg);
      color: var(--accent-gold);
    }

    /* Accordion Body - enger */
    .sidebar-theme .accordion-body {
      display: none;
      padding: 0 0.6rem 0.6rem;
      border-top: 1px solid var(--border-subtle);
      background: var(--bg-card);
    }

    .sidebar-theme .accordion-item.open .accordion-body {
      display: block;
    }

    /* Accordion Content Elements - dezenter */
    .sidebar-theme .accordion-empty {
      padding: 0.8rem 0.5rem;
      text-align: center;
      color: var(--text-dim);
      font-size: 0.7rem;
      font-style: italic;
    }

    .sidebar-theme .accordion-list {
      list-style: none;
      padding: 0;
      margin: 0.5rem 0 0 0;
    }

    .sidebar-theme .accordion-list-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0.5rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      margin-bottom: 0.25rem;
      border: 1px solid transparent;
      transition: all 0.2s;
    }

    .sidebar-theme .accordion-list-item:hover {
      border-color: var(--border-subtle);
      background: var(--bg-card-hover);
    }

    .sidebar-theme .accordion-list-item:last-child {
      margin-bottom: 0;
    }

    .sidebar-theme .color-swatch-sm,
    .sidebar-theme .color-swatch-mini {
      width: 22px;
      height: 22px;
      border-radius: 4px;
      border: 1px solid var(--border-subtle);
      flex-shrink: 0;
    }

    .sidebar-theme .color-info-sm {
      flex: 1;
      min-width: 0;
    }

    .sidebar-theme .color-info-sm .name {
      font-size: 0.7rem;
      font-weight: 500;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.2;
    }

    .sidebar-theme .color-info-sm .subtitle {
      font-size: 0.6rem;
      color: var(--text-dim);
      line-height: 1.2;
    }

    .sidebar-theme .remove-btn-sm {
      width: 20px;
      height: 20px;
      background: transparent;
      border: none;
      border-radius: 3px;
      color: var(--text-dim);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      transition: all 0.2s;
    }

    .sidebar-theme .remove-btn-sm:hover {
      background: rgba(239, 68, 68, 0.15);
      color: #ef4444;
    }

    /* Bookmark Action Buttons - kompakter */
    .sidebar-theme .bookmark-actions {
      display: flex;
      gap: 0.15rem;
      margin-left: auto;
    }

    .sidebar-theme .bookmark-action-btn {
      width: 22px;
      height: 22px;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 3px;
      color: var(--text-dim);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      transition: all 0.2s;
    }

    .sidebar-theme .bookmark-action-btn:hover {
      background: var(--bg-secondary);
      border-color: var(--border-subtle);
      color: var(--accent-gold);
    }

    .sidebar-theme .bookmark-action-btn.remove:hover {
      background: rgba(239, 68, 68, 0.15);
      border-color: rgba(239, 68, 68, 0.3);
      color: #ef4444;
    }

    /* Überschreibungen für sidebars.js generierte Elemente */
    .sidebar-theme .sidebar-icon-btn {
      width: 22px;
      height: 22px;
      padding: 0;
      background: transparent;
      color: var(--sidebar-text);
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .sidebar-theme .sidebar-icon-btn:hover {
      background: var(--bg-tertiary);
      color: var(--accent-gold);
    }

    .sidebar-theme .sidebar-icon-btn i {
      font-size: 0.7rem;
    }

    .sidebar-theme .sidebar-icon-btn.accent {
      color: var(--sidebar-text);
    }

    .sidebar-theme .sidebar-icon-btn.accent:hover {
      background: rgba(201, 169, 98, 0.15);
      color: var(--accent-gold);
    }

    .sidebar-theme .sidebar-icon-btn.accent.active {
      background: var(--accent-gold-dim);
      border: 1px solid var(--accent-gold);
      color: var(--accent-gold);
      border-radius: 4px;
      box-shadow: none;
    }

    .sidebar-theme .sidebar-icon-btn.destructive {
      color: var(--sidebar-text);
    }

    .sidebar-theme .sidebar-icon-btn.destructive:hover {
      background: rgba(239, 68, 68, 0.15);
      color: #ef4444;
    }

    /* Farbkarte in Sidebar (Compare, Bookmarks, History) - VOLLSTÄNDIGE ÜBERSCHREIBUNG */
    .sidebar-theme .sidebar-color-card {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0.5rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      margin-bottom: 0.3rem;
      border: 1px solid transparent;
      transition: all 0.2s;
    }

    .sidebar-theme .sidebar-color-card:hover {
      border-color: var(--border-subtle);
      box-shadow: none;
    }

    .sidebar-theme .sidebar-color-card .swatch {
      width: 28px;
      height: 28px;
      border-radius: 4px;
      border: 1px solid var(--border-subtle);
      flex-shrink: 0;
      display: block;
    }

    .sidebar-theme .sidebar-color-card .info {
      flex: 1;
      min-width: 0;
      overflow: hidden;
    }

    .sidebar-theme .sidebar-color-card .info .title {
      font-size: 0.7rem;
      font-weight: 500;
      color: var(--sidebar-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sidebar-theme .sidebar-color-card .info .subtitle {
      font-size: 0.6rem;
      color: var(--sidebar-text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sidebar-theme .sidebar-color-card .actions {
      display: flex;
      align-items: center;
      gap: 2px;
      flex-shrink: 0;
    }

    /* Legacy sidebar-color-item */
    .sidebar-theme .sidebar-color-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 0.5rem;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      margin-bottom: 0.3rem;
      border: 1px solid transparent;
    }

    .sidebar-theme .sidebar-color-item:hover {
      border-color: var(--border-subtle);
      box-shadow: none;
    }

    /* Palette Source Card */
    .sidebar-theme .palette-source-card,
    .sidebar-theme #paletteSourceColor {
      background: var(--bg-tertiary);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      padding: 0.5rem;
    }

    .sidebar-theme .palette-source-swatch,
    .sidebar-theme #paletteSourceSwatch {
      width: 28px;
      height: 28px;
      border-radius: 4px;
      border: 1px solid var(--border-subtle);
    }

    .sidebar-theme .palette-source-name,
    .sidebar-theme #paletteSourceName {
      font-size: 0.7rem;
      color: var(--text-primary);
    }

    .sidebar-theme .palette-source-art,
    .sidebar-theme #paletteSourceArt {
      font-size: 0.6rem;
      color: var(--text-dim);
    }

    /* Leere Nachrichten */
    .sidebar-theme .sidebar-empty-msg {
      text-align: center;
      color: var(--text-dim);
      font-size: 0.7rem;
      padding: 0.8rem 0.5rem;
      margin: 0;
      font-style: italic;
    }

    /* Hint-Text */
    .sidebar-theme .sidebar-hint {
      color: var(--text-dim);
      font-size: 0.65rem;
      margin: 0;
    }

    /* Compare Button - harmonisch mit Mockup */
    .sidebar-theme #startCompareBtn {
      width: 100%;
      background: var(--accent-gold);
      border: none;
      border-radius: var(--radius-sm);
      color: var(--bg-primary);
      font-size: 0.75rem;
      font-weight: 600;
      padding: 0.6rem 1rem;
      margin-top: 0.5rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      transition: all 0.2s;
    }

    .sidebar-theme #startCompareBtn:hover {
      background: var(--accent-gold-hover);
      box-shadow: 0 4px 12px rgba(201, 169, 98, 0.3);
      transform: translateY(-1px);
    }

    .sidebar-theme #startCompareBtn:active {
      transform: translateY(0);
    }

    .sidebar-theme #startCompareBtn i {
      font-size: 0.8rem;
    }

    /* Slider in Sidebar */
    .sidebar-theme input[type="range"] {
      accent-color: var(--accent-gold);
    }

    /* Sidebar Action Buttons */
    .sidebar-theme .sidebar-action-btn {
      width: 100%;
      padding: 0.5rem 0.7rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      font-size: 0.7rem;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      transition: all 0.2s;
      margin-top: 0.5rem;
    }

    .sidebar-theme .sidebar-action-btn:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-hover);
      color: var(--text-primary);
    }

    .sidebar-theme .sidebar-action-btn.primary {
      background: var(--accent-gold) !important;
      border-color: var(--accent-gold) !important;
      color: var(--bg-primary) !important;
    }

    .sidebar-theme .sidebar-action-btn.primary:hover {
      background: #dab872 !important;
      border-color: #dab872 !important;
      box-shadow: 0 4px 12px rgba(201, 169, 98, 0.3);
    }

    /* Sidebar Footer - kompakt, immer sichtbar am Ende der Sidebar */
    .sidebar-panel.sidebar-theme .sidebar-panel-footer,
    .sidebar-theme.sidebar-panel .sidebar-panel-footer {
      padding: 0.5rem;
      border-top: 1px solid var(--border-subtle);
      background: var(--bg-card);
      flex-shrink: 0;
      position: relative !important;
      display: block !important;
    }

    .sidebar-theme .sidebar-footer-btn {
      width: 100%;
      padding: 0.5rem 0.75rem;
      background: transparent;
      border: 1px solid var(--accent-gold);
      border-radius: var(--radius-sm);
      color: var(--accent-gold);
      font-size: 0.7rem;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      transition: all 0.2s;
    }

    .sidebar-theme .sidebar-footer-btn:hover {
      background: var(--accent-gold);
      color: var(--bg-primary);
    }

    .sidebar-theme .sidebar-footer-btn i {
      font-size: 0.75rem;
    }

    /* PDF Export Button in Sidebar - styled like accordion header */
    .sidebar-pdf-row {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.6rem 0.7rem;
      background: var(--bg-card);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: all 0.2s;
      color: var(--text-secondary);
      font-size: 0.75rem;
      font-weight: 500;
    }

    .sidebar-pdf-row:hover {
      background: var(--bg-tertiary);
      border-color: var(--border-hover);
    }

    .sidebar-pdf-row .accordion-header-left i {
      font-size: 0.8rem;
      color: var(--accent-gold);
      width: 16px;
      text-align: center;
    }

    .sidebar-pdf-row > i {
      font-size: 0.7rem;
      color: var(--text-muted);
    }

    /* Input Fields in Sidebar - kompakter */
    .sidebar-theme .sidebar-input {
      width: 100%;
      padding: 0.45rem 0.6rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-size: 0.7rem;
      transition: all 0.2s;
    }

    .sidebar-theme .sidebar-input:focus {
      outline: none;
      border-color: var(--accent-gold);
      box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.2);
    }

    .sidebar-theme .sidebar-input::placeholder {
      color: var(--text-dim);
    }

    /* Sidebar Select - kompakter */
    .sidebar-theme .sidebar-select {
      width: 100%;
      padding: 0.45rem 0.6rem;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-card);
      border-radius: var(--radius-sm);
      color: var(--text-primary);
      font-size: 0.7rem;
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.7rem center;
      background-size: 10px;
      padding-right: 2rem;
    }

    .sidebar-select:focus {
      outline: none;
      border-color: var(--accent-gold);
    }

    /* Label in Sidebar */
    .sidebar-label {
      display: block;
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-muted);
      margin-bottom: 0.4rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    .sidebar-form-group {
      margin-top: 0.75rem;
    }

    /* Upload Zone */
    .sidebar-upload-zone {
      padding: 1.25rem;
      background: var(--bg-tertiary);
      border: 2px dashed var(--border-card);
      border-radius: var(--radius-md);
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      margin-top: 0.75rem;
    }

    .sidebar-upload-zone:hover {
      border-color: var(--accent-gold);
      background: var(--accent-gold-dim);
    }

    .sidebar-upload-zone i {
      font-size: 1.5rem;
      color: var(--accent-gold);
      margin-bottom: 0.5rem;
    }

    .sidebar-upload-zone span {
      display: block;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

/* ===== FOOTER STYLES ===== */
    .site-footer {
      background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
      border-top: 1px solid rgba(201, 169, 98, 0.2);
      padding: 1rem 0;
      margin-top: auto;
      flex-shrink: 0;
    }
    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }
    .footer-link {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      transition: color 0.2s;
    }
    .footer-link:hover {
      color: #C9A962;
    }
    .footer-link i {
      font-size: 1rem;
    }
    .footer-divider {
      color: rgba(255, 255, 255, 0.3);
    }
    @media (max-width: 480px) {
      .footer-content {
        flex-direction: column;
        gap: 0.75rem;
      }
      .footer-divider {
        display: none;
      }
    }
/* ====================================================================
   ZENTRALE SIDEBAR-STYLES - AKKORDEON-STRUKTUR MIT ICC-RECHNER v3.4
   Diese Datei wird von allen Seiten (index.html, compare.html, detail.html) geladen
   ==================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  --sidebar-bg: #1a1a1a;
  --sidebar-surface: #242424;
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --sidebar-accent: #C9A962;
  --sidebar-accent-light: rgba(201, 169, 98, 0.15);
  --sidebar-text: #ffffff;
  --sidebar-text-muted: rgba(255, 255, 255, 0.85);
  --sidebar-text-hint: rgba(255, 255, 255, 0.7);
  --sidebar-success: #22c55e;
  --sidebar-warning: #f59e0b;
  --sidebar-destructive: #ef4444;
}

/* Globale Sidebar-Textfarben - überschreibt dunkle Texte */
.sidebar-theme .sidebar-empty-msg,
.sidebar-theme .sidebar-hint,
.sidebar-theme .sidebar-protected-msg,
.sidebar-theme .accordion-empty,
.sidebar-theme .sidebar-label,
.sidebar-theme .sidebar-slider-label,
.sidebar-theme .sidebar-input-label,
.sidebar-theme .sidebar-palette-label,
.sidebar-theme .upload-placeholder span,
.sidebar-theme .upload-hint,
.sidebar-theme .icc-upload-zone span,
.sidebar-theme .icc-upload-zone small,
.sidebar-theme .icc-result-label,
.sidebar-theme .icc-gamut-info,
.sidebar-theme .icc-history-input,
.sidebar-theme .icc-history-cmyk,
.sidebar-theme .text-muted,
.sidebar-theme p {
  color: var(--sidebar-text-hint) !important;
}

/* Bookmark & Compare Buttons */
.bookmark-btn, .compare-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bookmark-btn:hover, .compare-btn:hover {
  transform: scale(1.2);
}

.bookmark-btn i, .compare-btn i {
  font-size: 1rem;
  color: #6c757d;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.bookmark-btn.bookmarked i {
  color: #ffc107;
}

.compare-btn.selected i {
  color: var(--accent-gold, #C9A962);
}

/* Header Buttons (Detail-Seite - reine Icons, weiß) */
.header .bookmark-btn,
.header .compare-btn,
.header .icc-send-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.header .bookmark-btn i,
.header .compare-btn i,
.header .icc-send-btn i {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  transition: all 0.2s;
}

.header .bookmark-btn:hover i,
.header .compare-btn:hover i,
.header .icc-send-btn:hover i {
  color: white;
  transform: scale(1.15);
}

.header .bookmark-btn.bookmarked i {
  color: #ffc107;
}

.header .compare-btn.selected i {
  color: #a8e6cf;
}

.header .icc-send-btn.active i {
  color: #a8e6cf;
}

/* Action Buttons (für detail.html) */
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.5rem;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  transform: scale(1.2);
}

.action-btn i {
  font-size: 1.3rem;
  color: #6c757d;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.action-btn.bookmarked i {
  color: #ffc107;
}

.action-btn.selected i {
  color: var(--accent-gold, #C9A962);
}

/* Float Button - IMMER SICHTBAR */
.sidebar-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gold, #C9A962);
  color: var(--bg-primary, #1a1a1a);
  border: none;
  box-shadow: 0 4px 12px rgba(201, 169, 98, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.sidebar-float-btn i {
  font-size: 1.5rem;
}

.sidebar-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Sidebar Panel */
.sidebar-panel {
  position: fixed;
  top: 110px;
  right: -420px;
  width: 420px;
  height: calc(100vh - 110px);
  background-color: var(--sidebar-bg);
  box-shadow: -4px 0 12px rgba(0,0,0,0.3);
  z-index: 150;
  transition: right 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-panel.open {
  right: 0;
}

/* Sidebar Close Toggle Button (left edge of sidebar) */
.sidebar-close-toggle {
  position: absolute;
  top: 50%;
  left: -28px;
  transform: translateY(-50%);
  width: 28px;
  height: 80px;
  background: var(--sidebar-bg, #1a1d24);
  border: 1px solid var(--sidebar-border, rgba(255,255,255,0.1));
  border-right: none;
  border-radius: 10px 0 0 10px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 160;
  transition: all 0.3s ease;
}

.sidebar-panel.open ~ .sidebar-close-toggle,
.sidebar-panel.open .sidebar-close-toggle {
  display: flex;
}

.sidebar-close-toggle:hover {
  background: var(--sidebar-surface);
  width: 34px;
}

.sidebar-close-toggle i {
  font-size: 1rem;
  color: var(--sidebar-text-muted);
}

.sidebar-close-toggle-count {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--sidebar-accent);
}

.sidebar-panel-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
  border-bottom: 1px solid rgba(201, 169, 98, 0.2);
  color: var(--sidebar-text);
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

.sidebar-panel-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
}

/* Akkordeon Container */
.sidebar-accordion-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

/* Akkordeon Sections */
.accordion-section {
  background: var(--bg-tertiary, #2d2d2d);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  overflow: hidden;
  border-top: 2px solid var(--accent-gold, #C9A962);
}

.accordion-header {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary, #2d2d2d);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
}

.accordion-header:hover {
  background-color: var(--bg-card-hover, #333333);
}

.accordion-title {
  display: flex;
  align-items: center;
}

.accordion-badge {
  background: var(--accent-gold, #C9A962);
  color: var(--bg-primary, #1a1a1a);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
  margin-left: 8px;
}

.accordion-icon {
  transition: transform 0.3s;
  color: var(--text-muted, #999999);
}

.accordion-section.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--bg-secondary, #242424);
}

.accordion-section.open .accordion-content {
  max-height: 600px;
}

.accordion-body {
  padding: 12px 16px;
}

/* ===== EINHEITLICHE SIDEBAR-ELEMENTE ===== */

/* Primärer Action-Button (Gold) */
.sidebar-action-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--accent-gold, #C9A962);
  color: var(--bg-primary, #1a1a1a);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(201, 169, 98, 0.25);
}

.sidebar-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.sidebar-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Sekundärer Button (Outline Grau) */
.sidebar-secondary-btn {
  width: auto;
  padding: 4px 10px;
  background: var(--sidebar-surface);
  color: var(--sidebar-text-muted);
  border: 1px solid var(--sidebar-border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sidebar-secondary-btn:hover {
  background: var(--sidebar-bg);
  border-color: var(--sidebar-text-muted);
  color: var(--sidebar-text);
}

/* Icon-Only Button (Tertiär) */
.sidebar-icon-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  color: var(--sidebar-text);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon-btn:hover {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
}

.sidebar-icon-btn i {
  font-size: 14px;
}

/* Destructive Icon Button */
.sidebar-icon-btn.destructive {
  color: var(--sidebar-text);
}

.sidebar-icon-btn.destructive:hover {
  background: rgba(214, 69, 93, 0.1);
  color: var(--sidebar-destructive);
}

/* Accent Icon Button */
.sidebar-icon-btn.accent {
  color: var(--sidebar-text);
}

.sidebar-icon-btn.accent:hover {
  background: var(--sidebar-accent-light);
  color: var(--sidebar-accent);
}

.sidebar-icon-btn.accent.active {
  background: var(--sidebar-accent);
  color: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(107, 92, 214, 0.3);
}

.sidebar-icon-btn.accent.active i {
  font-weight: bold;
}

/* Leere Nachricht */
.sidebar-empty-msg {
  text-align: center;
  color: #6c757d;
  font-size: 13px;
  padding: 16px 8px;
  margin: 0;
}

/* Hint-Text */
.sidebar-hint {
  color: #6c757d;
  font-size: 11px;
  margin: 0;
}

/* Spinner */
.sidebar-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(201, 169, 98, 0.2);
  border-top-color: var(--accent-gold, #C9A962);
  border-radius: 50%;
  animation: sidebar-spin 0.8s linear infinite;
}

@keyframes sidebar-spin {
  to { transform: rotate(360deg); }
}

/* Upload Loading State */
.upload-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.upload-loading span {
  font-size: 12px;
  color: var(--accent-gold, #C9A962);
  font-weight: 500;
}

.icc-upload-zone.loading {
  pointer-events: none;
  opacity: 0.8;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* Labels */
.sidebar-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

/* Input-Row */
.sidebar-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Select */
.sidebar-select {
  padding: 6px 10px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-tertiary, #2d2d2d);
  color: var(--text-primary, #ffffff);
  cursor: pointer;
}

.sidebar-select:focus {
  border-color: var(--accent-gold, #C9A962);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

/* Input Grid - feste Breite für LAB und RGB */
.sidebar-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.icc-input-section {
  min-height: 100px;
}

/* Feste Höhe für ICC Input Container */
#iccLabInput,
#iccRgbInput {
  min-height: 58px;
}

.sidebar-input-group {
  display: flex;
  flex-direction: column;
}

.sidebar-input-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #999999);
  margin-bottom: 4px;
}

.sidebar-input {
  padding: 8px 10px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  border-radius: 6px;
  font-size: 13px;
  width: 100%;
  transition: border-color 0.2s;
  background: var(--bg-tertiary, #2d2d2d);
  color: var(--text-primary, #ffffff);
}

.sidebar-input:focus {
  border-color: var(--accent-gold, #C9A962);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

/* ===== EINHEITLICHE FARBKARTEN ===== */
.sidebar-color-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--sidebar-surface);
  border: 1px solid var(--sidebar-border);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.sidebar-color-card:hover {
  border-color: var(--sidebar-accent);
  box-shadow: 0 2px 8px rgba(107, 92, 214, 0.12);
}

/* Kein farbiger Hintergrund mehr für Farben im Vergleich */

.sidebar-color-card .swatch {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-color-card .info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-color-card .info .title {
  font-size: 12px;
  font-weight: 600;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-color-card .info .subtitle {
  font-size: 10px;
  color: var(--sidebar-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-color-card .actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

/* Legacy Support */
.sidebar-color-item {
  padding: 10px;
  border-radius: 8px;
  background: var(--sidebar-surface);
  border: 1px solid var(--sidebar-border);
  margin-bottom: 10px;
  transition: all 0.2s;
}

.sidebar-color-item:hover {
  border-color: var(--sidebar-accent);
  box-shadow: 0 2px 8px rgba(107, 92, 214, 0.12);
}

/* Kein farbiger Hintergrund mehr für Farben im Vergleich */

.sidebar-color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--sidebar-border);
  display: block;
  flex-shrink: 0;
}

/* ICC-Rechner Styles - Dark Theme */
.icc-upload-zone {
  border: 2px dashed var(--border-subtle, rgba(255, 255, 255, 0.15));
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
  transition: all 0.2s;
  cursor: pointer;
  background: var(--bg-tertiary, #2d2d2d);
}

.icc-upload-zone:hover {
  border-color: var(--accent-gold, #C9A962);
  background: rgba(201, 169, 98, 0.08);
}

.icc-upload-zone.dragover {
  border-color: var(--accent-gold, #C9A962);
  background: rgba(201, 169, 98, 0.15);
}

.icc-upload-zone.loaded {
  border-style: solid;
  border-color: rgba(201, 169, 98, 0.5);
  background: rgba(201, 169, 98, 0.1);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted, #999999);
}

.upload-placeholder i {
  font-size: 24px;
  color: var(--accent-gold, #C9A962);
}

.upload-placeholder span {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary, #e0e0e0);
}

.upload-placeholder small {
  font-size: 11px;
  color: var(--text-muted, #999999);
}

.upload-loaded {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-loaded span {
  font-size: 12px;
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9CA3AF;
}

.upload-loaded i {
  color: #C9A962 !important;
}

/* ICC Result */
.icc-result {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icc-result-swatch {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 2px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  flex-shrink: 0;
}

.icc-cmyk-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.icc-cmyk-values span {
  background: var(--bg-tertiary, #2d2d2d);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary, #ffffff);
}

.icc-gamut-info {
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid var(--accent-gold, #C9A962);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--accent-gold, #C9A962);
}

.icc-gamut-info.good {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}

/* Erweiterte ICC-Ergebnisse */
.icc-extended-results {
  font-size: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
}

.icc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.icc-result-label {
  color: var(--text-muted, #999999);
}

/* ICC Einstellungen */
.icc-settings-block {
  background: var(--bg-secondary, #242424);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
}

.sidebar-checkbox-row {
  display: flex;
  flex-direction: column;
}

.sidebar-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.sidebar-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-gold, #C9A962);
}

/* Dual-Intent Vergleich */
.icc-dual-result {
  background: transparent;
  border-radius: 8px;
  padding: 0;
}

.icc-intent-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icc-intent-card.is-best {
  border-color: #C9A962;
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

.icc-intent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.icc-intent-name {
  font-weight: 600;
  font-size: 12px;
  color: #9CA3AF;
}

.icc-best-badge {
  background: #C9A962;
  color: #1a1a1a;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.icc-result-swatch-small {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  flex-shrink: 0;
}

.icc-cmyk-compact {
  font-size: 11px;
  color: #666;
}

.icc-intent-details {
  display: flex;
  gap: 12px;
  font-size: 11px;
  margin-top: 6px;
  color: #666;
}

/* ICC Button for Detail Page */
.icc-send-btn {
  background: var(--accent-gold, #C9A962);
  color: var(--bg-primary, #1a1a1a);
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.icc-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(201, 169, 98, 0.3);
}

/* Footer */
.sidebar-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-secondary, #242424);
  border-top: 2px solid var(--accent-gold, #C9A962);
  padding: 12px 16px;
  flex-shrink: 0;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .sidebar-panel {
    width: 85%;
    right: -85%;
  }
  
  .sidebar-panel.open {
    right: 0;
  }
  
  .sidebar-float-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .sidebar-float-btn i {
    font-size: 1.2rem;
  }
  
  .accordion-header {
    padding: 14px 16px;
  }
  
  .icc-upload-zone {
    padding: 20px 16px;
  }
  
  .upload-placeholder i {
    font-size: 28px;
  }
}

/* Animation für Toast */
@keyframes slideInBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* ICC History Styles */
.icc-history-list {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
}

.icc-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-tertiary, #2d2d2d);
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
}

.icc-history-item:hover {
  background: var(--bg-card-hover, #333333);
}

.icc-history-swatch {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.icc-history-info {
  flex: 1;
  min-width: 0;
}

.icc-history-input {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icc-history-cmyk {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}

/* ===== HARMONISCHE FARBPALETTEN SIDEBAR ===== */

.sidebar-palette-group {
  margin-bottom: 12px;
}

.sidebar-palette-group:last-child {
  margin-bottom: 0;
}

.sidebar-palette-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sidebar-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-palette-colors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
}

.sidebar-palette-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--sidebar-border);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.sidebar-palette-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
}

.sidebar-palette-swatch.is-base {
  border: 2px solid var(--sidebar-accent);
  box-shadow: 0 0 0 2px var(--sidebar-accent-light);
}

/* Palette Sliders */
.sidebar-palette-sliders {
  background: var(--sidebar-bg);
  border-radius: 8px;
  padding: 12px;
}

.sidebar-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sidebar-slider-row:last-of-type {
  margin-bottom: 0;
}

.sidebar-slider-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sidebar-text-muted);
  min-width: 65px;
}

.sidebar-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--sidebar-border);
  border-radius: 3px;
  outline: none;
}

.sidebar-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sidebar-accent);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}

.sidebar-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sidebar-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sidebar-accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sidebar-slider-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--sidebar-text);
  min-width: 36px;
  text-align: right;
}

.sidebar-palette-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 5px;
  opacity: 0;
  background: rgba(255,255,255,0.3);
  transition: opacity 0.2s;
}

.sidebar-palette-swatch:active::after {
  opacity: 1;
}

.sidebar-palette-swatch[title] {
  cursor: pointer;
}

#paletteContent {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

#paletteContent::-webkit-scrollbar {
  width: 4px;
}

#paletteContent::-webkit-scrollbar-track {
  background: transparent;
}

#paletteContent::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
  border-radius: 2px;
}

#paletteContent::-webkit-scrollbar-thumb:hover {
  background: var(--sidebar-text-muted);
}

/* Palette Source Card */
#paletteSourceColor {
  margin-bottom: 16px;
  border: 2px solid var(--sidebar-accent);
  background: var(--sidebar-accent-light);
}

#paletteSourceColor .swatch {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Palette Icon Button für Farbkarten */
.palette-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.palette-btn:hover {
  transform: scale(1.2);
}

.palette-btn i {
  font-size: 1rem;
  color: #6c757d;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.palette-btn.active i {
  color: var(--sidebar-accent);
}

/* Header Palette Button (Detail-Seite) */
.header .palette-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.header .palette-btn i {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  transition: all 0.2s;
}

.header .palette-btn:hover i {
  color: white;
  transform: scale(1.15);
}

.header .palette-btn.active i {
  color: #a8e6cf;
}

/* Copy Toast Animation */
.sidebar-palette-swatch.copied {
  animation: swatchCopied 0.3s ease;
}

@keyframes swatchCopied {
  0% { transform: scale(1); }
  50% { transform: scale(0.85); }
  100% { transform: scale(1); }
}

/* Mobile: Prevent horizontal scroll completely */
@media (max-width: 768px) {
  html, body, .app-layout, .main-content, .content-area {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  
  * {
    max-width: 100vw;
  }
}
